gtki

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: GPL-3.0 Imports: 3 Imported by: 8

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 AssertAllocation

func AssertAllocation(_ Allocation)

func AssertApplication

func AssertApplication(_ Application)

func AssertApplicationWindow

func AssertApplicationWindow(_ ApplicationWindow)

func AssertAssistant

func AssertAssistant(_ Assistant)

func AssertBox

func AssertBox(_ Box)

func AssertBuilder

func AssertBuilder(_ Builder)

func AssertButton

func AssertButton(_ Button)

func AssertButtonBox

func AssertButtonBox(_ ButtonBox)

func AssertCSSClassCellRenderer

func AssertCSSClassCellRenderer(_ CSSClassCellRenderer)

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 AssertEventBox

func AssertEventBox(_ EventBox)

func AssertExpander

func AssertExpander(_ Expander)

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 AssertIconTheme

func AssertIconTheme(_ IconTheme)

func AssertImage

func AssertImage(_ Image)

AssertImage asserts the Image

func AssertInfoBar

func AssertInfoBar(_ InfoBar)

func AssertLabel

func AssertLabel(_ Label)

func AssertLinkButton

func AssertLinkButton(_ LinkButton)

func AssertListBox

func AssertListBox(_ ListBox)

func AssertListBoxRow

func AssertListBoxRow(_ ListBoxRow)

func AssertListStore

func AssertListStore(_ ListStore)

func AssertMenu

func AssertMenu(_ Menu)

func AssertMenuBar

func AssertMenuBar(_ MenuBar)

func AssertMenuButton

func AssertMenuButton(_ MenuButton)

func AssertMenuItem

func AssertMenuItem(_ MenuItem)

func AssertMenuShell

func AssertMenuShell(_ MenuShell)

func AssertMenuToolButton

func AssertMenuToolButton(_ MenuToolButton)

func AssertMessageDialog

func AssertMessageDialog(_ MessageDialog)

func AssertModelButton

func AssertModelButton(_ ModelButton)

func AssertNotebook

func AssertNotebook(_ Notebook)

func AssertProgressBar

func AssertProgressBar(_ ProgressBar)

AssertProgressBar asserts the ProgressBar

func AssertRevealer

func AssertRevealer(_ Revealer)

func AssertScrolledWindow

func AssertScrolledWindow(_ ScrolledWindow)

func AssertSearchBar

func AssertSearchBar(_ SearchBar)

func AssertSearchEntry

func AssertSearchEntry(_ SearchEntry)

func AssertSeparatorMenuItem

func AssertSeparatorMenuItem(_ SeparatorMenuItem)

func AssertSettings

func AssertSettings(_ Settings)

func AssertSizeGroup

func AssertSizeGroup(_ SizeGroup)

func AssertSpinButton

func AssertSpinButton(_ SpinButton)

func AssertSpinner

func AssertSpinner(_ Spinner)

AssertSpinner asserts the spinner

func AssertStatusIcon

func AssertStatusIcon(_ StatusIcon)

func AssertStyleContext

func AssertStyleContext(_ StyleContext)

func AssertStyleProvider

func AssertStyleProvider(_ StyleProvider)

func AssertSwitch

func AssertSwitch(_ Switch)

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 AssertToolButton

func AssertToolButton(_ ToolButton)

func AssertToolItem

func AssertToolItem(_ ToolItem)

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
	GetValue() 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 Allocation

type Allocation interface {
	gdki.Rectangle
}

type Application

type Application interface {
	glibi.Application
	glibi.ActionGroup
	glibi.ActionMap

	GetActiveWindow() Window
	AddWindow(Window)
	RemoveWindow(Window)
	PrefersAppMenu() bool

	GetAppMenu() glibi.MenuModel
	SetAppMenu(glibi.MenuModel)
	GetMenubar() glibi.MenuModel
	SetMenubar(glibi.MenuModel)
}

type ApplicationWindow

type ApplicationWindow interface {
	Window
	glibi.ActionGroup
	glibi.ActionMap

	SetShowMenubar(bool)
	GetShowMenubar() bool
	GetID() uint
}

type Assistant

