stattext.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk1/stattext.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Copyright: (c) 1998 Robert Roebling
  6. // Licence: wxWindows licence
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef __GTKSTATICTEXTH__
  9. #define __GTKSTATICTEXTH__
  10. //-----------------------------------------------------------------------------
  11. // wxStaticText
  12. //-----------------------------------------------------------------------------
  13. class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
  14. {
  15. public:
  16. wxStaticText();
  17. wxStaticText(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 = wxStaticTextNameStr );
  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 = wxStaticTextNameStr );
  31. virtual wxString GetLabel() const;
  32. virtual void SetLabel( const wxString &label );
  33. virtual bool SetFont( const wxFont &font );
  34. virtual bool SetForegroundColour( const wxColour& colour );
  35. static wxVisualAttributes
  36. GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
  37. protected:
  38. virtual void DoSetSize(int x, int y,
  39. int width, int height,
  40. int sizeFlags = wxSIZE_AUTO);
  41. virtual wxSize DoGetBestSize() const;
  42. DECLARE_DYNAMIC_CLASS(wxStaticText)
  43. };
  44. #endif // __GTKSTATICTEXTH__