Euphoria
eu::size2i Struct Reference

#include <size2.h>

Public Member Functions

 size2i ()
 
vec2i calc_center_offset_for (const size2i &o) const
 
void operator+= (const size2i &rhs)
 
void operator-= (const size2i &rhs)
 
void operator*= (int rhs)
 

Static Public Member Functions

static size2i create_from_width_height (int w, int h)
 
static size2i create_from_height_width (int h, int w)
 
static size2i create_from_square (int s)
 

Public Attributes

int width
 
int height
 

Detailed Description

Definition at line 34 of file size2.h.

Constructor & Destructor Documentation

◆ size2i()

eu::size2i::size2i ( )

Definition at line 204 of file size2.cc.

Member Function Documentation

◆ calc_center_offset_for()

vec2i eu::size2i::calc_center_offset_for ( const size2i o) const

Definition at line 250 of file size2.cc.

◆ create_from_height_width()

size2i eu::size2i::create_from_height_width ( int  h,
int  w 
)
static

Definition at line 217 of file size2.cc.

◆ create_from_square()

size2i eu::size2i::create_from_square ( int  s)
static

Definition at line 223 of file size2.cc.

◆ create_from_width_height()

size2i eu::size2i::create_from_width_height ( int  w,
int  h 
)
static

Definition at line 211 of file size2.cc.

◆ operator*=()

void eu::size2i::operator*= ( int  rhs)

Definition at line 243 of file size2.cc.

◆ operator+=()

void eu::size2i::operator+= ( const size2i rhs)

Definition at line 229 of file size2.cc.

◆ operator-=()

void eu::size2i::operator-= ( const size2i rhs)

Definition at line 236 of file size2.cc.

Member Data Documentation

◆ height

int eu::size2i::height

Definition at line 37 of file size2.h.

◆ width

int eu::size2i::width

Definition at line 36 of file size2.h.


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