statline.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/univ/statline.h
  3. // Purpose: wxStaticLine class for wxUniversal
  4. // Author: Vadim Zeitlin
  5. // Created: 28.06.99
  6. // Copyright: (c) 1999 Vadim Zeitlin
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_UNIV_STATLINE_H_
  10. #define _WX_UNIV_STATLINE_H_
  11. class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
  12. {
  13. public:
  14. // constructors and pseudo-constructors
  15. wxStaticLine() { }
  16. wxStaticLine(wxWindow *parent,
  17. const wxPoint &pos,
  18. wxCoord length,
  19. long style = wxLI_HORIZONTAL)
  20. {
  21. Create(parent, wxID_ANY, pos,
  22. style & wxLI_VERTICAL ? wxSize(wxDefaultCoord, length)
  23. : wxSize(length, wxDefaultCoord),
  24. style);
  25. }
  26. wxStaticLine(wxWindow *parent,
  27. wxWindowID id = wxID_ANY,
  28. const wxPoint &pos = wxDefaultPosition,
  29. const wxSize &size = wxDefaultSize,
  30. long style = wxLI_HORIZONTAL,
  31. const wxString &name = wxStaticLineNameStr )
  32. {
  33. Create(parent, id, pos, size, style, name);
  34. }
  35. bool Create(wxWindow *parent,
  36. wxWindowID id = wxID_ANY,
  37. const wxPoint &pos = wxDefaultPosition,
  38. const wxSize &size = wxDefaultSize,
  39. long style = wxLI_HORIZONTAL,
  40. const wxString &name = wxStaticLineNameStr );
  41. protected:
  42. virtual void DoDraw(wxControlRenderer *renderer);
  43. private:
  44. DECLARE_DYNAMIC_CLASS(wxStaticLine)
  45. };
  46. #endif // _WX_UNIV_STATLINE_H_