![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Clipping rectangle class in ClanLib.
Contained in: global
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
CL_ClipRect | (); | |
CL_ClipRect | (const CL_ClipRect& rect); | |
CL_ClipRect | (int x1, int y1, int x2, int y2); | |
Attributes: |
||
bool | test_clipped | (const CL_ClipRect& rect) const; |
bool | test_unclipped | (const CL_ClipRect& rect) const; |
bool | test_all_clipped | (const CL_ClipRect& rect) const; |
Operations: |
||
CL_ClipRect | clip | (const CL_ClipRect& rect) const; |
Operators: |
||
bool | operator == | (const CL_ClipRect& rect) const; |
rect - The rectangle to be clipped.
Returns - The clipped rectangle.
Returns - True if specified rectangle equals this rectangle.
rect - The rectangle to be tested.
Returns - True if the entire specified rect is outside this rectangle.
rect - The rectangle to be tested.
Returns - True if the passed rectangle needs to be clipped.
rect - The rectangle to be tested.
Returns - True if the passed rectangle is contained within this rectangle.