sdl

package
v0.0.0-...-67a1e62 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log = log.New("sdl")
)

Functions

This section is empty.

Types

type Window

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

func New

func New(title string, sz image.Point) (*Window, error)

New creates a new SDL window which implements a Seat interface.

func (*Window) Clear

func (win *Window) Clear()

func (*Window) Close

func (win *Window) Close() error

func (*Window) InputTick

func (win *Window) InputTick()

func (*Window) NewSurface

func (win *Window) NewSurface(sz image.Point, filter bool) seat.Surface

func (*Window) OnInput

func (win *Window) OnInput(fnc func(ev seat.InputEvent))

func (*Window) OnScreenResize

func (win *Window) OnScreenResize(fnc func(sz image.Point))

func (*Window) Present

func (win *Window) Present()

func (*Window) ReplaceInputs

func (win *Window) ReplaceInputs(cfg seat.InputConfig) seat.InputConfig

func (*Window) ResizeScreen

func (win *Window) ResizeScreen(sz image.Point)

func (*Window) ScreenMaxSize

func (win *Window) ScreenMaxSize() image.Point

func (*Window) ScreenSize

func (win *Window) ScreenSize() image.Point

func (*Window) SetGamma

func (win *Window) SetGamma(v float32)

SetGamma sets screen gamma parameter.

func (*Window) SetScreenMode

func (win *Window) SetScreenMode(mode seat.ScreenMode)

func (*Window) SetTextInput

func (win *Window) SetTextInput(enable bool)

Jump to

Keyboard shortcuts

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