summaryrefslogtreecommitdiff
path: root/vcl/inc/WidgetThemeLibrary.hxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-11-02 09:24:19 -0400
committerJan Holesovsky <kendy@collabora.com>2018-11-09 18:42:35 +0100
commitb5e8afda4728f360401c52f3c8c2c92bad9d2136 (patch)
treed350aba7bdaf5398550e2d83329da4ff3707812e /vcl/inc/WidgetThemeLibrary.hxx
parente010d5c3f8d3d6118323f750362e13e757f89e60 (diff)
LOK: custom widgets: check size of API structures
Change-Id: Iff50f7aeb471870230e9e822657deed6aefad268
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();