IndexModule 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)
Overridesabguibase.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)
Overridesabguibase.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