Logo Search packages:      
Sourcecode: blender version File versions

GHOST_TSuccess GHOST_IsValidRectangle ( GHOST_RectangleHandle  rectanglehandle  ) 

Returns whether this rectangle is valid. Valid rectangles are rectangles that have m_l <= m_r and m_t <= m_b. Thus, emapty rectangles are valid.

Parameters:
rectanglehandle The handle to the rectangle
Returns:
intean value (true==valid rectangle)

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

References GHOST_IsValidRectangle().

Referenced by GHOST_IsValidRectangle().

{
      GHOST_TSuccess result = GHOST_kFailure;

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

      return result;
}


Generated by  Doxygen 1.6.0   Back to index