GCC Middle and Back End API Reference
text_art::rect< CoordinateSystem > Struct Template Reference

#include <types.h>

Inheritance diagram for text_art::rect< CoordinateSystem >:

Public Member Functions

 rect (coord< CoordinateSystem > top_left, size< CoordinateSystem > size)
 rect (range< CoordinateSystem > x_range, range< CoordinateSystem > y_range)
int get_min_x () const
int get_min_y () const
int get_max_x () const
int get_max_y () const
int get_next_x () const
int get_next_y () const
range< CoordinateSystem > get_x_range () const
range< CoordinateSystem > get_y_range () const
int get_width () const
int get_height () const

Data Fields

coord< CoordinateSystem > m_top_left
size< CoordinateSystem > m_size

Detailed Description

template<typename CoordinateSystem>
struct text_art::rect< CoordinateSystem >
A rectangle area within CoordinateSystem.   

Constructor & Destructor Documentation

◆ rect() [1/2]

template<typename CoordinateSystem>
text_art::rect< CoordinateSystem >::rect ( coord< CoordinateSystem > top_left,
size< CoordinateSystem > size )
inline

◆ rect() [2/2]

template<typename CoordinateSystem>
text_art::rect< CoordinateSystem >::rect ( range< CoordinateSystem > x_range,
range< CoordinateSystem > y_range )
inline

Member Function Documentation

◆ get_height()

template<typename CoordinateSystem>
int text_art::rect< CoordinateSystem >::get_height ( ) const
inline

◆ get_max_x()

template<typename CoordinateSystem>
int text_art::rect< CoordinateSystem >::get_max_x ( ) const
inline

◆ get_max_y()

template<typename CoordinateSystem>
int text_art::rect< CoordinateSystem >::get_max_y ( ) const
inline

◆ get_min_x()

◆ get_min_y()

◆ get_next_x()

template<typename CoordinateSystem>
int text_art::rect< CoordinateSystem >::get_next_x ( ) const
inline

◆ get_next_y()

template<typename CoordinateSystem>
int text_art::rect< CoordinateSystem >::get_next_y ( ) const
inline

◆ get_width()

template<typename CoordinateSystem>
int text_art::rect< CoordinateSystem >::get_width ( ) const
inline

◆ get_x_range()

template<typename CoordinateSystem>
range< CoordinateSystem > text_art::rect< CoordinateSystem >::get_x_range ( ) const
inline

◆ get_y_range()

template<typename CoordinateSystem>
range< CoordinateSystem > text_art::rect< CoordinateSystem >::get_y_range ( ) const
inline

Field Documentation

◆ m_size

◆ m_top_left

template<typename CoordinateSystem>
coord<CoordinateSystem> text_art::rect< CoordinateSystem >::m_top_left

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