This class represents the capabilities of a given display/device.
These capabilities are used in order to provide a TSLDrawingSurface with the dimensions/DPI of a display.
- See also
- TSLDrawingSurface::getDeviceCapabilities
-
TSLDrawingSurface::setDeviceCapabilities
|
|
| TSLDeviceCapabilities () |
|
void | horizontalMM (unsigned int width) |
| Set the width of the device in mm.
|
|
unsigned int | horizontalMM () const |
| Query the width of the device in mm.
|
|
void | verticalMM (unsigned int height) |
| Set the height of the device in mm.
|
|
unsigned int | verticalMM () const |
| Query the height of the device in mm.
|
|
void | horizontalPixels (unsigned int width) |
| Set the width of the device in pixels.
|
|
unsigned int | horizontalPixels () const |
| Query the width of the device in pixels.
|
|
void | verticalPixels (unsigned int height) |
| Set the height of the device in pixels.
|
|
unsigned int | verticalPixels () const |
| Query the height of the device in pixels.
|
|
◆ TSLDeviceCapabilities()
TSLDeviceCapabilities::TSLDeviceCapabilities |
( |
| ) |
|
|
inline |
◆ horizontalMM() [1/2]
unsigned int TSLDeviceCapabilities::horizontalMM |
( |
| ) |
const |
|
inline |
Query the width of the device in mm.
◆ horizontalMM() [2/2]
void TSLDeviceCapabilities::horizontalMM |
( |
unsigned int | width | ) |
|
|
inline |
Set the width of the device in mm.
◆ horizontalPixels() [1/2]
unsigned int TSLDeviceCapabilities::horizontalPixels |
( |
| ) |
const |
|
inline |
Query the width of the device in pixels.
◆ horizontalPixels() [2/2]
void TSLDeviceCapabilities::horizontalPixels |
( |
unsigned int | width | ) |
|
|
inline |
Set the width of the device in pixels.
◆ verticalMM() [1/2]
unsigned int TSLDeviceCapabilities::verticalMM |
( |
| ) |
const |
|
inline |
Query the height of the device in mm.
◆ verticalMM() [2/2]
void TSLDeviceCapabilities::verticalMM |
( |
unsigned int | height | ) |
|
|
inline |
Set the height of the device in mm.
◆ verticalPixels() [1/2]
unsigned int TSLDeviceCapabilities::verticalPixels |
( |
| ) |
const |
|
inline |
Query the height of the device in pixels.
◆ verticalPixels() [2/2]
void TSLDeviceCapabilities::verticalPixels |
( |
unsigned int | height | ) |
|
|
inline |
Set the height of the device in pixels.