type Assistant interface {
	Window
	Commit()
	NextPage()
	PreviousPage()
	SetCurrentPage(pageNum int)
	GetCurrentPage() int
	// GetNPages() int
	GetNthPage(pageNum int) (Widget, error)
	// PrependPage(page Widget) int
	AppendPage(page Widget) int
	// InsertPage(page Widget, position int) int
	// RemovePage(pageNum int)
	SetPageType(page Widget, ptype AssistantPageType)
	GetPageType(page Widget) AssistantPageType
	SetPageTitle(page Widget, title string)
	// GetPageTitle(page Widget) string
	SetPageComplete(page Widget, complete bool)
	GetPageComplete(page Widget) bool
	AddActionWidget(child Widget)
	RemoveActionWidget(child Widget)
	UpdateButtonsState()

	// The following are suppossed to be helper methods to work with the assistant.
	// They are not part of the main GTK api.
	GetButtons() []Button
	GetButtonSizeGroup() (SizeGroup, error)
	GetHeaderBar() (HeaderBar, error)
	GetSidebar() (Box, error)
	GetNotebook() (Notebook, error)
	HideBottomActionArea()
}

type AssistantPageType

type AssistantPageType int

AssistantPageType is a representation of GTK's GtkAssistantPageType.

var (
	ASSISTANT_PAGE_CONTENT  AssistantPageType
	ASSISTANT_PAGE_INTRO    AssistantPageType
	ASSISTANT_PAGE_CONFIRM  AssistantPageType
	ASSISTANT_PAGE_SUMMARY  AssistantPageType
	ASSISTANT_PAGE_PROGRESS AssistantPageType
	ASSISTANT_PAGE_CUSTOM   AssistantPageType
)

type Bin

type Bin interface {
	Container

	GetChild() Widget
}

type Box

type Box interface {
	Container
	Orientable

	PackEnd(Widget, bool, bool, uint)
	PackStart(Widget, bool, bool, uint)
	SetChildPacking(Widget, bool, bool, uint, PackType)
	SetCenterWidget(Widget)
	GetCenterWidget() Widget
	SetFocusVAdjustment(Adjustment)
}

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

	SetImage(Widget)
	GetLabel() (string, error)
	SetLabel(string)
}

type ButtonBox

type ButtonBox interface {
	Box
}

type CSSClassCellRenderer

type CSSClassCellRenderer interface {
	CellRenderer

	SetReal(CellRenderer)
}

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)
	SetIDColumn(int)
	SetEntryTextColumn(int)
	GetToggleButton() (Button, error)
}

type ComboBoxText

type ComboBoxText interface {
	ComboBox

	AppendText(string)
	GetActiveText() string
	RemoveAll()
}

type Container

type Container interface {
	Widget

	Add(Widget)
	Remove(Widget)
	SetBorderWidth(uint)
	GetChildren() []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)
	SetPosition(int)
	GetPosition() int
}

type Entry

type Entry interface {
	Widget
	Editable

	GetText() (string, error)
	SetHasFrame(bool)
	SetText(string)
	GetVisibility() bool
	SetVisibility(bool)
	SetWidthChars(int)
	GetAlignment() float32
	SetAlignment(float32)
	SetCompletion(EntryCompletion)
	SetPlaceholderText(string)
}

type EntryCompletion

type EntryCompletion interface {
	glibi.Object

	SetModel(TreeModel)
	SetTextColumn(int)
	SetMinimumKeyLength(int)
}

type EventBox

type EventBox interface {
	Bin

	SetAboveChild(bool)
	GetAboveChild() bool
	SetVisibleWindow(bool)
	GetVisibleWindow() bool
}

type Expander

type Expander interface {
	Bin
}

