Websites Navigation:
Airbit
|
Shop
|
m-shell.net
Languages:
EN
|
DE
Home
Download
Products
Make SIS
Documentation
Forum
Blog
Contact
Index
Module abguibase
Class abguibase.ImageBackground
is
abguibase.Background
An image background drawing an image with optional border. If the image is too small, it will be tiled (repeated horizontally and vertically).
Constructor
function init(pathOrIcon=null, color=null, borderColor=null)
Overrides
abguibase.Background.init()
Initialize a new image.
Parameters:
pathOrIcon
– either a path to an icon file, or an icon loaded via graph.icon.
color
– the solid background color (if the icon has transparency), null for no background color.
borderColor
– the borderColor, null for no border.
Fields
icon
The icon to display.
Functions
draw
(w, h, inset)
[Inherited comment]
Draw the background into the rectangle [0, 0, w, h].
function draw(w, h, inset)
Overrides
abguibase.Background.draw()
[Inherited comment]
Draw the background into the rectangle [0, 0, w, h].
Parameters:
w
– the rectangle width.
h
– the rectangle height.
inset
– the content inset
mShell Home
>
Documentation
> mdoc