libcrn
3.9.5
A document image processing library
|
A widget for ternary values representation. More...
#include <GtkCRNProp3.h>
Public Member Functions | |
Prop3 (Gtk::IconSize is, const crn::Prop3 &p=crn::Prop3::Unknown()) | |
Constructor. More... | |
virtual | ~Prop3 () override |
void | set_value (const crn::Prop3 &p) |
Sets the value. More... | |
const crn::Prop3 & | get_value () const |
Gets the value. More... | |
void | set_icon_size (Gtk::IconSize is) |
Sets the icon size. More... | |
Gtk::IconSize | get_icon_size () const |
Gets the icon size. More... | |
bool | click (GdkEventButton *ev) |
Emulates a mouse button release on the image. More... | |
sigc::signal< void, crn::Prop3 > | signal_value_changed () |
Signals when the value was changed. Connect to void on_value_changed(crn::Prop3). More... | |
A widget for ternary values representation.
A widget that represents a ternary proposition (True, False, Unknown).
Clicking on the image changes the value.
Definition at line 40 of file GtkCRNProp3.h.
Prop3::Prop3 | ( | Gtk::IconSize | is, |
const crn::Prop3 & | p = crn::Prop3::Unknown() |
||
) |
Constructor.
Definition at line 27 of file GtkCRNProp3.cpp.
|
inlineoverridevirtual |
Definition at line 45 of file GtkCRNProp3.h.
bool Prop3::click | ( | GdkEventButton * | ev | ) |
Emulates a mouse button release on the image.
Emulates a mouse button release on the image.
Glib::OptionError | null event |
[in] | ev | ev->button = 1 for LMB, 3 for RMB |
Definition at line 89 of file GtkCRNProp3.cpp.
|
inline |
Gets the icon size.
Definition at line 55 of file GtkCRNProp3.h.
|
inline |
Gets the value.
Definition at line 50 of file GtkCRNProp3.h.
void Prop3::set_icon_size | ( | Gtk::IconSize | is | ) |
Sets the icon size.
Definition at line 44 of file GtkCRNProp3.cpp.
void Prop3::set_value | ( | const crn::Prop3 & | p | ) |
Sets the value.
Definition at line 37 of file GtkCRNProp3.cpp.
|
inline |
Signals when the value was changed. Connect to void on_value_changed(crn::Prop3).
Definition at line 61 of file GtkCRNProp3.h.