SOMHunter Core
sh::RelativeRect Struct Reference

#include <query-types.h>

Public Member Functions

void to_full ()
 Set rectangle to cover everything. More...
 
float width_norm () const
 
float height_norm () const
 
template<class Archive >
void serialize (Archive &archive)
 
bool operator== (const RelativeRect &b) const
 

Public Attributes

float left
 Distances from the given edge (e.g. More...
 
float top
 
float right
 
float bottom
 

Member Function Documentation

◆ height_norm()

float sh::RelativeRect::height_norm ( ) const
inline

◆ operator==()

bool sh::RelativeRect::operator== ( const RelativeRect b) const
inline

◆ serialize()

template<class Archive >
void sh::RelativeRect::serialize ( Archive &  archive)
inline

◆ to_full()

void sh::RelativeRect::to_full ( )
inline

Set rectangle to cover everything.

◆ width_norm()

float sh::RelativeRect::width_norm ( ) const
inline

Member Data Documentation

◆ bottom

float sh::RelativeRect::bottom

◆ left

float sh::RelativeRect::left

Distances from the given edge (e.g.

top 0.5 means that it starts in the middle vertically)

◆ right

float sh::RelativeRect::right

◆ top

float sh::RelativeRect::top

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