gtki

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: GPL-3.0, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAboutDialog

func AssertAboutDialog(_ AboutDialog)

func AssertAccelGroup

func AssertAccelGroup(_ AccelGroup)

func AssertAdjustment

func AssertAdjustment(_ Adjustment)

func AssertApplication

func AssertApplication(_ Application)

func AssertApplicationWindow

func AssertApplicationWindow(_ ApplicationWindow)

func AssertAssistant added in v0.3.7

func AssertAssistant(_ Assistant)

func AssertBox

func AssertBox(_ Box)

func AssertBuilder

func AssertBuilder(_ Builder)

func AssertButton

func AssertButton(_ Button)

func AssertCellLayout

func AssertCellLayout(_ CellLayout)

func AssertCellRenderer

func AssertCellRenderer(_ CellRenderer)

func AssertCellRendererText

func AssertCellRendererText(_ CellRendererText)

func AssertCellRendererToggle

func AssertCellRendererToggle(_ CellRendererToggle)

func AssertCheckButton

func AssertCheckButton(_ CheckButton)

func AssertCheckMenuItem

func AssertCheckMenuItem(_ CheckMenuItem)

func AssertComboBox

func AssertComboBox(_ ComboBox)

func AssertComboBoxText

func AssertComboBoxText(_ ComboBoxText)

func AssertCssProvider

func AssertCssProvider(_ CssProvider)

func AssertDialog

func AssertDialog(_ Dialog)

func AssertEditable

func AssertEditable(_ Editable)

func AssertEntry

func AssertEntry(_ Entry)

func AssertFileChooser

func AssertFileChooser(_ FileChooser)

func AssertFileChooserDialog

func AssertFileChooserDialog(_ FileChooserDialog)

func AssertGrid

func AssertGrid(_ Grid)

func AssertGtk

func AssertGtk(_ Gtk)

func AssertHeaderBar

func AssertHeaderBar(_ HeaderBar)

func AssertInfoBar

func AssertInfoBar(_ InfoBar)

func AssertLabel

func AssertLabel(_ Label)

func AssertListStore

func AssertListStore(_ ListStore)

func AssertMenu

func AssertMenu(_ Menu)

func AssertMenuBar

func AssertMenuBar(_ MenuBar)

func AssertMenuItem

func AssertMenuItem(_ MenuItem)

func AssertMenuShell

func AssertMenuShell(_ MenuShell)

func AssertMessageDialog

func AssertMessageDialog(_ MessageDialog)

func AssertNotebook

func AssertNotebook(_ Notebook)

func AssertRevealer

func AssertRevealer(_ Revealer)

func AssertScrolledWindow

func AssertScrolledWindow(_ ScrolledWindow)

func AssertSeparatorMenuItem

func AssertSeparatorMenuItem(_ SeparatorMenuItem)

func AssertSettings added in v0.3.2

func AssertSettings(_ Settings)

func AssertSpinButton added in v0.3.3

func AssertSpinButton(_ SpinButton)

func AssertStyleContext

func AssertStyleContext(_ StyleContext)

func AssertStyleProvider

func AssertStyleProvider(_ StyleProvider)

func AssertTextBuffer

func AssertTextBuffer(_ TextBuffer)

func AssertTextIter

func AssertTextIter(_ TextIter)

func AssertTextMark

func AssertTextMark(_ TextMark)

func AssertTextTag

func AssertTextTag(_ TextTag)

func AssertTextTagTable

func AssertTextTagTable(_ TextTagTable)

func AssertTextView

func AssertTextView(_ TextView)

func AssertToggleButton

func AssertToggleButton(_ ToggleButton)

func AssertTreeIter

func AssertTreeIter(_ TreeIter)

func AssertTreeModel

func AssertTreeModel(_ TreeModel)

func AssertTreePath

func AssertTreePath(_ TreePath)

func AssertTreeSelection

func AssertTreeSelection(_ TreeSelection)

func AssertTreeStore

func AssertTreeStore(_ TreeStore)

func AssertTreeView

func AssertTreeView(_ TreeView)

func AssertTreeViewColumn

