ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

GUI::WidgetDrawData Struct Reference

Collaboration diagram for GUI::WidgetDrawData:

List of all members.

Public Member Functions

void calcBackgroundOffset ()
 Calculates the background threshold offset of a given DrawData item.

Public Attributes

Common::List< Graphics::DrawStep_steps
 List of all the steps needed to draw this widget.
TextData _textDataId
TextColor _textColorId
Graphics::TextAlign _textAlignH
GUI::ThemeEngine::TextAlignVertical _textAlignV
uint16 _backgroundOffset
 Extra space that the widget occupies when it's drawn.
uint16 _shadowOffset
DrawLayer _layer

Detailed Description

Definition at line 77 of file ThemeEngine.cpp.


Member Function Documentation

void GUI::WidgetDrawData::calcBackgroundOffset (  ) 

Calculates the background threshold offset of a given DrawData item.

After fully loading all DrawSteps of a DrawData item, this function must be called in order to calculate if such draw steps would be drawn outside of the actual widget drawing zone (e.g. shadows). If this is the case, a constant value will be added when restoring the background of the widget.

Definition at line 453 of file ThemeEngine.cpp.


Member Data Documentation

Extra space that the widget occupies when it's drawn.

E.g. when taking into account rounded corners, drop shadows, etc Used when restoring the widget background

Definition at line 89 of file ThemeEngine.cpp.

List of all the steps needed to draw this widget.

Definition at line 79 of file ThemeEngine.cpp.


The documentation for this struct was generated from the following file:


Generated on Sat Jan 19 2019 05:06:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge