basic

package
v0.0.0-...-311b70d Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

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

func (*Button) Paint

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

type Style

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

func CreateStyle

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

type Theme

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

	WindowBackground tools.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) CreateButton

func (t *Theme) CreateButton() framework.Button
func (t *Theme) CreateBubbleOverlay() framework.BubbleOverlay {
	return CreateBubbleOverlay(t)
}

func (*Theme) CreateLabel

func (t *Theme) CreateLabel() framework.Label
func (t *Theme) CreateDropDownList() framework.DropDownList {
	return CreateDropDownList(t)
}
func (t *Theme) CreateImage() framework.Image {
	return CreateImage(t)
}

func (*Theme) CreateWindow

func (t *Theme) CreateWindow(width, height int, title string) framework.Window
func (t *Theme) CreateLinearLayout() framework.LinearLayout {
	return CreateLinearLayout(t)
}
func (t *Theme) CreateList() framework.List {
	return CreateList(t)
}
func (t *Theme) CreatePanelHolder() framework.PanelHolder {
	return CreatePanelHolder(t)
}
func (t *Theme) CreateProgressBar() framework.ProgressBar {
	return CreateProgressBar(t)
}
func (t *Theme) CreateScrollBar() framework.ScrollBar {
	return CreateScrollBar(t)
}
func (t *Theme) CreateScrollLayout() framework.ScrollLayout {
	return CreateScrollLayout(t)
}
func (t *Theme) CreateSplitterLayout() framework.SplitterLayout {
	return CreateSplitterLayout(t)
}
func (t *Theme) CreateTableLayout() framework.TableLayout {
	return CreateTableLayout(t)
}
func (t *Theme) CreateTextBox() framework.TextBox {
	return CreateTextBox(t)
}
func (t *Theme) CreateTree() framework.Tree {
	return CreateTree(t)
}

func (*Theme) DefaultFont

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

func (*Theme) DefaultMonospaceFont

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

func (*Theme) Driver

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

framework.Theme compliance

func (*Theme) SetDefaultFont

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

func (*Theme) SetDefaultMonospaceFont

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

Jump to

Keyboard shortcuts

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