Back to index

easystroke  0.5.5.1
Public Member Functions | Private Member Functions | Private Attributes
Color Class Reference
Inheritance diagram for Color:
Inheritance graph
[legend]
Collaboration diagram for Color:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Color (IO< RGBA > &io_, const Glib::ustring &name)

Private Member Functions

virtual void notify ()
void on_changed ()

Private Attributes

IO< RGBA > & io
Gtk::ColorButton * color

Detailed Description

Definition at line 62 of file prefs.cc.


Constructor & Destructor Documentation

Color::Color ( IO< RGBA > &  io_,
const Glib::ustring &  name 
) [inline]

Definition at line 77 of file prefs.cc.

                                                     : io(io_) {
              io.connect(this);
              widgets->get_widget(name, color);
              color->set_use_alpha();
              notify();
              color->signal_color_set().connect(sigc::mem_fun(*this, &Color::on_changed));
       }

Here is the call graph for this function:


Member Function Documentation

virtual void Color::notify ( ) [inline, private, virtual]

Implements Base.

Definition at line 65 of file prefs.cc.

                             {
              color->set_color(io.get().color);
              color->set_alpha(io.get().alpha);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void Color::on_changed ( ) [inline, private]

Definition at line 69 of file prefs.cc.

                         {
              RGBA rgba;
              rgba.color = color->get_color();
              rgba.alpha = color->get_alpha();
              if (rgba == io.get()) return;
              io.set(rgba);
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Gtk::ColorButton* Color::color [private]

Definition at line 64 of file prefs.cc.

IO<RGBA>& Color::io [private]

Definition at line 63 of file prefs.cc.


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