type FileChooser

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

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)
	ApplicationWindowNew(Application) (ApplicationWindow, error)
	AssistantNew() (Assistant, error)
	BuilderNew() (Builder, error)
	BuilderNewFromResource(string) (Builder, error)
	CellRendererTextNew() (CellRendererText, error)
	CheckButtonNew() (CheckButton, error)
	CheckButtonNewWithMnemonic(string) (CheckButton, error)
	CheckMenuItemNewWithMnemonic(string) (CheckMenuItem, error)
	CheckVersion(major, minor, micro uint) error
	ComboBoxNew() (ComboBox, error)
	ComboBoxTextNew() (ComboBoxText, error)
	CssProviderNew() (CssProvider, error)
	CssProviderGetDefault() (CssProvider, error)
	CssProviderGetNamed(string, string) (CssProvider, error)
	EntryNew() (Entry, error)
	EventBoxNew() (EventBox, error)
	ButtonNewWithLabel(string) (Button, error)
	ButtonBoxNew(Orientation) (ButtonBox, error)
	FileChooserDialogNewWith2Buttons(string, Window, FileChooserAction, string, ResponseType, string, ResponseType) (FileChooserDialog, error)
	GetMajorVersion() uint
	GetMinorVersion() uint
	GetMicroVersion() uint
	IconThemeNew() (IconTheme, error)
	IconThemeGetDefault() IconTheme
	IconThemeGetForScreen(gdki.Screen) IconTheme
	ImageNewFromFile(string) (Image, error)
	ImageNewFromResource(string) (Image, error)
	ImageNewFromPixbuf(gdki.Pixbuf) (Image, error)
	ImageNewFromIconName(string, IconSize) (Image, error)
	Init(*[]string)
	InfoBarNew() (InfoBar, error)
	LabelNew(string) (Label, error)
	ListStoreNew(...glibi.Type) (ListStore, error)
	TreeStoreNew(...glibi.Type) (TreeStore, error)
	MenuBarNew() (MenuBar, error)
	MenuItemNew() (MenuItem, error)
	MenuItemNewWithLabel(string) (MenuItem, error)
	MenuItemNewWithMnemonic(string) (MenuItem, error)
	MenuNew() (Menu, error)
	SearchBarNew() (SearchBar, error)
	SearchEntryNew() (SearchEntry, error)
	SeparatorMenuItemNew() (SeparatorMenuItem, error)
	TextBufferNew(TextTagTable) (TextBuffer, error)
	TextTagNew(string) (TextTag, error)
	TextTagTableNew() (TextTagTable, error)
	TextViewNew() (TextView, error)
	TreePathNew() TreePath
	SpinnerNew() (Spinner, error)
	PopoverNew(Widget) (Popover, error)
	BoxNew(Orientation, int) (Box, error)
	WindowSetDefaultIcon(gdki.Pixbuf)
	SettingsGetDefault() (Settings, error)
	SeparatorNew(Orientation) (Separator, error)
	EntryCompletionNew() (EntryCompletion, error)
	WindowNew(WindowType) (Window, error)

	StatusIconNew() (StatusIcon, error)
	StatusIconNewFromFile(filename string) (StatusIcon, error)
	StatusIconNewFromIconName(iconName string) (StatusIcon, error)
	StatusIconNewFromPixbuf(pixbuf gdki.Pixbuf) (StatusIcon, error)

	GetWidgetBuildableName(Widget) (string, error)

	InfoBarSetRevealed(InfoBar, bool)
	InfoBarGetRevealed(InfoBar) bool
}

type HeaderBar

type HeaderBar interface {
	Container

	SetSubtitle(string)
	SetShowCloseButton(bool)
	GetShowCloseButton() bool
}

type IconSize

type IconSize int
var (
	ICON_SIZE_INVALID       IconSize
	ICON_SIZE_MENU          IconSize
	ICON_SIZE_SMALL_TOOLBAR IconSize
	ICON_SIZE_LARGE_TOOLBAR IconSize
	ICON_SIZE_BUTTON        IconSize
	ICON_SIZE_DND           IconSize
	ICON_SIZE_DIALOG        IconSize
)

type IconTheme

type IconTheme interface {
	glibi.Object

	AddResourcePath(string)
	AppendSearchPath(string)
	GetExampleIconName() string
	HasIcon(string) bool
	PrependSearchPath(string)
}

type Image

type Image interface {
	Widget

	SetFromIconName(string, IconSize)
	SetFromPixbuf(gdki.Pixbuf)
	Clear()
}

Image is an interface of Gtk.Image

type InfoBar

type InfoBar interface {
	Box

	AddActionWidget(Widget, ResponseType)
	AddButton(string, ResponseType)
	SetDefaultResponse(ResponseType)
	SetMessageType(MessageType)
	GetMessageType() MessageType
	GetActionArea() (Widget, error)
	GetContentArea() (Box, error)
	GetShowCloseButton() bool
	SetShowCloseButton(bool)
}

type Justification

type Justification int
var (
	JUSTIFY_LEFT   Justification
	JUSTIFY_RIGHT  Justification
	JUSTIFY_CENTER Justification
	JUSTIFY_FILL   Justification
)

type Label

type Label interface {
	Widget

	GetLabel() string
	SetLabel(string)
	SetSelectable(bool)
	SetText(string)
	SetMarkup(string)
	GetMnemonicKeyval() uint
	SetAttributes(pangoi.AttrList)
	GetAttributes() (pangoi.AttrList, error)
}

type LinkButton

