statbox.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/statbox.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Copyright: (c) 1998 Robert Roebling
  6. // Licence: wxWindows licence
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef _WX_GTKSTATICBOX_H_
  9. #define _WX_GTKSTATICBOX_H_
  10. //-----------------------------------------------------------------------------
  11. // wxStaticBox
  12. //-----------------------------------------------------------------------------
  13. class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
  14. {
  15. public:
  16. wxStaticBox();
  17. wxStaticBox( wxWindow *parent,
  18. wxWindowID id,
  19. const wxString &label,
  20. const wxPoint &pos = wxDefaultPosition,
  21. const wxSize &size = wxDefaultSize,
  22. long style = 0,
  23. const wxString &name = wxStaticBoxNameStr );
  24. bool Create( wxWindow *parent,
  25. wxWindowID id,
  26. const wxString &label,
  27. const wxPoint &pos = wxDefaultPosition,
  28. const wxSize &size = wxDefaultSize,
  29. long style = 0,
  30. const wxString &name = wxStaticBoxNameStr );
  31. virtual void SetLabel( const wxString &label );
  32. static wxVisualAttributes
  33. GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
  34. // implementation
  35. virtual bool GTKIsTransparentForMouse() const { return true; }
  36. virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
  37. virtual void AddChild( wxWindowBase *child );
  38. protected:
  39. virtual bool GTKWidgetNeedsMnemonic() const;
  40. virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
  41. void DoApplyWidgetStyle(GtkRcStyle *style);
  42. DECLARE_DYNAMIC_CLASS(wxStaticBox)
  43. };
  44. #endif // _WX_GTKSTATICBOX_H_