x11driver

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0, BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Overview

Package x11driver provides the X11 driver for accessing a screen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(f func(screen.Screen))

Main is called by the program's main function to run the graphical application.

It calls f on the Screen, possibly in a separate goroutine, as some OS- specific libraries require being on 'the main thread'. It returns when f returns.

Types

type Window

type Window struct {
	event.Deque
	// contains filtered or unexported fields
}

func (*Window) Copy

func (w *Window) Copy(dp image.Point, src screen.Texture, sr image.Rectangle, op draw.Op)

func (*Window) Draw

func (w *Window) Draw(src2dst f64.Aff3, src screen.Texture, sr image.Rectangle, op draw.Op)

func (*Window) DrawUniform

func (w *Window) DrawUniform(src2dst f64.Aff3, src color.Color, sr image.Rectangle, op draw.Op)

func (*Window) Fill

func (w *Window) Fill(dr image.Rectangle, src color.Color, op draw.Op)

func (*Window) GetCursorPosition

func (w *Window) GetCursorPosition() (x, y float64)

func (*Window) HideCursor

func (w *Window) HideCursor() error

func (*Window) MoveWindow

func (w *Window) MoveWindow(x, y, width, height int) error

func (*Window) Publish

func (w *Window) Publish()

func (*Window) Release

func (w *Window) Release()

func (*Window) Scale

func (w *Window) Scale(dr image.Rectangle, src screen.Texture, sr image.Rectangle, op draw.Op)

func (*Window) SetBorderless

func (w *Window) SetBorderless(borderless bool) error

func (*Window) SetFullScreen

func (w *Window) SetFullScreen(fullscreen bool) error

func (*Window) SetIcon

func (w *Window) SetIcon(icon image.Image) error

func (*Window) SetTitle

func (w *Window) SetTitle(title string) error

func (*Window) SetTopMost

func (w *Window) SetTopMost(topMost bool) error

func (*Window) Upload

func (w *Window) Upload(dp image.Point, src screen.Image, sr image.Rectangle)

Jump to

Keyboard shortcuts

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