popupwin.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/popupwin.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Created:
  6. // Copyright: (c) 2001 Robert Roebling
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_GTK_POPUPWIN_H_
  10. #define _WX_GTK_POPUPWIN_H_
  11. //-----------------------------------------------------------------------------
  12. // wxPopUpWindow
  13. //-----------------------------------------------------------------------------
  14. class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
  15. {
  16. public:
  17. wxPopupWindow() { }
  18. virtual ~wxPopupWindow();
  19. wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
  20. { (void)Create(parent, flags); }
  21. bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
  22. virtual bool Show(bool show = true);
  23. virtual void SetFocus();
  24. // implementation
  25. // --------------
  26. // GTK time when connecting to button_press signal
  27. wxUint32 m_time;
  28. protected:
  29. virtual void DoSetSize(int x, int y,
  30. int width, int height,
  31. int sizeFlags = wxSIZE_AUTO);
  32. virtual void DoMoveWindow(int x, int y, int width, int height);
  33. #ifdef __WXUNIVERSAL__
  34. DECLARE_EVENT_TABLE()
  35. #endif
  36. DECLARE_DYNAMIC_CLASS(wxPopupWindow)
  37. };
  38. #endif // _WX_GTK_POPUPWIN_H_