Single line text editor/entryfield.
More...
#include <TextField.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...
|
|
Single line text editor/entryfield.
This corresponds to GtkEntry
.
- See also
- nocl::TextEditor
-
https://developer.gnome.org/gtk3/stable/GtkEntry.html
◆ ~TextField()
nocl::TextField::~TextField |
( |
void |
| ) |
|
|
virtual |
◆ TextField() [1/2]
nocl::TextField::TextField |
( |
void |
| ) |
|
◆ TextField() [2/2]
nocl::TextField::TextField |
( |
const std::string & |
new_text | ) |
|
◆ operator GtkEntry *()
nocl::TextField::operator GtkEntry * |
( |
void |
| ) |
const |
|
virtual |
◆ text() [1/2]
std::string nocl::TextField::text |
( |
void |
| ) |
const |
◆ text() [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 *(), operator GtkEntry *(), nocl::Fixed::operator GtkFixed *(), nocl::Grid::operator GtkGrid *(), nocl::Label::operator GtkLabel *(), nocl::Layout::operator GtkLayout *(), nocl::SpinButton::operator GtkSpinButton *(), nocl::ToggleSwitch::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(), TextField(), nocl::ToggleSwitch::ToggleSwitch(), and nocl::GUIComponent::~GUIComponent().
The documentation for this class was generated from the following files: