Length represents a physical length in the real world. The number of pixels this equates to can then be calculated based on a given DPI.
More...
#include <length.h>
Length represents a physical length in the real world. The number of pixels this equates to can then be calculated based on a given DPI.
◆ Units
| Enumerator |
|---|
| micrometres | |
| millimetres | |
| centimetres | |
| inches | |
◆ Length() [1/3]
| constexpr mir::geometry::Length::Length |
( |
| ) |
|
|
inlineconstexpr |
◆ Length() [2/3]
| constexpr mir::geometry::Length::Length |
( |
Length const & |
| ) |
|
|
constexprdefault |
◆ Length() [3/3]
| constexpr mir::geometry::Length::Length |
( |
float |
mag, |
|
|
Units |
units |
|
) |
| |
|
inlineconstexpr |
◆ as()
| constexpr float mir::geometry::Length::as |
( |
Units |
units | ) |
const |
|
inlineconstexpr |
◆ as_pixels()
| constexpr float mir::geometry::Length::as_pixels |
( |
float |
dpi | ) |
const |
|
inlineconstexpr |
◆ operator!=()
| constexpr bool mir::geometry::Length::operator!= |
( |
Length const & |
rhs | ) |
const |
|
inlineconstexpr |
◆ operator=()
◆ operator==()
| constexpr bool mir::geometry::Length::operator== |
( |
Length const & |
rhs | ) |
const |
|
inlineconstexpr |
The documentation for this class was generated from the following file:
Copyright © 2012-2020
Canonical Ltd.
Generated on Fri Apr 10 09:30:49 UTC 2020
This documentation is licensed under the GPL version 2 or 3.