basicwidgetdraw

package
v0.0.0-...-84adf45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BorderColors

func BorderColors(colorMode guigui.ColorMode, borderType RoundedRectBorderType, accent bool) (color.Color, color.Color)

func ControlColor

func ControlColor(colorMode guigui.ColorMode, enabled bool) color.Color

func DrawRoundedRect

func DrawRoundedRect(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, clr color.Color, radius int)

func DrawRoundedRectBorder

func DrawRoundedRectBorder(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, clr1, clr2 color.Color, radius int, borderWidth float32, borderType RoundedRectBorderType)

func DrawRoundedRectBorderWithSharpCorners

func DrawRoundedRectBorderWithSharpCorners(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, clr1, clr2 color.Color, radius int, borderWidth float32, borderType RoundedRectBorderType, sharpCorners Corners)

func DrawRoundedRectWithSharpCorners

func DrawRoundedRectWithSharpCorners(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, clr color.Color, radius int, sharpCorners Corners)

func SecondaryControlColor

func SecondaryControlColor(colorMode guigui.ColorMode, enabled bool) color.Color

func TextColor

func TextColor(colorMode guigui.ColorMode, enabled bool) color.Color

func ThumbColor

func ThumbColor(colorMode guigui.ColorMode, enabled bool) color.Color

Types

type Corners

type Corners struct {
	TopStart    bool
	TopEnd      bool
	BottomStart bool
	BottomEnd   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL