popupwin.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/x11/popupwin.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Created:
  6. // Copyright: (c) 2001 Robert Roebling
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef __GTKPOPUPWINH__
  10. #define __GTKPOPUPWINH__
  11. #include "wx/defs.h"
  12. #include "wx/panel.h"
  13. #include "wx/icon.h"
  14. //-----------------------------------------------------------------------------
  15. // wxPopUpWindow
  16. //-----------------------------------------------------------------------------
  17. class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
  18. {
  19. public:
  20. wxPopupWindow() { }
  21. virtual ~wxPopupWindow() ;
  22. wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
  23. { (void)Create(parent, flags); }
  24. bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
  25. virtual bool Show( bool show = TRUE );
  26. protected:
  27. virtual void DoMoveWindow(int x, int y, int width, int height);
  28. virtual void DoSetSize(int x, int y,
  29. int width, int height,
  30. int sizeFlags = wxSIZE_AUTO);
  31. private:
  32. DECLARE_EVENT_TABLE()
  33. DECLARE_DYNAMIC_CLASS(wxPopupWindow)
  34. };
  35. #endif // __GTKPOPUPWINDOWH__