// we don't have the ticks in GTK version
}
+#if wxUSE_MENUS
virtual void DrawMenuBarItem(wxDC& dc,
const wxRect& rect,
const wxString& label,
virtual void DrawMenuSeparator(wxDC& dc,
wxCoord y,
const wxMenuGeometryInfo& geomInfo);
-
+#endif
virtual void GetComboBitmaps(wxBitmap *bmpNormal,
wxBitmap *bmpPressed,
wxBitmap *bmpDisabled);
virtual wxSize GetSliderThumbSize(const wxRect& rect,
wxOrientation orient) const;
virtual wxSize GetProgressBarStep() const { return wxSize(16, 32); }
+#if wxUSE_MENUS
virtual wxSize GetMenuBarItemSize(const wxSize& sizeText) const;
virtual wxMenuGeometryInfo *GetMenuGeometry(wxWindow *win,
const wxMenu& menu) const;
-
+#endif
// helpers for "wxBitmap wxColourScheme::Get()"
void DrawCheckBitmap(wxDC& dc, const wxRect& rect);
void DrawUncheckBitmap(wxDC& dc, const wxRect& rect, bool isPressed);
// text control
// ----------------------------------------------------------------------------
+static const int TEXT_BORDER = 2;
+
wxRect wxGTKRenderer::GetTextTotalArea(const wxTextCtrl *text,
const wxRect& rect)
{
wxRect rectTotal = rect;
- rectTotal.Inflate(2);
+ rectTotal.Inflate(TEXT_BORDER);
return rectTotal;
}
wxCoord *extraSpaceBeyond)
{
wxRect rectText = rect;
- rectText.Inflate(-2);
+ rectText.Inflate(-TEXT_BORDER);
if ( text->WrapLines() )
{
DrawShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
}
+#if wxUSE_MENUS
// ----------------------------------------------------------------------------
// menu and menubar
// ----------------------------------------------------------------------------
return NULL;
}
-
+#endif
// ----------------------------------------------------------------------------
// combobox
// ----------------------------------------------------------------------------