Transparent.h

00001 /***************************************************************************
00002 * This file is part of the UniSetGraphics-gtk2 library                     *
00003 * Copyright (C) 2003 SET Research Institute. All rights reserved.          *
00004 ***************************************************************************/
00005 
00006 #ifndef Transparent_H_
00007 #define Transparent_H_
00008 
00009 //----------------------------------------------------------------------------------------
00010 
00011 #include "GeneralUI.h"
00012 
00013 //----------------------------------------------------------------------------------------
00020 namespace UniSetGraphics
00021 {
00022 
00023 class Transparent: public GeneralUI
00024 {   
00025 public:
00026     Transparent(string title, string font = "Arial Bold 12");
00027     virtual ~Transparent(){};
00028     
00029     virtual void on();      
00030     virtual void off();     
00031 //  virtual void blink(int timeout = 300);          
00032     virtual bool blink_handler();
00033 
00034     void modify_on_state_color(string font, string bg);
00035     void modify_off_state_color(string font, string bg);
00036     void modify_title(string title, string font = "Arial Bold 12");
00037     Gtk::Label *get_title(){ return label; }
00038     Gtk::EventBox *get_boxbg(){ return ebox; }
00039     Gtk::Frame *get_frame(){ return frame; }
00040     string get_constr_font(){ return font; }
00041 
00042 protected:
00043 
00044 private:
00045 
00046     void modify_color(Gdk::Color font, Gdk::Color bg);
00047     Gdk::Color font_color_off, bg_color_off, font_color_on, bg_color_on;
00048     Gtk::Label *label;
00049     Gtk::EventBox *ebox;
00050     Gtk::Frame *frame;
00051     string font;
00052 };
00053 
00054 }
00055 
00056 #endif

Документация по UniSetGraphics-gtk2. Последние изменения: Sat Jul 4 15:45:11 2009. Создано системой  doxygen 1.5.9