basicwidgetdraw

package
v0.0.0-...-e543031 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundColor

func BackgroundColor(colorMode ebiten.ColorMode) color.Color

func BackgroundSecondaryColor

func BackgroundSecondaryColor(colorMode ebiten.ColorMode) color.Color

func BorderAccentColors

func BorderAccentColors(colorMode ebiten.ColorMode, borderType RoundedRectBorderType) (color.Color, color.Color)

func BorderAccentSecondaryColors

func BorderAccentSecondaryColors(colorMode ebiten.ColorMode, borderType RoundedRectBorderType) (color.Color, color.Color)

func BorderColors

func BorderColors(colorMode ebiten.ColorMode, borderType RoundedRectBorderType) (color.Color, color.Color)

func ControlColor

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

func ControlSecondaryColor

func ControlSecondaryColor(colorMode ebiten.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 TextColor

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

func ThumbColor

func ThumbColor(colorMode ebiten.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