Module beamui.graphics.drawables

Drawables and widget background.

imageCache is RAM cache of decoded images (as Bitmap).

Supports nine-patch PNG images in .9.png files (like in Android).

Import line

import beamui.graphics.drawables;

Functions

NameDescription
imageCache() Image cache singleton

Classes

NameDescription
Background Standard widget background. It paints before any content of an element.
BoxShadowDrawable Box shadows drawable, can be blurred
Drawable Base abstract class for all drawables
EmptyDrawable
GradientDrawable
ImageCache Decoded raster images cache - access by filenames
ImageDrawable Drawable which just draws images
Overlay Standard widget overlay. It paints after any content of an element.
SolidFillDrawable

Structs

NameDescription
BgPosition
BgSize
Border Box border description
BorderRadii 8 border radii in device-independent pixels
BorderSide
RepeatStyle Tiling options for both image axes

Enums

NameDescription
BgSizeType
BorderStyle
BoxType
Tiling Tiling options for one image axis

Aliases

NameTypeDescription
DrawableRef Ref!(beamui.graphics.drawables.Drawable)