Documentation ¶
Index ¶
- func ColorTexture(ops *op.Ops, c color.NRGBA) op.CallOp
- func Group(ops *op.Ops, do func()) op.CallOp
- type BorderStroke
- type BorderStrokeSetter
- type Clip
- type ContentScale
- type ContentScaleSetter
- type CornerRadiusGetter
- type CornerRadiusSetter
- type CornerRadiusValues
- type Fill
- type FillSetter
- type Rect
- func (r *Rect) Eq(v *Rect) cmp.Result
- func (r *Rect) Equals(v any) cmp.Result
- func (r *Rect) Path(gtx layout.Context, positions ...position.Position) *canvas.Path
- func (r *Rect) Rectangle(gtx layout.Context) image.Rectangle
- func (r *Rect) SetSize(dp unit.Dp, types ...size.Type)
- func (r *Rect) Sized(t size.Type) size.SizingType
- type RoundedRect
- type Shadow
- type ShadowSetter
- type Shape
- type SizeSetter
- type SizedChecker
- type SizedShape
- type StrokeStyle
- type StrokeStyleWithPosition
- type Visibility
- type VisibleSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BorderStroke ¶
type BorderStroke struct { Top StrokeStyle Right StrokeStyle Bottom StrokeStyle Left StrokeStyle }
func (*BorderStroke) Eq ¶
func (f *BorderStroke) Eq(v *BorderStroke) cmp.Result
func (*BorderStroke) PaintShape ¶
func (f *BorderStroke) PaintShape(gtx layout.Context, s SizedShape)
func (*BorderStroke) SetBorderStroke ¶
func (f *BorderStroke) SetBorderStroke(styles ...StrokeStyleWithPosition)
type BorderStrokeSetter ¶
type BorderStrokeSetter interface {
SetBorderStroke(styles ...StrokeStyleWithPosition)
}
type Clip ¶
func ClipOutlineOf ¶
type ContentScale ¶
type ContentScale struct {
// contains filtered or unexported fields
}
func (*ContentScale) SetContentScale ¶
func (s *ContentScale) SetContentScale(scale contentscale.ContentScale)
type ContentScaleSetter ¶
type ContentScaleSetter interface {
SetContentScale(scale contentscale.ContentScale)
}
type CornerRadiusGetter ¶
type CornerRadiusGetter interface {
CornerRadius() CornerRadiusValues
}
type CornerRadiusSetter ¶
type CornerRadiusValues ¶
type CornerRadiusValues struct { TopLeft unit.Dp TopRight unit.Dp BottomLeft unit.Dp BottomRight unit.Dp }
func (CornerRadiusValues) CornerRadius ¶
func (r CornerRadiusValues) CornerRadius() CornerRadiusValues
func (*CornerRadiusValues) Eq ¶
func (f *CornerRadiusValues) Eq(v *CornerRadiusValues) cmp.Result
func (*CornerRadiusValues) SetCornerRadius ¶
func (r *CornerRadiusValues) SetCornerRadius(dp unit.Dp, positions ...position.Position)
type Fill ¶
func (*Fill) Transparent ¶
type FillSetter ¶
type RoundedRect ¶
type RoundedRect struct { *Rect CornerRadiusValues }
func NewRoundedRect ¶
func NewRoundedRect() *RoundedRect
func (*RoundedRect) Eq ¶
func (r *RoundedRect) Eq(v *RoundedRect) cmp.Result
type ShadowSetter ¶
type SizedChecker ¶
type SizedChecker interface {
Sized(typ size.Type) size.SizingType
}
type SizedShape ¶
type SizedShape interface { Shape SizeSetter SizedChecker }
type StrokeStyleWithPosition ¶
type StrokeStyleWithPosition struct { Position position.Position StrokeStyle }
type Visibility ¶
type Visibility struct {
Visible bool
}
func (*Visibility) SetVisible ¶
func (v *Visibility) SetVisible(visible bool)
type VisibleSetter ¶
type VisibleSetter interface {
SetVisible(visible bool)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.