Definition at line 157 of file gnc-option-gtk-ui.cpp.
◆ GncGtkBooleanUIItem()
| GncGtkBooleanUIItem::GncGtkBooleanUIItem |
( |
GtkWidget * |
widget | ) |
|
|
inline |
Definition at line 160 of file gnc-option-gtk-ui.cpp.
160 :
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget
◆ get_widget_scm_value()
| SCM GncGtkBooleanUIItem::get_widget_scm_value |
( |
const GncOption & |
option | ) |
const |
|
inlineoverridevirtual |
Reimplemented from GncOptionGtkUIItem.
Definition at line 172 of file gnc-option-gtk-ui.cpp.
173 {
174 auto widget{GTK_TOGGLE_BUTTON(get_widget())};
175 return gtk_toggle_button_get_active(widget) ?
176 SCM_BOOL_T : SCM_BOOL_F;
177 }
◆ set_option_from_ui_item()
| void GncGtkBooleanUIItem::set_option_from_ui_item |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 167 of file gnc-option-gtk-ui.cpp.
168 {
169 auto widget{GTK_TOGGLE_BUTTON(get_widget())};
170 option.set_value(static_cast<bool>(gtk_toggle_button_get_active(widget)));
171 }
◆ set_ui_item_from_option()
| void GncGtkBooleanUIItem::set_ui_item_from_option |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 162 of file gnc-option-gtk-ui.cpp.
163 {
164 auto widget{GTK_TOGGLE_BUTTON(get_widget())};
165 gtk_toggle_button_set_active(widget, option.get_value<bool>());
166 }
The documentation for this class was generated from the following file: