Cogs.Core
Public Types | Public Member Functions | Public Attributes | List of all members
litehtml::position Struct Reference

Public Types

typedef std::vector< positionvector
 

Public Member Functions

 position (int x, int y, int width, int height)
 
int right () const
 
int bottom () const
 
int left () const
 
int top () const
 
void operator+= (const margins &mg)
 
void operator-= (const margins &mg)
 
void clear ()
 
void operator= (const size &sz)
 
void move_to (int x, int y)
 
bool does_intersect (const position *val) const
 
bool empty () const
 
bool is_point_inside (int x, int y) const
 

Public Attributes

int x
 
int y
 
int width
 
int height
 

Detailed Description

Definition at line 57 of file types.h.

Member Typedef Documentation

◆ vector

typedef std::vector<position> litehtml::position::vector

Definition at line 59 of file types.h.

Constructor & Destructor Documentation

◆ position() [1/2]

litehtml::position::position ( )
inline

Definition at line 66 of file types.h.

◆ position() [2/2]

litehtml::position::position ( int  x,
int  y,
int  width,
int  height 
)
inline

Definition at line 71 of file types.h.

Member Function Documentation

◆ bottom()

int litehtml::position::bottom ( ) const
inline

Definition at line 80 of file types.h.

◆ clear()

void litehtml::position::clear ( )
inline

Definition at line 99 of file types.h.

◆ does_intersect()

bool litehtml::position::does_intersect ( const position val) const
inline

Definition at line 116 of file types.h.

◆ empty()

bool litehtml::position::empty ( ) const
inline

Definition at line 132 of file types.h.

◆ is_point_inside()

bool litehtml::position::is_point_inside ( int  x,
int  y 
) const
inline

Definition at line 141 of file types.h.

◆ left()

int litehtml::position::left ( ) const
inline

Definition at line 81 of file types.h.

◆ move_to()

void litehtml::position::move_to ( int  x,
int  y 
)
inline

Definition at line 110 of file types.h.

◆ operator+=()

void litehtml::position::operator+= ( const margins mg)
inline

Definition at line 84 of file types.h.

◆ operator-=()

void litehtml::position::operator-= ( const margins mg)
inline

Definition at line 91 of file types.h.

◆ operator=()

void litehtml::position::operator= ( const size sz)
inline

Definition at line 104 of file types.h.

◆ right()

int litehtml::position::right ( ) const
inline

Definition at line 79 of file types.h.

◆ top()

int litehtml::position::top ( ) const
inline

Definition at line 82 of file types.h.

Member Data Documentation

◆ height

int litehtml::position::height

Definition at line 64 of file types.h.

◆ width

int litehtml::position::width

Definition at line 63 of file types.h.

◆ x

int litehtml::position::x

Definition at line 61 of file types.h.

◆ y

int litehtml::position::y

Definition at line 62 of file types.h.


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