Back to index

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

List of all members.

Public Member Functions

 OSD (Glib::ustring txt)
virtual ~OSD ()

Static Public Member Functions

static void do_move ()

Private Attributes

int w

Static Private Attributes

static std::list< OSD * > osd_stack

Detailed Description

Definition at line 184 of file main.cc.


Constructor & Destructor Documentation

OSD::OSD ( Glib::ustring  txt) [inline]

Definition at line 188 of file main.cc.

                            : Gtk::Window(Gtk::WINDOW_POPUP) {
              osd_stack.push_back(this);
              set_accept_focus(false);
              set_border_width(15);
              WIDGET(Gtk::Label, label, "<big><b>" + txt + "</b></big>");
              label.set_use_markup();
              label.modify_fg(Gtk::STATE_NORMAL, Gdk::Color("White"));
              modify_bg(Gtk::STATE_NORMAL, Gdk::Color("RoyalBlue3"));
              set_opacity(0.75);
              add(label);
              label.show();
              int h;
              get_size(w,h);
              do_move();
              show();
              get_window()->input_shape_combine_region(Gdk::Region(), 0, 0);
       }

Here is the call graph for this function:

virtual OSD::~OSD ( ) [inline, virtual]

Definition at line 212 of file main.cc.

                      {
              osd_stack.remove(this);
              do_move();
       }

Here is the call graph for this function:


Member Function Documentation

static void OSD::do_move ( ) [inline, static]

Definition at line 205 of file main.cc.

                             {
              int left = gdk_screen_width() - 10;
              for (std::list<OSD *>::iterator i = osd_stack.begin(); i != osd_stack.end(); i++) {
                     left -= (*i)->w + 30;
                     (*i)->move(left, 40);
              }
       }

Here is the caller graph for this function:


Member Data Documentation

std::list< OSD * > OSD::osd_stack [static, private]

Definition at line 185 of file main.cc.

int OSD::w [private]

Definition at line 186 of file main.cc.


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