element

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Origin  gopi.Point
	Size    gopi.Size
	Layer   uint16
	Opacity float32
	Flags   gopi.SurfaceFlags
	Bitmap  bitmap.Bitmap
	Update  rpi.DXUpdate
	Display rpi.DXDisplayHandle
}

type Element

type Element interface {
	// Return element properties
	Origin() gopi.Point
	Size() gopi.Size
	Layer() uint16
	Opacity() float32
	Bitmap() gopi.Bitmap
	Type() gopi.SurfaceFlags

	// Set element properties
	SetOrigin(rpi.DXUpdate, gopi.Point) error
	SetSize(rpi.DXUpdate, gopi.Size) error
	SetLayer(rpi.DXUpdate, uint16) error
	SetOpacity(rpi.DXUpdate, float32) error
	SetBitmap(rpi.DXUpdate, bitmap.Bitmap) error

	// Remove element
	RemoveElement(rpi.DXUpdate) error

	// Implements Unit
	gopi.Unit
}

Jump to

Keyboard shortcuts

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