Websites Navigation:
Airbit
|
Shop
|
m-shell.net
Languages:
EN
|
DE
Home
Download
Products
Make SIS
Documentation
Forum
Blog
Contact
Index
Module abgui
Class abgui.Renderer
The default table cell renderer class. It draws numbers right aligned, booleans as check marks, images centered and all others as strings. null elements are not drawn.
Constructor
function init()
Initialize a new renderer.
Fields
ascent
The ascent ratio of the font height (default is 0.8).
inset
The inset to use for cell text.
numformat
The format to use for numbers.
selColor
The background color for selected cells.
Functions
computeSize
(elt)
draw
(elt, x, w, h, selected)
Draw data (e.g. a table element) into a cell.
function draw(elt, x, w, h, selected)
Draw data (e.g. a table element) into a cell. The clipping rectangle is set accordingly.
Parameters:
elt
– the element to draw.
x
– the x coordinate to draw at (normally 0).
w
– the width of the cell.
h
– the height of the cell.
selected
– whether this cell is selected
function computeSize(elt)
mShell Home
>
Documentation
> mdoc