Clipping information carried from parents.
More...
#include <kanzi/core.ui/node/node2d.hpp>
Clipping information carried from parents.
Type of rectangle used for clipping.
kanzi::Node2D::ClippingArea::ClippingArea |
( |
| ) |
|
|
inlineexplicit |
kanzi::Node2D::ClippingArea::ClippingArea |
( |
RectangleType |
rectangle, |
|
|
RectangleType |
previousRectangle, |
|
|
bool |
clipSelfEnabled, |
|
|
bool |
clipChildrenEnabled |
|
) |
| |
|
inlineexplicit |
Constructor.
TODO: need to do logic outside, or in a function
- Parameters
-
rectangle | Clipping rectangle. |
previousRectangle | Previous clipping rectangle. |
clipSelfEnabled | True if the node should clip self into the clipping rectangle. |
clipChildrenEnabled | True if the children of the node should clip themselves into the child clipping rectangle. |
RectangleType kanzi::Node2D::ClippingArea::getClippingRectangle |
( |
| ) |
const |
|
inline |
Gets the clipping rectangle for the node content.
RectangleType kanzi::Node2D::ClippingArea::getChildClippingRectangle |
( |
| ) |
const |
|
inline |
Gets the clipping rectangle passed down to the children of the node.
void kanzi::Node2D::ClippingArea::setChildClippingRectangle |
( |
RectangleType |
rect | ) |
|
|
inline |
Sets the clipping rectangle passed down to the children of the node.
float kanzi::Node2D::ClippingArea::getHeight |
( |
| ) |
const |
|
inline |
Get height.
- Returns
- Height.
void kanzi::Node2D::ClippingArea::setHeight |
( |
float |
height | ) |
|
|
inline |
float kanzi::Node2D::ClippingArea::getOffsetX |
( |
| ) |
const |
|
inline |
Get left edge.
- Returns
- Left edge.
void kanzi::Node2D::ClippingArea::setOffsetX |
( |
float |
offset | ) |
|
|
inline |
Set left edge.
- Parameters
-
float kanzi::Node2D::ClippingArea::getOffsetY |
( |
| ) |
const |
|
inline |
Get top edge.
- Returns
- Top edge.
void kanzi::Node2D::ClippingArea::setOffsetY |
( |
float |
offset | ) |
|
|
inline |
float kanzi::Node2D::ClippingArea::getX2 |
( |
| ) |
const |
|
inline |
Get right edge.
- Returns
- Right edge.
float kanzi::Node2D::ClippingArea::getY2 |
( |
| ) |
const |
|
inline |
Get bottom edge.
- Returns
- Bottom edge.
float kanzi::Node2D::ClippingArea::getWidth |
( |
| ) |
const |
|
inline |
void kanzi::Node2D::ClippingArea::setWidth |
( |
float |
width | ) |
|
|
inline |
Set width edge.
- Parameters
-
void kanzi::Node2D::ClippingArea::intersect |
( |
RectangleType |
intersectionArea | ) |
|
|
inline |
Intersect area with a rectangle.
- Parameters
-
bool kanzi::Node2D::ClippingArea::isClippingRectangleChanged |
( |
| ) |
const |
|
inline |
Tell if clipping rectangle is changed.
- Returns
- True if yes, false if no.
bool kanzi::Node2D::ClippingArea::isClipSelfEnabled |
( |
| ) |
const |
|
inline |
Tell if node should clip itself tot he clipping area defined.
- Returns
- True if yes, false if no.
void kanzi::Node2D::ClippingArea::setClipSelfEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Set enabled flag.
- Parameters
-
bool kanzi::Node2D::ClippingArea::isClipChildrenEnabled |
( |
| ) |
const |
|
inline |
Tell if the node is passing a clipping rectangle down to its children.
- Returns
- True if yes, false if no.
void kanzi::Node2D::ClippingArea::setClipChildrenEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Set propagate flag.
- Parameters
-
The documentation for this struct was generated from the following file: