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 | |
Length () | |
Length (Length const &)=default | |
Length & | operator= (Length const &)=default |
Length (float mag, Units units) | |
float | as (Units units) const |
float | as_pixels (float dpi) const |
bool | operator== (Length const &rhs) const |
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,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015