Std.Ui.Canvas
24 public declarations
- canvas
Int -> Int -> Std.Ui.Canvas.Color -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Canvas.CanvasError]A canvas with the default 16,777,216-pixel allocation budget.
- Canvas
A bounded display list waiting to be rendered.
- CanvasError
Why a canvas or drawing command could not be admitted.
- canvasWithin
Int -> Int -> Std.Ui.Canvas.Color -> Int -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Canvas.CanvasError]A canvas whose maximum pixel allocation is stated by the caller.
- canvasWithinLimits
Int -> Int -> Std.Ui.Canvas.Color -> Int -> Int -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Canvas.CanvasError]A canvas with explicit pixel-allocation and display-list bounds.
- Color
A straight-alpha red, green, blue, and alpha color.
- Command
One rectangle operation in the flat display list.
- commandCount
&Std.Ui.Canvas.Canvas -> IntHow many drawing commands the canvas holds.
- dimensions
&Std.Ui.Canvas.Canvas -> Std.Ui.Canvas.SizeThe logical dimensions of a canvas.
- fill
&Std.Ui.Canvas.Canvas -> Std.Ui.Canvas.Rect -> Std.Ui.Canvas.Color -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Canvas.CanvasError]The canvas after filling a rectangle.
- pixelAt
&Std.Ui.Canvas.Surface -> Std.Ui.Canvas.Point -> Result[Option[Std.Ui.Canvas.Color], Std.Ui.Canvas.CanvasError]The color of one pixel, or nothing outside the surface.
- point
Int -> Int -> Std.Ui.Canvas.PointA point value.
- Point
A logical point in the canvas coordinate space.
- rect
Int -> Int -> Int -> Int -> Std.Ui.Canvas.RectA rectangle value.
- Rect
A half-open rectangle: left and top are included; right and bottom are not.
- render
&Std.Ui.Canvas.Canvas -> Result[Std.Ui.Canvas.Surface, Std.Ui.Canvas.CanvasError]Render the display list into an opaque row-major RGBA framebuffer.
- repaint
&Std.Ui.Canvas.Canvas -> &Std.Ui.Canvas.Surface -> &Array[Std.Ui.Canvas.Rect] -> Result[Std.Ui.Canvas.Surface, Std.Ui.Canvas.CanvasError]A surface with regions brought up to date with the display list.
- rgb
UInt8 -> UInt8 -> UInt8 -> Std.Ui.Canvas.ColorAn opaque RGB color value.
- rgba
UInt8 -> UInt8 -> UInt8 -> UInt8 -> Std.Ui.Canvas.ColorAn RGBA color value.
- rgbaBytes
&Std.Ui.Canvas.Surface -> Result[Bytes, Std.Ui.Canvas.CanvasError]The exact row-major RGBA bytes of a rendered surface.
- size
Int -> Int -> Std.Ui.Canvas.SizeA size value.
- Size
A logical two-dimensional size.
- Surface
A row-major RGBA framebuffer produced opaque by `render`.
- surfaceSize
&Std.Ui.Canvas.Surface -> Result[Std.Ui.Canvas.Size, Std.Ui.Canvas.CanvasError]The logical dimensions of a rendered surface.