func AssertTreeViewColumn(_ TreeViewColumn)

func AssertWidget

func AssertWidget(_ Widget)

func AssertWindow

func AssertWindow(_ Window)

Types

type AboutDialog

type AboutDialog interface {
	Dialog

	SetAuthors([]string)
	SetProgramName(string)
	SetVersion(string)
	SetLicense(string)
	SetWrapLicense(bool)
}

type AccelFlags

type AccelFlags int

AccelFlags is a representation of GTK's GtkAccelFlags

var (
	ACCEL_VISIBLE AccelFlags
	ACCEL_LOCKED  AccelFlags
	ACCEL_MASK    AccelFlags
)

type AccelGroup

type AccelGroup interface {
	glibi.Object

	Connect2(uint, gdki.ModifierType, AccelFlags, interface{})
}

type Adjustment

type Adjustment interface {
	glibi.Object

	GetLower() float64
	GetPageSize() float64
	GetUpper() float64
	SetValue(float64)

} // end of Adjustment

type Align

type Align int

Align is a representation of GTK's GtkAlign.

var (
	ALIGN_FILL   Align
	ALIGN_START  Align
	ALIGN_END    Align
	ALIGN_CENTER Align
)

type Application

type Application interface {
	glibi.Application

	GetActiveWindow() Window
}

type ApplicationWindow

type ApplicationWindow interface {
	Window
}

type Assistant added in v0.3.7

type Assistant interface {
	Window
}

type Bin

type Bin interface {
	Container

	GetChild() Widget
}

type Box

type Box interface {
	Container

	PackEnd(Widget, bool, bool, uint)
	PackStart(Widget, bool, bool, uint)
	SetChildPacking(Widget, bool, bool, uint, PackType)
}

type Builder

type Builder interface {
	glibi.Object

	AddFromResource(string) error
	AddFromString(string) error
	ConnectSignals(map[string]interface{})
	GetObject(string) (glibi.Object, error)
}

type Button

type Button interface {
	Bin
}

type CellLayout

type CellLayout interface {
	AddAttribute(CellRenderer, string, int)
	PackStart(CellRenderer, bool)
}

type CellRenderer

type CellRenderer interface {
	glibi.Object
}

type CellRendererText

type CellRendererText interface {
	CellRenderer
}

type CellRendererToggle

type CellRendererToggle interface {
	CellRenderer
}

type CheckButton

type CheckButton interface {
	ToggleButton
}

type CheckMenuItem

type CheckMenuItem interface {
	MenuItem

	GetActive() bool
	SetActive(bool)
}

type ComboBox

type ComboBox interface {
	Bin
	CellLayout

	GetActive() int
	GetActiveIter() (TreeIter, error)
	GetActiveID() string
	SetActive(int)
	SetModel(TreeModel)
}

type ComboBoxText

type ComboBoxText interface {
	ComboBox

	AppendText(string)
	GetActiveText() string
}

type Container

type Container interface {
	Widget

	Add(Widget)
	Remove(Widget)
}

type CssProvider

type CssProvider interface {
	glibi.Object

	LoadFromData(string) error
}

type Dialog

type Dialog interface {
	Window

	Run() int
	SetDefaultResponse(ResponseType)
}

type Editable

type Editable interface {
	SetEditable(bool)
}

type Entry

type Entry interface {
	Widget
	Editable

	GetText() (string, error)
	SetHasFrame(bool)
	SetText(string)
	SetVisibility(bool)
}

type FileChooser

type FileChooser interface {
	GetFilename() string
	SetCurrentName(string)
}

type FileChooserAction

type FileChooserAction int

FileChooserAction is a representation of GTK's GtkFileChooserAction.

var (
	FILE_CHOOSER_ACTION_OPEN          FileChooserAction
	FILE_CHOOSER_ACTION_SAVE          FileChooserAction
	FILE_CHOOSER_ACTION_SELECT_FOLDER FileChooserAction
	FILE_CHOOSER_ACTION_CREATE_FOLDER FileChooserAction
)

type FileChooserDialog

type FileChooserDialog interface {
	Dialog
	FileChooser
}

type Grid

type Grid interface {
	Container

	Attach(Widget, int, int, int, int)
}

type Gtk

type Gtk interface {
	AboutDialogNew() (AboutDialog, error)
	AccelGroupNew() (AccelGroup, error)
	AcceleratorParse(string) (uint, gdki.ModifierType)
	AddProviderForScreen(gdki.Screen, StyleProvider, uint)
	ApplicationNew(string, glibi.ApplicationFlags) (Application, error)
	AssistantNew() (Assistant, error)
	BuilderNew() (Builder, error)
	BuilderNewFromResource(string) (Builder, error)
	CellRendererTextNew() (CellRendererText, error)
	CheckButtonNewWithMnemonic(string) (CheckButton, error)
	CheckMenuItemNewWithMnemonic(string) (CheckMenuItem, error)
	CssProviderNew() (CssProvider, error)
	CssProviderGetDefault() (CssProvider, error)
	CssProviderGetNamed(string, string) (CssProvider, error)
	EntryNew() (Entry, error)
	FileChooserDialogNewWith2Buttons(string, Window, FileChooserAction, string, ResponseType, string, ResponseType) (FileChooserDialog, error)
	Init(*[]string)
	LabelNew(string) (Label, error)
	ListStoreNew(...glibi.Type) (ListStore, error)
	MenuItemNew() (MenuItem, error)
	MenuItemNewWithLabel(string) (MenuItem, error)
	MenuItemNewWithMnemonic(string) (MenuItem, error)
	MenuNew() (Menu, error)
	SeparatorMenuItemNew() (SeparatorMenuItem, error)
	TextBufferNew(TextTagTable) (TextBuffer, error)
	TextTagNew(string) (TextTag, error)
	TextTagTableNew() (TextTagTable, error)
	TextViewNew() (TextView, error)
	TreePathNew() TreePath
	WindowSetDefaultIcon(gdki.Pixbuf)
	SettingsGetDefault() (Settings, error)
}

type HeaderBar

type HeaderBar interface {
	Container

	SetSubtitle(string)
}

type InfoBar

type InfoBar interface {
	Box
}

type Label

type Label interface {
	Widget

	GetLabel() string
	SetLabel(string)
	SetSelectable(bool)
	SetText(string)
}

type ListStore

type ListStore interface {
	glibi.Object
	TreeModel

	Append() TreeIter
	Clear()
	Remove(TreeIter) bool
	Set2(TreeIter, []int, []interface{}) error
	SetValue(TreeIter, int, interface{}) error
}
type Menu interface {
	MenuShell

	PopupAtMouseCursor(Menu, MenuItem, int, uint32)
}
type MenuBar interface {
	MenuShell
}
type MenuItem interface {
	Bin

	GetLabel() string
	SetLabel(string)
	SetSubmenu(Widget)
}
type MenuShell interface {
	Container

	Append(MenuItem)
}

type MessageDialog

type MessageDialog interface {
	Dialog
}

type Notebook

type Notebook interface {
	Container

	AppendPage(Widget, Widget) int
	GetCurrentPage() int
	GetNPages() int
	GetNthPage(int) (Widget, error)
	NextPage()
	PrevPage()
	SetCurrentPage(int)
	SetShowTabs(bool)
	SetTabLabelText(Widget, string)
}

type PackType

type PackType int

PackType is a representation of GTK's GtkPackType.

var (
	PACK_START PackType
	PACK_END   PackType
)

type ResponseType

type ResponseType int

ResponseType is a representation of GTK's GtkResponseType.

var (
	RESPONSE_NONE         ResponseType
	RESPONSE_REJECT       ResponseType
	RESPONSE_ACCEPT       ResponseType
	RESPONSE_DELETE_EVENT ResponseType
	RESPONSE_OK           ResponseType
	RESPONSE_CANCEL       ResponseType
	RESPONSE_CLOSE        ResponseType
	RESPONSE_YES          ResponseType
	RESPONSE_NO           ResponseType
	RESPONSE_APPLY        ResponseType
	RESPONSE_HELP         ResponseType
)

type Revealer

type Revealer interface{}

type ScrolledWindow

type ScrolledWindow interface {
	Bin

	GetVAdjustment() Adjustment
}

type SeparatorMenuItem

type SeparatorMenuItem interface {
	MenuItem
}

type Settings added in v0.3.2

type Settings interface {
	glibi.Object
}

type SpinButton added in v0.3.3

type SpinButton interface {
	Entry

	GetValueAsInt() int
	SetValue(float64)
	GetValue() float64
	GetAdjustment() Adjustment
	SetRange(float64, float64)
	SetIncrements(float64, float64)
}

type StateFlags

type StateFlags int

StateFlags is a representation of GTK's GtkStateFlags.

var (
	STATE_FLAG_NORMAL       StateFlags
	STATE_FLAG_ACTIVE       StateFlags
	STATE_FLAG_PRELIGHT     StateFlags
	STATE_FLAG_SELECTED     StateFlags
	STATE_FLAG_INSENSITIVE  StateFlags
	STATE_FLAG_INCONSISTENT StateFlags
	STATE_FLAG_FOCUSED      StateFlags
	STATE_FLAG_BACKDROP     StateFlags
)

type StyleContext

type StyleContext interface {
	glibi.Object

	AddClass(string)
	AddProvider(StyleProvider, uint)
	GetProperty2(string, StateFlags) (interface{}, error)
}

type StyleProvider

type StyleProvider interface{}

type StyleProviderPriority

type StyleProviderPriority int

StyleProviderPriority is a representation of GTK's GtkStyleProviderPriority.

var (
	STYLE_PROVIDER_PRIORITY_FALLBACK    StyleProviderPriority
	STYLE_PROVIDER_PRIORITY_THEME       StyleProviderPriority
	STYLE_PROVIDER_PRIORITY_SETTINGS    StyleProviderPriority
	STYLE_PROVIDER_PRIORITY_APPLICATION StyleProviderPriority
	STYLE_PROVIDER_PRIORITY_USER        StyleProviderPriority
)

type TextBuffer

type TextBuffer interface {
	glibi.Object

	ApplyTagByName(string, TextIter, TextIter)
	CreateMark(string, TextIter, bool) TextMark
	Delete(TextIter, TextIter)
	GetCharCount() int
	GetEndIter() TextIter
	GetIterAtMark(TextMark) TextIter
	GetIterAtOffset(int) TextIter
	GetLineCount() int
	GetStartIter() TextIter
	GetText(TextIter, TextIter, bool) string
	Insert(TextIter, string)
}

type TextIter

type TextIter interface {
	BackwardChar() bool
	BackwardChars(int) bool
	BackwardCursorPosition() bool
	BackwardCursorPositions(int) bool
	BackwardLine() bool
	BackwardLines(int) bool
	BackwardToTagToggle(TextTag) bool
	BackwardVisibleCursorPosition() bool
	BackwardVisibleCursorPositions(int) bool
	BackwardVisibleLine() bool
	BackwardVisibleLines(int) bool
	BeginsTag(TextTag) bool
	CanInsert(bool) bool
	Compare(TextIter) int
	Editable(bool) bool
	EndsLine() bool
	EndsSentence() bool
	EndsTag(TextTag) bool
	EndsWord() bool
	Equal(TextIter) bool
	ForwardChar() bool
	ForwardChars(int) bool
	ForwardCursorPosition() bool
	ForwardCursorPositions(int) bool
	ForwardLine() bool
	ForwardLines(int) bool
	ForwardSentenceEnd() bool
	ForwardSentenceEnds(int) bool
	ForwardToEnd()
	ForwardToLineEnd() bool
	ForwardToTagToggle(TextTag) bool
	ForwardVisibleCursorPosition() bool
	ForwardVisibleCursorPositions(int) bool
	ForwardVisibleLine() bool
	ForwardVisibleLines(int) bool
	ForwardVisibleWordEnd() bool
	ForwardVisibleWordEnds(v1 int) bool
	ForwardWordEnd() bool
	ForwardWordEnds(int) bool
	GetBuffer() TextBuffer
	GetBytesInLine() int
	GetChar() rune
	GetCharsInLine() int
	GetLine() int
	GetLineIndex() int
	GetLineOffset() int
	GetOffset() int
	GetSlice(TextIter) string
	GetText(TextIter) string
	GetVisibleLineIndex() int
	GetVisibleLineOffset() int
	GetVisibleSlice(TextIter) string
	GetVisibleText(TextIter) string
	HasTag(TextTag) bool
	InRange(TextIter, TextIter) bool
	InsideSentence() bool
	InsideWord() bool
	IsCursorPosition() bool
	IsEnd() bool
	IsStart() bool
	SetLine(int)
	SetLineIndex(int)
	SetLineOffset(int)
	SetOffset(int)
	SetVisibleLineIndex(int)
	SetVisibleLineOffset(int)
	StartsLine() bool
	StartsSentence() bool
	StartsWord() bool
	TogglesTag(TextTag) bool
}

