UPostcreate.h

00001 #ifndef _UPOSTCREATE_H
00002 #define _UPOSTCREATE_H
00003 //----------------------------------------------------------
00004 #include <gtkmm.h>
00005 //----------------------------------------------------------
00006 //Gtk::Widget -> W
00035 template <class W>
00036 class UPostcreate
00037 {
00038 public:
00039     typedef void (*Hook)(W*);
00040 private:
00041     static Hook _hook; 
00042 public:
00046     static void reg (Hook hook)
00047     {
00048         _hook = hook;
00049     }
00052     static void unreg ()
00053     {
00054         _hook = 0;
00055     }
00059     static void run(W* w)
00060     {
00061         if (_hook)
00062             _hook(w);
00063     }
00064 };
00065 #endif

Документация по UniWidgets. Последние изменения: Fri Oct 10 09:57:50 2014. Создано системой  doxygen 1.5.9