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 |
Constructor.
- Parameters
-
rectangle | Clipping rectangle. |
childRectangle | Clipping rectangle for children. |
previousRectangle | Previous clipping rectangle. |
clipSelfEnabled | True if you want the node to clip itself into the clipping rectangle. |
clipChildrenEnabled | True if you want the children of the node to clip themselves into the child clipping rectangle. |
kanzi::Node2D::ClippingArea::ClippingArea |
( |
RectangleType |
rectangle, |
|
|
RectangleType |
previousRectangle, |
|
|
bool |
clipSelfEnabled, |
|
|
bool |
clipChildrenEnabled |
|
) |
| |
|
inlineexplicit |
Constructor where node and child clipping rectangles are equal.
- Parameters
-
rectangle | Clipping rectangle. |
previousRectangle | Previous clipping rectangle. |
clipSelfEnabled | True if you want the node to clip itself into the clipping rectangle. |
clipChildrenEnabled | True if you want the children of the node to 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 |
Gets the height of the node.
- Returns
- Height.
void kanzi::Node2D::ClippingArea::setHeight |
( |
float |
height | ) |
|
|
inline |
Set the height of the node.
- Parameters
-
float kanzi::Node2D::ClippingArea::getOffsetX |
( |
| ) |
const |
|
inline |
Gets the left edge of the node.
- Returns
- Left edge.
void kanzi::Node2D::ClippingArea::setOffsetX |
( |
float |
offset | ) |
|
|
inline |
Sets the left edge of the node.
- Parameters
-
offset | The offset along the x axis. |
float kanzi::Node2D::ClippingArea::getOffsetY |
( |
| ) |
const |
|
inline |
Gets the top edge of the node.
- Returns
- Top edge.
void kanzi::Node2D::ClippingArea::setOffsetY |
( |
float |
offset | ) |
|
|
inline |
Sets the top edge of the node.
- Parameters
-
offset | The offset along the y axis. |
float kanzi::Node2D::ClippingArea::getX2 |
( |
| ) |
const |
|
inline |
Gets the right edge of the node.
- Returns
- Right edge.
float kanzi::Node2D::ClippingArea::getY2 |
( |
| ) |
const |
|
inline |
Gets the bottom edge of the node.
- Returns
- Bottom edge.
float kanzi::Node2D::ClippingArea::getWidth |
( |
| ) |
const |
|
inline |
Gets the width of the node.
- Returns
- Width.
void kanzi::Node2D::ClippingArea::setWidth |
( |
float |
width | ) |
|
|
inline |
Sets the width of the node.
- Parameters
-
void kanzi::Node2D::ClippingArea::intersect |
( |
RectangleType |
intersectionArea | ) |
|
|
inline |
Intersects area with a rectangle.
- Parameters
-
bool kanzi::Node2D::ClippingArea::isClippingRectangleChanged |
( |
| ) |
const |
|
inline |
Returns whether the clipping rectangle changed.
- Returns
- If the clipping rectangle changed, true, otherwise false.
bool kanzi::Node2D::ClippingArea::isClipSelfEnabled |
( |
| ) |
const |
|
inline |
Returns whether the node clips itself to the defined clipping area.
- Returns
- If the node clips itself, true, otherwise false.
void kanzi::Node2D::ClippingArea::setClipSelfEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Sets the self-clipping enabled flag.
- Parameters
-
bool kanzi::Node2D::ClippingArea::isClipChildrenEnabled |
( |
| ) |
const |
|
inline |
Returns whether the node passes a clipping rectangle down to its children.
- Returns
- If the node passes a clipping rectangle to its children, true, otherwise false.
void kanzi::Node2D::ClippingArea::setClipChildrenEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Sets the clipping rectangle propagation flag.
- Parameters
-
The documentation for this struct was generated from the following file: