widgets

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Orientation gtk.Orientation
	Spacing     int
	Children    []Widgetable
	Childful
}

Box is a representation of GTK's GtkBox

func (*Box) Widget

func (b *Box) Widget() (gtk.IWidget, error)

Widget returns GTK's IWidget representation of the Box component

type Button

type Button struct {
	Label   string
	Clicked interface{}
}

Button is a representation of GTK's GtkButton

func (*Button) Widget

func (b *Button) Widget() (gtk.IWidget, error)

Widget returns GTK's IWidget representation of the Button component

type Childful

type Childful struct {
}

Childful is a component that can own children

func (*Childful) AddChildrenToParent

func (c *Childful) AddChildrenToParent(parent *gtk.Container, children *[]Widgetable) error

AddChildrenToParent adds passed children to the parent container

type Label

type Label struct {
	Text interface{}
}

Label is a representation of GTK's GtkLabel

func (*Label) Widget

func (l *Label) Widget() (gtk.IWidget, error)

Widget returns GTK's IWidget representation of the Label component

type Widgetable

type Widgetable interface {
	Widget() (gtk.IWidget, error)
}

Widgetable allows component to be represented as GTK Widget

Jump to

Keyboard shortcuts

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