Logo Search packages:      
Sourcecode: blender version File versions

void GHOST_SetCenterRectangle ( GHOST_RectangleHandle  rectanglehandle,
GHOST_TInt32  cx,
GHOST_TInt32  cy 
)

Sets rectangle members. Sets rectangle members such that it is centered at the given location.

Parameters:
rectanglehandle The handle to the rectangle
cx requested center x-coordinate of the rectangle
cy requested center y-coordinate of the rectangle

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

References GHOST_SetCenterRectangle().

Referenced by GHOST_SetCenterRectangle().

{
      ((GHOST_Rect*)rectanglehandle)->setCenter(cx, cy);
}


Generated by  Doxygen 1.6.0   Back to index