On/off toggle switch.
More...
#include <ToggleSwitch.hpp>
|
Container * | parent |
| Pointer to the parent to which we've been added. Will be nullptr if this object hasn't been added to a parent container. More...
|
|
GtkWidget * | gtk_widget |
| Pointer to the underlying GTK framework. More...
|
|
On/off toggle switch.
This corresponds to GtkSwitch
.
- See also
- https://developer.gnome.org/gtk3/stable/GtkSwitch.html
◆ ~ToggleSwitch()
nocl::ToggleSwitch::~ToggleSwitch |
( |
void |
| ) |
|
|
virtual |
◆ ToggleSwitch() [1/2]
nocl::ToggleSwitch::ToggleSwitch |
( |
void |
| ) |
|
◆ ToggleSwitch() [2/2]
nocl::ToggleSwitch::ToggleSwitch |
( |
const bool |
initial_value | ) |
|
◆ operator GtkSwitch *()
nocl::ToggleSwitch::operator GtkSwitch * |
( |
void |
| ) |
const |
|
virtual |
◆ value() [1/2]
bool nocl::ToggleSwitch::value |
( |
void |
| ) |
const |
◆ value() [2/2]
◆ operator GtkWidget *()
nocl::GUIComponent::operator GtkWidget * |
( |
void |
| ) |
const |
|
virtualinherited |
◆ move_to()
Move to the specified coordinates.
- Todo:
◆ natural_size()
nocl::Size nocl::GUIComponent::natural_size |
( |
void |
| ) |
|
|
virtualinherited |
◆ minimum_size() [1/3]
nocl::Size nocl::GUIComponent::minimum_size |
( |
void |
| ) |
|
|
virtualinherited |
◆ minimum_size() [2/3]
◆ minimum_size() [3/3]
nocl::GUIComponent & nocl::GUIComponent::minimum_size |
( |
const int |
width, |
|
|
const int |
height |
|
) |
| |
|
virtualinherited |
Set the minimum size of a widget.
◆ show()
◆ show_all()
◆ hide()
◆ is_visible()
bool nocl::GUIComponent::is_visible |
( |
void |
| ) |
const |
|
virtualinherited |
◆ widget_to_gui_component_map()
There are times when we have a pointer to a Gtk+ widget, and we need to map it back to the corresponding NOCL GUI component.
For example, during event handling, Gtk+ tells us which Gtk+ widget generated the event, but we need the corresponding NOCL object so we can call the event handler with a reference to the correct object.
- Note
- This is not intended for end-users to access directly!
Referenced by nocl::ButtonHandler::handle_button_events_for(), and nocl::GUIComponent::~GUIComponent().
◆ parent
◆ gtk_widget
GtkWidget* nocl::GUIComponent::gtk_widget |
|
inherited |
Pointer to the underlying GTK framework.
Referenced by nocl::Box::Box(), nocl::ButtonBox::ButtonBox(), nocl::Grid::Grid(), nocl::ButtonHandler::handle_button_events_for(), nocl::GUIComponent::hide(), nocl::FrameWindow::initialize(), nocl::Window::is_resizable(), nocl::GUIComponent::is_visible(), nocl::Label::Label(), nocl::FrameWindow::operator GtkApplicationWindow *(), nocl::Box::operator GtkBox *(), nocl::Button::operator GtkButton *(), nocl::ButtonBox::operator GtkButtonBox *(), nocl::Container::operator GtkContainer *(), nocl::TextField::operator GtkEntry *(), nocl::Fixed::operator GtkFixed *(), nocl::Grid::operator GtkGrid *(), nocl::Label::operator GtkLabel *(), nocl::Layout::operator GtkLayout *(), nocl::SpinButton::operator GtkSpinButton *(), operator GtkSwitch *(), nocl::TextEditor::operator GtkTextView *(), nocl::GUIComponent::operator GtkWidget *(), nocl::Window::operator GtkWindow *(), nocl::Window::resizable(), nocl::GUIComponent::show(), nocl::GUIComponent::show_all(), nocl::SpinButton::SpinButton(), nocl::TextButton::TextButton(), nocl::TextEditor::TextEditor(), nocl::TextField::TextField(), ToggleSwitch(), and nocl::GUIComponent::~GUIComponent().
The documentation for this class was generated from the following files: