[][src]Module linfb::shape

Various drawing primitives

Structs

Caption

Shape containing single- or multi-line text. Text will be soft wrapped if max_width is set.

CaptionBuilder

Builder for Caption.

Color

RGBA color used in many places in the library. Alpha channel is [0-255], not [0-1].

FontBuilder

Builder for Font. All methods map to corresponding FontPropertyBuilder methods.

Image

Image shape. Can be created from any file, image crate can parse. Supports transparency

PositionedShape

Shape, positioned for placing onto Compositor

Rectangle

Simplest of all shapes, just a rectangle

RectangleBuilder

Builder for Rectangle.

Enums

Alignment

Text alignment for Caption. Default is Alignment::Left

Traits

Shape

Something you can draw on framebuffer