Horizon
Public Types | Public Member Functions | Public Attributes | List of all members
horizon::Selectable Class Reference

Public Types

enum  Flag {
  SELECTED = 1, PRELIGHT = 2, ALWAYS = 4, PREVIEW = 8,
  SELECTED = 1, PRELIGHT = 2, ALWAYS = 4, PREVIEW = 8
}
 
enum  Flag {
  SELECTED = 1, PRELIGHT = 2, ALWAYS = 4, PREVIEW = 8,
  SELECTED = 1, PRELIGHT = 2, ALWAYS = 4, PREVIEW = 8
}
 

Public Member Functions

bool get_flag (Flag f) const
 
void set_flag (Flag f, bool v)
 
 Selectable (const Coordf &center, const Coordf &box_center, const Coordf &box_dim, float angle=0, bool always=false)
 
bool inside (const Coordf &c, float expand=0) const
 
float area () const
 
bool is_line () const
 
bool is_point () const
 
bool is_box () const
 
std::array< Coordf, 4 > get_corners () const
 
bool get_flag (Flag f) const
 
void set_flag (Flag f, bool v)
 
 Selectable (const Coordf &center, const Coordf &box_center, const Coordf &box_dim, float angle=0, bool always=false)
 
bool inside (const Coordf &c, float expand=0) const
 
float area () const
 
bool is_line () const
 
bool is_point () const
 
bool is_box () const
 
std::array< Coordf, 4 > get_corners () const
 

Public Attributes

float x
 
float y
 
float c_x
 
float c_y
 
float width
 
float height
 
float angle
 
uint8_t flags
 

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