SBB Host
Host communication with the self balancing bike.
Loading...
Searching...
No Matches
TextEntryLabel Class Reference

A class with a Gtk::Entry and Gtk::Label. More...

#include <EntryLabel.h>

Inheritance diagram for TextEntryLabel:

Public Member Functions

 TextEntryLabel (Glib::ustring str, Glib::ustring lbl)
 Constructor. More...
 
void set_text (Glib::ustring str)
 Set the text. More...
 
Glib::ustring get_text ()
 Get the text. More...
 

Protected Attributes

Gtk::Box box
 Gtk::Box object of the widget. More...
 
Gtk::Label label
 label string variable. More...
 
Gtk::Entry entry
 Gtk::Entry object. More...
 

Detailed Description

A class with a Gtk::Entry and Gtk::Label.

Class including a Gtk::Entry together with a Gtk::Label, used in SettingsDialog.

See also
SettingsDialog
Author
Stefano Lovato
Date
2022

Constructor & Destructor Documentation

◆ TextEntryLabel()

TextEntryLabel::TextEntryLabel ( Glib::ustring  str,
Glib::ustring  lbl 
)

Constructor.

Default constructor.

Parameters
strThe default value of the text entry.
lblThe label.

Member Function Documentation

◆ get_text()

Glib::ustring TextEntryLabel::get_text ( )

Get the text.

Function to get the text of the entry.

Returns
The text of the entry.

◆ set_text()

void TextEntryLabel::set_text ( Glib::ustring  str)

Set the text.

Function to set the text of the entry.

Parameters
strThe text of the entry.

Member Data Documentation

◆ box

Gtk::Box TextEntryLabel::box
protected

Gtk::Box object of the widget.

◆ entry

Gtk::Entry TextEntryLabel::entry
protected

Gtk::Entry object.

◆ label

Gtk::Label TextEntryLabel::label
protected

label string variable.