objects

package
v0.0.0-...-e22f0ee Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Css

type Css struct {
	Path string
}

Css allows setting the CSS for the parent component

func (*Css) Provider

func (c *Css) Provider() (*gtk.CssProvider, error)

Provider returns GTK CssProvider that can be added to Screen or StyleContext

type Size

type Size struct {
	Width  int
	Height int
}

Size holds Width and Height

type Window

type Window struct {
	Title       string
	Destroy     interface{}
	DefaultSize *Size
	CSS         *Css

	Children []w.Widgetable
	w.Childful
	// contains filtered or unexported fields
}

Window holds a visible window

func (*Window) Create

func (w *Window) Create() error

Create instantiates GTK Window

func (*Window) Open

func (w *Window) Open() error

Open creates the window if needed and shows it contents

Jump to

Keyboard shortcuts

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