12 typedef bool (*YGWindowCloseFn) (
void *closure);
17 GtkWidget *m_containee;
22 YGDialog (YDialogType dialogType, YDialogColorMode colorMode);
25 virtual GtkWidget *getContainer() {
return m_containee; }
27 void setCloseCallback (YGWindowCloseFn closeCallback,
void *closeData);
28 void unsetCloseCallback();
35 static GtkWindow *currentWindow();
37 virtual void doSetSize (
int width,
int height);
39 virtual void openInternal();
40 virtual void activate();
43 virtual YEvent *waitForEventInternal (
int timeout_millisec);
44 virtual YEvent *pollEventInternal();
46 virtual void highlight (YWidget * child);
48 void setTitle (
const std::string &title,
bool sticky =
false);
49 void setIcon (
const std::string &icon);
51 YWidget *getFunctionWidget (
int key);
52 std::list <YWidget *> getClassWidgets (
const char *className);
54 YGWIDGET_IMPL_CONTAINER (YDialog)