Class: Gtk::ColumnViewColumn

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

Instance Method Summary collapse

Constructor Details

#initialize(title, factory) ⇒ Gtk::ColumnViewColumn

Creates a new GtkColumnViewColumn that uses the given factory for mapping items to widgets.

You most likely want to call [methodGtk.ColumnView.append_column] next.

The function takes ownership of the argument, so you can write code like:

column = gtk_column_view_column_new (_("Name"),
  gtk_builder_list_item_factory_new_from_resource ("/name.ui"));

Parameters:

  • title (String)

    Title to use for this column

  • factory (Gtk::ListItemFactory)

    The factory to populate items with

Instance Method Details

#column_viewGtk::ColumnView

The GtkColumnView this column is a part of.

Returns:

#column_view=(column_view) ⇒ Gtk::ColumnView

The GtkColumnView this column is a part of.

Parameters:

Returns:

#expandBoolean

Returns whether this column should expand.

Returns:

  • (Boolean)

    true if this column expands

#expand=(expand) ⇒ Boolean

Column gets share of extra width allocated to the view.

Parameters:

  • expand (Boolean)

Returns:

  • (Boolean)

    expand

  • (Boolean)

    expand

#expand?Boolean

Column gets share of extra width allocated to the view.

Returns:

  • (Boolean)

    expand

#factoryGtk::ListItemFactory

Factory for populating list items.

Returns:

#factory=(factory) ⇒ Gtk::ListItemFactory

Factory for populating list items.

Parameters:

Returns:

#fixed_widthInteger

If not -1, this is the width that the column is allocated, regardless of the size of its content.

Returns:

  • (Integer)

    fixed-width

#fixed_width=(fixed_width) ⇒ Integer

If not -1, this is the width that the column is allocated, regardless of the size of its content.

Parameters:

  • fixed_width (Integer)

Returns:

  • (Integer)

    fixed-width

  • (Integer)

    fixed-width

#header_menuGio::MenuModel

Menu model used to create the context menu for the column header.

Returns:

  • (Gio::MenuModel)

    header-menu

#header_menu=(header_menu) ⇒ Gio::MenuModel

Menu model used to create the context menu for the column header.

Parameters:

  • header_menu (Gio::MenuModel)

Returns:

  • (Gio::MenuModel)

    header-menu

  • (Gio::MenuModel)

    header-menu

#idString

An ID for the column.

GTK is not currently using the ID for anything, but it can be used by applications when saving column view configurations.

It is up to applications to ensure uniqueness of IDs.

Returns:

  • (String)

    id

#id=(id) ⇒ String

An ID for the column.

GTK is not currently using the ID for anything, but it can be used by applications when saving column view configurations.

It is up to applications to ensure uniqueness of IDs.

Parameters:

  • id (String)

Returns:

  • (String)

    id

  • (String)

    id

#resizableBoolean

Returns whether this column is resizable.

Returns:

  • (Boolean)

    true if this column is resizable

#resizable=(resizable) ⇒ Boolean

Whether this column is resizable.

Parameters:

  • resizable (Boolean)

Returns:

  • (Boolean)

    resizable

  • (Boolean)

    resizable

#resizable?Boolean

Whether this column is resizable.

Returns:

  • (Boolean)

    resizable

#sorterGtk::Sorter

Sorter for sorting items according to this column.

Returns:

#sorter=(sorter) ⇒ Gtk::Sorter

Sorter for sorting items according to this column.

Parameters:

Returns:

#titleString

Title displayed in the header.

Returns:

  • (String)

    title

#title=(title) ⇒ String

Title displayed in the header.

Parameters:

  • title (String)

Returns:

  • (String)

    title

  • (String)

    title

#visibleBoolean

Returns whether this column is visible.

Returns:

  • (Boolean)

    true if this column is visible

#visible=(visible) ⇒ Boolean

Whether this column is visible.

Parameters:

  • visible (Boolean)

Returns:

  • (Boolean)

    visible

  • (Boolean)

    visible

#visible?Boolean

Whether this column is visible.

Returns:

  • (Boolean)

    visible