IntComboBox
Object Hierarchy:
Description:
[
CCode ( type_id =
"gimp_int_combo_box_get_type ()" ) ]
public class IntComboBox :
ComboBox,
Implementor,
Buildable,
CellEditable,
CellLayout
A widget providing a popup menu of integer values (e.
g. enums).
Content:
Properties:
- public EllipsizeMode ellipsize { get; set; }
Specifies the preferred place to ellipsize text in the combo-box, if
the cell renderer does not have enough room to display the entire string.
- public string label { owned get; set; }
Sets a label on the combo-box, see
set_label.
- public IntComboBoxLayout layout { get; set; }
Specifies the combo box layout.
- public int value { get; set; }
The active value (different from the "active" property of GtkComboBox
which is the active index).
Creation methods:
Methods:
- public ulong connect (int value, owned Callback callback)
A convenience function that sets the initial value of a
IntComboBox and connects callback to the "changed" signal.
- public bool get_active (out int value)
Retrieves the value of the selected (active) item in the
this.
- public bool get_active_user_data (out void* user_data)
Retrieves the user-data of the selected (active) item in the
this.
- public unowned string get_label ()
Returns the label previously set with
set_label, or null,
- public IntComboBoxLayout get_layout ()
Returns the layout of this
- public bool set_active (int value)
Looks up the item that belongs to the given value and
makes it the selected item in the this.
- public bool set_active_by_user_data (void* user_data)
Looks up the item that has the given user_data and makes
it the selected item in the this.
- public void set_label (string label)
Sets a caption on the this that will
be displayed left-aligned inside the box.
- public void set_layout (IntComboBoxLayout layout)
Sets the layout of this to
layout.
- public void set_sensitivity (owned IntSensitivityFunc func)
Sets a function that is used to decide about the sensitivity of rows
in the this.
Inherited Members:
All known members inherited from class Gtk.ComboBox
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Container
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.CellEditable
All known members inherited from interface Gtk.CellLayout