MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::EdgeInsets Class Reference

The distance on each side between a rectangle and a rectangle within. More...

#include <geo.hpp>

Public Member Functions

 EdgeInsets (double t_=0, double l_=0, double b_=0, double r_=0)
 
double top () const
 
double left () const
 
double bottom () const
 
double right () const
 
bool isFlush () const
 
void operator+= (const EdgeInsets &o)
 
EdgeInsets operator+ (const EdgeInsets &o) const
 
ScreenCoordinate getCenter (uint16_t width, uint16_t height) const
 

Friends

bool operator== (const EdgeInsets &a, const EdgeInsets &b)
 
bool operator!= (const EdgeInsets &a, const EdgeInsets &b)
 

Detailed Description

The distance on each side between a rectangle and a rectangle within.

Definition at line 187 of file geo.hpp.

Constructor & Destructor Documentation

◆ EdgeInsets()

mbgl::EdgeInsets::EdgeInsets ( double  t_ = 0,
double  l_ = 0,
double  b_ = 0,
double  r_ = 0 
)
inline

Definition at line 195 of file geo.hpp.

Member Function Documentation

◆ bottom()

double mbgl::EdgeInsets::bottom ( ) const
inline

Definition at line 213 of file geo.hpp.

◆ getCenter()

ScreenCoordinate mbgl::EdgeInsets::getCenter ( uint16_t  width,
uint16_t  height 
) const

◆ isFlush()

bool mbgl::EdgeInsets::isFlush ( ) const
inline

Definition at line 216 of file geo.hpp.

◆ left()

double mbgl::EdgeInsets::left ( ) const
inline

Definition at line 212 of file geo.hpp.

◆ operator+()

EdgeInsets mbgl::EdgeInsets::operator+ ( const EdgeInsets o) const
inline

Definition at line 227 of file geo.hpp.

◆ operator+=()

void mbgl::EdgeInsets::operator+= ( const EdgeInsets o)
inline

Definition at line 220 of file geo.hpp.

◆ right()

double mbgl::EdgeInsets::right ( ) const
inline

Definition at line 214 of file geo.hpp.

◆ top()

double mbgl::EdgeInsets::top ( ) const
inline

Definition at line 211 of file geo.hpp.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const EdgeInsets a,
const EdgeInsets b 
)
friend

Definition at line 239 of file geo.hpp.

◆ operator==

bool operator== ( const EdgeInsets a,
const EdgeInsets b 
)
friend

Definition at line 235 of file geo.hpp.


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