ui

package
v0.0.0-...-b720342 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameWindow

type FrameWindow struct {
	// contains filtered or unexported fields
}

FrameWindow is a struct to draw a window with frame.

func NewFrameWindow

func NewFrameWindow(x, y, width, height, frameWidth int) (*FrameWindow, error)

NewFrameWindow returns a FrameWindow.

The width and height are used for the inner region excluding the frame. If 0 is set to the frameWidth, the frame will not be drawn.

func (*FrameWindow) DrawWindow

func (w *FrameWindow) DrawWindow(screen *ebiten.Image)

DrawWindow draws this window.

func (*FrameWindow) GetWindowRect

func (w *FrameWindow) GetWindowRect() image.Rectangle

GetWindowRect returns the rectangle of this window.

func (w *FrameWindow) SetBlink(enableBlink bool)

SetBlink sets the flag to blink the frame.

func (*FrameWindow) SetColors

func (w *FrameWindow) SetColors(inner, frameDark, frameLight color.RGBA)

SetColors sets the colors of the window's inner region and the frame's normal color. If you need to blink the frame, please use the SetBlinkFrame method.

Jump to

Keyboard shortcuts

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