eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EDrawableExtent Class Reference

Drawable surface extent. More...

#include <eVision/Easy/EDrawableExtent.h>

Collaboration diagram for eVision::EDrawableExtent:

Public Member Functions

 EDrawableExtent ()
 Constructs an EDrawableExtent.
 EDrawableExtent (int32_t left, int32_t top, uint32_t width, uint32_t height)
 Constructs an EDrawableExtent.
 EDrawableExtent (const eVision::EDrawableExtent &other)
 Constructs an EDrawableExtent.
virtual ~EDrawableExtent () throw ()
eVision::EDrawableExtent & operator= (const eVision::EDrawableExtent &other)
 Assignment operator.
int32_t IsInfinite () const
 Whether the EDrawableExtent is finite.
int32_t GetLeft () const
 Gets the left limit of the EDrawableExtent.
int32_t GetTop () const
 Gets the top limit of the EDrawableExtent.
int32_t GetRightExclusive () const
 Gets the right limit of the EDrawableExtent.
int32_t GetBottomExclusive () const
 Gets the bottom limit of the EDrawableExtent.
uint32_t GetWidth () const
 Gets the width of the EDrawableExtent.
uint32_t GetHeight () const
 Gets the height of the EDrawableExtent.
bool DoesContainPoint (int32_t x, int32_t y) const
 Tests whether the EDrawableExtent contains the given point.
bool DoesContainHorizontalLine (int32_t y, int32_t x1, int32_t x2) const
 Tests whether the EDrawableExtent contains the given horizontal line.
bool DoesContainRectangle (int32_t rectangleLeft, int32_t rectangleTop, uint32_t rectangleWidth, uint32_t rectangleHeight) const
 Tests whether the EDrawableExtent contains the given rectangle.
 EDrawableExtent (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Drawable surface extent.

License(s): None

Constructor & Destructor Documentation

◆ EDrawableExtent() [1/4]

eVision::EDrawableExtent::EDrawableExtent ( )

Constructs an EDrawableExtent.

◆ EDrawableExtent() [2/4]

eVision::EDrawableExtent::EDrawableExtent ( int32_t left,
int32_t top,
uint32_t width,
uint32_t height )

Constructs an EDrawableExtent.

Parameters
leftleft limit of the EDrawableExtent
toptop limit of the EDrawableExtent
widthwidth of the EDrawableExtent
heightheight of the EDrawableExtent

◆ EDrawableExtent() [3/4]

eVision::EDrawableExtent::EDrawableExtent ( const eVision::EDrawableExtent & other)

Constructs an EDrawableExtent.

Parameters
otherThe other EDrawableExtent that we will copy into this one.

◆ ~EDrawableExtent()

eVision::EDrawableExtent::~EDrawableExtent ( )
throw ( )
virtual

◆ EDrawableExtent() [4/4]

eVision::EDrawableExtent::EDrawableExtent ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ DoesContainHorizontalLine()

bool eVision::EDrawableExtent::DoesContainHorizontalLine ( int32_t y,
int32_t x1,
int32_t x2 ) const

Tests whether the EDrawableExtent contains the given horizontal line.

Parameters
yordinate of the line
x1leftmost abscissa of the line
x2rightmost abscissa of the line

◆ DoesContainPoint()

bool eVision::EDrawableExtent::DoesContainPoint ( int32_t x,
int32_t y ) const

Tests whether the EDrawableExtent contains the given point.

Parameters
xabscissa of the point
yordinate of the point

◆ DoesContainRectangle()

bool eVision::EDrawableExtent::DoesContainRectangle ( int32_t rectangleLeft,
int32_t rectangleTop,
uint32_t rectangleWidth,
uint32_t rectangleHeight ) const

Tests whether the EDrawableExtent contains the given rectangle.

Parameters
rectangleLeftleftmost abscissa of the rectangle (included)
rectangleToptopmost ordinate of the rectangle (included)
rectangleWidthwidth of the rectangle
rectangleHeightheight of the rectangle

◆ GetBottomExclusive()

int32_t eVision::EDrawableExtent::GetBottomExclusive ( ) const

Gets the bottom limit of the EDrawableExtent.

◆ GetHeight()

uint32_t eVision::EDrawableExtent::GetHeight ( ) const

Gets the height of the EDrawableExtent.

◆ GetLeft()

int32_t eVision::EDrawableExtent::GetLeft ( ) const

Gets the left limit of the EDrawableExtent.

◆ GetRightExclusive()

int32_t eVision::EDrawableExtent::GetRightExclusive ( ) const

Gets the right limit of the EDrawableExtent.

◆ GetTop()

int32_t eVision::EDrawableExtent::GetTop ( ) const

Gets the top limit of the EDrawableExtent.

◆ GetWidth()

uint32_t eVision::EDrawableExtent::GetWidth ( ) const

Gets the width of the EDrawableExtent.

◆ IsInfinite()

int32_t eVision::EDrawableExtent::IsInfinite ( ) const

Whether the EDrawableExtent is finite.

◆ operator=()

eVision::EDrawableExtent & eVision::EDrawableExtent::operator= ( const eVision::EDrawableExtent & other)

Assignment operator.

Parameters
otherThe other EDrawableExtent that we will copy into this one.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EDrawableExtent::wrappedClass_