#include <rect.h>
|
| Recti () |
|
void | translate (int dx, int dy) |
|
void | scale (int dx, int dy) |
|
void | inset (int dx, int dy) |
|
void | inset (int l, int r, int t, int b) |
|
void | expand (int expand) |
|
void | include (const Recti &o) |
|
void | extend (int dx, int dy) |
|
void | set_empty () |
|
Recti | center_inside_other (const Recti &other) const |
|
vec2i | get_position_from_bottom_left (const vec2i &v) const |
|
bool | contains_exclusive (const Recti &r) const |
|
bool | contains_exclusive (const vec2i &p) const |
|
bool | contains_exclusive (int x, int y) const |
|
bool | contains_inclusive (const vec2i &p) const |
|
bool | contains_inclusive (int x, int y) const |
|
Recti | get_scaled_around_center_copy (int scale) const |
|
Recti | expand_copy (int expand) const |
|
Recti | translate_copy (int dx, int dy) const |
|
Recti | translate_copy (const vec2i &d) const |
|
Recti | extend_copy (int dx, int dy) const |
|
Recti | extend_copy (int d) const |
|
Recti | scale_copy (int dx, int dy) const |
|
Recti | inset_copy (int dx, int dy) const |
|
Recti | inset_copy (int l, int r, int t, int b) const |
|
Recti | set_top_left_to_copy (int new_left, int new_top) const |
|
Recti | set_top_left_to_copy (const vec2i &v) const |
|
Recti | set_bottom_left_to_copy (int new_left, int new_bottom) const |
|
Recti | set_bottom_left_to_copy (const vec2i &v) const |
|
Rectf | to_f () const |
|
int | get_relative_center_x_from_bottom_left () const |
|
int | get_relative_center_y_from_bottom_left () const |
|
vec2i | get_relative_center_pos_from_bottom_left () const |
|
int | get_absolute_center_x () const |
|
int | get_absolute_center_y () const |
|
vec2i | get_absolute_center_pos () const |
|
bool | is_empty () const |
|
bool | is_valid () const |
|
vec2i | get_top_left () const |
|
vec2i | get_top_right () const |
|
vec2i | get_bottom_left () const |
|
vec2i | get_bottom_right () const |
|
int | get_height () const |
|
int | get_width () const |
|
size2i | get_size () const |
|
Range< int > | get_range_y () const |
|
Range< int > | get_range_x () const |
|
|
static Recti | from_position_anchor_width_and_height (const vec2i &pos, const Scale2f &anchor, int width, int height) |
|
static Recti | from_left_right_bottom_top (int left_side, int right_side, int bottom_side, int top_side) |
|
static Recti | from_left_right_top_bottom (int left_side, int right_side, int top_side, int bottom_side) |
|
static Recti | from_bottom_left_width_height (const vec2i &bl, int width, int height) |
|
static Recti | from_top_left_width_height (const vec2i &topleft, int width, int height) |
|
static Recti | from_width_height (int width, int height) |
|
static Recti | from_width_height (const size2i &s) |
|
static Recti | from_point (const vec2i &point) |
|
Definition at line 124 of file rect.h.
◆ Recti()
◆ center_inside_other()
Recti eu::Recti::center_inside_other |
( |
const Recti & |
other | ) |
const |
◆ contains_exclusive() [1/3]
bool eu::Recti::contains_exclusive |
( |
const Recti & |
r | ) |
const |
◆ contains_exclusive() [2/3]
bool eu::Recti::contains_exclusive |
( |
const vec2i & |
p | ) |
const |
◆ contains_exclusive() [3/3]
bool eu::Recti::contains_exclusive |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ contains_inclusive() [1/2]
bool eu::Recti::contains_inclusive |
( |
const vec2i & |
p | ) |
const |
◆ contains_inclusive() [2/2]
bool eu::Recti::contains_inclusive |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ expand()
void eu::Recti::expand |
( |
int |
expand | ) |
|
◆ expand_copy()
Recti eu::Recti::expand_copy |
( |
int |
expand | ) |
const |
◆ extend()
void eu::Recti::extend |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
◆ extend_copy() [1/2]
Recti eu::Recti::extend_copy |
( |
int |
d | ) |
const |
◆ extend_copy() [2/2]
Recti eu::Recti::extend_copy |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| const |
◆ from_bottom_left_width_height()
Recti eu::Recti::from_bottom_left_width_height |
( |
const vec2i & |
bl, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ from_left_right_bottom_top()
Recti eu::Recti::from_left_right_bottom_top |
( |
int |
left_side, |
|
|
int |
right_side, |
|
|
int |
bottom_side, |
|
|
int |
top_side |
|
) |
| |
|
static |
◆ from_left_right_top_bottom()
Recti eu::Recti::from_left_right_top_bottom |
( |
int |
left_side, |
|
|
int |
right_side, |
|
|
int |
top_side, |
|
|
int |
bottom_side |
|
) |
| |
|
static |
◆ from_point()
Recti eu::Recti::from_point |
( |
const vec2i & |
point | ) |
|
|
static |
◆ from_position_anchor_width_and_height()
Recti eu::Recti::from_position_anchor_width_and_height |
( |
const vec2i & |
pos, |
|
|
const Scale2f & |
anchor, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ from_top_left_width_height()
Recti eu::Recti::from_top_left_width_height |
( |
const vec2i & |
topleft, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ from_width_height() [1/2]
◆ from_width_height() [2/2]
Recti eu::Recti::from_width_height |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ get_absolute_center_pos()
vec2i eu::Recti::get_absolute_center_pos |
( |
| ) |
const |
◆ get_absolute_center_x()
int eu::Recti::get_absolute_center_x |
( |
| ) |
const |
◆ get_absolute_center_y()
int eu::Recti::get_absolute_center_y |
( |
| ) |
const |
◆ get_bottom_left()
vec2i eu::Recti::get_bottom_left |
( |
| ) |
const |
◆ get_bottom_right()
vec2i eu::Recti::get_bottom_right |
( |
| ) |
const |
◆ get_height()
int eu::Recti::get_height |
( |
| ) |
const |
◆ get_position_from_bottom_left()
vec2i eu::Recti::get_position_from_bottom_left |
( |
const vec2i & |
v | ) |
const |
◆ get_range_x()
Range< int > eu::Recti::get_range_x |
( |
| ) |
const |
◆ get_range_y()
Range< int > eu::Recti::get_range_y |
( |
| ) |
const |
◆ get_relative_center_pos_from_bottom_left()
vec2i eu::Recti::get_relative_center_pos_from_bottom_left |
( |
| ) |
const |
◆ get_relative_center_x_from_bottom_left()
int eu::Recti::get_relative_center_x_from_bottom_left |
( |
| ) |
const |
◆ get_relative_center_y_from_bottom_left()
int eu::Recti::get_relative_center_y_from_bottom_left |
( |
| ) |
const |
◆ get_scaled_around_center_copy()
Recti eu::Recti::get_scaled_around_center_copy |
( |
int |
scale | ) |
const |
◆ get_size()
size2i eu::Recti::get_size |
( |
| ) |
const |
◆ get_top_left()
vec2i eu::Recti::get_top_left |
( |
| ) |
const |
◆ get_top_right()
vec2i eu::Recti::get_top_right |
( |
| ) |
const |
◆ get_width()
int eu::Recti::get_width |
( |
| ) |
const |
◆ include()
void eu::Recti::include |
( |
const Recti & |
o | ) |
|
◆ inset() [1/2]
void eu::Recti::inset |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
◆ inset() [2/2]
void eu::Recti::inset |
( |
int |
l, |
|
|
int |
r, |
|
|
int |
t, |
|
|
int |
b |
|
) |
| |
◆ inset_copy() [1/2]
Recti eu::Recti::inset_copy |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| const |
◆ inset_copy() [2/2]
Recti eu::Recti::inset_copy |
( |
int |
l, |
|
|
int |
r, |
|
|
int |
t, |
|
|
int |
b |
|
) |
| const |
◆ is_empty()
bool eu::Recti::is_empty |
( |
| ) |
const |
◆ is_valid()
bool eu::Recti::is_valid |
( |
| ) |
const |
◆ scale()
void eu::Recti::scale |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
◆ scale_copy()
Recti eu::Recti::scale_copy |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| const |
◆ set_bottom_left_to_copy() [1/2]
Recti eu::Recti::set_bottom_left_to_copy |
( |
const vec2i & |
v | ) |
const |
◆ set_bottom_left_to_copy() [2/2]
Recti eu::Recti::set_bottom_left_to_copy |
( |
int |
new_left, |
|
|
int |
new_bottom |
|
) |
| const |
◆ set_empty()
void eu::Recti::set_empty |
( |
| ) |
|
◆ set_top_left_to_copy() [1/2]
Recti eu::Recti::set_top_left_to_copy |
( |
const vec2i & |
v | ) |
const |
◆ set_top_left_to_copy() [2/2]
Recti eu::Recti::set_top_left_to_copy |
( |
int |
new_left, |
|
|
int |
new_top |
|
) |
| const |
◆ to_f()
Rectf eu::Recti::to_f |
( |
| ) |
const |
◆ translate()
void eu::Recti::translate |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
◆ translate_copy() [1/2]
Recti eu::Recti::translate_copy |
( |
const vec2i & |
d | ) |
const |
◆ translate_copy() [2/2]
Recti eu::Recti::translate_copy |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| const |
◆ bottom
◆ left
◆ right
◆ top
The documentation for this struct was generated from the following files: