![]() |
![]() |
![]() |
GtkExtra Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <gtkextra.h> GtkToggleCombo; GtkWidget* gtk_toggle_combo_new (gint nrows, gint ncols); void gtk_toggle_combo_construct (GtkToggleCombo *toggle_combo, gint nrows, gint ncols); gint gtk_toggle_combo_get_nrows (GtkToggleCombo *combo); gint gtk_toggle_combo_get_ncols (GtkToggleCombo *combo); void gtk_toggle_combo_select (GtkToggleCombo *toggle_combo, gint new_row, gint new_col); void gtk_toggle_combo_get_selection (GtkToggleCombo *combo, gint *row, gint *col);
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()
.
typedef struct _GtkToggleCombo GtkToggleCombo;
The GtkToggleCombo struct contains only private data. It should only be accessed through the functions described below.
GtkWidget* gtk_toggle_combo_new (gint nrows, gint ncols);
Creates a new GtkToggleCombo widget with nrows
rows and ncols
columns.
|
number of rows |
|
number of columns |
Returns : |
the newly-created GtkToggleCombo widget. |
void gtk_toggle_combo_construct (GtkToggleCombo *toggle_combo, gint nrows, gint ncols);
Initializes the GtkToggleCombo with nrows
rows and ncols
columns.
|
a GtkToggleCombo |
|
number of rows |
|
number of columns |
gint gtk_toggle_combo_get_nrows (GtkToggleCombo *combo);
Get the number of rows in GtkToggleCombo.
|
a GtkToggleCombo |
Returns : |
number of rows |
gint gtk_toggle_combo_get_ncols (GtkToggleCombo *combo);
Get the number of columns in GtkToggleCombo.
|
a GtkToggleCombo |
Returns : |
number of columns |
void gtk_toggle_combo_select (GtkToggleCombo *toggle_combo, gint new_row, gint new_col);
Select the cell(row,col) from GtkToggleCombo.
|
a GtkToggleCombo |
|
number of row |
|
number of column |
void gtk_toggle_combo_get_selection (GtkToggleCombo *combo, gint *row, gint *col);
Get the current selection(row,col) in GtkToggleCombo.
|
a GtkToggleCombo |
|
number of row |
|
number of column |
"changed"
signalvoid user_function (GtkToggleCombo *toggle_combo, gint row, gint col, gpointer user_data) : Run First
Emmited when the row
,col
are selected in GtkToggleCombo
|
the GtkToggleCombo object that received the signal |
|
row number |
|
column number |
|
user data set when the signal handler was connected. |