window

package
v0.0.0-...-efe4bef Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetHints

func SetHints()

Types

type Window

type Window struct {
	RefreshRate *time.Ticker

	*backend.Backend
	*glfw.Window
}

func New

func New(width, height int, title string) (window *Window, err error)

func (*Window) Close

func (wnd *Window) Close()

func (*Window) GetBackend

func (wnd *Window) GetBackend() backend.Backend

func (*Window) GetMonitorRefreshRate

func (wnd *Window) GetMonitorRefreshRate() *time.Ticker

func (*Window) GetOpacity

func (wnd *Window) GetOpacity() float32

func (*Window) GetPosition

func (wnd *Window) GetPosition() (x, y int)

func (*Window) GetRefreshRate

func (wnd *Window) GetRefreshRate() *time.Ticker

func (*Window) GetSize

func (wnd *Window) GetSize() (w, h int)

func (*Window) Hide

func (wnd *Window) Hide()

func (*Window) New

func (wnd *Window) New(width, height int, title string) (err error)

func (*Window) Render

func (wnd *Window) Render()

func (*Window) SetAttributes

func (wnd *Window) SetAttributes(attributes window.Attributes)

func (*Window) SetBounds

func (wnd *Window) SetBounds(x, y, w, h int)

func (*Window) SetOpacity

func (wnd *Window) SetOpacity(opacity float32)

func (*Window) SetPosition

func (wnd *Window) SetPosition(x, y int)

func (*Window) SetRefreshRate

func (wnd *Window) SetRefreshRate(refreshRate time.Duration)

func (*Window) SetSize

func (wnd *Window) SetSize(w, h int)

func (*Window) SetSwapInterval

func (wnd *Window) SetSwapInterval(interval int)

func (*Window) Show

func (wnd *Window) Show()

Jump to

Keyboard shortcuts

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