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
Name | Description |
---|---|
imageCache()
|
Image cache singleton |
Classes
Name | Description |
---|---|
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
Name | Description |
---|---|
BgPosition
|
|
BgSize
|
|
Border
|
Box border description |
BorderRadii
|
8 border radii in device-independent pixels |
BorderSide
|
|
RepeatStyle
|
Tiling options for both image axes |
Enums
Name | Description |
---|---|
BgSizeType
|
|
BorderStyle
|
|
BoxType
|
|
Tiling
|
Tiling options for one image axis |
Aliases
Name | Type | Description |
---|---|---|
DrawableRef
|
Ref!(beamui.graphics.drawables.Drawable)
|