basicwidgetdraw

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 5 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 BorderDangerColors

func BorderDangerColors(colorMode ebiten.ColorMode) (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 PopupBackgroundColor

func PopupBackgroundColor(colorMode ebiten.ColorMode) color.Color

func TextActiveCompositionColor

func TextActiveCompositionColor(colorMode ebiten.ColorMode) color.Color

func TextColor

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

func TextColorFromTint

func TextColorFromTint(colorMode ebiten.ColorMode, tint color.Color) color.Color

func TextInactiveCompositionColor

func TextInactiveCompositionColor(colorMode ebiten.ColorMode) color.Color

func TextSelectionColor

func TextSelectionColor(colorMode ebiten.ColorMode) 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