Module ffi.framebuffer
Framebuffer API.
This will be extended by implementations of this API.
Functions
fb:scaleByDPI (dp) | Calculate pixel from density-independent pixel |
fb:getScreenMode () | This reflects how the screen looks like, not the screen layout relative to its native orientation... |
fb:getScreenOrientation () | This reflects the current layout in terms of rotation modes |
Functions
- fb:scaleByDPI (dp)
-
Calculate pixel from density-independent pixel
Parameters:
- dp integer density-independent pixel
Returns:
-
int
pixel
- fb:getScreenMode ()
- This reflects how the screen looks like, not the screen layout relative to its native orientation...
- fb:getScreenOrientation ()
- This reflects the current layout in terms of rotation modes