Clipping information carried from parents. More...
#include <kanzi/core.ui/node/node2d.hpp>
Public Types | |
typedef RectangleFloat | RectangleType |
Type of rectangle used for clipping. | |
Public Member Functions | |
ClippingArea () | |
Empty constructor. | |
ClippingArea (RectangleType rectangle, RectangleType childRectangle, RectangleType previousRectangle, bool clipSelfEnabled, bool clipChildrenEnabled) | |
Constructor. | |
ClippingArea (RectangleType rectangle, RectangleType previousRectangle, bool clipSelfEnabled, bool clipChildrenEnabled) | |
Constructor where node and child clipping rectangles are equal. | |
RectangleType | getChildClippingRectangle () const |
Gets the clipping rectangle passed down to the children of the node. | |
RectangleType | getClippingRectangle () const |
Gets the clipping rectangle for the node content. | |
float | getHeight () const |
Gets the height of the node. | |
float | getOffsetX () const |
Gets the left edge of the node. | |
float | getOffsetY () const |
Gets the top edge of the node. | |
float | getWidth () const |
Gets the width of the node. | |
float | getX2 () const |
Gets the right edge of the node. | |
float | getY2 () const |
Gets the bottom edge of the node. | |
void | intersect (RectangleType intersectionArea) |
Intersects area with a rectangle. | |
bool | isClipChildrenEnabled () const |
Returns whether the node passes a clipping rectangle down to its children. | |
bool | isClippingRectangleChanged () const |
Returns whether the clipping rectangle changed. | |
bool | isClipSelfEnabled () const |
Returns whether the node clips itself to the defined clipping area. | |
void | setChildClippingRectangle (RectangleType rect) |
Sets the clipping rectangle passed down to the children of the node. | |
void | setClipChildrenEnabled (bool enabled) |
Sets the clipping rectangle propagation flag. | |
void | setClipSelfEnabled (bool enabled) |
Sets the self-clipping enabled flag. | |
void | setHeight (float height) |
Set the height of the node. | |
void | setOffsetX (float offset) |
Sets the left edge of the node. | |
void | setOffsetY (float offset) |
Sets the top edge of the node. | |
void | setWidth (float width) |
Sets the width of the node. | |
Clipping information carried from parents.
Type of rectangle used for clipping.
|
inlineexplicit |
Empty constructor.
|
inlineexplicit |
Constructor.
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. |
|
inlineexplicit |
Constructor where node and child clipping rectangles are equal.
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. |
|
inline |
Gets the clipping rectangle for the node content.
|
inline |
Gets the clipping rectangle passed down to the children of the node.
|
inline |
Sets the clipping rectangle passed down to the children of the node.
|
inline |
Gets the height of the node.
Set the height of the node.
height | New height. |
|
inline |
Gets the left edge of the node.
Sets the left edge of the node.
offset | The offset along the x axis. |
|
inline |
Gets the top edge of the node.
Sets the top edge of the node.
offset | The offset along the y axis. |
|
inline |
Gets the right edge of the node.
|
inline |
Gets the bottom edge of the node.
|
inline |
Gets the width of the node.
Sets the width of the node.
width | New width. |
|
inline |
Intersects area with a rectangle.
intersectionArea | Rectangle to intersect with. |
|
inline |
Returns whether the clipping rectangle changed.
|
inline |
Returns whether the node clips itself to the defined clipping area.
Sets the self-clipping enabled flag.
enabled | New enabled flag. |
|
inline |
Returns whether the node passes a clipping rectangle down to its children.
Sets the clipping rectangle propagation flag.
enabled | New enabled flag. |