Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

func (*Input) CursorPosition

func (i *Input) CursorPosition() (x, y int)

func (*Input) GamepadAxis

func (i *Input) GamepadAxis(id driver.GamepadID, axis int) float64

func (*Input) GamepadAxisNum

func (i *Input) GamepadAxisNum(id driver.GamepadID) int

func (*Input) GamepadButtonNum

func (i *Input) GamepadButtonNum(id driver.GamepadID) int

func (*Input) GamepadIDs

func (i *Input) GamepadIDs() []driver.GamepadID

func (*Input) GamepadName

func (i *Input) GamepadName(id driver.GamepadID) string

func (*Input) GamepadSDLID

func (i *Input) GamepadSDLID(id driver.GamepadID) string

func (*Input) IsGamepadButtonPressed

func (i *Input) IsGamepadButtonPressed(id driver.GamepadID, button driver.GamepadButton) bool

func (*Input) IsKeyPressed

func (i *Input) IsKeyPressed(key driver.Key) bool

func (*Input) IsMouseButtonPressed

func (i *Input) IsMouseButtonPressed(button driver.MouseButton) bool

func (*Input) RuneBuffer

func (i *Input) RuneBuffer() []rune

func (*Input) TouchIDs

func (i *Input) TouchIDs() []driver.TouchID

func (*Input) TouchPosition

func (i *Input) TouchPosition(id driver.TouchID) (x, y int)

func (*Input) Wheel

func (i *Input) Wheel() (xoff, yoff float64)

type UserInterface

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

func Get

func Get() *UserInterface

func (*UserInterface) CursorMode

func (u *UserInterface) CursorMode() driver.CursorMode

func (*UserInterface) DeviceScaleFactor

func (u *UserInterface) DeviceScaleFactor() float64

func (*UserInterface) Graphics

func (*UserInterface) Graphics() driver.Graphics

func (*UserInterface) Input

func (u *UserInterface) Input() driver.Input

func (*UserInterface) IsFocused

func (u *UserInterface) IsFocused() bool

func (*UserInterface) IsFullscreen

func (u *UserInterface) IsFullscreen() bool

func (*UserInterface) IsRunnableOnUnfocused

func (u *UserInterface) IsRunnableOnUnfocused() bool

func (*UserInterface) IsScreenTransparent

func (u *UserInterface) IsScreenTransparent() bool

func (*UserInterface) IsVsyncEnabled

func (u *UserInterface) IsVsyncEnabled() bool

func (*UserInterface) MonitorPosition

func (u *UserInterface) MonitorPosition() (int, int)

func (*UserInterface) ResetForFrame

func (u *UserInterface) ResetForFrame()

func (*UserInterface) Run

func (u *UserInterface) Run(uicontext driver.UIContext) error

func (*UserInterface) RunWithoutMainLoop

func (u *UserInterface) RunWithoutMainLoop(context driver.UIContext)

func (*UserInterface) ScreenSizeInFullscreen

func (u *UserInterface) ScreenSizeInFullscreen() (int, int)

func (*UserInterface) SetCursorMode

func (u *UserInterface) SetCursorMode(mode driver.CursorMode)

func (*UserInterface) SetFullscreen

func (u *UserInterface) SetFullscreen(fullscreen bool)

func (*UserInterface) SetInitFocused

func (u *UserInterface) SetInitFocused(focused bool)

func (*UserInterface) SetRunnableOnUnfocused

func (u *UserInterface) SetRunnableOnUnfocused(runnableOnUnfocused bool)

func (*UserInterface) SetScreenTransparent

func (u *UserInterface) SetScreenTransparent(transparent bool)

func (*UserInterface) SetVsyncEnabled

func (u *UserInterface) SetVsyncEnabled(enabled bool)

func (*UserInterface) Window

func (u *UserInterface) Window() driver.Window