basic

package
v0.0.0-...-f85e0a9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2015 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blue30 = gxui.Color{R: 0.0, G: 0.0, B: 0.3, A: 1.0}

Functions

func CreateBubbleOverlay

func CreateBubbleOverlay(theme *Theme) gxui.BubbleOverlay

func CreateButton

func CreateButton(theme *Theme) gxui.Button

func CreateCodeEditor

func CreateCodeEditor(theme *Theme) gxui.CodeEditor

func CreateDropDownList

func CreateDropDownList(theme *Theme) gxui.DropDownList

func CreateImage

func CreateImage(theme *Theme) gxui.Image

func CreateLabel

func CreateLabel(theme *Theme) gxui.Label

func CreateLinearLayout

func CreateLinearLayout(theme *Theme) gxui.LinearLayout

func CreateList

func CreateList(theme *Theme) gxui.List

func CreatePanelHolder

func CreatePanelHolder(theme *Theme) gxui.PanelHolder

func CreatePanelTab

func CreatePanelTab(theme *Theme) mixins.PanelTab

func CreateProgressBar

func CreateProgressBar(theme *Theme) gxui.ProgressBar

func CreateScrollBar

func CreateScrollBar(theme *Theme) gxui.ScrollBar

func CreateScrollLayout

func CreateScrollLayout(theme *Theme) gxui.ScrollLayout

func CreateSplitterLayout

func CreateSplitterLayout(theme *Theme) gxui.SplitterLayout

func CreateTableLayout

func CreateTableLayout(theme *Theme) gxui.TableLayout

func CreateTextBox

func CreateTextBox(theme *Theme) gxui.TextBox

func CreateTree

func CreateTree(theme *Theme) gxui.Tree

func CreateWindow

func CreateWindow(theme *Theme, width, height int, title string) gxui.Window

Types

type BubbleOverlay

type BubbleOverlay struct {
	mixins.BubbleOverlay
	// contains filtered or unexported fields
}

type Button

type Button struct {
	mixins.Button
	// contains filtered or unexported fields
}

func (*Button) Paint

func (b *Button) Paint(c gxui.Canvas)

Button internal overrides

type CodeEditor

type CodeEditor struct {
	mixins.CodeEditor
	// contains filtered or unexported fields
}

func (*CodeEditor) CreateSuggestionList

func (t *CodeEditor) CreateSuggestionList() gxui.List

func (*CodeEditor) Paint

func (t *CodeEditor) Paint(c gxui.Canvas)

mixins.CodeEditor overrides

type DropDownList struct {
	mixins.DropDownList
	// contains filtered or unexported fields
}
func (l *DropDownList) DrawSelection(c gxui.Canvas, r math.Rect)
func (l *DropDownList) Paint(c gxui.Canvas)

mixin.List overrides

type List

type List struct {
	mixins.List
	// contains filtered or unexported fields
}

func (*List) Paint

func (l *List) Paint(c gxui.Canvas)

mixin.List overrides

func (*List) PaintMouseOverBackground

func (l *List) PaintMouseOverBackground(c gxui.Canvas, r math.Rect)

func (*List) PaintSelection

func (l *List) PaintSelection(c gxui.Canvas, r math.Rect)

type PanelHolder

type PanelHolder struct {
	mixins.PanelHolder
	// contains filtered or unexported fields
}

func (*PanelHolder) CreatePanelTab

func (p *PanelHolder) CreatePanelTab() mixins.PanelTab

func (*PanelHolder) Paint

func (p *PanelHolder) Paint(c gxui.Canvas)

type PanelTab

type PanelTab struct {
	mixins.Button
	// contains filtered or unexported fields
}

func (*PanelTab) Paint

func (t *PanelTab) Paint(c gxui.Canvas)

func (*PanelTab) SetActive

func (t *PanelTab) SetActive(active bool)

type ProgressBar

type ProgressBar struct {
	mixins.ProgressBar
	// contains filtered or unexported fields
}

func (*ProgressBar) PaintProgress

func (b *ProgressBar) PaintProgress(c gxui.Canvas, r math.Rect, frac float32)

func (*ProgressBar) SetSize

func (b *ProgressBar) SetSize(size math.Size)

type ScrollBar

type ScrollBar struct {
	mixins.ScrollBar
}

type SplitterLayout

type SplitterLayout struct {
	mixins.SplitterLayout
	// contains filtered or unexported fields
}

func (*SplitterLayout) CreateSplitterBar

func (l *SplitterLayout) CreateSplitterBar() gxui.Control

