Iros
 
Loading...
Searching...
No Matches
gfx::Rect Class Reference

#include </home/runner/work/iros/iros/libs/diusgfx/include/diusgfx/rect.h>

Public Member Functions

 Rect ()=default
 
constexpr Rect (f32 x, f32 y, f32 width, f32 height)
 
constexpr Rect (Point top_left, Size2d size)
 
constexpr auto x () -> f32 &
 
constexpr auto x () const -> f32
 
constexpr auto y () -> f32 &
 
constexpr auto y () const -> f32
 
constexpr auto width () -> f32 &
 
constexpr auto width () const -> f32
 
constexpr auto height () -> f32 &
 
constexpr auto height () const -> f32
 
constexpr auto top_left () -> Point &
 
constexpr auto top_left () const -> Point
 
constexpr auto size () -> Size2d &
 
constexpr auto size () const -> Size2d
 
constexpr auto left () const -> f32
 
constexpr auto right () const -> f32
 
constexpr auto top () const -> f32
 
constexpr auto bottom () const -> f32
 
constexpr auto with_x (f32 x) const -> Rect
 
constexpr auto with_y (f32 y) const -> Rect
 
constexpr auto with_top_left (Point p) const -> Rect
 
constexpr auto with_width (f32 width) const -> Rect
 
constexpr auto with_height (f32 height) const -> Rect
 
constexpr auto with_size (Size2d size) const -> Rect
 
constexpr auto top_right () const -> Point
 
constexpr auto bottom_left () const -> Point
 
constexpr auto bottom_right () const -> Point
 
constexpr auto center () const -> Point
 
constexpr auto contains (Point p) const -> bool
 
constexpr auto contains (Rect other) const -> bool
 
auto operator== (Rect const &) const -> bool=default
 

Constructor & Destructor Documentation

◆ Rect() [1/3]

gfx::Rect::Rect ( )
default

◆ Rect() [2/3]

gfx::Rect::Rect ( f32 x,
f32 y,
f32 width,
f32 height )
inlineconstexpr

◆ Rect() [3/3]

gfx::Rect::Rect ( Point top_left,
Size2d size )
inlineconstexpr

Member Function Documentation

◆ bottom()

auto gfx::Rect::bottom ( ) const -> f32
inlineconstexpr

◆ bottom_left()

auto gfx::Rect::bottom_left ( ) const -> Point
inlineconstexpr

◆ bottom_right()

auto gfx::Rect::bottom_right ( ) const -> Point
inlineconstexpr

◆ center()

auto gfx::Rect::center ( ) const -> Point
inlineconstexpr

◆ contains() [1/2]

auto gfx::Rect::contains ( Point p) const -> bool
inlineconstexpr

◆ contains() [2/2]

auto gfx::Rect::contains ( Rect other) const -> bool
inlineconstexpr

◆ height() [1/2]

auto gfx::Rect::height ( ) -> f32&
inlineconstexpr

◆ height() [2/2]

auto gfx::Rect::height ( ) const -> f32
inlineconstexpr

◆ left()

auto gfx::Rect::left ( ) const -> f32
inlineconstexpr

◆ operator==()

auto gfx::Rect::operator== ( Rect const & ) const -> bool=default
default

◆ right()

auto gfx::Rect::right ( ) const -> f32
inlineconstexpr

◆ size() [1/2]

auto gfx::Rect::size ( ) -> Size2d&
inlineconstexpr

◆ size() [2/2]

auto gfx::Rect::size ( ) const -> Size2d
inlineconstexpr

◆ top()

auto gfx::Rect::top ( ) const -> f32
inlineconstexpr

◆ top_left() [1/2]

auto gfx::Rect::top_left ( ) -> Point&
inlineconstexpr

◆ top_left() [2/2]

auto gfx::Rect::top_left ( ) const -> Point
inlineconstexpr

◆ top_right()

auto gfx::Rect::top_right ( ) const -> Point
inlineconstexpr

◆ width() [1/2]

auto gfx::Rect::width ( ) -> f32&
inlineconstexpr

◆ width() [2/2]

auto gfx::Rect::width ( ) const -> f32
inlineconstexpr

◆ with_height()

auto gfx::Rect::with_height ( f32 height) const -> Rect
inlineconstexpr

◆ with_size()

auto gfx::Rect::with_size ( Size2d size) const -> Rect
inlineconstexpr

◆ with_top_left()

auto gfx::Rect::with_top_left ( Point p) const -> Rect
inlineconstexpr

◆ with_width()

auto gfx::Rect::with_width ( f32 width) const -> Rect
inlineconstexpr

◆ with_x()

auto gfx::Rect::with_x ( f32 x) const -> Rect
inlineconstexpr

◆ with_y()

auto gfx::Rect::with_y ( f32 y) const -> Rect
inlineconstexpr

◆ x() [1/2]

auto gfx::Rect::x ( ) -> f32&
inlineconstexpr

◆ x() [2/2]

auto gfx::Rect::x ( ) const -> f32
inlineconstexpr

◆ y() [1/2]

auto gfx::Rect::y ( ) -> f32&
inlineconstexpr

◆ y() [2/2]

auto gfx::Rect::y ( ) const -> f32
inlineconstexpr

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