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

#include <size.hpp>

Public Member Functions

constexpr Size ()=default
 
constexpr Size (const uint32_t width_, const uint32_t height_)
 
constexpr uint32_t area () const
 
constexpr float aspectRatio () const
 
constexpr bool isEmpty () const
 

Public Attributes

uint32_t width = 0
 
uint32_t height = 0
 

Detailed Description

Definition at line 7 of file size.hpp.

Constructor & Destructor Documentation

◆ Size() [1/2]

constexpr mbgl::Size::Size ( )
constexprdefault

◆ Size() [2/2]

constexpr mbgl::Size::Size ( const uint32_t  width_,
const uint32_t  height_ 
)
inlineconstexpr

Definition at line 11 of file size.hpp.

Member Function Documentation

◆ area()

constexpr uint32_t mbgl::Size::area ( ) const
inlineconstexpr

Definition at line 14 of file size.hpp.

◆ aspectRatio()

constexpr float mbgl::Size::aspectRatio ( ) const
inlineconstexpr

Definition at line 18 of file size.hpp.

◆ isEmpty()

constexpr bool mbgl::Size::isEmpty ( ) const
inlineconstexpr

Definition at line 22 of file size.hpp.

Member Data Documentation

◆ height

uint32_t mbgl::Size::height = 0

Definition at line 27 of file size.hpp.

◆ width

uint32_t mbgl::Size::width = 0

Definition at line 26 of file size.hpp.


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