summaryrefslogtreecommitdiff
path: root/vcl/inc/WidgetThemeLibrary.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/WidgetThemeLibrary.hxx')
-rw-r--r--vcl/inc/WidgetThemeLibrary.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/inc/WidgetThemeLibrary.hxx b/vcl/inc/WidgetThemeLibrary.hxx
index cfd10522b30d..488781496cad 100644
--- a/vcl/inc/WidgetThemeLibrary.hxx
+++ b/vcl/inc/WidgetThemeLibrary.hxx
@@ -21,6 +21,7 @@ namespace vcl
{
struct WidgetDrawStyle
{
+ uint32_t nSize;
Color maFaceColor;
Color maLightColor;
Color maLightBorderColor;
@@ -39,7 +40,8 @@ struct WidgetDrawStyle
struct ControlDrawParameters
{
ControlDrawParameters(cairo_t* i_pCairo, ControlPart i_ePart, ControlState i_eState)
- : pCairo(i_pCairo)
+ : nSize(sizeof(ControlDrawParameters))
+ , pCairo(i_pCairo)
, ePart(i_ePart)
, eState(i_eState)
, eButtonValue(ButtonValue::DontKnow)
@@ -48,6 +50,7 @@ struct ControlDrawParameters
{
}
+ uint32_t nSize;
cairo_t* pCairo;
ControlPart ePart;
ControlState eState;
@@ -92,7 +95,7 @@ struct _WidgetThemeLibrary
bool (*drawListNet)(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
bool (*drawListHeader)(ControlDrawParameters const& rParameters, long nWidth, long nHeight);
- bool (*updateSettings)(WidgetDrawStyle& rSettings);
+ bool (*updateSettings)(WidgetDrawStyle& rStyle);
};
extern "C" vcl::WidgetThemeLibrary* CreateWidgetThemeLibrary();