mixins.SplitterLayout overrides

type Style

type Style struct {
	FontColor gxui.Color
	Brush     gxui.Brush
	Pen       gxui.Pen
}

func CreateStyle

func CreateStyle(fontColor, brushColor, penColor gxui.Color, penWidth float32) Style

type TextBox

type TextBox struct {
	mixins.TextBox
	// contains filtered or unexported fields
}

func (*TextBox) Paint

func (t *TextBox) Paint(c gxui.Canvas)

mixins.TextBox overrides

type Theme

type Theme struct {
	DriverInfo               gxui.Driver
	DefaultFontInfo          gxui.Font
	DefaultMonospaceFontInfo gxui.Font

	WindowBackground gxui.Color

	BubbleOverlayStyle        Style
	ButtonDefaultStyle        Style
	ButtonOverStyle           Style
	ButtonPressedStyle        Style
	CodeSuggestionListStyle   Style
	DropDownListDefaultStyle  Style
	DropDownListOverStyle     Style
	FocusedStyle              Style
	HighlightStyle            Style
	LabelStyle                Style
	PanelBackgroundStyle      Style
	ScrollBarBarDefaultStyle  Style
	ScrollBarBarOverStyle     Style
	ScrollBarRailDefaultStyle Style
	ScrollBarRailOverStyle    Style
	SplitterBarDefaultStyle   Style
	SplitterBarOverStyle      Style
	TabActiveHighlightStyle   Style
	TabDefaultStyle           Style
	TabOverStyle              Style
	TabPressedStyle           Style
	TextBoxDefaultStyle       Style
	TextBoxOverStyle          Style
}

func (*Theme) CreateBubbleOverlay

func (t *Theme) CreateBubbleOverlay() gxui.BubbleOverlay

func (*Theme) CreateButton

func (t *Theme) CreateButton() gxui.Button

func (*Theme) CreateCodeEditor

func (t *Theme) CreateCodeEditor() gxui.CodeEditor

func (*Theme) CreateDropDownList

func (t *Theme) CreateDropDownList() gxui.DropDownList

func (*Theme) CreateImage

func (t *Theme) CreateImage() gxui.Image

func (*Theme) CreateLabel

func (t *Theme) CreateLabel() gxui.Label

func (*Theme) CreateLinearLayout

func (t *Theme) CreateLinearLayout() gxui.LinearLayout

func (*Theme) CreateList

func (t *Theme) CreateList() gxui.List

func (*Theme) CreatePanelHolder

func (t *Theme) CreatePanelHolder() gxui.PanelHolder

func (*Theme) CreateProgressBar

func (t *Theme) CreateProgressBar() gxui.ProgressBar

func (*Theme) CreateScrollBar

func (t *Theme) CreateScrollBar() gxui.ScrollBar

func (*Theme) CreateScrollLayout

func (t *Theme) CreateScrollLayout() gxui.ScrollLayout

func (*Theme) CreateSplitterLayout

func (t *Theme) CreateSplitterLayout() gxui.SplitterLayout

func (*Theme) CreateTableLayout

func (t *Theme) CreateTableLayout() gxui.TableLayout

func (*Theme) CreateTextBox

func (t *Theme) CreateTextBox() gxui.TextBox

func (*Theme) CreateTree

func (t *Theme) CreateTree() gxui.Tree

func (*Theme) CreateWindow

func (t *Theme) CreateWindow(width, height int, title string) gxui.Window

func (*Theme) DefaultFont

func (t *Theme) DefaultFont() gxui.Font

func (*Theme) DefaultMonospaceFont

func (t *Theme) DefaultMonospaceFont() gxui.Font

func (*Theme) Driver

func (t *Theme) Driver() gxui.Driver

gxui.Theme compliance

func (*Theme) SetDefaultFont

func (t *Theme) SetDefaultFont(f gxui.Font)

func (*Theme) SetDefaultMonospaceFont

func (t *Theme) SetDefaultMonospaceFont(f gxui.Font)

type Tree

type Tree struct {
	mixins.Tree
	// contains filtered or unexported fields
}

func (*Tree) Paint

func (t *Tree) Paint(c gxui.Canvas)

mixins.Tree overrides

func (*Tree) PaintMouseOverBackground

func (t *Tree) PaintMouseOverBackground(c gxui.Canvas, r math.Rect)

func (*Tree) PaintSelection

func (l *Tree) PaintSelection(c gxui.Canvas, r math.Rect)

mixins.List overrides

type Window

type Window struct {
	mixins.Window
}

Jump to

Keyboard shortcuts

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