32 #import "CoreGTK/CGTKComboBox.h"
48 -(id)initWithArea:(GtkCellArea*) area
50 self = [
super initWithGObject:(GObject *)gtk_combo_box_new_with_area(area)];
60 -(id)initWithAreaAndEntry:(GtkCellArea*) area
62 self = [
super initWithGObject:(GObject *)gtk_combo_box_new_with_area_and_entry(area)];
74 self = [
super initWithGObject:(GObject *)gtk_combo_box_new_with_entry()];
84 -(id)initWithModel:(GtkTreeModel*) model
86 self = [
super initWithGObject:(GObject *)gtk_combo_box_new_with_model(model)];
96 -(id)initWithModelAndEntry:(GtkTreeModel*) model
98 self = [
super initWithGObject:(GObject *)gtk_combo_box_new_with_model_and_entry(model)];
110 return GTK_COMBO_BOX([
self GOBJECT]);
115 return gtk_combo_box_get_active(GTK_COMBO_BOX([
self GOBJECT]));
120 return [NSString stringWithUTF8String:gtk_combo_box_get_active_id(GTK_COMBO_BOX([
self GOBJECT]))];
123 -(BOOL)getActiveIter:(GtkTreeIter*) iter
125 return (gtk_combo_box_get_active_iter(GTK_COMBO_BOX([
self GOBJECT]), iter) ? YES : NO);
130 return (gtk_combo_box_get_add_tearoffs(GTK_COMBO_BOX([
self GOBJECT])) ? YES : NO);
135 return gtk_combo_box_get_button_sensitivity(GTK_COMBO_BOX([
self GOBJECT]));
140 return gtk_combo_box_get_column_span_column(GTK_COMBO_BOX([
self GOBJECT]));
145 return gtk_combo_box_get_entry_text_column(GTK_COMBO_BOX([
self GOBJECT]));
150 return (gtk_combo_box_get_focus_on_click(GTK_COMBO_BOX([
self GOBJECT])) ? YES : NO);
155 return (gtk_combo_box_get_has_entry(GTK_COMBO_BOX([
self GOBJECT])) ? YES : NO);
160 return gtk_combo_box_get_id_column(GTK_COMBO_BOX([
self GOBJECT]));
165 return gtk_combo_box_get_model(GTK_COMBO_BOX([
self GOBJECT]));
170 return gtk_combo_box_get_popup_accessible(GTK_COMBO_BOX([
self GOBJECT]));
175 return (gtk_combo_box_get_popup_fixed_width(GTK_COMBO_BOX([
self GOBJECT])) ? YES : NO);
180 return gtk_combo_box_get_row_separator_func(GTK_COMBO_BOX([
self GOBJECT]));
185 return gtk_combo_box_get_row_span_column(GTK_COMBO_BOX([
self GOBJECT]));
190 return [NSString stringWithUTF8String:gtk_combo_box_get_title(GTK_COMBO_BOX([
self GOBJECT]))];
195 return gtk_combo_box_get_wrap_width(GTK_COMBO_BOX([
self GOBJECT]));
200 gtk_combo_box_popdown(GTK_COMBO_BOX([
self GOBJECT]));
205 gtk_combo_box_popup(GTK_COMBO_BOX([
self GOBJECT]));
208 -(void)popupForDevice:(GdkDevice*) device
210 gtk_combo_box_popup_for_device(GTK_COMBO_BOX([
self GOBJECT]), device);
213 -(void)setActive:(gint) index
215 gtk_combo_box_set_active(GTK_COMBO_BOX([
self GOBJECT]), index);
218 -(BOOL)setActiveId:(NSString*) activeId
220 return (gtk_combo_box_set_active_id(GTK_COMBO_BOX([
self GOBJECT]), [activeId UTF8String]) ? YES : NO);
223 -(void)setActiveIter:(GtkTreeIter*) iter
225 gtk_combo_box_set_active_iter(GTK_COMBO_BOX([
self GOBJECT]), iter);
228 -(void)setAddTearoffs:(BOOL) addTearoffs
230 gtk_combo_box_set_add_tearoffs(GTK_COMBO_BOX([
self GOBJECT]), (addTearoffs ? TRUE : FALSE));
233 -(void)setButtonSensitivity:(GtkSensitivityType) sensitivity
235 gtk_combo_box_set_button_sensitivity(GTK_COMBO_BOX([
self GOBJECT]), sensitivity);
238 -(void)setColumnSpanColumn:(gint) columnSpan
240 gtk_combo_box_set_column_span_column(GTK_COMBO_BOX([
self GOBJECT]), columnSpan);
243 -(void)setEntryTextColumn:(gint) textColumn
245 gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX([
self GOBJECT]), textColumn);
248 -(void)setFocusOnClick:(BOOL) focusOnClick
250 gtk_combo_box_set_focus_on_click(GTK_COMBO_BOX([
self GOBJECT]), (focusOnClick ? TRUE : FALSE));
253 -(void)setIdColumn:(gint) idColumn
255 gtk_combo_box_set_id_column(GTK_COMBO_BOX([
self GOBJECT]), idColumn);
258 -(void)setModel:(GtkTreeModel*) model
260 gtk_combo_box_set_model(GTK_COMBO_BOX([
self GOBJECT]), model);
263 -(void)setPopupFixedWidth:(BOOL) fixed
265 gtk_combo_box_set_popup_fixed_width(GTK_COMBO_BOX([
self GOBJECT]), (fixed ? TRUE : FALSE));
268 -(void)setRowSeparatorFuncWithFunc:(GtkTreeViewRowSeparatorFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy
270 gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX([
self GOBJECT]), func, data,
destroy);
273 -(void)setRowSpanColumn:(gint) rowSpan
275 gtk_combo_box_set_row_span_column(GTK_COMBO_BOX([
self GOBJECT]), rowSpan);
278 -(void)setTitle:(NSString*) title
280 gtk_combo_box_set_title(GTK_COMBO_BOX([
self GOBJECT]), [title UTF8String]);
283 -(void)setWrapWidth:(gint) width
285 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX([
self GOBJECT]), width);
BOOL getPopupFixedWidth()
gint getEntryTextColumn()
id initWithGObject:(GObject *obj)
GtkTreeModel * getModel()
AtkObject * getPopupAccessible()
GtkSensitivityType getButtonSensitivity()
gint getColumnSpanColumn()
GtkTreeViewRowSeparatorFunc getRowSeparatorFunc()