tabartgtk.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: include/wx/aui/tabartgtk.h
  3. // Purpose: declaration of the wxAuiGTKTabArt
  4. // Author: Jens Lody and Teodor Petrov
  5. // Modified by:
  6. // Created: 2012-03-23
  7. // Copyright: (c) 2012 Jens Lody <jens@codeblocks.org>
  8. // and Teodor Petrov
  9. // Licence: wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11. #ifndef _WX_AUI_TABARTGTK_H_
  12. #define _WX_AUI_TABARTGTK_H_
  13. // ----------------------------------------------------------------------------
  14. // headers
  15. // ----------------------------------------------------------------------------
  16. #include "wx/defs.h"
  17. #if wxUSE_AUI
  18. #include "wx/aui/tabart.h"
  19. #include "wx/gdicmn.h"
  20. class wxWindow;
  21. class wxDC;
  22. class WXDLLIMPEXP_AUI wxAuiGtkTabArt : public wxAuiGenericTabArt
  23. {
  24. public:
  25. wxAuiGtkTabArt();
  26. virtual wxAuiTabArt* Clone();
  27. virtual void DrawBorder(wxDC& dc, wxWindow* wnd, const wxRect& rect);
  28. virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect);
  29. virtual void DrawTab(wxDC& dc,
  30. wxWindow* wnd,
  31. const wxAuiNotebookPage& page,
  32. const wxRect& in_rect,
  33. int close_button_state,
  34. wxRect* out_tab_rect,
  35. wxRect* out_button_rect,
  36. int* x_extent);
  37. void DrawButton(wxDC& dc, wxWindow* wnd, const wxRect& in_rect, int bitmap_id,
  38. int button_state, int orientation, wxRect* out_rect);
  39. int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
  40. const wxSize& required_bmp_size);
  41. int GetBorderWidth(wxWindow* wnd);
  42. int GetAdditionalBorderSpace(wxWindow* wnd);
  43. virtual wxSize GetTabSize(wxDC& dc, wxWindow* wnd, const wxString& caption,
  44. const wxBitmap& bitmap, bool active,
  45. int close_button_state, int* x_extent);
  46. };
  47. #endif // wxUSE_AUI
  48. #endif // _WX_AUI_TABARTGTK_H_