2 #ifndef _YI_DECORATED_VIEW_H_ 3 #define _YI_DECORATED_VIEW_H_ 46 virtual bool Init()
override;
58 void SetCornerRadiuses(
float fTopLeftRadius,
float fTopRightRadius,
float fBottomLeftRadius,
float fBottomRightRadius);
70 CornerRadius(
float fRadius = 0.0f);
78 virtual void BuildDrawList(std::vector<IYIRenderer::Command> &drawList,
CYIAbstractCameraSceneNode *pCameraToDrawWith)
override;
79 void DoPreDrawActions()
const;
80 void DoPostDrawActions()
const;
82 void ParseProperties();
84 void DirtyRendering();
88 float m_fBorderThickness;
90 CornerRadius m_cornerRadius;
94 std::function<void()> m_preDrawFunction;
95 std::function<void()> m_postDrawFunction;
103 #endif // _YI_DECORATED_VIEW_H_ OVERFLOW_MODE
Definition: YiDecoratedView.h:37
const CYIColor & GetBackgroundColor() const
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
void SetBorderThickness(float fThickness)
const CYIColor & GetBorderColor() const
Provides a base for the definition of camera objects.
Definition: YiAbstractCameraSceneNode.h:30
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
Definition: YiDecoratedView.h:40
A class used to add a background and a border to its content. This view supports clipping the content...
Definition: YiDecoratedView.h:34
virtual bool Init() override
void SetOverflowMode(OVERFLOW_MODE eMode)
float GetBorderThickness() const
float GetTopLeftCornerRadius() const
void SetCornerRadius(float fRadius)
virtual ~CYIDecoratedView()
void SetBackgroundColor(const CYIColor &color)
float GetTopRightCornerRadius() const
Definition: YiDecoratedView.h:39
float GetBottomRightCornerRadius() const
A class used to represent a color value.
Definition: YiColor.h:31
float GetBottomLeftCornerRadius() const
OVERFLOW_MODE GetOverflowMode() const
void SetCornerRadiuses(float fTopLeftRadius, float fTopRightRadius, float fBottomLeftRadius, float fBottomRightRadius)
void SetBorderColor(const CYIColor &color)