typedef struct _GtkLabel GtkLabel;
typedef struct _GtkFrame GtkFrame;
+typedef struct _GtkEntry GtkEntry;
//-----------------------------------------------------------------------------
// wxControl
class WXDLLIMPEXP_CORE wxControl : public wxControlBase
{
+ typedef wxControlBase base_type;
public:
wxControl();
wxControl(wxWindow *parent, wxWindowID id,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxControlNameStr);
-
virtual wxVisualAttributes GetDefaultAttributes() const;
+#ifdef __WXGTK3__
+ virtual bool SetFont(const wxFont& font);
+#endif
protected:
virtual wxSize DoGetBestSize() const;
// Fix sensitivity due to bug in GTK+ < 2.14
void GTKFixSensitivity(bool onlyIfUnderMouse = true);
+ // Ask GTK+ for preferred size. Use it after setting the font.
+ wxSize GTKGetPreferredSize(GtkWidget* widget) const;
+
+ // Inner margins in a GtkEntry
+ wxPoint GTKGetEntryMargins(GtkEntry* entry) const;
+
private:
DECLARE_DYNAMIC_CLASS(wxControl)
};