Logo Search packages:      
Sourcecode: blender version File versions

GHOST_TSuccess GHOST_ClipRectangle ( GHOST_RectangleHandle  rectanglehandle,
GHOST_RectangleHandle  anotherrectanglehandle 

Clips a rectangle. Updates the rectangle given such that it will fit within this one. This can result in an empty rectangle.

rectanglehandle The handle to the rectangle
r the rectangle to clip
whether clipping has occurred

Definition at line 788 of file GHOST_C-api.cpp.

References GHOST_ClipRectangle().

Referenced by GHOST_ClipRectangle().

      GHOST_TSuccess result = GHOST_kFailure;

      if (((GHOST_Rect*)rectanglehandle)->clip(*(GHOST_Rect*)anotherrectanglehandle))
            result = GHOST_kSuccess;

      return result;

Generated by  Doxygen 1.6.0   Back to index