type LinkButton interface {
	Button

	GetUri() string
	SetUri(string)
}

type ListBox

type ListBox interface {
	Container

	SelectRow(ListBoxRow)
	GetRowAtIndex(int) ListBoxRow
	GetSelectedRow() ListBoxRow
}

type ListBoxRow

type ListBoxRow interface {
	Bin
	GetIndex() int
}

type ListStore

type ListStore interface {
	glibi.Object
	TreeModel

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

	PopupAtPointer(gdki.Event)
}
type MenuBar interface {
	MenuShell
}
type MenuButton interface {
	Bin

	SetPopover(Popover)
}
type MenuItem interface {
	Bin

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

	Append(MenuItem)
}
type MenuToolButton interface {
	ToolButton
}

type MessageDialog

type MessageDialog interface {
	Dialog
}

type MessageType

type MessageType int
var (
	MESSAGE_INFO     MessageType
	MESSAGE_WARNING  MessageType
	MESSAGE_QUESTION MessageType
	MESSAGE_ERROR    MessageType
	MESSAGE_OTHER    MessageType
)

type ModelButton

type ModelButton interface {
	Button
}

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 Orientable

type Orientable interface {
	GetOrientation() Orientation
	SetOrientation(Orientation)
}

Orientable is an interface for objects that can change their orientation

type Orientation

type Orientation int

Orientation is a layout of an Orientable

const (
	HorizontalOrientation Orientation = iota
	VerticalOrientation
)

type Overlay

type Overlay interface {
	Bin

	AddOverlay(Widget)
}

type PackType

type PackType int

PackType is a representation of GTK's GtkPackType.

var (
	PACK_START PackType
	PACK_END   PackType
)

type Popover

type Popover interface {
	Bin
}

type ProgressBar

type ProgressBar interface {
	Widget

	SetFraction(float64)
	GetFraction() float64
	SetShowText(bool)
	GetShowText() bool
	SetText(string)
}

ProgressBar is an interface of Gtk.ProgressBar

type RadioButton

type RadioButton interface {
	CheckButton
}

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 {
	Bin

	SetRevealChild(bool)
	GetRevealChild() bool
}

type ScrolledWindow

type ScrolledWindow interface {
	Bin

	GetVAdjustment() Adjustment
}
type SearchBar interface {
	Bin

	ConnectEntry(Entry)
	GetSearchMode() bool
	SetSearchMode(bool)
	GetShowCloseButton() bool
	SetShowCloseButton(bool)
	HandleEvent(gdki.Event)
}

type SearchEntry

type SearchEntry interface {
	Entry
}

type Separator

type Separator interface {
	Widget
}

type SeparatorMenuItem

type SeparatorMenuItem interface {
	MenuItem
}

type Settings

type Settings interface {
	glibi.Object
}

type SizeGroup

type SizeGroup interface {
	SetMode(SizeGroupMode)
}

type SizeGroupMode

type SizeGroupMode int
var (
	SIZE_GROUP_NONE       SizeGroupMode
	SIZE_GROUP_HORIZONTAL SizeGroupMode
	SIZE_GROUP_VERTICAL   SizeGroupMode
	SIZE_GROUP_BOTH       SizeGroupMode
)

type SpinButton

