native_comp

package
v0.0.0-...-59bbd19 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ButtonName = "qt_button"
View Source
const GridCellName = "qt_grid_cell"
View Source
const GridLayoutName = "qt_grid_layout"
View Source
const LabelName = "qt_label"
View Source
const TextInputName = "qt_textinput"
View Source
const WindowName = "qt_window"

Variables

View Source
var AllComponents = make(map[string]func(render QtRender) Widget)

Functions

This section is empty.

Types

type ButtonProps

type ButtonProps struct {
	Label     string
	OnClicked func()
}

type GridCellProps

type GridCellProps struct {
	ChildrenProps
	Row        int
	Column     int
	RowSpan    int
	ColumnSpan int
}

type LabelProps

type LabelProps struct {
	Text string
}

type ParentWidget

type ParentWidget interface {
	AddQtWidget(child widgets.QWidget_ITF)
	RemoveQtWidget(child widgets.QWidget_ITF)
}

type QtRender

type QtRender interface {
	FindFirstContainer(node *NodeData) ParentWidget
}

type TextInputProps

type TextInputProps struct {
	Text          Optional[string]
	IsReadOnly    bool
	OnTextChanged func(string)
}

type Widget

type Widget interface {
	GetName() string

	UpdateElement(node *NodeData)

	OnWidgetCreated(node *NodeData)
	OnWidgetRemoved(node *NodeData)
}

Jump to

Keyboard shortcuts

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