Photon 1.0.0
Loading...
Searching...
No Matches
litehtml::position Struct Reference

#include <types.h>

Public Types

using vector = std::vector< position >
 

Public Member Functions

 position ()
 
 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
 

Member Typedef Documentation

◆ vector

Constructor & Destructor Documentation

◆ position() [1/2]

litehtml::position::position ( )
inline

◆ position() [2/2]

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

Member Function Documentation

◆ bottom()

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

◆ clear()

void litehtml::position::clear ( )
inline

◆ does_intersect()

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

◆ empty()

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

◆ is_point_inside()

bool litehtml::position::is_point_inside ( int  _x,
int  _y 
) const
inline

◆ left()

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

◆ move_to()

void litehtml::position::move_to ( int  _x,
int  _y 
)
inline

◆ operator+=()

◆ operator-=()

◆ operator=()

◆ right()

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

◆ top()

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

Member Data Documentation

◆ height

int litehtml::position::height

◆ width

int litehtml::position::width

◆ x

int litehtml::position::x

◆ y

int litehtml::position::y

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