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

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

#include <EntryLabel.h>

Inheritance diagram for SpinEntryLabel:

Public Member Functions

 SpinEntryLabel (double val, double lower, double upper, double step, Glib::ustring lbl)
 Constructor. More...
 
void set_value (double val)
 Set the value. More...
 
double get_value ()
 Get the value. More...
 

Protected Attributes

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

Detailed Description

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

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

See also
SettingsDialog
Author
Stefano Lovato
Date
2022

Constructor & Destructor Documentation

◆ SpinEntryLabel()

SpinEntryLabel::SpinEntryLabel ( double  val,
double  lower,
double  upper,
double  step,
Glib::ustring  lbl 
)

Constructor.

Default constructor.

Parameters
valThe default value of the spin button.
lowerThe lower bound of the spin button.
upperThe upper bound of the spin button.
stepThe step of the spin button.
lblThe label.

Member Function Documentation

◆ get_value()

double SpinEntryLabel::get_value ( )

Get the value.

Function to get the value of the spin button.

Returns
The value of the spin button.

◆ set_value()

void SpinEntryLabel::set_value ( double  val)

Set the value.

Function to set the value of the spin button.

Parameters
valThe value of the spin button.

Member Data Documentation

◆ box

Gtk::Box SpinEntryLabel::box
protected

Gtk::Box object of the widget.

◆ entry

Gtk::SpinButton SpinEntryLabel::entry
protected

Gtk::SpinButton object.

◆ label

Gtk::Label SpinEntryLabel::label
protected

label string variable.