Struct iui::draw::DrawContext[][src]

pub struct DrawContext { /* fields omitted */ }

Drawing context, used to draw custom content on the screen.

Methods

impl DrawContext
[src]

Create a Context from a ui_draw_context pointer.

Unsafety

If the pointer is invalid, this is memory-unsafe. If libui is not initialized, behavior will be inconsistent.

Draw a stroke on this DrawContext which runs along the given Path, with the given Brush and StrokeParams.

Draw a fill on this DrawContext using the given Path using the given Brush.

Transform this DrawContext by the given Transform.

Open a modal allowing the user to save the contents of this DrawContext.

Open a modal allowing the user to load the contents of a DrawContext onto this one.

Auto Trait Implementations

impl !Send for DrawContext

impl !Sync for DrawContext