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