{-# LINE 2 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}-- -*-haskell-*--- GIMP Toolkit (GTK) Widget ComboBox---- Author : Duncan Coutts---- Created: 25 April 2004---- Copyright (C) 2004-2007 Duncan Coutts, Axel Simon---- This library is free software; you can redistribute it and/or-- modify it under the terms of the GNU Lesser General Public-- License as published by the Free Software Foundation; either-- version 2.1 of the License, or (at your option) any later version.---- This library is distributed in the hope that it will be useful,-- but WITHOUT ANY WARRANTY; without even the implied warranty of-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU-- Lesser General Public License for more details.---- |-- Maintainer : gtk2hs-users@lists.sourceforge.net-- Stability : provisional-- Portability : portable (depends on GHC)---- A widget used to choose from a list of items.---- * Module available since Gtk+ version 2.4--moduleGraphics.UI.Gtk.MenuComboToolbar.ComboBox(-- * Detail---- | A 'ComboBox' is a widget that allows the user to choose from a list of-- valid choices. The 'ComboBox' displays the selected choice. When activated,-- the 'ComboBox' displays a popup which allows the user to make a new choice.-- The style in which the selected value is displayed, and the style of the-- popup is determined by the current theme. It may be similar to a-- 'OptionMenu', or similar to a Windows-style combo box.---- Unlike its predecessors 'Combo' and 'OptionMenu', the 'ComboBox' uses the-- model-view pattern; the list of valid choices is specified in the form of a-- tree model, and the display of the choices can be adapted to the data in-- the model by using cell renderers, as you would in a tree view. This is-- possible since 'ComboBox' implements the 'CellLayout' interface. The tree-- model holding the valid choices is not restricted to a flat list, it can be-- a real tree, and the popup will reflect the tree structure.---- In addition to the general model-view API, 'ComboBox' offers the function-- 'comboBoxNewText' which creates a text-only combo box.-- * Class Hierarchy---- |-- @-- | 'GObject'-- | +----'Object'-- | +----'Widget'-- | +----'Container'-- | +----'Bin'-- | +----ComboBox-- | +----'ComboBoxEntry'-- @-- * TypesComboBox,ComboBoxClass,castToComboBox,gTypeComboBox,toComboBox,-- * ConstructorscomboBoxNew,comboBoxNewText,comboBoxNewWithModel,-- * Methods-- ** Simple Text APIcomboBoxSetModelText,comboBoxGetModelText,comboBoxAppendText,comboBoxInsertText,comboBoxPrependText,comboBoxRemoveText,comboBoxGetActiveText,-- ** Standard APIcomboBoxGetWrapWidth,comboBoxSetWrapWidth,comboBoxGetRowSpanColumn,comboBoxSetRowSpanColumn,comboBoxGetColumnSpanColumn,comboBoxSetColumnSpanColumn,comboBoxGetActive,comboBoxSetActive,comboBoxGetActiveIter,comboBoxSetActiveIter,comboBoxGetModel,comboBoxSetModel,comboBoxPopup,comboBoxPopdown,comboBoxSetRowSeparatorSource,comboBoxSetAddTearoffs,comboBoxGetAddTearoffs,comboBoxSetTitle,comboBoxGetTitle,comboBoxSetFocusOnClick,comboBoxGetFocusOnClick,-- * AttributescomboBoxModel,comboBoxWrapWidth,comboBoxRowSpanColumn,comboBoxColumnSpanColumn,comboBoxActive,comboBoxAddTearoffs,comboBoxHasFrame,comboBoxFocusOnClick,comboBoxTearoffTitle,comboBoxPopupShown,comboBoxTitle,-- * Signalschanged,-- * DeprecatedonChanged,afterChanged,)whereimportControl.Monad(liftM)importSystem.Glib.FFIimportSystem.Glib.UTFStringimportSystem.Glib.AttributesimportSystem.Glib.PropertiesimportGraphics.UI.Gtk.Abstract.Object(makeNewObject)importSystem.Glib.GObject(makeNewGObject,destroyFunPtr,Quark,objectSetAttribute,objectGetAttributeUnsafe)importGraphics.UI.Gtk.Typeshiding(ListStore)importGraphics.UI.Gtk.ModelView.Types(TypedTreeModelClass,TreeIter,receiveTreeIter,comboQuark)importGraphics.UI.Gtk.Signals{-# LINE 167 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}importGraphics.UI.Gtk.ModelView.CustomStore{-# LINE 168 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}importGraphics.UI.Gtk.ModelView.TreeModel{-# LINE 169 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}importGraphics.UI.Gtk.ModelView.ListStore(ListStore,listStoreNew,listStoreInsert,listStorePrepend,listStoreAppend,listStoreRemove,listStoreGetValue)importGraphics.UI.Gtk.ModelView.CellLayout(cellLayoutSetAttributes,cellLayoutPackStart,cellLayoutClear)importGraphics.UI.Gtk.ModelView.CellRendererText(cellRendererTextNew,cellText){-# LINE 177 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}---------------------- Constructors-- | Creates a new empty 'ComboBox'.--comboBoxNew::IOComboBoxcomboBoxNew=makeNewObjectmkComboBox$liftM(castPtr::PtrWidget->PtrComboBox)$gtk_combo_box_new{-# LINE 189 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}-- | Convenience function which constructs a new text combo box that is a-- 'ComboBox' just displaying strings. This function internally calls-- 'comboBoxSetModelText' after creating a new combo box.--comboBoxNewText::IOComboBoxcomboBoxNewText=docombo<-comboBoxNewcomboBoxSetModelTextcomboreturncombo-- %hash c:2570-- | Creates a new 'ComboBox' with the model initialized to @model@.--comboBoxNewWithModel::TreeModelClassmodel=>model-- ^ @model@ - A 'TreeModel'.->IOComboBoxcomboBoxNewWithModelmodel=makeNewObjectmkComboBox$liftM(castPtr::PtrWidget->PtrComboBox)$(\(TreeModelarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_new_with_modelargPtr1){-# LINE 210 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toTreeModelmodel)---------------------- Methods-- the text API-- | Create a combo box that holds strings.---- This function stores a 'Graphics.UI.Gtk.ModelView.ListStore' with the-- widget and sets the model to the list store. The widget can contain only-- strings. The model can be retrieved with 'comboBoxGetModel'. The list-- store can be retrieved with 'comboBoxGetModelText'.-- Any exisiting model or renderers are removed before setting the new text-- model.-- Note that the functions 'comboBoxAppendText', 'comboBoxInsertText',-- 'comboBoxPrependText', 'comboBoxRemoveText' and 'comboBoxGetActiveText'-- can be called on a combo box only once 'comboBoxSetModelText' is called.--comboBoxSetModelText::ComboBoxClassself=>self->IO(ListStoreString)comboBoxSetModelTextcombo=docellLayoutClear(toComboBoxcombo)store<-listStoreNew([]::[String])comboBoxSetModelcombo(Juststore)ren<-cellRendererTextNewcellLayoutPackStart(toComboBoxcombo)renTruecellLayoutSetAttributes(toComboBoxcombo)renstore(\a->[cellText:=a])objectSetAttributecomboQuarkcombo(Juststore)returnstore-- | Retrieve the model that was created with 'comboBoxSetModelText'.--comboBoxGetModelText::ComboBoxClassself=>self->IO(ListStoreString)comboBoxGetModelTextself=do(Juststore)<-objectGetAttributeUnsafecomboQuark(toComboBoxself)returnstore-- %hash c:7228 d:5c35-- | Appends @string@ to the list of strings stored in @comboBox@. Note that-- you can only use this function with combo boxes constructed with-- 'comboBoxNewText'. Returns the index of the appended text.--comboBoxAppendText::ComboBoxClassself=>self->String->IOIntcomboBoxAppendTextselftext=dostore<-comboBoxGetModelTextselflistStoreAppendstoretext-- %hash c:41de d:8ab0-- | Inserts @string@ at @position@ in the list of strings stored in-- @comboBox@. Note that you can only use this function with combo boxes-- constructed with 'comboBoxNewText'.--comboBoxInsertText::ComboBoxClassself=>self->Int-- ^ @position@ - An index to insert @text@.->String-- ^ @text@ - A string.->IO()comboBoxInsertTextselfpositiontext=dostore<-comboBoxGetModelTextselflistStoreInsertstorepositiontext-- %hash c:98ea d:9fab-- | Prepends @string@ to the list of strings stored in @comboBox@. Note that-- you can only use this function with combo boxes constructed with-- 'comboBoxNewText'.--comboBoxPrependText::ComboBoxClassself=>self->String->IO()comboBoxPrependTextselftext=dostore<-comboBoxGetModelTextselflistStorePrependstoretext-- %hash c:7ff6 d:ffbf-- | Removes the string at @position@ from @comboBox@. Note that you can only-- use this function with combo boxes constructed with 'comboBoxNewText'.--comboBoxRemoveText::ComboBoxClassself=>self->Int-- ^ @position@ - Index of the item to remove.->IO()comboBoxRemoveTextselfposition=dostore<-comboBoxGetModelTextselflistStoreRemovestoreposition-- | Returns the currently active string in @comboBox@ or @Nothing@ if none is-- selected. Note that you can only use this function with combo boxes-- constructed with 'comboBoxNewText'.--comboBoxGetActiveText::ComboBoxClassself=>self->IO(MaybeString)comboBoxGetActiveTextself=doactiveId<-comboBoxGetActiveselfifactiveId<0thenreturnNothingelsedolistStore<-comboBoxGetModelTextselfvalue<-listStoreGetValuelistStoreactiveIdreturn$Justvalue-- %hash d:566e-- | Returns the wrap width which is used to determine the number of columns-- for the popup menu. If the wrap width is larger than 1, the combo box is in-- table mode.---- * Available since Gtk+ version 2.6--comboBoxGetWrapWidth::ComboBoxClassself=>self->IOIntcomboBoxGetWrapWidthself=liftMfromIntegral$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_wrap_widthargPtr1){-# LINE 317 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- | Sets the wrap width of the combo box to be @width@. The wrap width is-- basically the preferred number of columns when you want the popup to be-- laid out in a table.--comboBoxSetWrapWidth::ComboBoxClassself=>self->Int->IO()comboBoxSetWrapWidthselfwidth=(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_wrap_widthargPtr1arg2){-# LINE 327 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)(fromIntegralwidth)-- | Gets the column with row span information for @comboBox@.---- * Available since Gtk+ version 2.6--comboBoxGetRowSpanColumn::ComboBoxClassself=>self->IO(ColumnIdrowInt)comboBoxGetRowSpanColumnself=liftM(makeColumnIdInt.fromIntegral)$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_row_span_columnargPtr1){-# LINE 339 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash d:f80b-- | Sets the column with row span information for @comboBox@ to be @rowSpan@.-- The row span column contains integers which indicate how many rows an item-- should span.--comboBoxSetRowSpanColumn::ComboBoxClassself=>self->ColumnIdrowInt->IO()comboBoxSetRowSpanColumnselfrowSpan=(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_row_span_columnargPtr1arg2){-# LINE 350 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)((fromIntegral.columnIdToNumber)rowSpan)-- | Gets the source of the column span information for the combo box.---- * Available since Gtk+ version 2.6--comboBoxGetColumnSpanColumn::ComboBoxClassself=>self->IO(ColumnIdrowInt)comboBoxGetColumnSpanColumnself=liftM(makeColumnIdInt.fromIntegral)$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_column_span_columnargPtr1){-# LINE 362 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash d:4303-- | Sets the source of the column span information for the combo box. The-- column span source contains integers which indicate how many columns an-- item should span.--comboBoxSetColumnSpanColumn::ComboBoxClassself=>self->ColumnIdrowInt->IO()comboBoxSetColumnSpanColumnselfcolumnSpan=(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_column_span_columnargPtr1arg2){-# LINE 373 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)((fromIntegral.columnIdToNumber)columnSpan)-- %hash c:e719 d:e6a-- | Returns the index of the currently active item, or -1 if there is no-- active item. If the model is a non-flat treemodel, and the active item is-- not an immediate child of the root of the tree, this function returns-- @'treePathGetIndices' path !! 0@, where @path@ is the 'TreePath' of the-- active item.--comboBoxGetActive::ComboBoxClassself=>self->IOInt-- ^ returns An integer which is the index of the currently active-- item, or -1 if there's no active item.comboBoxGetActiveself=liftMfromIntegral$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_activeargPtr1){-# LINE 389 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash c:3572 d:fbed-- | Sets the active item of @comboBox@ to be the item at @index@.--comboBoxSetActive::ComboBoxClassself=>self->Int-- ^ @index@ - An index in the model passed during construction, or -1-- to have no active item.->IO()comboBoxSetActiveselfindex=(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_activeargPtr1arg2){-# LINE 400 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)(fromIntegralindex)-- %hash c:744a d:e897-- | Returns a 'TreeIter' that points to the current active item, if it-- exists, or @Nothing@ if there is no current active item.--comboBoxGetActiveIter::ComboBoxClassself=>self->IO(MaybeTreeIter)comboBoxGetActiveIterself=receiveTreeIter$\iterPtr->(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_active_iterargPtr1arg2){-# LINE 411 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)iterPtr-- %hash c:9a70-- | Sets the current active item to be the one referenced by @iter@. @iter@-- must correspond to a path of depth one.--comboBoxSetActiveIter::ComboBoxClassself=>self->TreeIter-- ^ @iter@ - The 'TreeIter'.->IO()comboBoxSetActiveIterselfiter=withiter$\iterPtr->(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_active_iterargPtr1arg2){-# LINE 424 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)iterPtr-- %hash c:2460-- | Returns the 'TreeModel' which is acting as data source for @comboBox@.--comboBoxGetModel::ComboBoxClassself=>self->IO(MaybeTreeModel)-- ^ returns A 'TreeModel' which was passed during-- construction.comboBoxGetModelself=maybeNull(makeNewGObjectmkTreeModel)$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_modelargPtr1){-# LINE 437 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash c:f5d0-- | Sets the model used by @comboBox@ to be @model@. Will unset a previously-- set model (if applicable). If model is @Nothing@, then it will unset the-- model.---- Note that this function does not clear the cell renderers, you have to call-- 'comboBoxCellLayoutClear' yourself if you need to set up different cell-- renderers for the new model.--comboBoxSetModel::(ComboBoxClassself,TreeModelClassmodel)=>self->Maybemodel->IO()comboBoxSetModelselfmodel=(\(ComboBoxarg1)(TreeModelarg2)->withForeignPtrarg1$\argPtr1->withForeignPtrarg2$\argPtr2->gtk_combo_box_set_modelargPtr1argPtr2){-# LINE 452 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)(maybe(TreeModelnullForeignPtr)toTreeModelmodel)-- | Pops up the menu or dropdown list of the combo box.---- This function is mostly intended for use by accessibility technologies;-- applications should have little use for it.--comboBoxPopup::ComboBoxClassself=>self->IO()comboBoxPopupself=(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_popupargPtr1){-# LINE 463 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash c:32a4 d:463e-- | Hides the menu or dropdown list of @comboBox@.---- This function is mostly intended for use by accessibility technologies;-- applications should have little use for it.--comboBoxPopdown::ComboBoxClassself=>self->IO()comboBoxPopdownself=(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_popdownargPtr1){-# LINE 474 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash c:6fec d:a050-- | Installs a mapping from the model to a row separator flag, which is used-- to determine whether a row should be drawn as a separator. If the row-- separator mapping is @Nothing@, no separators are drawn. This is the-- default value.---- * Available since Gtk+ version 2.6--comboBoxSetRowSeparatorSource::(ComboBoxClassself,TreeModelClass(modelrow),TypedTreeModelClassmodel)=>self-- ^ the 'ComboBox' widget->Maybe(modelrow,row->Bool)-- ^ The model and a function to extract a Boolean from it.->IO()comboBoxSetRowSeparatorSourceselfNothing=(\(ComboBoxarg1)arg2arg3arg4->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_row_separator_funcargPtr1arg2arg3arg4){-# LINE 494 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)nullFunPtrnullPtrnullFunPtrcomboBoxSetRowSeparatorSourceself(Just(model,extract))=dofunPtr<-mkRowSeparatorFunc$\_iterPtr_->doiter<-peekiterPtrvalue<-customStoreGetRowmodeliterreturn(fromBool$extractvalue)(\(ComboBoxarg1)arg2arg3arg4->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_row_separator_funcargPtr1arg2arg3arg4){-# LINE 501 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)funPtr(castFunPtrToPtrfunPtr)destroyFunPtrtypeTreeViewRowSeparatorFunc=FunPtr(((PtrTreeModel)->((PtrTreeIter)->((Ptr())->(IOCInt))))){-# LINE 504 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}foreignimportccall"wrapper"mkRowSeparatorFunc::(PtrTreeModel->PtrTreeIter->Ptr()->IO(CInt))->IOTreeViewRowSeparatorFunc-- %hash c:5bf8-- | Sets whether the popup menu should have a tearoff menu item.---- * Available since Gtk+ version 2.6--comboBoxSetAddTearoffs::ComboBoxClassself=>self->Bool-- ^ @addTearoffs@ - @True@ to add tearoff menu items->IO()comboBoxSetAddTearoffsselfaddTearoffs=(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_add_tearoffsargPtr1arg2){-# LINE 518 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)(fromBooladdTearoffs)-- | Gets the current value of the :add-tearoffs property.--comboBoxGetAddTearoffs::ComboBoxClassself=>self->IOBoolcomboBoxGetAddTearoffsself=liftMtoBool$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_add_tearoffsargPtr1){-# LINE 527 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)-- %hash c:64db d:ecde-- | Sets the menu's title in tearoff mode.---- * Available since Gtk+ version 2.10--comboBoxSetTitle::ComboBoxClassself=>self->String-- ^ @title@ - a title for the menu in tearoff mode.->IO()comboBoxSetTitleselftitle=withUTFStringtitle$\titlePtr->(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_titleargPtr1arg2){-# LINE 541 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)titlePtr-- %hash c:9f54 d:e396-- | Gets the current title of the menu in tearoff mode. See-- 'comboBoxSetAddTearoffs'.---- * Available since Gtk+ version 2.10--comboBoxGetTitle::ComboBoxClassself=>self->IOString-- ^ returns the menu's title in tearoff mode.comboBoxGetTitleself=(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_titleargPtr1){-# LINE 554 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)>>=peekUTFString-- %hash c:fe18-- | Sets whether the combo box will grab focus when it is clicked with the-- mouse. Making mouse clicks not grab focus is useful in places like toolbars-- where you don't want the keyboard focus removed from the main area of the-- application.---- * Available since Gtk+ version 2.6--comboBoxSetFocusOnClick::ComboBoxClassself=>self->Bool-- ^ @focusOnClick@ - whether the combo box grabs focus when clicked-- with the mouse->IO()comboBoxSetFocusOnClickselffocusOnClick=(\(ComboBoxarg1)arg2->withForeignPtrarg1$\argPtr1->gtk_combo_box_set_focus_on_clickargPtr1arg2){-# LINE 572 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)(fromBoolfocusOnClick)-- %hash c:9168-- | Returns whether the combo box grabs focus when it is clicked with the-- mouse. See 'comboBoxSetFocusOnClick'.---- * Available since Gtk+ version 2.6--comboBoxGetFocusOnClick::ComboBoxClassself=>self->IOBool-- ^ returns @True@ if the combo box grabs focus when it is-- clicked with the mouse.comboBoxGetFocusOnClickself=liftMtoBool$(\(ComboBoxarg1)->withForeignPtrarg1$\argPtr1->gtk_combo_box_get_focus_on_clickargPtr1){-# LINE 587 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}(toComboBoxself)---------------------- Attributes-- %hash c:c23c-- | The model from which the combo box takes the values shown in the list.--comboBoxModel::(ComboBoxClassself,TreeModelClasstreeModel)=>ReadWriteAttrselfTreeModeltreeModelcomboBoxModel=newAttrFromObjectProperty"model"gtk_tree_model_get_type{-# LINE 601 "./Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs" #-}-- %hash c:ea5e-- | If wrap-width is set to a positive value, the list will be displayed in-- multiple columns, the number of columns is determined by wrap-width.---- Allowed values: >= 0---- Default value: 0--comboBoxWrapWidth::ComboBoxClassself=>AttrselfIntcomboBoxWrapWidth=newAttrFromIntProperty"wrap-width"-- %hash c:a445-- | The values of that column are used to determine how many rows a value in-- the list will span. Therefore, the values in the model column pointed to by-- this property must be greater than zero and not larger than wrap-width.---- Default value: 'invalidColumnId'---- * Available since Gtk+ version 2.6--comboBoxRowSpanColumn::ComboBoxClassself=>Attrself(ColumnIdrowInt)comboBoxRowSpanColumn=newAttrcomboBoxGetRowSpanColumncomboBoxSetRowSpanColumn-- %hash c:7ec7-- | The values of that column are used to determine how many columns a value-- in the list will span.---- Default value: 'invalidColumnId'---- * Available since Gtk+ version 2.6--comboBoxColumnSpanColumn::ComboBoxClassself=>Attrself(ColumnIdrowInt)comboBoxColumnSpanColumn=newAttrcomboBoxGetColumnSpanColumncomboBoxSetColumnSpanColumn-- %hash c:f777 d:507b-- | The item which is currently active. This value only makes sense for-- a list model.--comboBoxActive::ComboBoxClassself=>AttrselfIntcomboBoxActive=newAttrFromIntProperty"active"-- %hash c:585b d:2096-- | The add-tearoffs property controls whether generated menus have tearoff-- menu items.---- Note that this only affects menu style combo boxes.---- Default value: @False@---- * Available since Gtk+ version 2.6--comboBoxAddTearoffs::ComboBoxClassself=>AttrselfBoolcomboBoxAddTearoffs=newAttrFromBoolProperty"add-tearoffs"-- %hash d:94cc-- | The has-frame property controls whether a frame is drawn around the-- entry.---- Default value: @True@---- * Available since Gtk+ version 2.6--comboBoxHasFrame::ComboBoxClassself=>AttrselfBoolcomboBoxHasFrame=newAttrFromBoolProperty"has-frame"-- %hash c:4808-- | Whether the combo box grabs focus when it is clicked with the mouse.---- Default value: @True@--comboBoxFocusOnClick::ComboBoxClassself=>AttrselfBoolcomboBoxFocusOnClick=newAttrFromBoolProperty"focus-on-click"-- %hash c:c1e3 d:ddac-- | A title that may be displayed by the window manager when the popup is-- torn-off.---- Default value: \"\"---- * Available since Gtk+ version 2.10--comboBoxTearoffTitle::ComboBoxClassself=>AttrselfStringcomboBoxTearoffTitle=newAttrFromStringProperty"tearoff-title"-- %hash c:efa9 d:89e5-- | Whether the combo boxes dropdown is popped up. Note that this property is-- mainly useful because it allows you to connect to notify::popup-shown.---- Default value: @False@---- * Available since Gtk+ version 2.10--comboBoxPopupShown::ComboBoxClassself=>ReadAttrselfBoolcomboBoxPopupShown=readAttrFromBoolProperty"popup-shown"-- %hash c:52a1 d:79e8-- | \'title\' property. See 'comboBoxGetTitle' and 'comboBoxSetTitle'---- * Available since Gtk+ version 2.10--comboBoxTitle::ComboBoxClassself=>AttrselfStringcomboBoxTitle=newAttrcomboBoxGetTitlecomboBoxSetTitle---------------------- Signals-- %hash c:4cee d:36c9-- | The changed signal is emitted when the active item is changed. The can be-- due to the user selecting a different item from the list, or due to a call-- to 'comboBoxSetActiveIter'. It will also be emitted while typing into a-- 'ComboBoxEntry', as well as when selecting an item from the-- 'ComboBoxEntry''s list.--changed::ComboBoxClassself=>Signalself(IO())changed=Signal(connect_NONE__NONE"changed")---------------------- Deprecated Signals-- %hash c:c149onChanged::ComboBoxClassself=>self->IO()->IO(ConnectIdself)onChanged=connect_NONE__NONE"changed"False{-# DEPRECATED onChanged "instead of 'onChanged obj' use 'on obj changed'" #-}-- %hash c:5e28afterChanged::ComboBoxClassself=>self->IO()->IO(ConnectIdself)afterChanged=connect_NONE__NONE"changed"True{-# DEPRECATED afterChanged "instead of 'afterChanged obj' use 'after obj changed'" #-}foreignimportccallsafe"gtk_combo_box_new"gtk_combo_box_new::(IO(PtrWidget))foreignimportccallsafe"gtk_combo_box_new_with_model"gtk_combo_box_new_with_model::((PtrTreeModel)->(IO(PtrWidget)))foreignimportccallsafe"gtk_combo_box_get_wrap_width"gtk_combo_box_get_wrap_width::((PtrComboBox)->(IOCInt))foreignimportccallsafe"gtk_combo_box_set_wrap_width"gtk_combo_box_set_wrap_width::((PtrComboBox)->(CInt->(IO())))foreignimportccallsafe"gtk_combo_box_get_row_span_column"gtk_combo_box_get_row_span_column::((PtrComboBox)->(IOCInt))foreignimportccallsafe"gtk_combo_box_set_row_span_column"gtk_combo_box_set_row_span_column::((PtrComboBox)->(CInt->(IO())))foreignimportccallsafe"gtk_combo_box_get_column_span_column"gtk_combo_box_get_column_span_column::((PtrComboBox)->(IOCInt))foreignimportccallsafe"gtk_combo_box_set_column_span_column"gtk_combo_box_set_column_span_column::((PtrComboBox)->(CInt->(IO())))foreignimportccallsafe"gtk_combo_box_get_active"gtk_combo_box_get_active::((PtrComboBox)->(IOCInt))foreignimportccallsafe"gtk_combo_box_set_active"gtk_combo_box_set_active::((PtrComboBox)->(CInt->(IO())))foreignimportccallsafe"gtk_combo_box_get_active_iter"gtk_combo_box_get_active_iter::((PtrComboBox)->((PtrTreeIter)->(IOCInt)))foreignimportccallsafe"gtk_combo_box_set_active_iter"gtk_combo_box_set_active_iter::((PtrComboBox)->((PtrTreeIter)->(IO())))foreignimportccallunsafe"gtk_combo_box_get_model"gtk_combo_box_get_model::((PtrComboBox)->(IO(PtrTreeModel)))foreignimportccallsafe"gtk_combo_box_set_model"gtk_combo_box_set_model::((PtrComboBox)->((PtrTreeModel)->(IO())))foreignimportccallsafe"gtk_combo_box_popup"gtk_combo_box_popup::((PtrComboBox)->(IO()))foreignimportccallsafe"gtk_combo_box_popdown"gtk_combo_box_popdown::((PtrComboBox)->(IO()))foreignimportccallsafe"gtk_combo_box_set_row_separator_func"gtk_combo_box_set_row_separator_func::((PtrComboBox)->((FunPtr((PtrTreeModel)->((PtrTreeIter)->((Ptr())->(IOCInt)))))->((Ptr())->((FunPtr((Ptr())->(IO())))->(IO())))))foreignimportccallsafe"gtk_combo_box_set_add_tearoffs"gtk_combo_box_set_add_tearoffs::((PtrComboBox)->(CInt->(IO())))foreignimportccallsafe"gtk_combo_box_get_add_tearoffs"gtk_combo_box_get_add_tearoffs::((PtrComboBox)->(IOCInt))foreignimportccallsafe"gtk_combo_box_set_title"gtk_combo_box_set_title::((PtrComboBox)->((PtrCChar)->(IO())))foreignimportccallsafe"gtk_combo_box_get_title"gtk_combo_box_get_title::((PtrComboBox)->(IO(PtrCChar)))foreignimportccallsafe"gtk_combo_box_set_focus_on_click"gtk_combo_box_set_focus_on_click::((PtrComboBox)->(CInt->(IO())))foreignimportccallsafe"gtk_combo_box_get_focus_on_click"gtk_combo_box_get_focus_on_click::((PtrComboBox)->(IOCInt))foreignimportccallunsafe"gtk_tree_model_get_type"gtk_tree_model_get_type::CUInt