Mir
|
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>
Public Types | |
enum | Units { micrometres = 1, millimetres = 1000, centimetres = 10000, inches = 25400 } |
Public Member Functions | |
constexpr | Length () |
constexpr | Length (Length const &)=default |
constexpr | Length (float mag, Units units) |
Length & | operator= (Length const &)=default |
constexpr float | as (Units units) const |
constexpr float | as_pixels (float dpi) const |
constexpr bool | operator== (Length const &rhs) const |
constexpr bool | operator!= (Length const &rhs) const |
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.
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copyright © 2012-2021
Canonical Ltd.
Generated on Wed Aug 11 12:02:04 UTC 2021
This documentation is licensed under the GPL version 2 or 3.