Documentation
¶
Index ¶
- func AccentColor(colorMode ebiten.ColorMode) color.Color
- func AccentTintColor() color.Color
- func AppendNinePatchVertices(vertices []ebiten.Vertex, indices []uint32, ...) ([]ebiten.Vertex, []uint32)
- func BackgroundColor(colorMode ebiten.ColorMode) color.Color
- func BackgroundColorFromTint(colorMode ebiten.ColorMode, tint color.Color) color.Color
- func BackgroundSecondaryColor(colorMode ebiten.ColorMode) color.Color
- func BorderAccentColors(colorMode ebiten.ColorMode, borderType RoundedRectBorderType) (color.Color, color.Color)
- func BorderAccentSecondaryColors(colorMode ebiten.ColorMode, borderType RoundedRectBorderType) (color.Color, color.Color)
- func BorderColors(colorMode ebiten.ColorMode, borderType RoundedRectBorderType) (color.Color, color.Color)
- func BorderDangerColors(colorMode ebiten.ColorMode) (color.Color, color.Color)
- func ButtonBackgroundColorFromTint(colorMode ebiten.ColorMode, tint color.Color, pressed bool, hovered bool) color.Color
- func CheckableControlBackgroundColor(colorMode ebiten.ColorMode, checked bool, pressed bool, enabled bool) color.Color
- func ContentBackgroundColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func ControlColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func ControlSecondaryColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func DangerTintColor() color.Color
- func DividerColor(colorMode ebiten.ColorMode) color.Color
- func DrawBlurredImage(context *guigui.Context, dst *ebiten.Image, src *ebiten.Image, rate float64)
- func DrawNinePatch(dst *ebiten.Image, bounds image.Rectangle, src *ebiten.Image, ...)
- func DrawNinePatchParts(dst *ebiten.Image, bounds image.Rectangle, src *ebiten.Image, ...)
- func DrawRoundedCorners(dst *ebiten.Image, src *ebiten.Image, bounds image.Rectangle, radius int, ...)
- func DrawRoundedRect(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, ...)
- func DrawRoundedRectBorder(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, ...)
- func DrawRoundedRectBorderWithSharpCorners(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, ...)
- func DrawRoundedRectWithSharpCorners(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, ...)
- func DrawRoundedShadowRect(context *guigui.Context, dst *ebiten.Image, bounds image.Rectangle, ...)
- func EqualColor(c0, c1 color.Color) bool
- func FocusBorderColor(colorMode ebiten.ColorMode) color.Color
- func HeaderSeparatorColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func IconColor(colorMode ebiten.ColorMode) color.Color
- func InfoTintColor() color.Color
- func ItemHighlightedBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func ItemHighlightedTextColor(colorMode ebiten.ColorMode) color.Color
- func ItemHoveredBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func ItemSelectedDisabledBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func ItemSelectedUnfocusedBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func ItemStripeBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func MenuBackgroundColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func MixColors(clr0, clr1 color.Color, rate float64) color.Color
- func OverlapsWithRoundedCorner(bounds image.Rectangle, radius int, srcBounds image.Rectangle) bool
- func OverlayBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func OverlayBorderColor(colorMode ebiten.ColorMode) color.Color
- func PopupBackgroundColor(colorMode ebiten.ColorMode) color.Color
- func PopupBackgroundColorFromTint(colorMode ebiten.ColorMode, tint color.Color) color.Color
- func PopupDarkBackgroundColor(colorMode ebiten.ColorMode, openingRate float64) color.Color
- func PressedButtonBackgroundColor(colorMode ebiten.ColorMode, hovered bool) color.Color
- func PrimaryButtonBackgroundColor(colorMode ebiten.ColorMode, pressed bool, hovered bool) color.Color
- func RadioButtonMarkColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func ScaleAlpha(clr color.Color, alpha float64) color.Color
- func ScrollBarColor(colorMode ebiten.ColorMode) color.Color
- func ShadowColor(colorMode ebiten.ColorMode) color.Color
- func SliderTickColor(colorMode ebiten.ColorMode) color.Color
- func SuccessTintColor() color.Color
- func TextActiveCompositionColor(colorMode ebiten.ColorMode) color.Color
- func TextCaretColor(colorMode ebiten.ColorMode) color.Color
- func TextColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func TextColorFromTint(colorMode ebiten.ColorMode, tint color.Color) color.Color
- func TextInactiveCompositionColor(colorMode ebiten.ColorMode) color.Color
- func TextOnAccentColor(colorMode ebiten.ColorMode) color.Color
- func TextSelectionColor(colorMode ebiten.ColorMode) color.Color
- func ThumbColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func ThumbHoveredColor(colorMode ebiten.ColorMode) color.Color
- func ThumbPressedColor(colorMode ebiten.ColorMode) color.Color
- func TrackColor(colorMode ebiten.ColorMode, on bool, pressed bool) color.Color
- func TrackFillColor(colorMode ebiten.ColorMode, enabled bool) color.Color
- func WarningTintColor() color.Color
- type Corners
- type RoundedRectBorderType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccentTintColor ¶
AccentTintColor returns the tint marking the primary action of the theme.
func AppendNinePatchVertices ¶
func BackgroundColorFromTint ¶
BackgroundColorFromTint returns the background color tinted with tint. A nil tint returns the color for an untinted background.
func BorderAccentColors ¶
func BorderColors ¶
func BorderDangerColors ¶
func ButtonBackgroundColorFromTint ¶
func ButtonBackgroundColorFromTint(colorMode ebiten.ColorMode, tint color.Color, pressed bool, hovered bool) color.Color
ButtonBackgroundColorFromTint returns the background color for a button tinted with tint. A nil tint returns the color for an untinted button.
func ContentBackgroundColor ¶
ContentBackgroundColor returns the color for a surface that holds content, like a list or a text input.
func ControlSecondaryColor ¶
func DangerTintColor ¶
DangerTintColor returns the tint marking a destructive action or an error.
func DrawBlurredImage ¶
func DrawNinePatch ¶
func DrawNinePatchParts ¶
func DrawRoundedCorners ¶
func DrawRoundedRect ¶
func DrawRoundedRectBorder ¶
func DrawRoundedShadowRect ¶
func EqualColor ¶
func HeaderSeparatorColor ¶
func InfoTintColor ¶
InfoTintColor returns the tint marking neutral information.
func MenuBackgroundColor ¶
MenuBackgroundColor returns the color for the surface of a menu.
func PopupBackgroundColorFromTint ¶
PopupBackgroundColorFromTint returns the background color for a popup tinted with tint. A nil tint returns the color for an untinted popup.
func PressedButtonBackgroundColor ¶
PressedButtonBackgroundColor returns the color for a button that is kept pressed.
func RadioButtonMarkColor ¶
func SuccessTintColor ¶
SuccessTintColor returns the tint marking a successful result.
func TextColorFromTint ¶
TextColorFromTint returns the color for text tinted with tint. A nil tint returns the color for enabled text.
func TrackFillColor ¶
TrackFillColor returns the color for the filled part of a track.
func WarningTintColor ¶
WarningTintColor returns the tint marking a condition that needs attention.
Types ¶
type RoundedRectBorderType ¶
type RoundedRectBorderType int
const ( RoundedRectBorderTypeRegular RoundedRectBorderType = iota RoundedRectBorderTypeInset RoundedRectBorderTypeOutset )