statusbr.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/osx/statusbr.h
  3. // Purpose: native implementation of wxStatusBar.
  4. // Optional: can use generic version instead.
  5. // Author: Stefan Csomor
  6. // Modified by:
  7. // Created: 1998-01-01
  8. // Copyright: (c) Stefan Csomor
  9. // Licence: wxWindows licence
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #ifndef _WX_STATBAR_H_
  12. #define _WX_STATBAR_H_
  13. class WXDLLIMPEXP_CORE wxStatusBarMac : public wxStatusBarGeneric
  14. {
  15. public:
  16. wxStatusBarMac();
  17. wxStatusBarMac(wxWindow *parent, wxWindowID id = wxID_ANY,
  18. long style = wxSTB_DEFAULT_STYLE,
  19. const wxString& name = wxStatusBarNameStr);
  20. virtual ~wxStatusBarMac();
  21. bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
  22. long style = wxSTB_DEFAULT_STYLE,
  23. const wxString& name = wxStatusBarNameStr);
  24. // Implementation
  25. virtual void MacHiliteChanged();
  26. void OnPaint(wxPaintEvent& event);
  27. protected:
  28. virtual void DrawFieldText(wxDC& dc, const wxRect& rc, int i, int textHeight);
  29. virtual void DrawField(wxDC& dc, int i, int textHeight);
  30. virtual void DoUpdateStatusText(int number = 0);
  31. DECLARE_DYNAMIC_CLASS(wxStatusBarMac)
  32. DECLARE_EVENT_TABLE()
  33. };
  34. #endif // _WX_STATBAR_H_