Class: Gtk::DirectoryList

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(attributes, file) ⇒ Gtk::DirectoryList

Creates a new GtkDirectoryList.

The GtkDirectoryList is querying the given file with the given attributes.

Parameters:

  • attributes (String)

    The attributes to query with

  • file (Gio::File)

    The file to query

Instance Method Details

#attributesString

The attributes to query.

Returns:

  • (String)

    attributes

#attributes=(attributes) ⇒ String

The attributes to query.

Parameters:

  • attributes (String)

Returns:

  • (String)

    attributes

  • (String)

    attributes

#errorGLib::Error

Error encountered while loading files.

Returns:

  • (GLib::Error)

    error

#error=(error) ⇒ GLib::Error

Error encountered while loading files.

Parameters:

  • error (GLib::Error)

Returns:

  • (GLib::Error)

    error

  • (GLib::Error)

    error

#fileGio::File

File to query.

Returns:

  • (Gio::File)

    file

#file=(file) ⇒ Gio::File

File to query.

Parameters:

  • file (Gio::File)

Returns:

  • (Gio::File)

    file

  • (Gio::File)

    file

#io_priorityInteger

Priority used when loading.

Returns:

  • (Integer)

    io-priority

#io_priority=(io_priority) ⇒ Integer

Priority used when loading.

Parameters:

  • io_priority (Integer)

Returns:

  • (Integer)

    io-priority

  • (Integer)

    io-priority

#is_loadingBoolean

Returns true if the children enumeration is currently in progress.

Files will be added to self from time to time while loading is going on. The order in which are added is undefined and may change in between runs.

Returns:

  • (Boolean)

    true if self is loading

#item_typeGLib::Type

The type of items. See [methodGio.ListModel.get_item_type].

Returns:

  • (GLib::Type)

    item-type

#item_type=(item_type) ⇒ GLib::Type

The type of items. See [methodGio.ListModel.get_item_type].

Parameters:

  • item_type (GLib::Type)

Returns:

  • (GLib::Type)

    item-type

  • (GLib::Type)

    item-type

#loading=(loading) ⇒ Boolean

true if files are being loaded.

Parameters:

  • loading (Boolean)

Returns:

  • (Boolean)

    loading

  • (Boolean)

    loading

#loading?Boolean

true if files are being loaded.

Returns:

  • (Boolean)

    loading

#monitoredBoolean

Returns whether the directory list is monitoring the directory for changes.

Returns:

  • (Boolean)

    true if the directory is monitored

#monitored=(monitored) ⇒ Boolean

true if the directory is monitored for changed.

Parameters:

  • monitored (Boolean)

Returns:

  • (Boolean)

    monitored

  • (Boolean)

    monitored

#monitored?Boolean

true if the directory is monitored for changed.

Returns:

  • (Boolean)

    monitored

#n_itemsInteger

The number of items. See [methodGio.ListModel.get_n_items].

Returns:

  • (Integer)

    n-items

#n_items=(n_items) ⇒ Integer

The number of items. See [methodGio.ListModel.get_n_items].

Parameters:

  • n_items (Integer)

Returns:

  • (Integer)

    n-items

  • (Integer)

    n-items