12 typedef bool (*YGWindowCloseFn) (
void *closure);
17 GtkWidget *m_containee;
22 YGDialog (YDialogType dialogType, YDialogColorMode colorMode);
30 virtual GtkWidget *getContainer() {
return m_containee; }
32 void setCloseCallback (YGWindowCloseFn closeCallback,
void *closeData);
33 void unsetCloseCallback();
40 static GtkWindow *currentWindow();
42 virtual void doSetSize (
int width,
int height);
44 virtual void openInternal();
45 virtual void activate();
48 virtual YEvent *waitForEventInternal (
int timeout_millisec);
49 virtual YEvent *pollEventInternal();
51 virtual void highlight (YWidget * child);
53 void setTitle (
const std::string &title,
bool sticky =
false);
54 void setIcon (
const std::string &icon);
56 YWidget *getFunctionWidget (
int key);
57 std::list <YWidget *> getClassWidgets (
const char *className);
59 YGWIDGET_IMPL_CONTAINER (YDialog)
void setDefaultButton(YPushButton *newDefaultButton)
Set the dialog's default button.