easyx

package module
v0.0.0-...-490d257 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

package easyx provides a simplified interface to package xgbutil

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WindowWrapper

type WindowWrapper struct {
	XImage *xgraphics.Image
	Window *xwindow.Window
	X      *xgbutil.XUtil
}

func NewWindow

func NewWindow(WindowTitle string, WindowContents image.Image) WindowWrapper

func (WindowWrapper) AddKeyBinding

func (ww WindowWrapper) AddKeyBinding(key string, function func())

func (WindowWrapper) OnMouseButtonPressed

func (ww WindowWrapper) OnMouseButtonPressed(buttonNo string, function func(ev xevent.ButtonPressEvent))

func (WindowWrapper) Redraw

func (ww WindowWrapper) Redraw()

func (WindowWrapper) RedrawFromImage

func (ww WindowWrapper) RedrawFromImage(img image.Image)

RedrawFromImage draws img to XImage, then redraws the screen

func (WindowWrapper) RedrawRegion

func (ww WindowWrapper) RedrawRegion(region image.Rectangle)

func (WindowWrapper) RedrawRegionFromImage

func (ww WindowWrapper) RedrawRegionFromImage(img image.Image, region image.Rectangle)

Jump to

Keyboard shortcuts

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