ComboRow

Constructors

this
this(HdyComboRow* hdyComboRow, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #HdyComboRow.

Members

Functions

bindModel
void bindModel(ListModelIF model, GtkListBoxCreateWidgetFunc createListWidgetFunc, GtkListBoxCreateWidgetFunc createCurrentWidgetFunc, void* userData, GDestroyNotify userDataFreeFunc)

Binds @model to @self.

bindNameModel
void bindNameModel(ListModelIF model, HdyComboRowGetNameFunc getNameFunc, void* userData, GDestroyNotify userDataFreeFunc)

Binds @model to @self.

getComboRowStruct
HdyComboRow* getComboRowStruct(bool transferOwnership)

Get the main Gtk struct

getModel
ListModelIF getModel()

Gets the model bound to @self, or %NULL if none is bound.

getSelectedIndex
int getSelectedIndex()

Gets the index of the selected item in its #GListModel.

getStruct
void* getStruct()

the main Gtk struct as a void*

getUseSubtitle
bool getUseSubtitle()

Gets whether the current value of @self should be displayed as its subtitle.

setForEnum
void setForEnum(GType enumType, HdyComboRowGetEnumValueNameFunc getNameFunc, void* userData, GDestroyNotify userDataFreeFunc)

Creates a model for @enum_type and binds it to @self. The items of the model will be #HdyEnumValueObject objects.

setGetNameFunc
void setGetNameFunc(HdyComboRowGetNameFunc getNameFunc, void* userData, GDestroyNotify userDataFreeFunc)

Sets a closure to convert items into names. See HdyComboRow:use-subtitle.

setSelectedIndex
void setSelectedIndex(int selectedIndex)

Sets the index of the selected item in its #GListModel.

setUseSubtitle
void setUseSubtitle(bool useSubtitle)

Sets whether the current value of @self should be displayed as its subtitle.

Static functions

getType
GType getType()

Variables

hdyComboRow
HdyComboRow* hdyComboRow;

the main Gtk struct

Inherited Members

From ActionRow

hdyActionRow
HdyActionRow* hdyActionRow;

the main Gtk struct

getActionRowStruct
HdyActionRow* getActionRowStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

activate
alias activate = Widget.activate
Undocumented in source.
activate
void activate()
getType
GType getType()
addPrefix
void addPrefix(Widget widget)

Adds a prefix widget to @self.

getActivatableWidget
Widget getActivatableWidget()

Gets the widget activated when @self is activated.

getIconName
string getIconName()

Gets the icon name for @self.

getSubtitle
string getSubtitle()

Gets the subtitle for @self.

getUseUnderline
bool getUseUnderline()

Gets whether an embedded underline in the text of the title and subtitle labels indicates a mnemonic. See hdy_action_row_set_use_underline().

setActivatableWidget
void setActivatableWidget(Widget widget)

Sets the widget to activate when @self is activated, either by clicking on it, by calling hdy_action_row_activate(), or via mnemonics in the title or the subtitle. See the “use_underline” property to enable mnemonics.

setIconName
void setIconName(string iconName)

Sets the icon name for @self.

setSubtitle
void setSubtitle(string subtitle)

Sets the subtitle for @self.

setUseUnderline
void setUseUnderline(bool useUnderline)

If true, an underline in the text of the title and subtitle labels indicates the next character should be used for the mnemonic accelerator key.

addOnActivated
gulong addOnActivated(void delegate(ActionRow) dlg, ConnectFlags connectFlags)

This signal is emitted after the row has been activated.

Meta