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 (*FrameWindow) SetBlink ¶
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.
Click to show internal directories.
Click to hide internal directories.