Scribus
Open source desktop publishing at your fingertips
PGFRect Struct Reference

Rectangle. More...

#include <PGFtypes.h>

Public Member Functions

 PGFRect ()
 Standard constructor.
 
 PGFRect (UINT32 x, UINT32 y, UINT32 width, UINT32 height)
 
UINT32 Width () const
 
UINT32 Height () const
 
bool IsInside (UINT32 x, UINT32 y) const
 

Public Attributes

UINT32 left
 
UINT32 top
 
UINT32 right
 
UINT32 bottom
 

Detailed Description

Rectangle.

Rectangle

Author
C. Stamm

Constructor & Destructor Documentation

PGFRect::PGFRect ( UINT32  x,
UINT32  y,
UINT32  width,
UINT32  height 
)
inline

Constructor

Parameters
xLeft offset
yTop offset
widthRectangle width
heightRectangle height

Member Function Documentation

UINT32 PGFRect::Height ( ) const
inline
Returns
Rectangle height
bool PGFRect::IsInside ( UINT32  x,
UINT32  y 
) const
inline

Test if point (x,y) is inside this rectangle

Parameters
xPoint coordinate x
yPoint coordinate y
Returns
True if point (x,y) is inside this rectangle
UINT32 PGFRect::Width ( ) const
inline
Returns
Rectangle width

The documentation for this struct was generated from the following file: