libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
GtkCRN::Prop3 Class Reference

A widget for ternary values representation. More...

#include <GtkCRNProp3.h>

+ Inheritance diagram for GtkCRN::Prop3:
+ Collaboration diagram for GtkCRN::Prop3:

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::Prop3get_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::Prop3signal_value_changed ()
 Signals when the value was changed. Connect to void on_value_changed(crn::Prop3). More...
 

Detailed Description

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.

Constructor & Destructor Documentation

Prop3::Prop3 ( Gtk::IconSize  is,
const crn::Prop3 p = crn::Prop3::Unknown() 
)

Constructor.

Definition at line 27 of file GtkCRNProp3.cpp.

virtual GtkCRN::Prop3::~Prop3 ( )
inlineoverridevirtual

Definition at line 45 of file GtkCRNProp3.h.

Member Function Documentation

bool Prop3::click ( GdkEventButton *  ev)

Emulates a mouse button release on the image.

Emulates a mouse button release on the image.

Exceptions
Glib::OptionErrornull event
Parameters
[in]evev->button = 1 for LMB, 3 for RMB
Returns
false

Definition at line 89 of file GtkCRNProp3.cpp.

Gtk::IconSize GtkCRN::Prop3::get_icon_size ( ) const
inline

Gets the icon size.

Definition at line 55 of file GtkCRNProp3.h.

const crn::Prop3& GtkCRN::Prop3::get_value ( ) const
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.

sigc::signal<void, crn::Prop3> GtkCRN::Prop3::signal_value_changed ( )
inline

Signals when the value was changed. Connect to void on_value_changed(crn::Prop3).

Definition at line 61 of file GtkCRNProp3.h.


The documentation for this class was generated from the following files: