#ifdef __WXGTK3__
typedef struct _cairo cairo_t;
+ typedef struct _GtkStyleProvider GtkStyleProvider;
#define WXUNUSED_IN_GTK3(x)
#else
#define WXUNUSED_IN_GTK3(x) x
// position and size of the window
int m_x, m_y;
int m_width, m_height;
- int m_oldClientWidth,m_oldClientHeight;
+ int m_clientWidth, m_clientHeight;
+ // Whether the client size variables above are known to be correct
+ // (because they have been validated by a size-allocate) and should
+ // be used to report client size
+ bool m_useCachedClientSize;
// see the docs in src/gtk/window.cpp
GtkWidget *m_widget; // mostly the widget seen by the rest of GTK
#ifndef __WXGTK3__
// Called by ApplyWidgetStyle (which is called by SetFont() and
// SetXXXColour etc to apply style changed to native widgets) to create
- // modified GTK style with non-standard attributes. If forceStyle=true,
- // creates empty GtkRcStyle if there are no modifications, otherwise
- // returns NULL in such case.
- GtkRcStyle *GTKCreateWidgetStyle(bool forceStyle = false);
+ // modified GTK style with non-standard attributes.
+ GtkRcStyle* GTKCreateWidgetStyle();
#endif
void GTKApplyWidgetStyle(bool forceStyle = false);
#ifdef __WXGTK3__
// paint context is stashed here so wxPaintDC can use it
cairo_t* m_paintContext;
+ // style provider for "background-image"
+ GtkStyleProvider* m_styleProvider;
public:
cairo_t* GTKPaintContext() const