type TextMark

type TextMark interface{}

type TextTag

type TextTag interface {
	glibi.Object
}

type TextTagTable

type TextTagTable interface {
	glibi.Object

	Add(TextTag)
}

type TextView

type TextView interface {
	Container

	BackwardDisplayLine(TextIter) bool
	BackwardDisplayLineStart(TextIter) bool
	ForwardDisplayLine(TextIter) bool
	ForwardDisplayLineEnd(TextIter) bool
	GetBuffer() (TextBuffer, error)
	MoveVisually(TextIter, int) bool
	SetBuffer(TextBuffer)
	SetCursorVisible(bool)
	SetEditable(bool)
	StartsDisplayLine(TextIter) bool
}

type ToggleButton

type ToggleButton interface {
	Button

	GetActive() bool
	SetActive(bool)
}

type TreeIter

type TreeIter interface{}

type TreeModel

type TreeModel interface {
	GetIter(TreePath) (TreeIter, error)
	GetIterFirst() (TreeIter, bool)
	GetIterFromString(string) (TreeIter, error)
	GetPath(TreeIter) (TreePath, error)
	GetValue(TreeIter, int) (glibi.Value, error)
	IterNext(TreeIter) bool
}

type TreePath

type TreePath interface{}

type TreeSelection

type TreeSelection interface {
	glibi.Object

	GetSelected() (TreeModel, TreeIter, bool)
	SelectIter(TreeIter)
	UnselectPath(TreePath)
}

type TreeStore

type TreeStore interface {
	glibi.Object
	TreeModel

	Append(TreeIter) TreeIter
	Clear()
	SetValue(TreeIter, int, interface{}) error
}

type TreeView

type TreeView interface {
	Container

	CollapseRow(TreePath) bool
	ExpandAll()
	GetCursor() (TreePath, TreeViewColumn)
	GetPathAtPos(int, int, TreePath, TreeViewColumn, *int, *int) bool
	GetSelection() (TreeSelection, error)
}

type TreeViewColumn

type TreeViewColumn interface {
	glibi.Object
}

type Widget

type Widget interface {
	glibi.Object

	Destroy()
	GetWindow() (gdki.Window, error)
	GrabFocus()
	GetAllocatedHeight() int
	GetAllocatedWidth() int
	GetStyleContext() (StyleContext, error)
	GrabDefault()
	HasFocus() bool
	Hide()
	HideOnDelete()
	SetHAlign(Align)
	SetHExpand(bool)
	SetMarginBottom(int)
	SetMarginTop(int)
	SetName(string)
	SetSensitive(bool)
	SetSizeRequest(int, int)
	SetVisible(bool)
	Show()
	ShowAll()
}

type Window

type Window interface {
	Bin

	AddAccelGroup(AccelGroup)
	GetTitle() string
	HasToplevelFocus() bool
	IsActive() bool
	Fullscreen()
	Unfullscreen()
	Present()
	Resize(int, int)
	SetApplication(Application)
	SetIcon(gdki.Pixbuf)
	SetTitle(string)
	SetTitlebar(Widget) // Since 3.10
	SetTransientFor(Window)
	SetUrgencyHint(bool)
}

Jump to

Keyboard shortcuts

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