type SpinButton interface {
	Entry

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

type Spinner

type Spinner interface {
	Widget

	Start()
	Stop()
}

Spinner is an interface of Gtk.Spinner

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 StatusIcon

type StatusIcon interface {
	glibi.Object

	SetFromFile(filename string)
	SetFromIconName(iconName string)
	SetFromPixbuf(pixbuf gdki.Pixbuf)
	SetTooltipText(text string)
	GetTooltipText() string
	SetTooltipMarkup(markup string)
	GetTooltipMarkup() string
	SetHasTooltip(hasTooltip bool)
	GetTitle() string
	SetName(name string)
	SetVisible(visible bool)
	GetVisible() bool
	IsEmbedded() bool
	GetX11WindowID() uint32
	GetHasTooltip() bool
	SetTitle(title string)
	GetIconName() string
	GetSize() int
}

type StyleContext

type StyleContext interface {
	glibi.Object

	AddClass(string)
	RemoveClass(string)
	AddProvider(StyleProvider, uint)
	GetScreen() (gdki.Screen, error)
	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 Switch

type Switch interface {
	Widget

	GetActive() bool
	SetActive(bool)
}

type TextBuffer

type TextBuffer interface {
	glibi.Object

	ApplyTagByName(string, TextIter, TextIter)
	CreateMark(string, TextIter, bool) TextMark
	Delete(TextIter, TextIter)
	GetBounds() (TextIter, TextIter)
	GetCharCount() int
	GetEndIter() TextIter
	GetIterAtMark(TextMark) TextIter
	GetIterAtOffset(int) TextIter
	GetLineCount() int
	GetStartIter() TextIter
	GetText(TextIter, TextIter, bool) string
	Insert(TextIter, string)
	InsertAtCursor(string)
	InsertWithTagByName(TextIter, string, string)
	SetText(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
	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
	SetJustification(Justification)
	GetJustification() Justification
}

type ToggleButton

type ToggleButton interface {
	Button

	GetActive() bool
	SetActive(bool)
}

type ToolButton

type ToolButton interface {
	ToolItem
}

type ToolItem

type ToolItem interface {
	Bin
}

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 {
	GetDepth() int
	String() string
}

type TreeSelection

type TreeSelection interface {
	glibi.Object

	GetSelected() (TreeModel, TreeIter, bool)
	GetSelectedRows(TreeModel) []TreePath
	SelectIter(TreeIter)
	UnselectPath(TreePath)
}

type TreeStore

type TreeStore interface {
	glibi.Object
	TreeModel

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

type TreeView

type TreeView interface {
	Container

	RowExpanded(TreePath) bool
	ExpandRow(TreePath, bool) bool
	CollapseRow(TreePath) bool
	ExpandAll()
	GetCursor() (TreePath, TreeViewColumn)
	GetPathAtPos(int, int) (TreePath, TreeViewColumn, int, int, bool)
	GetSelection() (TreeSelection, error)
	SetEnableSearch(bool)
	GetEnableSearch() bool
	SetSearchColumn(int)
	GetSearchColumn() int
	SetSearchEntry(Entry)
	GetSearchEntry() Entry
	SetSearchEqualSubstringMatch()
	GetModel() (TreeModel, error)
	SetModel(TreeModel)
	SetCursorOnCell(TreePath, TreeViewColumn, CellRenderer, bool)
}

type TreeViewColumn

type TreeViewColumn interface {
	glibi.Object
}

type Widget

type Widget interface {
	glibi.Object

	Destroy()
	GetWindow() (gdki.Window, error)
	GrabFocus()
	GetAllocatedHeight() int
	GetAllocatedWidth() int
	GetAllocation() Allocation
	GetName() (string, error)
	GetParent() (Widget, error)
	GetParentX() (Widget, error)
	GetStyleContext() (StyleContext, error)
	GrabDefault()
	SetCanFocus(bool)
	HasFocus() bool
	Hide()
	HideOnDelete()
	Map()
	SetHAlign(Align)
	SetHExpand(bool)
	SetVAlign(Align)
	SetVExpand(bool)
	SetMarginBottom(int)
	SetMarginTop(int)
	SetName(string)
	SetNoShowAll(bool)
	SetSensitive(bool)
	IsSensitive() bool
	SetOpacity(float64)
	SetSizeRequest(int, int)
	SetTooltipText(string)
	SetVisible(bool)
	IsVisible() bool
	Show()
	ShowAll()
	TemplateChild(string) (glibi.Object, error)
}

type Window

type Window interface {
	Bin

	ActivateMnemonic(uint, gdki.ModifierType) bool
	AddAccelGroup(AccelGroup)
	AddMnemonic(uint, Widget)
	Deiconify()
	Fullscreen()
	GetMnemonicModifier() gdki.ModifierType
	GetTitle() string
	GetSize() (int, int)
	HasToplevelFocus() bool
	Iconify()
	IsActive() bool
	Maximize()
	Present()
	Resize(int, int)
	RemoveMnemonic(uint, Widget)
	SetApplication(Application)
	SetDecorated(bool)
	SetIcon(gdki.Pixbuf)
	SetMnemonicModifier(gdki.ModifierType)
	SetTitle(string)
	SetTitlebar(Widget) // Since 3.10
	SetTransientFor(Window)
	GetTransientFor() (Window, error)
	SetUrgencyHint(bool)
	Unfullscreen()
	Unmaximize()
	GetPosition() (int, int)
	Move(int, int)
}

type WindowType

type WindowType int
var (
	WINDOW_TOPLEVEL WindowType
	WINDOW_POPUP    WindowType
)

Jump to

Keyboard shortcuts

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