20 #ifndef _MFORMS_POPUP_H_
21 #define _MFORMS_POPUP_H_
26 #include "cairo/cairo.h"
27 #include "base/geometry.h"
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 void (*destroy)(Popup *);
49 void (*set_needs_repaint)(Popup *);
50 void (*set_size)(Popup *, int, int);
51 int (*show)(Popup *, int, int);
52 base::Rect (*get_content_rect)(Popup *);
53 void (*set_modal_result)(Popup *,
int result);
64 void set_needs_repaint();
65 void set_size(
int width,
int height);
66 int show(
int spot_x,
int spot_y);
67 base::Rect get_content_rect();
68 void set_modal_result(
int result);
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 boost::signals2::signal<void ()>* on_close() {
return &_on_close; }
76 virtual void repaint(cairo_t *cr,
int x,
int y,
int w,
int h) {}
82 virtual bool mouse_enter() {
return false; }
83 virtual bool mouse_leave() {
return false; }
93 #endif // _MFORMS_POPUP_H_