Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gtk_toggle_combo_new () |
void | gtk_toggle_combo_construct () |
gint | gtk_toggle_combo_get_nrows () |
gint | gtk_toggle_combo_get_ncols () |
void | gtk_toggle_combo_select () |
void | gtk_toggle_combo_get_selection () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GtkHBox ╰── GtkComboButton ╰── GtkToggleCombo
GtkToggleCombo implements AtkImplementorIface, GtkBuildable and GtkOrientable.
A GtkToggleCombo is a GtkCombo which will remain 'pressed-in' when clicked.
Clicking it again will cause the toggle combo to return to it's normal state.
A toggle combo is created by calling gtk_toggle_combo_new()
.
The number of rows/columns may be find out by calling gtk_toggle_combo_get_nrows()
or gtk_toggle_combo_get_ncols()
.
A combo row may be selected with gtk_toggle_combo_select()
.The current selection is returned by gtk_toggle_combo_get_selection()
.
GtkWidget * gtk_toggle_combo_new (gint nrows
,gint ncols
);
Creates a new GtkToggleCombo widget with nrows
rows and ncols
columns.
void gtk_toggle_combo_construct (GtkToggleCombo *toggle_combo
,gint nrows
,gint ncols
);
Initializes the GtkToggleCombo with nrows
rows and ncols
columns.
gint
gtk_toggle_combo_get_nrows (GtkToggleCombo *combo
);
Get the number of rows in GtkToggleCombo.
gint
gtk_toggle_combo_get_ncols (GtkToggleCombo *combo
);
Get the number of columns in GtkToggleCombo.
void gtk_toggle_combo_select (GtkToggleCombo *toggle_combo
,gint new_row
,gint new_col
);
Select the cell(row,col) from GtkToggleCombo.
void gtk_toggle_combo_get_selection (GtkToggleCombo *combo
,gint *row
,gint *col
);
Get the current selection(row,col) in GtkToggleCombo.
“changed”
signalvoid user_function (GtkToggleCombo *toggle_combo, gint row, gint col, gpointer user_data)
Emmited when the row
,col
are selected in GtkToggleCombo
toggle_combo |
the GtkToggleCombo object that received the signal |
|
row |
row number |
|
col |
column number |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First