Euphoria
|
rect.h
Go to the documentation of this file.
38 [[nodiscard]] static Rectf from_left_right_bottom_top(float left_side, float right_side, float bottom_side, float top_side);
39 [[nodiscard]] static Rectf from_left_right_top_bottom(float left_side, float right_side, float top_side, float bottom_side);
47 [[nodiscard]] static Rectf from_bottom_left_width_height(const vec2f& bl, float width, float height);
48 [[nodiscard]] static Rectf from_top_left_width_height(const vec2f& topleft, float width, float height);
142 [[nodiscard]] static Recti from_left_right_bottom_top(int left_side, int right_side, int bottom_side, int top_side);
143 [[nodiscard]] static Recti from_left_right_top_bottom(int left_side, int right_side, int top_side, int bottom_side);
144 [[nodiscard]] static Recti from_bottom_left_width_height(const vec2i& bl, int width, int height);
145 [[nodiscard]] static Recti from_top_left_width_height(const vec2i& topleft, int width, int height);
Definition: assert.h:90
ADD_DEFAULT_FORMATTER(eu::Rectf, std::string, eu::to_string)
vec2f get_relative_center_pos_from_bottom_left() const
Definition: rect.cc:154
float get_relative_center_x_from_bottom_left() const
Definition: rect.cc:142
static Rectf from_position_anchor_width_and_height(const vec2f &pos, const Scale2f &anchor, float width, float height)
Definition: rect.cc:56
Rectf set_bottom_left_to_copy(float new_left, float new_bottom) const
Definition: rect.cc:404
static Rectf from_bottom_left_width_height(const vec2f &bl, float width, float height)
Definition: rect.cc:74
bool operator==(const Rectf &rhs)=delete
Rectf get_scaled_around_center_copy(float scale) const
Definition: rect.cc:232
static Rectf from_left_right_top_bottom(float left_side, float right_side, float top_side, float bottom_side)
Definition: rect.cc:47
static Rectf from_left_right_bottom_top(float left_side, float right_side, float bottom_side, float top_side)
Definition: rect.cc:39
Rectf center_inside_other(const Rectf &other) const
Definition: rect.cc:124
float get_relative_center_y_from_bottom_left() const
Definition: rect.cc:148
static Rectf from_top_left_width_height(const vec2f &topleft, float width, float height)
Definition: rect.cc:86
static Rectf from_width_height(float width, float height)
Definition: rect.cc:98
vec2f get_position_from_bottom_left(const vec2f &v) const
Definition: rect.cc:136
Rectf set_top_left_to_copy(float new_left, float new_top) const
Definition: rect.cc:387
Definition: rect.h:125
vec2i get_relative_center_pos_from_bottom_left() const
Definition: rect.cc:630
static Recti from_position_anchor_width_and_height(const vec2i &pos, const Scale2f &anchor, int width, int height)
Definition: rect.cc:530
static Recti from_width_height(int width, int height)
Definition: rect.cc:573
static Recti from_left_right_bottom_top(int left_side, int right_side, int bottom_side, int top_side)
Definition: rect.cc:513
vec2i get_position_from_bottom_left(const vec2i &v) const
Definition: rect.cc:612
Recti center_inside_other(const Recti &other) const
Definition: rect.cc:600
int get_relative_center_y_from_bottom_left() const
Definition: rect.cc:624
Recti get_scaled_around_center_copy(int scale) const
Definition: rect.cc:706
int get_relative_center_x_from_bottom_left() const
Definition: rect.cc:618
Recti set_top_left_to_copy(int new_left, int new_top) const
Definition: rect.cc:850
Recti set_bottom_left_to_copy(int new_left, int new_bottom) const
Definition: rect.cc:867
static Recti from_bottom_left_width_height(const vec2i &bl, int width, int height)
Definition: rect.cc:548
static Recti from_left_right_top_bottom(int left_side, int right_side, int top_side, int bottom_side)
Definition: rect.cc:521
static Recti from_top_left_width_height(const vec2i &topleft, int width, int height)
Definition: rect.cc:561
Definition: vec2.h:137
Definition: size2.h:12
Definition: size2.h:35