Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) Cursor(r rect.Rect, cursor font.Cursor)
- func (b *Buffer) DrawImage(r rect.Rect, img *image.RGBA)
- func (b *Buffer) DrawText(r rect.Rect, str string, face font.Face, fg color.RGBA)
- func (b *Buffer) FillCircle(r rect.Rect, c color.RGBA)
- func (b *Buffer) FillRect(rect rect.Rect, rounding uint16, c color.RGBA)
- func (b *Buffer) FillTriangle(p0, p1, p2 image.Point, c color.RGBA)
- func (b *Buffer) PushScissor(r rect.Rect)
- func (buffer *Buffer) Reset()
- func (b *Buffer) StrokeLine(p0, p1 image.Point, line_thickness int, c color.RGBA)
- type CircleFilled
- type Command
- type CommandKind
- type Image
- type Line
- type RectFilled
- type Text
- type TriangleFilled
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
CommandBuffer is a list of drawing directives.
func (*Buffer) PushScissor ¶
type CircleFilled ¶
type Command ¶
type Command struct { rect.Rect Kind CommandKind Line Line RectFilled RectFilled TriangleFilled TriangleFilled CircleFilled CircleFilled Image Image Text Text Cursor font.Cursor }
Represents one drawing directive.
type CommandKind ¶
type CommandKind uint8
const ( ScissorCmd CommandKind = iota LineCmd RectFilledCmd TriangleFilledCmd CircleFilledCmd ImageCmd TextCmd CursorCmd )
type RectFilled ¶
Click to show internal directories.
Click to hide internal directories.