Documentation ¶
Overview ¶
Go bindings for GTK+ 3. Supports version 3.6 and later.
Functions use the same names as the native C function calls, but use CamelCase. In cases where native GTK uses pointers to values to simulate multiple return values, Go's native multiple return values are used instead. Whenever a native GTK call could return an unexpected NULL pointer, an additonal error is returned in the Go binding.
GTK's C API documentation can be very useful for understanding how the functions in this package work and what each type is for. This documentation can be found at https://developer.gnome.org/gtk3/.
In addition to Go versions of the C GTK functions, every struct type includes a method named Native (either by direct implementation, or by means of struct embedding). These methods return a uintptr of the native C object the binding type represents. These pointers may be type switched to a native C pointer using unsafe and used with cgo function calls outside this package.
Memory management is handled in proper Go fashion, using runtime finalizers to properly free memory when it is no longer needed. Each time a Go type is created with a pointer to a GObject, a reference is added for Go, sinking the floating reference when necessary. After going out of scope and the next time Go's garbage collector is run, a finalizer is run to remove Go's reference to the GObject. When this reference count hits zero (when neither Go nor GTK holds ownership) the object will be freed internally by GTK.
Index ¶
- func Init(args *[]string)
- func Main()
- func MainQuit()
- type AboutDialog
- func (v *AboutDialog) GetComments() string
- func (v *AboutDialog) GetCopyright() string
- func (v *AboutDialog) GetLicense() string
- func (v *AboutDialog) GetLicenseType() License
- func (v *AboutDialog) GetLogoIconName() string
- func (v *AboutDialog) GetProgramName() string
- func (v *AboutDialog) GetTranslatorCredits() string
- func (v *AboutDialog) GetVersion() string
- func (v *AboutDialog) GetWebsite() string
- func (v *AboutDialog) GetWebsiteLabel() string
- func (v *AboutDialog) GetWrapLicense() bool
- func (v *AboutDialog) SetComments(comments string)
- func (v *AboutDialog) SetCopyright(copyright string)
- func (v *AboutDialog) SetLicense(license string)
- func (v *AboutDialog) SetLicenseType(license License)
- func (v *AboutDialog) SetLogoIconName(name string)
- func (v *AboutDialog) SetProgramName(name string)
- func (v *AboutDialog) SetTranslatorCredits(translatorCredits string)
- func (v *AboutDialog) SetVersion(version string)
- func (v *AboutDialog) SetWebsite(website string)
- func (v *AboutDialog) SetWebsiteLabel(websiteLabel string)
- func (v *AboutDialog) SetWrapLicense(wrapLicense bool)
- type AccelFlags
- type Adjustment
- type Align
- type Alignment
- type Arrow
- type ArrowPlacement
- type ArrowType
- type Assistant
- func (v *Assistant) AddActionWidget(child IWidget)
- func (v *Assistant) AppendPage(page IWidget) int
- func (v *Assistant) Commit()
- func (v *Assistant) GetCurrentPage() int
- func (v *Assistant) GetNPages() int
- func (v *Assistant) GetNthPage(pageNum int) *Widget
- func (v *Assistant) GetPageComplete(page IWidget) bool
- func (v *Assistant) GetPageTitle(page IWidget) string
- func (v *Assistant) GetPageType(page IWidget) AssistantPageType
- func (v *Assistant) InsertPage(page IWidget, position int) int
- func (v *Assistant) NextPage()
- func (v *Assistant) PrependPage(page IWidget) int
- func (v *Assistant) PreviousPage()
- func (v *Assistant) RemoveActionWidget(child IWidget)
- func (v *Assistant) RemovePage(pageNum int)
- func (v *Assistant) SetCurrentPage(pageNum int)
- func (v *Assistant) SetPageComplete(page IWidget, complete bool)
- func (v *Assistant) SetPageTitle(page IWidget, title string)
- func (v *Assistant) SetPageType(page IWidget, ptype AssistantPageType)
- func (v *Assistant) UpdateButtonsState()
- type AssistantPageType
- type Bin
- type Box
- func (v *Box) GetHomogeneous() bool
- func (v *Box) GetSpacing() int
- func (v *Box) PackEnd(child IWidget, expand, fill bool, padding uint)
- func (v *Box) PackStart(child IWidget, expand, fill bool, padding uint)
- func (v *Box) QueryChildPacking(child IWidget) (expand, fill bool, padding uint, packType PackType)
- func (v *Box) ReorderChild(child IWidget, position int)
- func (v *Box) SetChildPacking(child IWidget, expand, fill bool, padding uint, packType PackType)
- func (v *Box) SetHomogeneous(homogeneous bool)
- func (v *Box) SetSpacing(spacing int)
- type Builder
- type Button
- func (v *Button) Clicked()
- func (v *Button) GetAlignment() (xalign, yalign float32)
- func (v *Button) GetAlwaysShowImage() bool
- func (v *Button) GetEventWindow() (*gdk.Window, error)
- func (v *Button) GetFocusOnClick() bool
- func (v *Button) GetImage() (*Widget, error)
- func (v *Button) GetImagePosition() PositionType
- func (v *Button) GetLabel() (string, error)
- func (v *Button) GetRelief() ReliefStyle
- func (v *Button) GetUseUnderline() bool
- func (v *Button) SetAlignment(xalign, yalign float32)
- func (v *Button) SetAlwaysShowImage(alwaysShow bool)
- func (v *Button) SetFocusOnClick(focusOnClick bool)
- func (v *Button) SetImage(image IWidget)
- func (v *Button) SetImagePosition(position PositionType)
- func (v *Button) SetLabel(label string)
- func (v *Button) SetRelief(newStyle ReliefStyle)
- func (v *Button) SetUseUnderline(useUnderline bool)
- type ButtonsType
- type Calendar
- func (v *Calendar) ClearMarks()
- func (v *Calendar) GetDate() (year, month, day uint)
- func (v *Calendar) GetDayIsMarked(day uint) bool
- func (v *Calendar) GetDetailHeightRows() int
- func (v *Calendar) GetDetailWidthChars() int
- func (v *Calendar) GetDisplayOptions() CalendarDisplayOptions
- func (v *Calendar) MarkDay(day uint)
- func (v *Calendar) SelectDay(day uint)
- func (v *Calendar) SelectMonth(month, year uint)
- func (v *Calendar) SetDetailHeightRows(rows int)
- func (v *Calendar) SetDetailWidthChars(chars int)
- func (v *Calendar) SetDisplayOptions(flags CalendarDisplayOptions)
- func (v *Calendar) UnmarkDay(day uint)
- type CalendarDisplayOptions
- type CellLayout
- type CellRenderer
- type CellRendererText
- type CellRendererToggle
- func (v *CellRendererToggle) GetActivatable() bool
- func (v *CellRendererToggle) GetActive() bool
- func (v *CellRendererToggle) GetRadio() bool
- func (v *CellRendererToggle) SetActivatable(activatable bool)
- func (v *CellRendererToggle) SetActive(active bool)
- func (v *CellRendererToggle) SetRadio(set bool)
- type CheckButton
- type CheckMenuItem
- func (v *CheckMenuItem) GetActive() bool
- func (v *CheckMenuItem) GetDrawAsRadio() bool
- func (v *CheckMenuItem) GetInconsistent() bool
- func (v *CheckMenuItem) SetActive(isActive bool)
- func (v *CheckMenuItem) SetDrawAsRadio(drawAsRadio bool)
- func (v *CheckMenuItem) SetInconsistent(setting bool)
- func (v *CheckMenuItem) Toggled()
- type Clipboard
- type ComboBox
- type Container
- func (v *Container) Add(w IWidget)
- func (v *Container) CheckResize()
- func (v *Container) ChildNotify(child IWidget, childProperty string)
- func (v *Container) ChildType() glib.Type
- func (v *Container) GetBorderWidth() uint
- func (v *Container) GetFocusChain() ([]*Widget, bool)
- func (v *Container) GetFocusChild() *Widget
- func (v *Container) GetFocusHAdjustment() *Adjustment
- func (v *Container) GetFocusVAdjustment() *Adjustment
- func (v *Container) PropagateDraw(child IWidget, cr *cairo.Context)
- func (v *Container) Remove(w IWidget)
- func (v *Container) SetBorderWidth(borderWidth uint)
- func (v *Container) SetFocusChain(focusableWidgets []IWidget)
- func (v *Container) SetFocusChild(child IWidget)
- func (v *Container) SetFocusHAdjustment(adjustment *Adjustment)
- func (v *Container) SetFocusVAdjustment(adjustment *Adjustment)
- func (v *Container) SetReallocateRedraws(needsRedraws bool)
- type Dialog
- func (v *Dialog) AddActionWidget(child IWidget, id ResponseType)
- func (v *Dialog) AddButton(text string, id ResponseType) (*Button, error)
- func (v *Dialog) GetContentArea() (*Box, error)
- func (v *Dialog) GetResponseForWidget(widget IWidget) ResponseType
- func (v *Dialog) GetWidgetForResponse(id ResponseType) (*Widget, error)
- func (v *Dialog) Response(response ResponseType)
- func (v *Dialog) Run() int
- func (v *Dialog) SetDefaultResponse(id ResponseType)
- func (v *Dialog) SetResponseSensitive(id ResponseType, setting bool)
- type DialogFlags
- type DrawingArea
- type Editable
- func (v *Editable) CopyClipboard()
- func (v *Editable) CutClipboard()
- func (v *Editable) DeleteSelection()
- func (v *Editable) DeleteText(startPos, endPos int)
- func (v *Editable) GetChars(startPos, endPos int) string
- func (v *Editable) GetEditable() bool
- func (v *Editable) GetPosition() int
- func (v *Editable) GetSelectionBounds() (start, end int, nonEmpty bool)
- func (v *Editable) InsertText(newText string, position int) int
- func (v *Editable) PasteClipboard()
- func (v *Editable) SelectRegion(startPos, endPos int)
- func (v *Editable) SetEditable(isEditable bool)
- func (v *Editable) SetPosition(position int)
- type Entry
- func (v *Entry) GetActivatesDefault() bool
- func (v *Entry) GetAlignment() float32
- func (v *Entry) GetBuffer() (*EntryBuffer, error)
- func (v *Entry) GetCompletion() (*EntryCompletion, error)
- func (v *Entry) GetCurrentIconDragSource() int
- func (v *Entry) GetCursorHAdjustment() (*Adjustment, error)
- func (v *Entry) GetHasFrame() bool
- func (v *Entry) GetIconActivatable(iconPos EntryIconPosition) bool
- func (v *Entry) GetIconAtPos(x, y int) int
- func (v *Entry) GetIconName(iconPos EntryIconPosition) (string, error)
- func (v *Entry) GetIconSensitive(iconPos EntryIconPosition) bool
- func (v *Entry) GetIconStorageType(iconPos EntryIconPosition) ImageType
- func (v *Entry) GetIconTooltipMarkup(iconPos EntryIconPosition) (string, error)
- func (v *Entry) GetIconTooltipText(iconPos EntryIconPosition) (string, error)
- func (v *Entry) GetInputHints() InputHints
- func (v *Entry) GetInputPurpose() InputPurpose
- func (v *Entry) GetInvisibleChar() rune
- func (v *Entry) GetLayoutOffsets() (x, y int)
- func (v *Entry) GetMaxLength() int
- func (v *Entry) GetOverwriteMode() bool
- func (v *Entry) GetPlaceholderText() (string, error)
- func (v *Entry) GetProgressFraction() float64
- func (v *Entry) GetProgressPulseStep() float64
- func (v *Entry) GetText() (string, error)
- func (v *Entry) GetTextLength() uint16
- func (v *Entry) GetVisibility() bool
- func (v *Entry) GetWidthChars() int
- func (v *Entry) LayoutIndexToTextIndex(layoutIndex int) int
- func (v *Entry) ProgressPulse()
- func (v *Entry) ResetIMContext()
- func (v *Entry) SetActivatesDefault(setting bool)
- func (v *Entry) SetAlignment(xalign float32)
- func (v *Entry) SetBuffer(buffer *EntryBuffer)
- func (v *Entry) SetCompletion(completion *EntryCompletion)
- func (v *Entry) SetCursorHAdjustment(adjustment *Adjustment)
- func (v *Entry) SetHasFrame(setting bool)
- func (v *Entry) SetIconActivatable(iconPos EntryIconPosition, activatable bool)
- func (v *Entry) SetIconFromIconName(iconPos EntryIconPosition, name string)
- func (v *Entry) SetIconSensitive(iconPos EntryIconPosition, sensitive bool)
- func (v *Entry) SetIconTooltipMarkup(iconPos EntryIconPosition, tooltip string)
- func (v *Entry) SetIconTooltipText(iconPos EntryIconPosition, tooltip string)
- func (v *Entry) SetInputHints(hints InputHints)
- func (v *Entry) SetInputPurpose(purpose InputPurpose)
- func (v *Entry) SetInvisibleChar(ch rune)
- func (v *Entry) SetMaxLength(len int)
- func (v *Entry) SetOverwriteMode(overwrite bool)
- func (v *Entry) SetPlaceholderText(text string)
- func (v *Entry) SetProgressFraction(fraction float64)
- func (v *Entry) SetProgressPulseStep(fraction float64)
- func (v *Entry) SetText(text string)
- func (v *Entry) SetVisibility(visible bool)
- func (v *Entry) SetWidthChars(nChars int)
- func (v *Entry) TextIndexToLayoutIndex(textIndex int) int
- func (v *Entry) UnsetInvisibleChar()
- type EntryBuffer
- func (v *EntryBuffer) DeleteText(position uint, nChars int) uint
- func (v *EntryBuffer) EmitDeletedText(pos, nChars uint)
- func (v *EntryBuffer) EmitInsertedText(pos uint, text string)
- func (v *EntryBuffer) GetBytes() uint
- func (v *EntryBuffer) GetLength() uint
- func (v *EntryBuffer) GetMaxLength() int
- func (v *EntryBuffer) GetText() (string, error)
- func (v *EntryBuffer) InsertText(position uint, text string) uint
- func (v *EntryBuffer) SetMaxLength(maxLength int)
- func (v *EntryBuffer) SetText(text string)
- type EntryCompletion
- type EntryIconPosition
- type EventBox
- type FileChooser
- type FileChooserAction
- type FileChooserButton
- type FileChooserWidget
- type Frame
- func (v *Frame) GetLabel() string
- func (v *Frame) GetLabelAlign() (xAlign, yAlign float32)
- func (v *Frame) GetLabelWidget() (*Widget, error)
- func (v *Frame) GetShadowType() ShadowType
- func (v *Frame) SetLabel(label string)
- func (v *Frame) SetLabelAlign(xAlign, yAlign float32)
- func (v *Frame) SetLabelWidget(labelWidget IWidget)
- func (v *Frame) SetShadowType(t ShadowType)
- type Grid
- func (v *Grid) Attach(child IWidget, left, top, width, height int)
- func (v *Grid) AttachNextTo(child, sibling IWidget, side PositionType, width, height int)
- func (v *Grid) GetChildAt(left, top int) (*Widget, error)
- func (v *Grid) GetColumnHomogeneous() bool
- func (v *Grid) GetColumnSpacing() uint
- func (v *Grid) GetRowHomogeneous() bool
- func (v *Grid) GetRowSpacing() uint
- func (v *Grid) InsertColumn(position int)
- func (v *Grid) InsertNextTo(sibling IWidget, side PositionType)
- func (v *Grid) InsertRow(position int)
- func (v *Grid) SetColumnHomogeneous(homogeneous bool)
- func (v *Grid) SetColumnSpacing(spacing uint)
- func (v *Grid) SetRowHomogeneous(homogeneous bool)
- func (v *Grid) SetRowSpacing(spacing uint)
- type HeaderBar
- func (v *HeaderBar) GetCustomTitle() (*Widget, error)
- func (v *HeaderBar) GetShowCloseButton() bool
- func (v *HeaderBar) GetSubtitle() string
- func (v *HeaderBar) GetTitle() string
- func (v *HeaderBar) PackEnd(child IWidget)
- func (v *HeaderBar) PackStart(child IWidget)
- func (v *HeaderBar) SetCustomTitle(titleWidget IWidget)
- func (v *HeaderBar) SetShowCloseButton(setting bool)
- func (v *HeaderBar) SetSubtitle(subtitle string)
- func (v *HeaderBar) SetTitle(title string)
- type ICellLayout
- type ICellRenderer
- type IEditable
- type IEntry
- type IMenu
- type IMenuItem
- type IOrientable
- type IToolItem
- type ITreeModel
- type IWidget
- type IWindow
- type IconSize
- type Image
- func (v *Image) Clear()
- func (v *Image) GetIconName() (string, IconSize)
- func (v *Image) GetPixbuf() *gdk.Pixbuf
- func (v *Image) GetPixelSize() int
- func (v *Image) GetStorageType() ImageType
- func (v *Image) SetFromFile(filename string)
- func (v *Image) SetFromIconName(iconName string, size IconSize)
- func (v *Image) SetFromPixbuf(pixbuf *gdk.Pixbuf)
- func (v *Image) SetFromResource(resourcePath string)
- func (v *Image) SetPixelSize(pixelSize int)
- type ImageType
- type InputHints
- type InputPurpose
- type Justification
- type Label
- func (v *Label) GetAngle() float64
- func (v *Label) GetCurrentUri() string
- func (v *Label) GetEllipsize() pango.EllipsizeMode
- func (v *Label) GetJustify() Justification
- func (v *Label) GetLineWrap() bool
- func (v *Label) GetLines() int
- func (v *Label) GetMaxWidthChars() int
- func (v *Label) GetSelectable() bool
- func (v *Label) GetSelectionBounds() (start, end int, nonEmpty bool)
- func (v *Label) GetSingleLineMode() bool
- func (v *Label) GetText() (string, error)
- func (v *Label) GetTrackVisitedLinks() bool
- func (v *Label) GetUseMarkup() bool
- func (v *Label) GetUseUnderline() bool
- func (v *Label) GetWidthChars() int
- func (v *Label) SelectRegion(startOffset, endOffset int)
- func (v *Label) SetAngle(angle float64)
- func (v *Label) SetEllipsize(mode pango.EllipsizeMode)
- func (v *Label) SetJustify(jtype Justification)
- func (v *Label) SetLabel(str string)
- func (v *Label) SetLineWrap(wrap bool)
- func (v *Label) SetLineWrapMode(wrapMode pango.WrapMode)
- func (v *Label) SetLines(lines int)
- func (v *Label) SetMarkup(str string)
- func (v *Label) SetMarkupWithMnemonic(str string)
- func (v *Label) SetMaxWidthChars(nChars int)
- func (v *Label) SetPattern(patern string)
- func (v *Label) SetSelectable(setting bool)
- func (v *Label) SetSingleLineMode(mode bool)
- func (v *Label) SetText(str string)
- func (v *Label) SetTrackVisitedLinks(trackLinks bool)
- func (v *Label) SetUseMarkup(use bool)
- func (v *Label) SetUseUnderline(use bool)
- func (v *Label) SetWidthChars(nChars int)
- type License
- type ListBox
- func (v *ListBox) DragHighlightRow(row *ListBoxRow)
- func (v *ListBox) GetActivateOnSingleClick() bool
- func (v *ListBox) GetAdjustment() *Adjustment
- func (v *ListBox) GetRowAtIndex(index int) *ListBoxRow
- func (v *ListBox) GetRowAtY(y int) *ListBoxRow
- func (v *ListBox) GetSelectedRow() *ListBoxRow
- func (v *ListBox) GetSelectionMode() SelectionMode
- func (v *ListBox) Insert(child IWidget, position int)
- func (v *ListBox) InvalidateFilter()
- func (v *ListBox) InvalidateHeaders()
- func (v *ListBox) InvalidateSort()
- func (v *ListBox) Prepend(child IWidget)
- func (v *ListBox) SelectRow(row *ListBoxRow)
- func (v *ListBox) SetActivateOnSingleClick(single bool)
- func (v *ListBox) SetAdjuctment(adjustment *Adjustment)
- func (v *ListBox) SetPlaceholder(placeholder IWidget)
- func (v *ListBox) SetSelectionMode(mode SelectionMode)
- type ListBoxRow
- type ListStore
- func (v *ListStore) Append() *TreeIter
- func (v *ListStore) Clear()
- func (v *ListStore) InsertAfter(sibling *TreeIter) *TreeIter
- func (v *ListStore) InsertBefore(sibling *TreeIter) *TreeIter
- func (v *ListStore) IterIsValid(iter *TreeIter) bool
- func (v *ListStore) MoveAfter(iter, position *TreeIter)
- func (v *ListStore) MoveBefore(iter, position *TreeIter)
- func (v *ListStore) Prepend() *TreeIter
- func (v *ListStore) Remove(iter *TreeIter) bool
- func (v *ListStore) Set(iter *TreeIter, columns []int, values []interface{}) error
- func (v *ListStore) Swap(a, b *TreeIter)
- type Menu
- type MenuBar
- type MenuButton
- type MenuItem
- type MenuShell
- type MessageDialog
- type MessageType
- type Misc
- type Notebook
- func (v *Notebook) AppendPage(child IWidget, tabLabel IWidget) int
- func (v *Notebook) AppendPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget) int
- func (v *Notebook) GetActionWidget(packType PackType) (*Widget, error)
- func (v *Notebook) GetCurrentPage() int
- func (v *Notebook) GetGroupName() (string, error)
- func (v *Notebook) GetMenuLabel(child IWidget) (*Widget, error)
- func (v *Notebook) GetMenuLabelText(child IWidget) (string, error)
- func (v *Notebook) GetNPages() int
- func (v *Notebook) GetNthPage(pageNum int) (*Widget, error)
- func (v *Notebook) GetScrollable() bool
- func (v *Notebook) GetShowBorder() bool
- func (v *Notebook) GetShowTabs() bool
- func (v *Notebook) GetTabDetachable(child IWidget) bool
- func (v *Notebook) GetTabLabel(child IWidget) (*Widget, error)
- func (v *Notebook) GetTabLabelText(child IWidget) (string, error)
- func (v *Notebook) GetTabPos() PositionType
- func (v *Notebook) GetTabReorderable(child IWidget) bool
- func (v *Notebook) InsertPage(child IWidget, tabLabel IWidget, position int) int
- func (v *Notebook) InsertPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget, position int) int
- func (v *Notebook) NextPage()
- func (v *Notebook) PageNum(child IWidget) int
- func (v *Notebook) PopupDisable()
- func (v *Notebook) PopupEnable()
- func (v *Notebook) PrependPage(child IWidget, tabLabel IWidget) int
- func (v *Notebook) PrependPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget) int
- func (v *Notebook) PrevPage()
- func (v *Notebook) RemovePage(pageNum int)
- func (v *Notebook) ReorderChild(child IWidget, position int)
- func (v *Notebook) SetActionWidget(widget IWidget, packType PackType)
- func (v *Notebook) SetCurrentPage(pageNum int)
- func (v *Notebook) SetGroupName(groupName string)
- func (v *Notebook) SetMenuLabel(child, menuLabel IWidget)
- func (v *Notebook) SetMenuLabelText(child IWidget, menuText string)
- func (v *Notebook) SetScrollable(scrollable bool)
- func (v *Notebook) SetShowBorder(showBorder bool)
- func (v *Notebook) SetShowTabs(showTabs bool)
- func (v *Notebook) SetTabDetachable(child IWidget, detachable bool)
- func (v *Notebook) SetTabLabel(child, tabLabel IWidget)
- func (v *Notebook) SetTabLabelText(child IWidget, tabText string)
- func (v *Notebook) SetTabPos(pos PositionType)
- func (v *Notebook) SetTabReorderable(child IWidget, reorderable bool)
- type OffscreenWindow
- type Orientable
- type Orientation
- type PackType
- type PathType
- type PolicyType
- type PositionType
- type ProgressBar
- type RadioButton
- func RadioButtonNew(group *glib.SList) (*RadioButton, error)
- func RadioButtonNewFromWidget(radioGroupMember *RadioButton) (*RadioButton, error)
- func RadioButtonNewWithLabel(group *glib.SList, label string) (*RadioButton, error)
- func RadioButtonNewWithLabelFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)
- func RadioButtonNewWithMnemonic(group *glib.SList, label string) (*RadioButton, error)
- func RadioButtonNewWithMnemonicFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)
- type RadioMenuItem
- func RadioMenuItemNew(group *glib.SList) (*RadioMenuItem, error)
- func RadioMenuItemNewFromWidget(group *RadioMenuItem) (*RadioMenuItem, error)
- func RadioMenuItemNewWithLabel(group *glib.SList, label string) (*RadioMenuItem, error)
- func RadioMenuItemNewWithLabelFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)
- func RadioMenuItemNewWithMnemonic(group *glib.SList, label string) (*RadioMenuItem, error)
- func RadioMenuItemNewWithMnemonicFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)
- type Range
- type ReliefStyle
- type ResponseType
- type Revealer
- func (v *Revealer) GetChildRevealed() bool
- func (v *Revealer) GetRevealChild() bool
- func (v *Revealer) GetTransitionDuration() uint
- func (v *Revealer) GetTransitionType() RevealerTransitionType
- func (v *Revealer) SetRevealChild(revealChild bool)
- func (v *Revealer) SetTransitionDuration(duration uint)
- func (v *Revealer) SetTransitionType(transition RevealerTransitionType)
- type RevealerTransitionType
- type Scrollbar
- type ScrolledWindow
- type SearchBar
- type SearchEntry
- type SelectionMode
- type Separator
- type SeparatorMenuItem
- type SeparatorToolItem
- type ShadowType
- type SpinButton
- type Spinner
- type Stack
- func (v *Stack) AddNamed(child IWidget, name string)
- func (v *Stack) AddTitled(child IWidget, name, title string)
- func (v *Stack) GetHomogeneous() bool
- func (v *Stack) GetTransitionDuration() uint
- func (v *Stack) GetTransitionType() StackTransitionType
- func (v *Stack) GetVisibleChild() *Widget
- func (v *Stack) GetVisibleChildName() string
- func (v *Stack) SetHomogeneous(homogeneous bool)
- func (v *Stack) SetTransitionDuration(duration uint)
- func (v *Stack) SetTransitionType(transition StackTransitionType)
- func (v *Stack) SetVisibleChild(child IWidget)
- func (v *Stack) SetVisibleChildFull(name string, transaction StackTransitionType)
- func (v *Stack) SetVisibleChildName(name string)
- type StackSwitcher
- type StackTransitionType
- type StateFlags
- type StatusIcon
- func (v *StatusIcon) GetHasTooltip() bool
- func (v *StatusIcon) GetIconName() string
- func (v *StatusIcon) GetSize() int
- func (v *StatusIcon) GetStorageType() ImageType
- func (v *StatusIcon) GetTitle() string
- func (v *StatusIcon) GetTooltipMarkup() string
- func (v *StatusIcon) GetTooltipText() string
- func (v *StatusIcon) GetVisible() bool
- func (v *StatusIcon) GetX11WindowID() int
- func (v *StatusIcon) IsEmbedded() bool
- func (v *StatusIcon) SetFromFile(filename string)
- func (v *StatusIcon) SetFromIconName(iconName string)
- func (v *StatusIcon) SetHasTooltip(hasTooltip bool)
- func (v *StatusIcon) SetName(name string)
- func (v *StatusIcon) SetTitle(title string)
- func (v *StatusIcon) SetTooltipMarkup(markup string)
- func (v *StatusIcon) SetTooltipText(text string)
- func (v *StatusIcon) SetVisible(visible bool)
- type Statusbar
- type Switch
- type TextBuffer
- type TextIter
- type TextTagTable
- type TextView
- func (v *TextView) GetAcceptsTab() bool
- func (v *TextView) GetBuffer() (*TextBuffer, error)
- func (v *TextView) GetCursorVisible() bool
- func (v *TextView) GetEditable() bool
- func (v *TextView) GetIndent() int
- func (v *TextView) GetInputHints() InputHints
- func (v *TextView) GetInputPurpose() InputPurpose
- func (v *TextView) GetJustification() Justification
- func (v *TextView) GetLeftMargin() int
- func (v *TextView) GetOverwrite() bool
- func (v *TextView) GetPixelsAboveLines() int
- func (v *TextView) GetPixelsBelowLines() int
- func (v *TextView) GetPixelsInsideWrap() int
- func (v *TextView) GetRightMargin() int
- func (v *TextView) GetWrapMode() WrapMode
- func (v *TextView) SetAcceptsTab(acceptsTab bool)
- func (v *TextView) SetBuffer(buffer *TextBuffer)
- func (v *TextView) SetCursorVisible(visible bool)
- func (v *TextView) SetEditable(editable bool)
- func (v *TextView) SetIndent(indent int)
- func (v *TextView) SetInputHints(hints InputHints)
- func (v *TextView) SetInputPurpose(purpose InputPurpose)
- func (v *TextView) SetJustification(justify Justification)
- func (v *TextView) SetLeftMargin(margin int)
- func (v *TextView) SetOverwrite(overwrite bool)
- func (v *TextView) SetPixelsAboveLines(px int)
- func (v *TextView) SetPixelsBelowLines(px int)
- func (v *TextView) SetPixelsInsideWrap(px int)
- func (v *TextView) SetRightMargin(margin int)
- func (v *TextView) SetWrapMode(wrapMode WrapMode)
- type ToggleButton
- type ToolButton
- func (v *ToolButton) GetIconName() string
- func (v *ToolButton) GetIconWidget() *Widget
- func (v *ToolButton) GetLabel() string
- func (v *ToolButton) GetLabelWidget() *Widget
- func (v *ToolButton) GetuseUnderline() bool
- func (v *ToolButton) SetGetUnderline(useUnderline bool)
- func (v *ToolButton) SetIconName(iconName string)
- func (v *ToolButton) SetIconWidget(iconWidget IWidget)
- func (v *ToolButton) SetLabel(label string)
- func (v *ToolButton) SetLabelWidget(labelWidget IWidget)
- type ToolItem
- func (v *ToolItem) GetExpand() bool
- func (v *ToolItem) GetHomogeneous() bool
- func (v *ToolItem) GetIconSize() IconSize
- func (v *ToolItem) GetIsImportant() bool
- func (v *ToolItem) GetOrientation() Orientation
- func (v *ToolItem) GetReliefStyle() ReliefStyle
- func (v *ToolItem) GetTextAlignment() float32
- func (v *ToolItem) GetTextOrientation() Orientation
- func (v *ToolItem) GetUseDragWindow() bool
- func (v *ToolItem) GetVisibleHorizontal() bool
- func (v *ToolItem) GetVisibleVertical() bool
- func (v *ToolItem) RebuildMenu()
- func (v *ToolItem) RetrieveProxyMenuItem() *MenuItem
- func (v *ToolItem) SetExpand(expand bool)
- func (v *ToolItem) SetHomogeneous(homogeneous bool)
- func (v *ToolItem) SetIsImportant(isImportant bool)
- func (v *ToolItem) SetProxyMenuItem(menuItemId string, menuItem IMenuItem)
- func (v *ToolItem) SetTooltipMarkup(text string)
- func (v *ToolItem) SetTooltipText(text string)
- func (v *ToolItem) SetUseDragWindow(useDragWindow bool)
- func (v *ToolItem) SetVisibleHorizontal(visibleHorizontal bool)
- func (v *ToolItem) SetVisibleVertical(visibleVertical bool)
- func (v *ToolItem) ToolbarReconfigured()
- type Toolbar
- func (v *Toolbar) GetDropIndex(x, y int) int
- func (v *Toolbar) GetIconSize() IconSize
- func (v *Toolbar) GetItemIndex(item IToolItem) int
- func (v *Toolbar) GetNItems() int
- func (v *Toolbar) GetNthItem(n int) *ToolItem
- func (v *Toolbar) GetReliefStyle() ReliefStyle
- func (v *Toolbar) GetShowArrow() bool
- func (v *Toolbar) GetStyle() ToolbarStyle
- func (v *Toolbar) Insert(item IToolItem, pos int)
- func (v *Toolbar) SetDropHighlightItem(toolItem IToolItem, index int)
- func (v *Toolbar) SetIconSize(iconSize IconSize)
- func (v *Toolbar) SetShowArrow(showArrow bool)
- func (v *Toolbar) SetStyle(style ToolbarStyle)
- func (v *Toolbar) UnsetIconSize()
- func (v *Toolbar) UnsetStyle()
- type ToolbarStyle
- type TreeIter
- type TreeModel
- func (v *TreeModel) GetColumnType(index int) glib.Type
- func (v *TreeModel) GetFlags() TreeModelFlags
- func (v *TreeModel) GetIter(path *TreePath) (*TreeIter, error)
- func (v *TreeModel) GetIterFirst() (*TreeIter, bool)
- func (v *TreeModel) GetIterFromString(path string) (*TreeIter, error)
- func (v *TreeModel) GetNColumns() int
- func (v *TreeModel) GetPath(iter *TreeIter) (*TreePath, error)
- func (v *TreeModel) GetValue(iter *TreeIter, column int) (*glib.Value, error)
- func (v *TreeModel) IterNext(iter *TreeIter) bool
- type TreeModelFlags
- type TreePath
- type TreeSelection
- type TreeView
- type TreeViewColumn
- type Widget
- func (v *Widget) Activate() bool
- func (v *Widget) AddEvents(events int)
- func (v *Widget) Destroy()
- func (v *Widget) Event(event *gdk.Event) bool
- func (v *Widget) GetAllocatedHeight() int
- func (v *Widget) GetAllocatedWidth() int
- func (v *Widget) GetAppPaintable() bool
- func (v *Widget) GetCanFocus() bool
- func (v *Widget) GetDeviceEnabled(device *gdk.Device) bool
- func (v *Widget) GetDoubleBuffered() bool
- func (v *Widget) GetEvents() int
- func (v *Widget) GetHAlign() Align
- func (v *Widget) GetHExpand() bool
- func (v *Widget) GetHasWindow() bool
- func (v *Widget) GetMapped() bool
- func (v *Widget) GetMarginBottom() int
- func (v *Widget) GetMarginTop() int
- func (v *Widget) GetName() (string, error)
- func (v *Widget) GetNoShowAll() bool
- func (v *Widget) GetParent() (*Widget, error)
- func (v *Widget) GetParentWindow() (*gdk.Window, error)
- func (v *Widget) GetRealized() bool
- func (v *Widget) GetSensitive() bool
- func (v *Widget) GetSizeRequest() (width, height int)
- func (v *Widget) GetTooltipText() (string, error)
- func (v *Widget) GetToplevel() (*Widget, error)
- func (v *Widget) GetVAlign() Align
- func (v *Widget) GetVExpand() bool
- func (v *Widget) GetVisible() bool
- func (v *Widget) GrabDefault()
- func (v *Widget) GrabFocus()
- func (v *Widget) HasDefault() bool
- func (v *Widget) HasFocus() bool
- func (v *Widget) HasGrab() bool
- func (v *Widget) HasVisibleFocus() bool
- func (v *Widget) Hide()
- func (v *Widget) InDestruction() bool
- func (v *Widget) IsDrawable() bool
- func (v *Widget) IsFocus() bool
- func (v *Widget) IsSensitive() bool
- func (v *Widget) IsToplevel() bool
- func (v *Widget) IsVisible() bool
- func (v *Widget) Map()
- func (v *Widget) OverrideFont(description string)
- func (v *Widget) QueueDraw()
- func (v *Widget) Reparent(newParent IWidget)
- func (v *Widget) SetAppPaintable(paintable bool)
- func (v *Widget) SetCanFocus(canFocus bool)
- func (v *Widget) SetDeviceEnabled(device *gdk.Device, enabled bool)
- func (v *Widget) SetDoubleBuffered(doubleBuffered bool)
- func (v *Widget) SetEvents(events int)
- func (v *Widget) SetHAlign(align Align)
- func (v *Widget) SetHExpand(expand bool)
- func (v *Widget) SetHasWindow(hasWindow bool)
- func (v *Widget) SetMapped(mapped bool)
- func (v *Widget) SetMarginBottom(margin int)
- func (v *Widget) SetMarginTop(margin int)
- func (v *Widget) SetName(name string)
- func (v *Widget) SetNoShowAll(noShowAll bool)
- func (v *Widget) SetParent(parent IWidget)
- func (v *Widget) SetParentWindow(parentWindow *gdk.Window)
- func (v *Widget) SetRealized(realized bool)
- func (v *Widget) SetSensitive(sensitive bool)
- func (v *Widget) SetSizeRequest(width, height int)
- func (v *Widget) SetTooltipText(text string)
- func (v *Widget) SetVAlign(align Align)
- func (v *Widget) SetVExpand(expand bool)
- func (v *Widget) SetVisible(visible bool)
- func (v *Widget) SetVisual(visual *gdk.Visual)
- func (v *Widget) Show()
- func (v *Widget) ShowAll()
- func (v *Widget) ShowNow()
- func (v *Widget) Unmap()
- func (v *Widget) Unparent()
- type Window
- func (v *Window) ActivateDefault() bool
- func (v *Window) ActivateFocus() bool
- func (v *Window) Close()
- func (v *Window) Deiconify()
- func (v *Window) Fullscreen()
- func (v *Window) GetAcceptFocus() bool
- func (v *Window) GetDecorated() bool
- func (v *Window) GetDefaultSize() (width, height int)
- func (v *Window) GetDeletable() bool
- func (v *Window) GetDestroyWithParent() bool
- func (v *Window) GetFocusOnMap() bool
- func (v *Window) GetFocusVisible() bool
- func (v *Window) GetHasResizeGrip() bool
- func (v *Window) GetHideTitlebarWhenMaximized() bool
- func (v *Window) GetMnemonicsVisible() bool
- func (v *Window) GetModal() bool
- func (v *Window) GetPosition() (root_x, root_y int)
- func (v *Window) GetResizable() bool
- func (v *Window) GetScreen() (*gdk.Screen, error)
- func (v *Window) GetSize() (width, height int)
- func (v *Window) GetSkipPagerHint() bool
- func (v *Window) GetSkipTaskbarHint() bool
- func (v *Window) GetUrgencyHint() bool
- func (v *Window) HasGroup() bool
- func (v *Window) HasToplevelFocus() bool
- func (v *Window) Iconify()
- func (v *Window) IsActive() bool
- func (v *Window) Maximize()
- func (v *Window) Move(x, y int)
- func (v *Window) Present()
- func (v *Window) PresentWithTime(ts uint32)
- func (v *Window) Resize(width, height int)
- func (v *Window) ResizeGripIsVisible() bool
- func (v *Window) ResizeToGeometry(width, height int)
- func (v *Window) SetAcceptFocus(setting bool)
- func (v *Window) SetDecorated(setting bool)
- func (v *Window) SetDefaultGeometry(width, height int)
- func (v *Window) SetDefaultSize(width, height int)
- func (v *Window) SetDeletable(setting bool)
- func (v *Window) SetDestroyWithParent(setting bool)
- func (v *Window) SetFocusOnMap(setting bool)
- func (v *Window) SetFocusVisible(setting bool)
- func (v *Window) SetHasResizeGrip(setting bool)
- func (v *Window) SetHideTitlebarWhenMaximized(setting bool)
- func (v *Window) SetIconFromFile(file string) error
- func (v *Window) SetKeepAbove(setting bool)
- func (v *Window) SetKeepBelow(setting bool)
- func (v *Window) SetMnemonicsVisible(setting bool)
- func (v *Window) SetModal(modal bool)
- func (v *Window) SetPosition(position WindowPosition)
- func (v *Window) SetResizable(resizable bool)
- func (v *Window) SetSkipPagerHint(setting bool)
- func (v *Window) SetSkipTaskbarHint(setting bool)
- func (v *Window) SetTitle(title string)
- func (v *Window) SetTitlebar(titlebar IWidget)
- func (v *Window) SetTransientFor(parent IWindow)
- func (v *Window) SetUrgencyHint(setting bool)
- func (v *Window) Stick()
- func (v *Window) Unfullscreen()
- func (v *Window) Unmaximize()
- func (v *Window) Unstick()
- type WindowPosition
- type WindowType
- type WrapMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(args *[]string)
Init() is a wrapper around gtk_init() and must be called before any other GTK calls and is used to initialize everything necessary.
In addition to setting up GTK for usage, a pointer to a slice of strings may be passed in to parse standard GTK command line arguments. args will be modified to remove any flags that were handled. Alternatively, nil may be passed in to not perform any command line parsing.
Types ¶
type AboutDialog ¶
type AboutDialog struct {
Dialog
}
AboutDialog is a representation of GTK's GtkAboutDialog.
func AboutDialogNew ¶
func AboutDialogNew() (*AboutDialog, error)
AboutDialogNew is a wrapper around gtk_about_dialog_new().
func (*AboutDialog) GetComments ¶
func (v *AboutDialog) GetComments() string
GetComments is a wrapper around gtk_about_dialog_get_comments().
func (*AboutDialog) GetCopyright ¶
func (v *AboutDialog) GetCopyright() string
GetCopyright is a wrapper around gtk_about_dialog_get_copyright().
func (*AboutDialog) GetLicense ¶
func (v *AboutDialog) GetLicense() string
GetLicense is a wrapper around gtk_about_dialog_get_license().
func (*AboutDialog) GetLicenseType ¶
func (v *AboutDialog) GetLicenseType() License
GetLicenseType is a wrapper around gtk_about_dialog_get_license_type().
func (*AboutDialog) GetLogoIconName ¶
func (v *AboutDialog) GetLogoIconName() string
GetLogoIconName is a wrapper around gtk_about_dialog_get_logo_icon_name().
func (*AboutDialog) GetProgramName ¶
func (v *AboutDialog) GetProgramName() string
GetProgramName is a wrapper around gtk_about_dialog_get_program_name().
func (*AboutDialog) GetTranslatorCredits ¶
func (v *AboutDialog) GetTranslatorCredits() string
GetTranslatorCredits is a wrapper around gtk_about_dialog_get_translator_credits().
func (*AboutDialog) GetVersion ¶
func (v *AboutDialog) GetVersion() string
GetVersion is a wrapper around gtk_about_dialog_get_version().
func (*AboutDialog) GetWebsite ¶
func (v *AboutDialog) GetWebsite() string
GetWebsite is a wrapper around gtk_about_dialog_get_website().
func (*AboutDialog) GetWebsiteLabel ¶
func (v *AboutDialog) GetWebsiteLabel() string
GetWebsiteLabel is a wrapper around gtk_about_dialog_get_website_label().
func (*AboutDialog) GetWrapLicense ¶
func (v *AboutDialog) GetWrapLicense() bool
GetWrapLicense is a wrapper around gtk_about_dialog_get_wrap_license().
func (*AboutDialog) SetComments ¶
func (v *AboutDialog) SetComments(comments string)
SetComments is a wrapper around gtk_about_dialog_set_comments().
func (*AboutDialog) SetCopyright ¶
func (v *AboutDialog) SetCopyright(copyright string)
SetCopyright is a wrapper around gtk_about_dialog_set_copyright().
func (*AboutDialog) SetLicense ¶
func (v *AboutDialog) SetLicense(license string)
SetLicense is a wrapper around gtk_about_dialog_set_license().
func (*AboutDialog) SetLicenseType ¶
func (v *AboutDialog) SetLicenseType(license License)
SetLicenseType is a wrapper around gtk_about_dialog_set_license_type().
func (*AboutDialog) SetLogoIconName ¶
func (v *AboutDialog) SetLogoIconName(name string)
SetLogoIconName is a wrapper around gtk_about_dialog_set_logo_icon_name().
func (*AboutDialog) SetProgramName ¶
func (v *AboutDialog) SetProgramName(name string)
SetProgramName is a wrapper around gtk_about_dialog_set_program_name().
func (*AboutDialog) SetTranslatorCredits ¶
func (v *AboutDialog) SetTranslatorCredits(translatorCredits string)
SetTranslatorCredits is a wrapper around gtk_about_dialog_set_translator_credits().
func (*AboutDialog) SetVersion ¶
func (v *AboutDialog) SetVersion(version string)
SetVersion is a wrapper around gtk_about_dialog_set_version().
func (*AboutDialog) SetWebsite ¶
func (v *AboutDialog) SetWebsite(website string)
SetWebsite is a wrapper around gtk_about_dialog_set_website().
func (*AboutDialog) SetWebsiteLabel ¶
func (v *AboutDialog) SetWebsiteLabel(websiteLabel string)
SetWebsiteLabel is a wrapper around gtk_about_dialog_set_website_label().
func (*AboutDialog) SetWrapLicense ¶
func (v *AboutDialog) SetWrapLicense(wrapLicense bool)
SetWrapLicense is a wrapper around gtk_about_dialog_set_wrap_license().
type AccelFlags ¶
type AccelFlags int
AccelFlags is a representation of GTK's GtkAccelFlags
const ( ACCEL_VISIBLE AccelFlags = C.GTK_ACCEL_VISIBLE ACCEL_LOCKED AccelFlags = C.GTK_ACCEL_LOCKED ACCEL_MASK AccelFlags = C.GTK_ACCEL_MASK )
type Adjustment ¶
type Adjustment struct {
glib.InitiallyUnowned
}
Adjustment is a representation of GTK's GtkAdjustment.
type Align ¶
type Align int
Align is a representation of GTK's GtkAlign.
const ( ALIGN_FILL Align = C.GTK_ALIGN_FILL ALIGN_START Align = C.GTK_ALIGN_START ALIGN_END Align = C.GTK_ALIGN_END ALIGN_CENTER Align = C.GTK_ALIGN_CENTER )
const (
ALIGN_BASELINE Align = C.GTK_ALIGN_BASELINE
)
type Alignment ¶
type Alignment struct {
Bin
}
func AlignmentNew ¶
AlignmentNew is a wrapper around gtk_alignment_new().
func (*Alignment) GetPadding ¶
GetPadding is a wrapper around gtk_alignment_get_padding().
func (*Alignment) SetPadding ¶
SetPadding is a wrapper around gtk_alignment_set_padding().
type Arrow ¶
type Arrow struct {
Misc
}
Arrow is a representation of GTK's GtkArrow.
func ArrowNew ¶
func ArrowNew(arrowType ArrowType, shadowType ShadowType) (*Arrow, error)
ArrowNew is a wrapper around gtk_arrow_new().
func (*Arrow) Set ¶
func (v *Arrow) Set(arrowType ArrowType, shadowType ShadowType)
Set is a wrapper around gtk_arrow_set().
type ArrowPlacement ¶
type ArrowPlacement int
ArrowPlacement is a representation of GTK's GtkArrowPlacement.
const ( ARROWS_BOTH ArrowPlacement = C.GTK_ARROWS_BOTH ARROWS_START ArrowPlacement = C.GTK_ARROWS_START ARROWS_END ArrowPlacement = C.GTK_ARROWS_END )
type ArrowType ¶
type ArrowType int
ArrowType is a representation of GTK's GtkArrowType.
const ( ARROW_UP ArrowType = C.GTK_ARROW_UP ARROW_DOWN ArrowType = C.GTK_ARROW_DOWN ARROW_LEFT ArrowType = C.GTK_ARROW_LEFT ARROW_RIGHT ArrowType = C.GTK_ARROW_RIGHT ARROW_NONE ArrowType = C.GTK_ARROW_NONE )
type Assistant ¶
type Assistant struct {
Window
}
Assistant is a representation of GTK's GtkAssistant.
func AssistantNew ¶
AssistantNew is a wrapper around gtk_assistant_new().
func (*Assistant) AddActionWidget ¶
AddActionWidget is a wrapper around gtk_assistant_add_action_widget().
func (*Assistant) AppendPage ¶
AppendPage is a wrapper around gtk_assistant_append_page().
func (*Assistant) Commit ¶
func (v *Assistant) Commit()
Commit is a wrapper around gtk_assistant_commit().
func (*Assistant) GetCurrentPage ¶
GetCurrentPage is a wrapper around gtk_assistant_get_current_page().
func (*Assistant) GetNthPage ¶
GetNthPage is a wrapper around gtk_assistant_get_nth_page().
func (*Assistant) GetPageComplete ¶
GetPageComplete is a wrapper around gtk_assistant_get_page_complete().
func (*Assistant) GetPageTitle ¶
GetPageTitle is a wrapper around gtk_assistant_get_page_title().
func (*Assistant) GetPageType ¶
func (v *Assistant) GetPageType(page IWidget) AssistantPageType
GetPageType is a wrapper around gtk_assistant_get_page_type().
func (*Assistant) InsertPage ¶
InsertPage is a wrapper around gtk_assistant_insert_page().
func (*Assistant) NextPage ¶
func (v *Assistant) NextPage()
NextPage is a wrapper around gtk_assistant_next_page().
func (*Assistant) PrependPage ¶
PrependPage is a wrapper around gtk_assistant_prepend_page().
func (*Assistant) PreviousPage ¶
func (v *Assistant) PreviousPage()
PreviousPage is a wrapper around gtk_assistant_previous_page().
func (*Assistant) RemoveActionWidget ¶
RemoveActionWidget is a wrapper around gtk_assistant_remove_action_widget().
func (*Assistant) RemovePage ¶
RemovePage is a wrapper around gtk_assistant_remove_page().
func (*Assistant) SetCurrentPage ¶
SetCurrentPage is a wrapper around gtk_assistant_set_current_page().
func (*Assistant) SetPageComplete ¶
SetPageComplete is a wrapper around gtk_assistant_set_page_complete().
func (*Assistant) SetPageTitle ¶
SetPageTitle is a wrapper around gtk_assistant_set_page_title().
func (*Assistant) SetPageType ¶
func (v *Assistant) SetPageType(page IWidget, ptype AssistantPageType)
SetPageType is a wrapper around gtk_assistant_set_page_type().
func (*Assistant) UpdateButtonsState ¶
func (v *Assistant) UpdateButtonsState()
UpdateButtonsState is a wrapper around gtk_assistant_update_buttons_state().
type AssistantPageType ¶
type AssistantPageType int
AssistantPageType is a representation of GTK's GtkAssistantPageType.
const ( ASSISTANT_PAGE_CONTENT AssistantPageType = C.GTK_ASSISTANT_PAGE_CONTENT ASSISTANT_PAGE_INTRO AssistantPageType = C.GTK_ASSISTANT_PAGE_INTRO ASSISTANT_PAGE_CONFIRM AssistantPageType = C.GTK_ASSISTANT_PAGE_CONFIRM ASSISTANT_PAGE_SUMMARY AssistantPageType = C.GTK_ASSISTANT_PAGE_SUMMARY ASSISTANT_PAGE_PROGRESS AssistantPageType = C.GTK_ASSISTANT_PAGE_PROGRESS ASSISTANT_PAGE_CUSTOM AssistantPageType = C.GTK_ASSISTANT_PAGE_CUSTOM )
type Box ¶
type Box struct {
Container
}
Box is a representation of GTK's GtkBox.
func BoxNew ¶
func BoxNew(orientation Orientation, spacing int) (*Box, error)
BoxNew() is a wrapper around gtk_box_new().
func (*Box) GetHomogeneous ¶
GetHomogeneous() is a wrapper around gtk_box_get_homogeneous().
func (*Box) GetSpacing ¶
GetSpacing() is a wrapper around gtk_box_get_spacing().
func (*Box) QueryChildPacking ¶
QueryChildPacking() is a wrapper around gtk_box_query_child_packing().
func (*Box) ReorderChild ¶
ReorderChild() is a wrapper around gtk_box_reorder_child().
func (*Box) SetChildPacking ¶
SetChildPacking() is a wrapper around gtk_box_set_child_packing().
func (*Box) SetHomogeneous ¶
SetHomogeneous() is a wrapper around gtk_box_set_homogeneous().
func (*Box) SetSpacing ¶
SetSpacing() is a wrapper around gtk_box_set_spacing()
type Builder ¶
Builder is a representation of GTK's GtkBuilder.
func BuilderNew ¶
BuilderNew is a wrapper around gtk_builder_new().
func (*Builder) AddFromFile ¶
AddFromFile is a wrapper around gtk_builder_add_from_file().
func (*Builder) AddFromResource ¶
AddFromResource is a wrapper around gtk_builder_add_from_resource().
func (*Builder) AddFromString ¶
AddFromString is a wrapper around gtk_builder_add_from_string().
func (*Builder) GetObject ¶
GetObject is a wrapper around gtk_builder_get_object(). The returned result is an IObject, so it will need to be type-asserted to the appropriate type before being used. For example, to get an object and type assert it as a window:
obj, err := builder.GetObject("window") if err != nil { // object not found return } if w, ok := obj.(*gtk.Window); ok { // do stuff with w here } else { // not a *gtk.Window }
type Button ¶
type Button struct {
Bin
}
Button is a representation of GTK's GtkButton.
func ButtonNewFromIconName ¶
ButtonNewFromIconName is a wrapper around gtk_button_new_from_icon_name().
func ButtonNewWithLabel ¶
ButtonNewWithLabel() is a wrapper around gtk_button_new_with_label().
func ButtonNewWithMnemonic ¶
ButtonNewWithMnemonic() is a wrapper around gtk_button_new_with_mnemonic().
func (*Button) Clicked ¶
func (v *Button) Clicked()
Clicked() is a wrapper around gtk_button_clicked().
func (*Button) GetAlignment ¶
GetAlignment() is a wrapper around gtk_button_get_alignment().
func (*Button) GetAlwaysShowImage ¶
GetAlwaysShowImage() is a wrapper around gtk_button_get_always_show_image().
func (*Button) GetEventWindow ¶
GetEventWindow() is a wrapper around gtk_button_get_event_window().
func (*Button) GetFocusOnClick ¶
GetFocusOnClick() is a wrapper around gtk_button_get_focus_on_click().
func (*Button) GetImagePosition ¶
func (v *Button) GetImagePosition() PositionType
GetImagePosition() is a wrapper around gtk_button_get_image_position().
func (*Button) GetRelief ¶
func (v *Button) GetRelief() ReliefStyle
GetRelief() is a wrapper around gtk_button_get_relief().
func (*Button) GetUseUnderline ¶
GetUseUnderline() is a wrapper around gtk_button_get_use_underline().
func (*Button) SetAlignment ¶
SetAlignment() is a wrapper around gtk_button_set_alignment().
func (*Button) SetAlwaysShowImage ¶
SetAlwaysShowImage() is a wrapper around gtk_button_set_always_show_image().
func (*Button) SetFocusOnClick ¶
SetFocusOnClick() is a wrapper around gtk_button_set_focus_on_click().
func (*Button) SetImagePosition ¶
func (v *Button) SetImagePosition(position PositionType)
SetImagePosition() is a wrapper around gtk_button_set_image_position().
func (*Button) SetRelief ¶
func (v *Button) SetRelief(newStyle ReliefStyle)
SetRelief() is a wrapper around gtk_button_set_relief().
func (*Button) SetUseUnderline ¶
SetUseUnderline() is a wrapper around gtk_button_set_use_underline().
type ButtonsType ¶
type ButtonsType int
ButtonsType is a representation of GTK's GtkButtonsType.
const ( BUTTONS_NONE ButtonsType = C.GTK_BUTTONS_NONE BUTTONS_OK ButtonsType = C.GTK_BUTTONS_OK BUTTONS_CLOSE ButtonsType = C.GTK_BUTTONS_CLOSE BUTTONS_CANCEL ButtonsType = C.GTK_BUTTONS_CANCEL BUTTONS_YES_NO ButtonsType = C.GTK_BUTTONS_YES_NO BUTTONS_OK_CANCEL ButtonsType = C.GTK_BUTTONS_OK_CANCEL )
type Calendar ¶
type Calendar struct {
Widget
}
Calendar is a representation of GTK's GtkCalendar.
func CalendarNew ¶
CalendarNew is a wrapper around gtk_calendar_new().
func (*Calendar) ClearMarks ¶
func (v *Calendar) ClearMarks()
ClearMarks is a wrapper around gtk_calendar_clear_marks().
func (*Calendar) GetDayIsMarked ¶
GetDayIsMarked is a wrapper around gtk_calendar_get_day_is_marked().
func (*Calendar) GetDetailHeightRows ¶
GetDetailHeightRows is a wrapper around gtk_calendar_get_detail_height_rows().
func (*Calendar) GetDetailWidthChars ¶
GetDetailWidthChars is a wrapper around gtk_calendar_get_detail_width_chars().
func (*Calendar) GetDisplayOptions ¶
func (v *Calendar) GetDisplayOptions() CalendarDisplayOptions
GetDisplayOptions is a wrapper around gtk_calendar_get_display_options().
func (*Calendar) SelectMonth ¶
SelectMonth is a wrapper around gtk_calendar_select_month().
func (*Calendar) SetDetailHeightRows ¶
SetDetailHeightRows is a wrapper around gtk_calendar_set_detail_height_rows().
func (*Calendar) SetDetailWidthChars ¶
SetDetailWidthChars is a wrapper around gtk_calendar_set_detail_width_chars().
func (*Calendar) SetDisplayOptions ¶
func (v *Calendar) SetDisplayOptions(flags CalendarDisplayOptions)
SetDisplayOptions is a wrapper around gtk_calendar_set_display_options().
type CalendarDisplayOptions ¶
type CalendarDisplayOptions int
CalendarDisplayOptions is a representation of GTK's GtkCalendarDisplayOptions
const ( CALENDAR_SHOW_HEADING CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_HEADING CALENDAR_SHOW_DAY_NAMES CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_DAY_NAMES CALENDAR_NO_MONTH_CHANGE CalendarDisplayOptions = C.GTK_CALENDAR_NO_MONTH_CHANGE CALENDAR_SHOW_WEEK_NUMBERS CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_WEEK_NUMBERS CALENDAR_SHOW_DETAILS CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_DETAILS )
type CellLayout ¶
CellLayout is a representation of GTK's GtkCellLayout GInterface.
func (*CellLayout) AddAttribute ¶
func (v *CellLayout) AddAttribute(cell ICellRenderer, attribute string, column int)
AddAttribute() is a wrapper around gtk_cell_layout_add_attribute().
func (*CellLayout) PackStart ¶
func (v *CellLayout) PackStart(cell ICellRenderer, expand bool)
PackStart() is a wrapper around gtk_cell_layout_pack_start().
type CellRenderer ¶
type CellRenderer struct {
glib.InitiallyUnowned
}
CellRenderer is a representation of GTK's GtkCellRenderer.
type CellRendererText ¶
type CellRendererText struct {
CellRenderer
}
CellRendererText is a representation of GTK's GtkCellRendererText.
func CellRendererTextNew ¶
func CellRendererTextNew() (*CellRendererText, error)
CellRendererTextNew is a wrapper around gtk_cell_renderer_text_new().
type CellRendererToggle ¶
type CellRendererToggle struct {
CellRenderer
}
CellRendererToggle is a representation of GTK's GtkCellRendererToggle.
func CellRendererToggleNew ¶
func CellRendererToggleNew() (*CellRendererToggle, error)
CellRendererToggleNew is a wrapper around gtk_cell_renderer_toggle_new().
func (*CellRendererToggle) GetActivatable ¶
func (v *CellRendererToggle) GetActivatable() bool
GetActivatable is a wrapper around gtk_cell_renderer_get_activatable().
func (*CellRendererToggle) GetActive ¶
func (v *CellRendererToggle) GetActive() bool
GetActive is a wrapper around gtk_cell_renderer_get_active().
func (*CellRendererToggle) GetRadio ¶
func (v *CellRendererToggle) GetRadio() bool
GetRadio is a wrapper around gtk_cell_renderer_toggle_get_radio().
func (*CellRendererToggle) SetActivatable ¶
func (v *CellRendererToggle) SetActivatable(activatable bool)
SetActivatable is a wrapper around gtk_cell_renderer_set_activatable().
func (*CellRendererToggle) SetActive ¶
func (v *CellRendererToggle) SetActive(active bool)
SetActive is a wrapper arround gtk_cell_renderer_set_active().
func (*CellRendererToggle) SetRadio ¶
func (v *CellRendererToggle) SetRadio(set bool)
SetRadio is a wrapper around gtk_cell_renderer_toggle_set_radio().
type CheckButton ¶
type CheckButton struct {
ToggleButton
}
CheckButton is a wrapper around GTK's GtkCheckButton.
func CheckButtonNew ¶
func CheckButtonNew() (*CheckButton, error)
CheckButtonNew is a wrapper around gtk_check_button_new().
func CheckButtonNewWithLabel ¶
func CheckButtonNewWithLabel(label string) (*CheckButton, error)
CheckButtonNewWithLabel is a wrapper around gtk_check_button_new_with_label().
func CheckButtonNewWithMnemonic ¶
func CheckButtonNewWithMnemonic(label string) (*CheckButton, error)
CheckButtonNewWithMnemonic is a wrapper around gtk_check_button_new_with_mnemonic().
type CheckMenuItem ¶
type CheckMenuItem struct {
MenuItem
}
func CheckMenuItemNew ¶
func CheckMenuItemNew() (*CheckMenuItem, error)
CheckMenuItemNew is a wrapper around gtk_check_menu_item_new().
func CheckMenuItemNewWithLabel ¶
func CheckMenuItemNewWithLabel(label string) (*CheckMenuItem, error)
CheckMenuItemNewWithLabel is a wrapper around gtk_check_menu_item_new_with_label().
func CheckMenuItemNewWithMnemonic ¶
func CheckMenuItemNewWithMnemonic(label string) (*CheckMenuItem, error)
CheckMenuItemNewWithMnemonic is a wrapper around gtk_check_menu_item_new_with_mnemonic().
func (*CheckMenuItem) GetActive ¶
func (v *CheckMenuItem) GetActive() bool
GetActive is a wrapper around gtk_check_menu_item_get_active().
func (*CheckMenuItem) GetDrawAsRadio ¶
func (v *CheckMenuItem) GetDrawAsRadio() bool
GetDrawAsRadio is a wrapper around gtk_check_menu_item_get_draw_as_radio().
func (*CheckMenuItem) GetInconsistent ¶
func (v *CheckMenuItem) GetInconsistent() bool
GetInconsistent is a wrapper around gtk_check_menu_item_get_inconsistent().
func (*CheckMenuItem) SetActive ¶
func (v *CheckMenuItem) SetActive(isActive bool)
SetActive is a wrapper around gtk_check_menu_item_set_active().
func (*CheckMenuItem) SetDrawAsRadio ¶
func (v *CheckMenuItem) SetDrawAsRadio(drawAsRadio bool)
SetDrawAsRadio is a wrapper around gtk_check_menu_item_set_draw_as_radio().
func (*CheckMenuItem) SetInconsistent ¶
func (v *CheckMenuItem) SetInconsistent(setting bool)
SetInconsistent is a wrapper around gtk_check_menu_item_set_inconsistent().
func (*CheckMenuItem) Toggled ¶
func (v *CheckMenuItem) Toggled()
Toggled is a wrapper around gtk_check_menu_item_toggled().
type Clipboard ¶
Clipboard is a wrapper around GTK's GtkClipboard.
func ClipboardGet ¶
ClipboardGet() is a wrapper around gtk_clipboard_get().
func ClipboardGetForDisplay ¶
ClipboardGetForDisplay() is a wrapper around gtk_clipboard_get_for_display().
func (*Clipboard) WaitForText ¶
WaitForText is a wrapper around gtk_clipboard_wait_for_text
type ComboBox ¶
type ComboBox struct { Bin // Interfaces CellLayout }
ComboBox is a representation of GTK's GtkComboBox.
func ComboBoxNew ¶
ComboBoxNew() is a wrapper around gtk_combo_box_new().
func ComboBoxNewWithEntry ¶
ComboBoxNewWithEntry() is a wrapper around gtk_combo_box_new_with_entry().
func ComboBoxNewWithModel ¶
func ComboBoxNewWithModel(model ITreeModel) (*ComboBox, error)
ComboBoxNewWithModel() is a wrapper around gtk_combo_box_new_with_model().
type Container ¶
type Container struct {
Widget
}
Container is a representation of GTK's GtkContainer.
func (*Container) CheckResize ¶
func (v *Container) CheckResize()
CheckResize is a wrapper around gtk_container_check_resize().
func (*Container) ChildNotify ¶
ChildNotify is a wrapper around gtk_container_child_notify().
func (*Container) GetBorderWidth ¶
GetBorderWidth is a wrapper around gtk_container_get_border_width().
func (*Container) GetFocusChain ¶
GetFocusChain is a wrapper around gtk_container_get_focus_chain().
func (*Container) GetFocusChild ¶
GetFocusChild is a wrapper around gtk_container_get_focus_child().
func (*Container) GetFocusHAdjustment ¶
func (v *Container) GetFocusHAdjustment() *Adjustment
GetFocusHAdjustment is a wrapper around gtk_container_get_focus_hadjustment().
func (*Container) GetFocusVAdjustment ¶
func (v *Container) GetFocusVAdjustment() *Adjustment
GetFocusVAdjustment is a wrapper around gtk_container_get_focus_vadjustment().
func (*Container) PropagateDraw ¶
PropagateDraw is a wrapper around gtk_container_propagate_draw().
func (*Container) SetBorderWidth ¶
SetBorderWidth is a wrapper around gtk_container_set_border_width().
func (*Container) SetFocusChain ¶
SetFocusChain is a wrapper around gtk_container_set_focus_chain().
func (*Container) SetFocusChild ¶
SetFocusChild is a wrapper around gtk_container_set_focus_child().
func (*Container) SetFocusHAdjustment ¶
func (v *Container) SetFocusHAdjustment(adjustment *Adjustment)
SetFocusHAdjustment is a wrapper around gtk_container_set_focus_hadjustment().
func (*Container) SetFocusVAdjustment ¶
func (v *Container) SetFocusVAdjustment(adjustment *Adjustment)
SetFocusVAdjustment is a wrapper around gtk_container_set_focus_vadjustment().
func (*Container) SetReallocateRedraws ¶
SetReallocateRedraws is a wrapper around gtk_container_set_reallocate_redraws().
type Dialog ¶
type Dialog struct {
Window
}
Dialog is a representation of GTK's GtkDialog.
func (*Dialog) AddActionWidget ¶
func (v *Dialog) AddActionWidget(child IWidget, id ResponseType)
AddActionWidget() is a wrapper around gtk_dialog_add_action_widget().
func (*Dialog) AddButton ¶
func (v *Dialog) AddButton(text string, id ResponseType) (*Button, error)
AddButton() is a wrapper around gtk_dialog_add_button(). text may be either the literal button text, or if using GTK 3.8 or earlier, a Stock type converted to a string.
func (*Dialog) GetContentArea ¶
GetContentArea() is a wrapper around gtk_dialog_get_content_area().
func (*Dialog) GetResponseForWidget ¶
func (v *Dialog) GetResponseForWidget(widget IWidget) ResponseType
GetResponseForWidget() is a wrapper around gtk_dialog_get_response_for_widget().
func (*Dialog) GetWidgetForResponse ¶
func (v *Dialog) GetWidgetForResponse(id ResponseType) (*Widget, error)
GetWidgetForResponse() is a wrapper around gtk_dialog_get_widget_for_response().
func (*Dialog) Response ¶
func (v *Dialog) Response(response ResponseType)
Response() is a wrapper around gtk_dialog_response().
func (*Dialog) SetDefaultResponse ¶
func (v *Dialog) SetDefaultResponse(id ResponseType)
SetDefaultResponse() is a wrapper around gtk_dialog_set_default_response().
func (*Dialog) SetResponseSensitive ¶
func (v *Dialog) SetResponseSensitive(id ResponseType, setting bool)
SetResponseSensitive() is a wrapper around gtk_dialog_set_response_sensitive().
type DialogFlags ¶
type DialogFlags int
DialogFlags is a representation of GTK's GtkDialogFlags.
const ( DIALOG_MODAL DialogFlags = C.GTK_DIALOG_MODAL DIALOG_DESTROY_WITH_PARENT DialogFlags = C.GTK_DIALOG_DESTROY_WITH_PARENT )
type DrawingArea ¶
type DrawingArea struct {
Widget
}
DrawingArea is a representation of GTK's GtkDrawingArea.
func DrawingAreaNew ¶
func DrawingAreaNew() (*DrawingArea, error)
DrawingAreaNew is a wrapper around gtk_drawing_area_new().
type Editable ¶
Editable is a representation of GTK's GtkEditable GInterface.
func (*Editable) CopyClipboard ¶
func (v *Editable) CopyClipboard()
CopyClipboard is a wrapper around gtk_editable_copy_clipboard().
func (*Editable) CutClipboard ¶
func (v *Editable) CutClipboard()
CutClipboard is a wrapper around gtk_editable_cut_clipboard().
func (*Editable) DeleteSelection ¶
func (v *Editable) DeleteSelection()
DeleteSelection is a wrapper around gtk_editable_delete_selection().
func (*Editable) DeleteText ¶
DeleteText is a wrapper around gtk_editable_delete_text().
func (*Editable) GetEditable ¶
GetEditable is a wrapper around gtk_editable_get_editable().
func (*Editable) GetPosition ¶
GetPosition is a wrapper around gtk_editable_get_position().
func (*Editable) GetSelectionBounds ¶
GetSelectionBounds is a wrapper around gtk_editable_get_selection_bounds().
func (*Editable) InsertText ¶
InsertText is a wrapper around gtk_editable_insert_text(). The returned int is the position after the inserted text.
func (*Editable) PasteClipboard ¶
func (v *Editable) PasteClipboard()
PasteClipboard is a wrapper around gtk_editable_paste_clipboard().
func (*Editable) SelectRegion ¶
SelectRegion is a wrapper around gtk_editable_select_region().
func (*Editable) SetEditable ¶
SetEditable is a wrapper around gtk_editable_set_editable().
func (*Editable) SetPosition ¶
SetPosition is a wrapper around gtk_editable_set_position().
type Entry ¶
Entry is a representation of GTK's GtkEntry.
func EntryNewWithBuffer ¶
func EntryNewWithBuffer(buffer *EntryBuffer) (*Entry, error)
EntryNewWithBuffer() is a wrapper around gtk_entry_new_with_buffer().
func (*Entry) GetActivatesDefault ¶
GetActivatesDefault() is a wrapper around gtk_entry_get_activates_default().
func (*Entry) GetAlignment ¶
GetAlignment() is a wrapper around gtk_entry_get_alignment().
func (*Entry) GetBuffer ¶
func (v *Entry) GetBuffer() (*EntryBuffer, error)
GetBuffer() is a wrapper around gtk_entry_get_buffer().
func (*Entry) GetCompletion ¶
func (v *Entry) GetCompletion() (*EntryCompletion, error)
GetCompletion() is a wrapper around gtk_entry_get_completion().
func (*Entry) GetCurrentIconDragSource ¶
GetCurrentIconDragSource() is a wrapper around gtk_entry_get_current_icon_drag_source().
func (*Entry) GetCursorHAdjustment ¶
func (v *Entry) GetCursorHAdjustment() (*Adjustment, error)
GetCursorHAdjustment() is a wrapper around gtk_entry_get_cursor_hadjustment().
func (*Entry) GetHasFrame ¶
GetHasFrame() is a wrapper around gtk_entry_get_has_frame().
func (*Entry) GetIconActivatable ¶
func (v *Entry) GetIconActivatable(iconPos EntryIconPosition) bool
GetIconActivatable() is a wrapper around gtk_entry_get_icon_activatable().
func (*Entry) GetIconAtPos ¶
GetIconAtPos() is a wrapper around gtk_entry_get_icon_at_pos().
func (*Entry) GetIconName ¶
func (v *Entry) GetIconName(iconPos EntryIconPosition) (string, error)
GetIconName() is a wrapper around gtk_entry_get_icon_name().
func (*Entry) GetIconSensitive ¶
func (v *Entry) GetIconSensitive(iconPos EntryIconPosition) bool
GetIconSensitive() is a wrapper around gtk_entry_get_icon_sensitive().
func (*Entry) GetIconStorageType ¶
func (v *Entry) GetIconStorageType(iconPos EntryIconPosition) ImageType
GetIconStorageType() is a wrapper around gtk_entry_get_icon_storage_type().
func (*Entry) GetIconTooltipMarkup ¶
func (v *Entry) GetIconTooltipMarkup(iconPos EntryIconPosition) (string, error)
GetIconTooltipMarkup() is a wrapper around gtk_entry_get_icon_tooltip_markup().
func (*Entry) GetIconTooltipText ¶
func (v *Entry) GetIconTooltipText(iconPos EntryIconPosition) (string, error)
GetIconTooltipText() is a wrapper around gtk_entry_get_icon_tooltip_text().
func (*Entry) GetInputHints ¶
func (v *Entry) GetInputHints() InputHints
GetInputHints() is a wrapper around gtk_entry_get_input_hints().
func (*Entry) GetInputPurpose ¶
func (v *Entry) GetInputPurpose() InputPurpose
GetInputPurpose() is a wrapper around gtk_entry_get_input_purpose().
func (*Entry) GetInvisibleChar ¶
GetInvisibleChar() is a wrapper around gtk_entry_get_invisible_char().
func (*Entry) GetLayoutOffsets ¶
GetLayoutOffsets() is a wrapper around gtk_entry_get_layout_offsets().
func (*Entry) GetMaxLength ¶
GetMaxLength() is a wrapper around gtk_entry_get_max_length().
func (*Entry) GetOverwriteMode ¶
GetOverwriteMode() is a wrapper around gtk_entry_get_overwrite_mode().
func (*Entry) GetPlaceholderText ¶
GetPlaceholderText() is a wrapper around gtk_entry_get_placeholder_text().
func (*Entry) GetProgressFraction ¶
GetProgressFraction() is a wrapper around gtk_entry_get_progress_fraction().
func (*Entry) GetProgressPulseStep ¶
GetProgressPulseStep() is a wrapper around gtk_entry_get_progress_pulse_step().
func (*Entry) GetTextLength ¶
GetTextLength() is a wrapper around gtk_entry_get_text_length().
func (*Entry) GetVisibility ¶
GetVisibility() is a wrapper around gtk_entry_get_visibility().
func (*Entry) GetWidthChars ¶
GetWidthChars() is a wrapper around gtk_entry_get_width_chars().
func (*Entry) LayoutIndexToTextIndex ¶
LayoutIndexToTextIndex() is a wrapper around gtk_entry_layout_index_to_text_index().
func (*Entry) ProgressPulse ¶
func (v *Entry) ProgressPulse()
ProgressPulse() is a wrapper around gtk_entry_progress_pulse().
func (*Entry) ResetIMContext ¶
func (v *Entry) ResetIMContext()
ResetIMContext() is a wrapper around gtk_entry_reset_im_context().
func (*Entry) SetActivatesDefault ¶
SetActivatesDefault() is a wrapper around gtk_entry_set_activates_default().
func (*Entry) SetAlignment ¶
SetAlignment() is a wrapper around gtk_entry_set_alignment().
func (*Entry) SetBuffer ¶
func (v *Entry) SetBuffer(buffer *EntryBuffer)
SetBuffer() is a wrapper around gtk_entry_set_buffer().
func (*Entry) SetCompletion ¶
func (v *Entry) SetCompletion(completion *EntryCompletion)
SetCompletion() is a wrapper around gtk_entry_set_completion().
func (*Entry) SetCursorHAdjustment ¶
func (v *Entry) SetCursorHAdjustment(adjustment *Adjustment)
SetCursorHAdjustment() is a wrapper around gtk_entry_set_cursor_hadjustment().
func (*Entry) SetHasFrame ¶
SetHasFrame() is a wrapper around gtk_entry_set_has_frame().
func (*Entry) SetIconActivatable ¶
func (v *Entry) SetIconActivatable(iconPos EntryIconPosition, activatable bool)
SetIconActivatable() is a wrapper around gtk_entry_set_icon_activatable().
func (*Entry) SetIconFromIconName ¶
func (v *Entry) SetIconFromIconName(iconPos EntryIconPosition, name string)
SetIconFromIconName() is a wrapper around gtk_entry_set_icon_from_icon_name().
func (*Entry) SetIconSensitive ¶
func (v *Entry) SetIconSensitive(iconPos EntryIconPosition, sensitive bool)
SetIconSensitive() is a wrapper around gtk_entry_set_icon_sensitive().
func (*Entry) SetIconTooltipMarkup ¶
func (v *Entry) SetIconTooltipMarkup(iconPos EntryIconPosition, tooltip string)
SetIconTooltipMarkup() is a wrapper around gtk_entry_set_icon_tooltip_markup().
func (*Entry) SetIconTooltipText ¶
func (v *Entry) SetIconTooltipText(iconPos EntryIconPosition, tooltip string)
SetIconTooltipText() is a wrapper around gtk_entry_set_icon_tooltip_text().
func (*Entry) SetInputHints ¶
func (v *Entry) SetInputHints(hints InputHints)
SetInputHints() is a wrapper around gtk_entry_set_input_hints().
func (*Entry) SetInputPurpose ¶
func (v *Entry) SetInputPurpose(purpose InputPurpose)
SetInputPurpose() is a wrapper around gtk_entry_set_input_purpose().
func (*Entry) SetInvisibleChar ¶
SetInvisibleChar() is a wrapper around gtk_entry_set_invisible_char().
func (*Entry) SetMaxLength ¶
SetMaxLength() is a wrapper around gtk_entry_set_max_length().
func (*Entry) SetOverwriteMode ¶
SetOverwriteMode() is a wrapper around gtk_entry_set_overwrite_mode().
func (*Entry) SetPlaceholderText ¶
SetPlaceholderText() is a wrapper around gtk_entry_set_placeholder_text().
func (*Entry) SetProgressFraction ¶
SetProgressFraction() is a wrapper around gtk_entry_set_progress_fraction().
func (*Entry) SetProgressPulseStep ¶
SetProgressPulseStep() is a wrapper around gtk_entry_set_progress_pulse_step().
func (*Entry) SetVisibility ¶
SetVisibility() is a wrapper around gtk_entry_set_visibility().
func (*Entry) SetWidthChars ¶
SetWidthChars() is a wrapper around gtk_entry_set_width_chars().
func (*Entry) TextIndexToLayoutIndex ¶
TextIndexToLayoutIndex() is a wrapper around gtk_entry_text_index_to_layout_index().
func (*Entry) UnsetInvisibleChar ¶
func (v *Entry) UnsetInvisibleChar()
UnsetInvisibleChar() is a wrapper around gtk_entry_unset_invisible_char().
type EntryBuffer ¶
EntryBuffer is a representation of GTK's GtkEntryBuffer.
func EntryBufferNew ¶
func EntryBufferNew(initialChars string, nInitialChars int) (*EntryBuffer, error)
EntryBufferNew() is a wrapper around gtk_entry_buffer_new().
func (*EntryBuffer) DeleteText ¶
func (v *EntryBuffer) DeleteText(position uint, nChars int) uint
DeleteText() is a wrapper around gtk_entry_buffer_delete_text().
func (*EntryBuffer) EmitDeletedText ¶
func (v *EntryBuffer) EmitDeletedText(pos, nChars uint)
EmitDeletedText() is a wrapper around gtk_entry_buffer_emit_deleted_text().
func (*EntryBuffer) EmitInsertedText ¶
func (v *EntryBuffer) EmitInsertedText(pos uint, text string)
EmitInsertedText() is a wrapper around gtk_entry_buffer_emit_inserted_text().
func (*EntryBuffer) GetBytes ¶
func (v *EntryBuffer) GetBytes() uint
GetBytes() is a wrapper around gtk_entry_buffer_get_bytes().
func (*EntryBuffer) GetLength ¶
func (v *EntryBuffer) GetLength() uint
GetLength() is a wrapper around gtk_entry_buffer_get_length().
func (*EntryBuffer) GetMaxLength ¶
func (v *EntryBuffer) GetMaxLength() int
GetMaxLength() is a wrapper around gtk_entry_buffer_get_max_length().
func (*EntryBuffer) GetText ¶
func (v *EntryBuffer) GetText() (string, error)
GetText() is a wrapper around gtk_entry_buffer_get_text(). A non-nil error is returned in the case that gtk_entry_buffer_get_text returns NULL to differentiate between NULL and an empty string.
func (*EntryBuffer) InsertText ¶
func (v *EntryBuffer) InsertText(position uint, text string) uint
InsertText() is a wrapper around gtk_entry_buffer_insert_text().
func (*EntryBuffer) SetMaxLength ¶
func (v *EntryBuffer) SetMaxLength(maxLength int)
SetMaxLength() is a wrapper around gtk_entry_buffer_set_max_length().
func (*EntryBuffer) SetText ¶
func (v *EntryBuffer) SetText(text string)
SetText() is a wrapper around gtk_entry_buffer_set_text().
type EntryCompletion ¶
EntryCompletion is a representation of GTK's GtkEntryCompletion.
type EntryIconPosition ¶
type EntryIconPosition int
EntryIconPosition is a representation of GTK's GtkEntryIconPosition.
const ( ENTRY_ICON_PRIMARY EntryIconPosition = C.GTK_ENTRY_ICON_PRIMARY ENTRY_ICON_SECONDARY EntryIconPosition = C.GTK_ENTRY_ICON_SECONDARY )
type EventBox ¶
type EventBox struct {
Bin
}
EventBox is a representation of GTK's GtkEventBox.
func EventBoxNew ¶
EventBoxNew is a wrapper around gtk_event_box_new().
func (*EventBox) GetAboveChild ¶
GetAboveChild is a wrapper around gtk_event_box_get_above_child().
func (*EventBox) GetVisibleWindow ¶
GetVisibleWindow is a wrapper around gtk_event_box_get_visible_window().
func (*EventBox) SetAboveChild ¶
SetAboveChild is a wrapper around gtk_event_box_set_above_child().
func (*EventBox) SetVisibleWindow ¶
SetVisibleWindow is a wrapper around gtk_event_box_set_visible_window().
type FileChooser ¶
FileChoser is a representation of GTK's GtkFileChooser GInterface.
func (*FileChooser) GetFilename ¶
func (v *FileChooser) GetFilename() string
GetFilename is a wrapper around gtk_file_chooser_get_filename().
type FileChooserAction ¶
type FileChooserAction int
FileChooserAction is a representation of GTK's GtkFileChooserAction.
const ( FILE_CHOOSER_ACTION_OPEN FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_OPEN FILE_CHOOSER_ACTION_SAVE FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_SAVE FILE_CHOOSER_ACTION_SELECT_FOLDER FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER FILE_CHOOSER_ACTION_CREATE_FOLDER FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER )
type FileChooserButton ¶
type FileChooserButton struct { Box // Interfaces FileChooser }
FileChooserButton is a representation of GTK's GtkFileChooserButton.
func FileChooserButtonNew ¶
func FileChooserButtonNew(title string, action FileChooserAction) (*FileChooserButton, error)
FileChooserButtonNew is a wrapper around gtk_file_chooser_button_new().
type FileChooserWidget ¶
type FileChooserWidget struct { Box // Interfaces FileChooser }
FileChooserWidget is a representation of GTK's GtkFileChooserWidget.
func FileChooserWidgetNew ¶
func FileChooserWidgetNew(action FileChooserAction) (*FileChooserWidget, error)
FileChooserWidgetNew is a wrapper around gtk_gtk_file_chooser_widget_new().
type Frame ¶
type Frame struct {
Bin
}
Frame is a representation of GTK's GtkFrame.
func (*Frame) GetLabelAlign ¶
GetLabelAlign is a wrapper around gtk_frame_get_label_align().
func (*Frame) GetLabelWidget ¶
GetLabelWidget is a wrapper around gtk_frame_get_label_widget().
func (*Frame) GetShadowType ¶
func (v *Frame) GetShadowType() ShadowType
GetShadowType is a wrapper around gtk_frame_get_shadow_type().
func (*Frame) SetLabelAlign ¶
SetLabelAlign is a wrapper around gtk_frame_set_label_align().
func (*Frame) SetLabelWidget ¶
SetLabelWidget is a wrapper around gtk_frame_set_label_widget().
func (*Frame) SetShadowType ¶
func (v *Frame) SetShadowType(t ShadowType)
SetShadowType is a wrapper around gtk_frame_set_shadow_type().
type Grid ¶
type Grid struct { Container // Interfaces Orientable }
Grid is a representation of GTK's GtkGrid.
func (*Grid) AttachNextTo ¶
func (v *Grid) AttachNextTo(child, sibling IWidget, side PositionType, width, height int)
AttachNextTo() is a wrapper around gtk_grid_attach_next_to().
func (*Grid) GetChildAt ¶
GetChildAt() is a wrapper around gtk_grid_get_child_at().
func (*Grid) GetColumnHomogeneous ¶
GetColumnHomogeneous() is a wrapper around gtk_grid_get_column_homogeneous().
func (*Grid) GetColumnSpacing ¶
GetColumnSpacing() is a wrapper around gtk_grid_get_column_spacing().
func (*Grid) GetRowHomogeneous ¶
GetRowHomogeneous() is a wrapper around gtk_grid_get_row_homogeneous().
func (*Grid) GetRowSpacing ¶
GetRowSpacing() is a wrapper around gtk_grid_get_row_spacing().
func (*Grid) InsertColumn ¶
InsertColumn() is a wrapper around gtk_grid_insert_column().
func (*Grid) InsertNextTo ¶
func (v *Grid) InsertNextTo(sibling IWidget, side PositionType)
InsertNextTo() is a wrapper around gtk_grid_insert_next_to()
func (*Grid) SetColumnHomogeneous ¶
SetColumnHomogeneous() is a wrapper around gtk_grid_set_column_homogeneous().
func (*Grid) SetColumnSpacing ¶
SetColumnSpacing() is a wrapper around gtk_grid_set_column_spacing().
func (*Grid) SetRowHomogeneous ¶
SetRowHomogeneous() is a wrapper around gtk_grid_set_row_homogeneous().
func (*Grid) SetRowSpacing ¶
SetRowSpacing() is a wrapper around gtk_grid_set_row_spacing().
type HeaderBar ¶
type HeaderBar struct {
Container
}
func HeaderBarNew ¶
HeaderBarNew is a wrapper around gtk_header_bar_new().
func (*HeaderBar) GetCustomTitle ¶
GetCustomTitle is a wrapper around gtk_header_bar_get_custom_title().
func (*HeaderBar) GetShowCloseButton ¶
GetShowCloseButton is a wrapper around gtk_header_bar_get_show_close_button().
func (*HeaderBar) GetSubtitle ¶
GetSubtitle is a wrapper around gtk_header_bar_get_subtitle().
func (*HeaderBar) SetCustomTitle ¶
SetCustomTitle is a wrapper around gtk_header_bar_set_custom_title().
func (*HeaderBar) SetShowCloseButton ¶
SetShowCloseButton is a wrapper around gtk_header_bar_set_show_close_button().
func (*HeaderBar) SetSubtitle ¶
SetSubtitle is a wrapper around gtk_header_bar_set_subtitle().
type ICellLayout ¶
type ICellLayout interface {
// contains filtered or unexported methods
}
ICellLayout is an interface type implemented by all structs embedding a CellLayout. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkCellLayout.
type ICellRenderer ¶
type ICellRenderer interface {
// contains filtered or unexported methods
}
ICellRenderer is an interface type implemented by all structs embedding a CellRenderer. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkCellRenderer.
type IEditable ¶
type IEditable interface {
// contains filtered or unexported methods
}
IEditable is an interface type implemented by all structs embedding an Editable. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkEditable.
type IMenu ¶
type IMenu interface {
// contains filtered or unexported methods
}
IMenu is an interface type implemented by all structs embedding a Menu. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkMenu.
type IMenuItem ¶
type IMenuItem interface {
// contains filtered or unexported methods
}
IMenuItem is an interface type implemented by all structs embedding a MenuItem. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkMenuItem.
type IOrientable ¶
type IOrientable interface {
// contains filtered or unexported methods
}
IOrientable is an interface type implemented by all structs embedding an Orientable. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkOrientable.
type IToolItem ¶
type IToolItem interface {
// contains filtered or unexported methods
}
IToolItem is an interface type implemented by all structs embedding a ToolItem. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkToolItem.
type ITreeModel ¶
type ITreeModel interface {
// contains filtered or unexported methods
}
ITreeModel is an interface type implemented by all structs embedding a TreeModel. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkTreeModel.
type IWidget ¶
type IWidget interface {
// contains filtered or unexported methods
}
IWidget is an interface type implemented by all structs embedding a Widget. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkWidget.
type IWindow ¶
type IWindow interface {
// contains filtered or unexported methods
}
IWindow is an interface type implemented by all structs embedding a Window. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkWindow.
type IconSize ¶
type IconSize int
IconSize is a representation of GTK's GtkIconSize.
const ( ICON_SIZE_INVALID IconSize = C.GTK_ICON_SIZE_INVALID ICON_SIZE_MENU IconSize = C.GTK_ICON_SIZE_MENU ICON_SIZE_SMALL_TOOLBAR IconSize = C.GTK_ICON_SIZE_SMALL_TOOLBAR ICON_SIZE_LARGE_TOOLBAR IconSize = C.GTK_ICON_SIZE_LARGE_TOOLBAR ICON_SIZE_BUTTON IconSize = C.GTK_ICON_SIZE_BUTTON ICON_SIZE_DND IconSize = C.GTK_ICON_SIZE_DND ICON_SIZE_DIALOG IconSize = C.GTK_ICON_SIZE_DIALOG )
type Image ¶
type Image struct {
Misc
}
Image is a representation of GTK's GtkImage.
func ImageNewFromFile ¶
ImageNewFromFile() is a wrapper around gtk_image_new_from_file().
func ImageNewFromIconName ¶
ImageNewFromIconName() is a wrapper around gtk_image_new_from_icon_name().
func ImageNewFromPixbuf ¶
ImageNewFromPixbuf is a wrapper around gtk_image_new_from_pixbuf().
func ImageNewFromResource ¶
ImageNewFromResource() is a wrapper around gtk_image_new_from_resource().
func (*Image) GetIconName ¶
GetIconName() is a wrapper around gtk_image_get_icon_name().
func (*Image) GetPixelSize ¶
GetPixelSize() is a wrapper around gtk_image_get_pixel_size().
func (*Image) GetStorageType ¶
GetStorageType() is a wrapper around gtk_image_get_storage_type().
func (*Image) SetFromFile ¶
SetFromFile() is a wrapper around gtk_image_set_from_file().
func (*Image) SetFromIconName ¶
SetFromIconName() is a wrapper around gtk_image_set_from_icon_name().
func (*Image) SetFromPixbuf ¶
SetFromFixbuf is a wrapper around gtk_image_set_from_pixbuf().
func (*Image) SetFromResource ¶
SetFromResource() is a wrapper around gtk_image_set_from_resource().
func (*Image) SetPixelSize ¶
SetPixelSize() is a wrapper around gtk_image_set_pixel_size().
type ImageType ¶
type ImageType int
ImageType is a representation of GTK's GtkImageType.
const ( IMAGE_EMPTY ImageType = C.GTK_IMAGE_EMPTY IMAGE_PIXBUF ImageType = C.GTK_IMAGE_PIXBUF IMAGE_STOCK ImageType = C.GTK_IMAGE_STOCK IMAGE_ICON_SET ImageType = C.GTK_IMAGE_ICON_SET IMAGE_ANIMATION ImageType = C.GTK_IMAGE_ANIMATION IMAGE_ICON_NAME ImageType = C.GTK_IMAGE_ICON_NAME IMAGE_GICON ImageType = C.GTK_IMAGE_GICON )
type InputHints ¶
type InputHints int
InputHints is a representation of GTK's GtkInputHints.
const ( INPUT_HINT_NONE InputHints = C.GTK_INPUT_HINT_NONE INPUT_HINT_SPELLCHECK InputHints = C.GTK_INPUT_HINT_SPELLCHECK INPUT_HINT_NO_SPELLCHECK InputHints = C.GTK_INPUT_HINT_NO_SPELLCHECK INPUT_HINT_WORD_COMPLETION InputHints = C.GTK_INPUT_HINT_WORD_COMPLETION INPUT_HINT_LOWERCASE InputHints = C.GTK_INPUT_HINT_LOWERCASE INPUT_HINT_UPPERCASE_CHARS InputHints = C.GTK_INPUT_HINT_UPPERCASE_CHARS INPUT_HINT_UPPERCASE_WORDS InputHints = C.GTK_INPUT_HINT_UPPERCASE_WORDS INPUT_HINT_UPPERCASE_SENTENCES InputHints = C.GTK_INPUT_HINT_UPPERCASE_SENTENCES INPUT_HINT_INHIBIT_OSK InputHints = C.GTK_INPUT_HINT_INHIBIT_OSK )
type InputPurpose ¶
type InputPurpose int
InputPurpose is a representation of GTK's GtkInputPurpose.
const ( INPUT_PURPOSE_FREE_FORM InputPurpose = C.GTK_INPUT_PURPOSE_FREE_FORM INPUT_PURPOSE_ALPHA InputPurpose = C.GTK_INPUT_PURPOSE_ALPHA INPUT_PURPOSE_DIGITS InputPurpose = C.GTK_INPUT_PURPOSE_DIGITS INPUT_PURPOSE_NUMBER InputPurpose = C.GTK_INPUT_PURPOSE_NUMBER INPUT_PURPOSE_PHONE InputPurpose = C.GTK_INPUT_PURPOSE_PHONE INPUT_PURPOSE_URL InputPurpose = C.GTK_INPUT_PURPOSE_URL INPUT_PURPOSE_EMAIL InputPurpose = C.GTK_INPUT_PURPOSE_EMAIL INPUT_PURPOSE_NAME InputPurpose = C.GTK_INPUT_PURPOSE_NAME INPUT_PURPOSE_PASSWORD InputPurpose = C.GTK_INPUT_PURPOSE_PASSWORD INPUT_PURPOSE_PIN InputPurpose = C.GTK_INPUT_PURPOSE_PIN )
type Justification ¶
type Justification int
Justify is a representation of GTK's GtkJustification.
const ( JUSTIFY_LEFT Justification = C.GTK_JUSTIFY_LEFT JUSTIFY_RIGHT Justification = C.GTK_JUSTIFY_RIGHT JUSTIFY_CENTER Justification = C.GTK_JUSTIFY_CENTER JUSTIFY_FILL Justification = C.GTK_JUSTIFY_FILL )
type Label ¶
type Label struct {
Misc
}
Label is a representation of GTK's GtkLabel.
func LabelNewWithMnemonic ¶
LabelNewWithMnemonic is a wrapper around gtk_label_new_with_mnemonic().
func (*Label) GetCurrentUri ¶
GetCurrentUri is a wrapper around gtk_label_get_current_uri().
func (*Label) GetEllipsize ¶
func (v *Label) GetEllipsize() pango.EllipsizeMode
GetEllipsize is a wrapper around gtk_label_get_ellipsize().
func (*Label) GetJustify ¶
func (v *Label) GetJustify() Justification
GetJustify is a wrapper around gtk_label_get_justify().
func (*Label) GetLineWrap ¶
GetLineWrap is a wrapper around gtk_label_get_line_wrap().
func (*Label) GetMaxWidthChars ¶
GetMaxWidthChars is a wrapper around gtk_label_get_max_width_chars().
func (*Label) GetSelectable ¶
GetSelectable is a wrapper around gtk_label_get_selectable().
func (*Label) GetSelectionBounds ¶
GetSelectionBounds is a wrapper around gtk_label_get_selection_bounds().
func (*Label) GetSingleLineMode ¶
GetSingleLineMode is a wrapper around gtk_label_get_single_line_mode().
func (*Label) GetTrackVisitedLinks ¶
GetTrackVisitedLinks is a wrapper around gtk_label_get_track_visited_links().
func (*Label) GetUseMarkup ¶
GetUseMarkup is a wrapper around gtk_label_get_use_markup().
func (*Label) GetUseUnderline ¶
GetUseUnderline is a wrapper around gtk_label_get_use_underline().
func (*Label) GetWidthChars ¶
GetWidthChars is a wrapper around gtk_label_get_width_chars().
func (*Label) SelectRegion ¶
SelectRegion is a wrapper around gtk_label_select_region().
func (*Label) SetEllipsize ¶
func (v *Label) SetEllipsize(mode pango.EllipsizeMode)
SetEllipsize is a wrapper around gtk_label_set_ellipsize().
func (*Label) SetJustify ¶
func (v *Label) SetJustify(jtype Justification)
SetJustify is a wrapper around gtk_label_set_justify().
func (*Label) SetLineWrap ¶
SetLineWrap is a wrapper around gtk_label_set_line_wrap().
func (*Label) SetLineWrapMode ¶
SetLineWrapMode is a wrapper around gtk_label_set_line_wrap_mode().
func (*Label) SetMarkupWithMnemonic ¶
SetMarkupWithMnemonic is a wrapper around gtk_label_set_markup_with_mnemonic().
func (*Label) SetMaxWidthChars ¶
SetMaxWidthChars is a wrapper around gtk_label_set_max_width_chars().
func (*Label) SetPattern ¶
SetPattern is a wrapper around gtk_label_set_pattern().
func (*Label) SetSelectable ¶
SetSelectable is a wrapper around gtk_label_set_selectable().
func (*Label) SetSingleLineMode ¶
SetSingleLineMode is a wrapper around gtk_label_set_single_line_mode().
func (*Label) SetTrackVisitedLinks ¶
SetTrackVisitedLinks is a wrapper around gtk_label_set_track_visited_links().
func (*Label) SetUseMarkup ¶
SetUseMarkup is a wrapper around gtk_label_set_use_markup().
func (*Label) SetUseUnderline ¶
SetUseUnderline is a wrapper around gtk_label_set_use_underline().
func (*Label) SetWidthChars ¶
SetWidthChars is a wrapper around gtk_label_set_width_chars().
type License ¶
type License int
License is a representation of GTK's GtkLicense.
const ( LICENSE_UNKNOWN License = C.GTK_LICENSE_UNKNOWN LICENSE_CUSTOM License = C.GTK_LICENSE_CUSTOM LICENSE_GPL_2_0 License = C.GTK_LICENSE_GPL_2_0 LICENSE_GPL_3_0 License = C.GTK_LICENSE_GPL_3_0 LICENSE_LGPL_2_1 License = C.GTK_LICENSE_LGPL_2_1 LICENSE_LGPL_3_0 License = C.GTK_LICENSE_LGPL_3_0 LICENSE_BSD License = C.GTK_LICENSE_BSD LICENSE_MIT_X11 License = C.GTK_LICENSE_MIT_X11 LICENSE_GTK_ARTISTIC License = C.GTK_LICENSE_ARTISTIC )
type ListBox ¶
type ListBox struct {
Container
}
ListBox is a representation of GTK's GtkListBox.
func ListBoxNew ¶
ListBoxNew is a wrapper around gtk_list_box_new().
func (*ListBox) DragHighlightRow ¶
func (v *ListBox) DragHighlightRow(row *ListBoxRow)
DragHighlightRow is a wrapper around gtk_list_box_drag_highlight_row()
func (*ListBox) GetActivateOnSingleClick ¶
GetActivateOnSingleClick is a wrapper around gtk_list_box_get_activate_on_single_click().
func (*ListBox) GetAdjustment ¶
func (v *ListBox) GetAdjustment() *Adjustment
GetAdjustment is a wrapper around gtk_list_box_get_adjustment().
func (*ListBox) GetRowAtIndex ¶
func (v *ListBox) GetRowAtIndex(index int) *ListBoxRow
GetRowAtIndex is a wrapper around gtk_list_box_get_row_at_index().
func (*ListBox) GetRowAtY ¶
func (v *ListBox) GetRowAtY(y int) *ListBoxRow
GetRowAtY is a wrapper around gtk_list_box_get_row_at_y().
func (*ListBox) GetSelectedRow ¶
func (v *ListBox) GetSelectedRow() *ListBoxRow
GetSelectedRow is a wrapper around gtk_list_box_get_selected_row().
func (*ListBox) GetSelectionMode ¶
func (v *ListBox) GetSelectionMode() SelectionMode
GetSelectionMode is a wrapper around gtk_list_box_get_selection_mode()
func (*ListBox) InvalidateFilter ¶
func (v *ListBox) InvalidateFilter()
InvalidateFilter is a wrapper around gtk_list_box_invalidate_filter().
func (*ListBox) InvalidateHeaders ¶
func (v *ListBox) InvalidateHeaders()
InvalidateHeaders is a wrapper around gtk_list_box_invalidate_headers().
func (*ListBox) InvalidateSort ¶
func (v *ListBox) InvalidateSort()
InvalidateSort is a wrapper around gtk_list_box_invalidate_sort().
func (*ListBox) SelectRow ¶
func (v *ListBox) SelectRow(row *ListBoxRow)
SelectRow is a wrapper around gtk_list_box_select_row().
func (*ListBox) SetActivateOnSingleClick ¶
SetActivateOnSingleClick is a wrapper around gtk_list_box_set_activate_on_single_click().
func (*ListBox) SetAdjuctment ¶
func (v *ListBox) SetAdjuctment(adjustment *Adjustment)
SetAdjustment is a wrapper around gtk_list_box_set_adjustment().
func (*ListBox) SetPlaceholder ¶
SetPlaceholder is a wrapper around gtk_list_box_set_placeholder().
func (*ListBox) SetSelectionMode ¶
func (v *ListBox) SetSelectionMode(mode SelectionMode)
SetSelectionMode is a wrapper around gtk_list_box_set_selection_mode().
type ListBoxRow ¶
type ListBoxRow struct {
Bin
}
ListBoxRow is a representation of GTK's GtkListBoxRow.
func ListBoxRowNew ¶
func ListBoxRowNew() (*ListBoxRow, error)
func (*ListBoxRow) Changed ¶
func (v *ListBoxRow) Changed()
Changed is a wrapper around gtk_list_box_row_changed().
func (*ListBoxRow) GetHeader ¶
func (v *ListBoxRow) GetHeader() *Widget
GetHeader is a wrapper around gtk_list_box_row_get_header().
func (*ListBoxRow) GetIndex ¶
func (v *ListBoxRow) GetIndex() int
GetIndex is a wrapper around gtk_list_box_row_get_index()
func (*ListBoxRow) SetHeader ¶
func (v *ListBoxRow) SetHeader(header IWidget)
SetHeader is a wrapper around gtk_list_box_row_get_header().
type ListStore ¶
ListStore is a representation of GTK's GtkListStore.
func ListStoreNew ¶
ListStoreNew is a wrapper around gtk_list_store_newv().
func (*ListStore) Clear ¶
func (v *ListStore) Clear()
Clear() is a wrapper around gtk_list_store_clear().
func (*ListStore) InsertAfter ¶
InsertAfter() is a wrapper around gtk_list_store_insert_after().
func (*ListStore) InsertBefore ¶
InsertBefore() is a wrapper around gtk_list_store_insert_before().
func (*ListStore) IterIsValid ¶
IterIsValid() is a wrapper around gtk_list_store_iter_is_valid().
func (*ListStore) MoveBefore ¶
MoveBefore() is a wrapper around gtk_list_store_move_before().
func (*ListStore) Set ¶
Set() is a wrapper around gtk_list_store_set_value() but provides a function similar to gtk_list_store_set() in that multiple columns may be set by one call. The length of columns and values slices must match, or Set() will return a non-nil error.
As an example, a call to:
store.Set(iter, []int{0, 1}, []interface{}{"Foo", "Bar"})
is functionally equivalent to calling the native C GTK function:
gtk_list_store_set(store, iter, 0, "Foo", 1, "Bar", -1);
type MenuBar ¶
type MenuBar struct {
MenuShell
}
MenuBar is a representation of GTK's GtkMenuBar.
func MenuBarNew ¶
MenuBarNew() is a wrapper around gtk_menu_bar_new().
type MenuButton ¶
type MenuButton struct {
ToggleButton
}
MenuButton is a representation of GTK's GtkMenuButton.
func MenuButtonNew ¶
func MenuButtonNew() (*MenuButton, error)
MenuButtonNew is a wrapper around gtk_menu_button_new().
func (*MenuButton) GetAlignWidget ¶
func (v *MenuButton) GetAlignWidget() *Widget
GetAlignWidget is a wrapper around gtk_menu_button_get_align_widget().
func (*MenuButton) GetDirection ¶
func (v *MenuButton) GetDirection() ArrowType
GetDirection is a wrapper around gtk_menu_button_get_direction().
func (*MenuButton) GetPopup ¶
func (v *MenuButton) GetPopup() *Menu
GetPopup is a wrapper around gtk_menu_button_get_popup().
func (*MenuButton) SetAlignWidget ¶
func (v *MenuButton) SetAlignWidget(alignWidget IWidget)
SetAlignWidget is a wrapper around gtk_menu_button_set_align_widget().
func (*MenuButton) SetDirection ¶
func (v *MenuButton) SetDirection(direction ArrowType)
SetDirection is a wrapper around gtk_menu_button_set_direction().
func (*MenuButton) SetPopup ¶
func (v *MenuButton) SetPopup(menu IMenu)
SetPopup is a wrapper around gtk_menu_button_set_popup().
type MenuItem ¶
type MenuItem struct {
Bin
}
MenuItem is a representation of GTK's GtkMenuItem.
func MenuItemNew ¶
MenuItemNew() is a wrapper around gtk_menu_item_new().
func MenuItemNewWithLabel ¶
MenuItemNewWithLabel() is a wrapper around gtk_menu_item_new_with_label().
func MenuItemNewWithMnemonic ¶
MenuItemNewWithMnemonic() is a wrapper around gtk_menu_item_new_with_mnemonic().
func (*MenuItem) SetSubmenu ¶
SetSubmenu() is a wrapper around gtk_menu_item_set_submenu().
type MenuShell ¶
type MenuShell struct {
Container
}
MenuShell is a representation of GTK's GtkMenuShell.
type MessageDialog ¶
type MessageDialog struct {
Dialog
}
MessageDialog is a representation of GTK's GtkMessageDialog.
func MessageDialogNew ¶
func MessageDialogNew(parent IWindow, flags DialogFlags, mType MessageType, buttons ButtonsType, format string, a ...interface{}) *MessageDialog
MessageDialogNew() is a wrapper around gtk_message_dialog_new(). The text is created and formatted by the format specifier and any additional arguments.
func MessageDialogNewWithMarkup ¶
func MessageDialogNewWithMarkup(parent IWindow, flags DialogFlags, mType MessageType, buttons ButtonsType, format string, a ...interface{}) *MessageDialog
MessageDialogNewWithMarkup is a wrapper around gtk_message_dialog_new_with_markup().
func (*MessageDialog) FormatSecondaryMarkup ¶
func (v *MessageDialog) FormatSecondaryMarkup(format string, a ...interface{})
FormatSecondaryMarkup is a wrapper around gtk_message_dialog_format_secondary_text().
func (*MessageDialog) FormatSecondaryText ¶
func (v *MessageDialog) FormatSecondaryText(format string, a ...interface{})
FormatSecondaryText is a wrapper around gtk_message_dialog_format_secondary_text().
func (*MessageDialog) SetMarkup ¶
func (v *MessageDialog) SetMarkup(str string)
SetMarkup is a wrapper around gtk_message_dialog_set_markup().
type MessageType ¶
type MessageType int
MessageType is a representation of GTK's GtkMessageType.
const ( MESSAGE_INFO MessageType = C.GTK_MESSAGE_INFO MESSAGE_WARNING MessageType = C.GTK_MESSAGE_WARNING MESSAGE_QUESTION MessageType = C.GTK_MESSAGE_QUESTION MESSAGE_ERROR MessageType = C.GTK_MESSAGE_ERROR MESSAGE_OTHER MessageType = C.GTK_MESSAGE_OTHER )
type Misc ¶
type Misc struct {
Widget
}
Misc is a representation of GTK's GtkMisc.
func (*Misc) GetAlignment ¶
GetAlignment is a wrapper around gtk_misc_get_alignment().
func (*Misc) GetPadding ¶
GetPadding is a wrapper around gtk_misc_get_padding().
func (*Misc) SetAlignment ¶
SetAlignment is a wrapper around gtk_misc_set_alignment().
func (*Misc) SetPadding ¶
SetPadding is a wrapper around gtk_misc_set_padding().
type Notebook ¶
type Notebook struct {
Container
}
Notebook is a representation of GTK's GtkNotebook.
func NotebookNew ¶
NotebookNew() is a wrapper around gtk_notebook_new().
func (*Notebook) AppendPage ¶
AppendPage() is a wrapper around gtk_notebook_append_page().
func (*Notebook) AppendPageMenu ¶
AppendPageMenu() is a wrapper around gtk_notebook_append_page_menu().
func (*Notebook) GetActionWidget ¶
GetActionWidget() is a wrapper around gtk_notebook_get_action_widget().
func (*Notebook) GetCurrentPage ¶
GetCurrentPage() is a wrapper around gtk_notebook_get_current_page().
func (*Notebook) GetGroupName ¶
GetGroupName() is a wrapper around gtk_notebook_get_group_name().
func (*Notebook) GetMenuLabel ¶
GetMenuLabel() is a wrapper around gtk_notebook_get_menu_label().
func (*Notebook) GetMenuLabelText ¶
GetMenuLabelText() is a wrapper around gtk_notebook_get_menu_label_text().
func (*Notebook) GetNthPage ¶
GetNthPage() is a wrapper around gtk_notebook_get_nth_page().
func (*Notebook) GetScrollable ¶
GetScrollable() is a wrapper around gtk_notebook_get_scrollable().
func (*Notebook) GetShowBorder ¶
GetShowBorder() is a wrapper around gtk_notebook_get_show_border().
func (*Notebook) GetShowTabs ¶
GetShowTabs() is a wrapper around gtk_notebook_get_show_tabs().
func (*Notebook) GetTabDetachable ¶
GetTabDetachable() is a wrapper around gtk_notebook_get_tab_detachable().
func (*Notebook) GetTabLabel ¶
GetTabLabel() is a wrapper around gtk_notebook_get_tab_label().
func (*Notebook) GetTabLabelText ¶
GetTabLabelText() is a wrapper around gtk_notebook_get_tab_label_text().
func (*Notebook) GetTabPos ¶
func (v *Notebook) GetTabPos() PositionType
GetTabPos() is a wrapper around gtk_notebook_get_tab_pos().
func (*Notebook) GetTabReorderable ¶
GetTabReorderable() is a wrapper around gtk_notebook_get_tab_reorderable().
func (*Notebook) InsertPage ¶
InsertPage() is a wrapper around gtk_notebook_insert_page().
func (*Notebook) InsertPageMenu ¶
func (v *Notebook) InsertPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget, position int) int
InsertPageMenu() is a wrapper around gtk_notebook_insert_page_menu().
func (*Notebook) NextPage ¶
func (v *Notebook) NextPage()
NextPage() is a wrapper around gtk_notebook_next_page().
func (*Notebook) PopupDisable ¶
func (v *Notebook) PopupDisable()
PopupDisable() is a wrapper around gtk_notebook_popup_disable().
func (*Notebook) PopupEnable ¶
func (v *Notebook) PopupEnable()
PopupEnable() is a wrapper around gtk_notebook_popup_enable().
func (*Notebook) PrependPage ¶
PrependPage() is a wrapper around gtk_notebook_prepend_page().
func (*Notebook) PrependPageMenu ¶
PrependPageMenu() is a wrapper around gtk_notebook_prepend_page_menu().
func (*Notebook) PrevPage ¶
func (v *Notebook) PrevPage()
PrevPage() is a wrapper around gtk_notebook_prev_page().
func (*Notebook) RemovePage ¶
RemovePage() is a wrapper around gtk_notebook_remove_page().
func (*Notebook) ReorderChild ¶
ReorderChild() is a wrapper around gtk_notebook_reorder_child().
func (*Notebook) SetActionWidget ¶
SetActionWidget() is a wrapper around gtk_notebook_set_action_widget().
func (*Notebook) SetCurrentPage ¶
SetCurrentPage() is a wrapper around gtk_notebook_set_current_page().
func (*Notebook) SetGroupName ¶
SetGroupName() is a wrapper around gtk_notebook_set_group_name().
func (*Notebook) SetMenuLabel ¶
SetMenuLabel() is a wrapper around gtk_notebook_set_menu_label().
func (*Notebook) SetMenuLabelText ¶
SetMenuLabelText() is a wrapper around gtk_notebook_set_menu_label_text().
func (*Notebook) SetScrollable ¶
SetScrollable() is a wrapper around gtk_notebook_set_scrollable().
func (*Notebook) SetShowBorder ¶
SetShowBorder() is a wrapper around gtk_notebook_set_show_border().
func (*Notebook) SetShowTabs ¶
SetShowTabs() is a wrapper around gtk_notebook_set_show_tabs().
func (*Notebook) SetTabDetachable ¶
SetTabDetachable() is a wrapper around gtk_notebook_set_tab_detachable().
func (*Notebook) SetTabLabel ¶
SetTabLabel() is a wrapper around gtk_notebook_set_tab_label().
func (*Notebook) SetTabLabelText ¶
SetTabLabelText() is a wrapper around gtk_notebook_set_tab_label_text().
func (*Notebook) SetTabPos ¶
func (v *Notebook) SetTabPos(pos PositionType)
SetTabPos() is a wrapper around gtk_notebook_set_tab_pos().
func (*Notebook) SetTabReorderable ¶
SetTabReorderable() is a wrapper around gtk_notebook_set_tab_reorderable().
type OffscreenWindow ¶
type OffscreenWindow struct {
Window
}
OffscreenWindow is a representation of GTK's GtkOffscreenWindow.
func OffscreenWindowNew ¶
func OffscreenWindowNew() (*OffscreenWindow, error)
OffscreenWindowNew is a wrapper around gtk_offscreen_window_new().
func (*OffscreenWindow) GetPixbuf ¶
func (v *OffscreenWindow) GetPixbuf() (*gdk.Pixbuf, error)
GetPixbuf is a wrapper around gtk_offscreen_window_get_pixbuf().
func (*OffscreenWindow) GetSurface ¶
func (v *OffscreenWindow) GetSurface() (*cairo.Surface, error)
GetSurface is a wrapper around gtk_offscreen_window_get_surface(). The returned surface is safe to use over window resizes.
type Orientable ¶
Orientable is a representation of GTK's GtkOrientable GInterface.
func (*Orientable) GetOrientation ¶
func (v *Orientable) GetOrientation() Orientation
GetOrientation() is a wrapper around gtk_orientable_get_orientation().
func (*Orientable) SetOrientation ¶
func (v *Orientable) SetOrientation(orientation Orientation)
SetOrientation() is a wrapper around gtk_orientable_set_orientation().
type Orientation ¶
type Orientation int
Orientation is a representation of GTK's GtkOrientation.
const ( ORIENTATION_HORIZONTAL Orientation = C.GTK_ORIENTATION_HORIZONTAL ORIENTATION_VERTICAL Orientation = C.GTK_ORIENTATION_VERTICAL )
type PackType ¶
type PackType int
PackType is a representation of GTK's GtkPackType.
const ( PACK_START PackType = C.GTK_PACK_START PACK_END PackType = C.GTK_PACK_END )
type PathType ¶
type PathType int
PathType is a representation of GTK's GtkPathType.
const ( PATH_WIDGET PathType = C.GTK_PATH_WIDGET PATH_WIDGET_CLASS PathType = C.GTK_PATH_WIDGET_CLASS PATH_CLASS PathType = C.GTK_PATH_CLASS )
type PolicyType ¶
type PolicyType int
PolicyType is a representation of GTK's GtkPolicyType.
const ( POLICY_ALWAYS PolicyType = C.GTK_POLICY_ALWAYS POLICY_AUTOMATIC PolicyType = C.GTK_POLICY_AUTOMATIC POLICY_NEVER PolicyType = C.GTK_POLICY_NEVER )
type PositionType ¶
type PositionType int
PositionType is a representation of GTK's GtkPositionType.
const ( POS_LEFT PositionType = C.GTK_POS_LEFT POS_RIGHT PositionType = C.GTK_POS_RIGHT POS_TOP PositionType = C.GTK_POS_TOP POS_BOTTOM PositionType = C.GTK_POS_BOTTOM )
type ProgressBar ¶
type ProgressBar struct {
Widget
}
ProgressBar is a representation of GTK's GtkProgressBar.
func ProgressBarNew ¶
func ProgressBarNew() (*ProgressBar, error)
ProgressBarNew() is a wrapper around gtk_progress_bar_new().
func (*ProgressBar) GetFraction ¶
func (v *ProgressBar) GetFraction() float64
GetFraction() is a wrapper around gtk_progress_bar_get_fraction().
func (*ProgressBar) GetShowText ¶
func (v *ProgressBar) GetShowText() bool
GetShowText is a wrapper around gtk_progress_bar_get_show_text().
func (*ProgressBar) SetFraction ¶
func (v *ProgressBar) SetFraction(fraction float64)
SetFraction() is a wrapper around gtk_progress_bar_set_fraction().
func (*ProgressBar) SetShowText ¶
func (v *ProgressBar) SetShowText(showText bool)
SetShowText is a wrapper around gtk_progress_bar_set_show_text().
func (*ProgressBar) SetText ¶
func (v *ProgressBar) SetText(text string)
SetText() is a wrapper around gtk_progress_bar_set_text().
type RadioButton ¶
type RadioButton struct {
CheckButton
}
RadioButton is a representation of GTK's GtkRadioButton.
func RadioButtonNew ¶
func RadioButtonNew(group *glib.SList) (*RadioButton, error)
RadioButtonNew is a wrapper around gtk_radio_button_new().
func RadioButtonNewFromWidget ¶
func RadioButtonNewFromWidget(radioGroupMember *RadioButton) (*RadioButton, error)
RadioButtonNewFromWidget is a wrapper around gtk_radio_button_new_from_widget().
func RadioButtonNewWithLabel ¶
func RadioButtonNewWithLabel(group *glib.SList, label string) (*RadioButton, error)
RadioButtonNewWithLabel is a wrapper around gtk_radio_button_new_with_label().
func RadioButtonNewWithLabelFromWidget ¶
func RadioButtonNewWithLabelFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)
RadioButtonNewWithLabelFromWidget is a wrapper around gtk_radio_button_new_with_label_from_widget().
func RadioButtonNewWithMnemonic ¶
func RadioButtonNewWithMnemonic(group *glib.SList, label string) (*RadioButton, error)
RadioButtonNewWithMnemonic is a wrapper around gtk_radio_button_new_with_mnemonic()
func RadioButtonNewWithMnemonicFromWidget ¶
func RadioButtonNewWithMnemonicFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)
RadioButtonNewWithMnemonicFromWidget is a wrapper around gtk_radio_button_new_with_mnemonic_from_widget().
func (*RadioButton) GetGroup ¶
func (v *RadioButton) GetGroup() (*glib.SList, error)
GetGroup is a wrapper around gtk_radio_button_set_group().
func (*RadioButton) JoinGroup ¶
func (v *RadioButton) JoinGroup(groupSource *RadioButton)
JoinGroup is a wrapper around gtk_radio_button_join_group().
func (*RadioButton) SetGroup ¶
func (v *RadioButton) SetGroup(group *glib.SList)
SetGroup is a wrapper around gtk_radio_button_set_group().
type RadioMenuItem ¶
type RadioMenuItem struct {
CheckMenuItem
}
RadioMenuItem is a representation of GTK's GtkRadioMenuItem.
func RadioMenuItemNew ¶
func RadioMenuItemNew(group *glib.SList) (*RadioMenuItem, error)
RadioMenuItemNew is a wrapper around gtk_radio_menu_item_new().
func RadioMenuItemNewFromWidget ¶
func RadioMenuItemNewFromWidget(group *RadioMenuItem) (*RadioMenuItem, error)
RadioMenuItemNewFromWidget is a wrapper around gtk_radio_menu_item_new_from_widget().
func RadioMenuItemNewWithLabel ¶
func RadioMenuItemNewWithLabel(group *glib.SList, label string) (*RadioMenuItem, error)
RadioMenuItemNewWithLabel is a wrapper around gtk_radio_menu_item_new_with_label().
func RadioMenuItemNewWithLabelFromWidget ¶
func RadioMenuItemNewWithLabelFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)
RadioMenuItemNewWithLabelFromWidget is a wrapper around gtk_radio_menu_item_new_with_label_from_widget().
func RadioMenuItemNewWithMnemonic ¶
func RadioMenuItemNewWithMnemonic(group *glib.SList, label string) (*RadioMenuItem, error)
RadioMenuItemNewWithMnemonic is a wrapper around gtk_radio_menu_item_new_with_mnemonic().
func RadioMenuItemNewWithMnemonicFromWidget ¶
func RadioMenuItemNewWithMnemonicFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)
RadioMenuItemNewWithMnemonicFromWidget is a wrapper around gtk_radio_menu_item_new_with_mnemonic_from_widget().
func (*RadioMenuItem) GetGroup ¶
func (v *RadioMenuItem) GetGroup() (*glib.SList, error)
GetGroup is a wrapper around gtk_radio_menu_item_get_group().
func (*RadioMenuItem) SetGroup ¶
func (v *RadioMenuItem) SetGroup(group *glib.SList)
SetGroup is a wrapper around gtk_radio_menu_item_set_group().
type ReliefStyle ¶
type ReliefStyle int
ReliefStyle is a representation of GTK's GtkReliefStyle.
const ( RELIEF_NORMAL ReliefStyle = C.GTK_RELIEF_NORMAL RELIEF_HALF ReliefStyle = C.GTK_RELIEF_HALF RELIEF_NONE ReliefStyle = C.GTK_RELIEF_NONE )
type ResponseType ¶
type ResponseType int
ResponseType is a representation of GTK's GtkResponseType.
const ( RESPONSE_NONE ResponseType = C.GTK_RESPONSE_NONE RESPONSE_REJECT ResponseType = C.GTK_RESPONSE_REJECT RESPONSE_ACCEPT ResponseType = C.GTK_RESPONSE_ACCEPT RESPONSE_DELETE_EVENT ResponseType = C.GTK_RESPONSE_DELETE_EVENT RESPONSE_OK ResponseType = C.GTK_RESPONSE_OK RESPONSE_CANCEL ResponseType = C.GTK_RESPONSE_CANCEL RESPONSE_CLOSE ResponseType = C.GTK_RESPONSE_CLOSE RESPONSE_YES ResponseType = C.GTK_RESPONSE_YES RESPONSE_NO ResponseType = C.GTK_RESPONSE_NO RESPONSE_APPLY ResponseType = C.GTK_RESPONSE_APPLY RESPONSE_HELP ResponseType = C.GTK_RESPONSE_HELP )
type Revealer ¶
type Revealer struct {
Bin
}
Revealer is a representation of GTK's GtkRevealer
func RevealerNew ¶
RevealerNew is a wrapper around gtk_revealer_new()
func (*Revealer) GetChildRevealed ¶
GetChildRevealed is a wrapper around gtk_revealer_get_child_revealed().
func (*Revealer) GetRevealChild ¶
GetRevealChild is a wrapper around gtk_revealer_get_reveal_child().
func (*Revealer) GetTransitionDuration ¶
GetTransitionDuration is a wrapper around gtk_revealer_get_transition_duration()
func (*Revealer) GetTransitionType ¶
func (v *Revealer) GetTransitionType() RevealerTransitionType
GetTransitionType is a wrapper around gtk_revealer_get_transition_type()
func (*Revealer) SetRevealChild ¶
SetRevealChild is a wrapper around gtk_revealer_set_reveal_child().
func (*Revealer) SetTransitionDuration ¶
SetTransitionDuration is a wrapper around gtk_revealer_set_transition_duration().
func (*Revealer) SetTransitionType ¶
func (v *Revealer) SetTransitionType(transition RevealerTransitionType)
SetTransitionType is a wrapper around gtk_revealer_set_transition_type()
type RevealerTransitionType ¶
type RevealerTransitionType int
RevealerTransitionType is a representation of GTK's GtkRevealerTransitionType.
const ( REVEALER_TRANSITION_TYPE_NONE RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_NONE REVEALER_TRANSITION_TYPE_CROSSFADE RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_CROSSFADE REVEALER_TRANSITION_TYPE_SLIDE_RIGHT RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT REVEALER_TRANSITION_TYPE_SLIDE_LEFT RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT REVEALER_TRANSITION_TYPE_SLIDE_UP RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP REVEALER_TRANSITION_TYPE_SLIDE_DOWN RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN )
type Scrollbar ¶
type Scrollbar struct {
Range
}
Scrollbar is a representation of GTK's GtkScrollbar.
func ScrollbarNew ¶
func ScrollbarNew(orientation Orientation, adjustment *Adjustment) (*Scrollbar, error)
ScrollbarNew is a wrapper around gtk_scrollbar_new().
type ScrolledWindow ¶
type ScrolledWindow struct {
Bin
}
ScrolledWindow is a representation of GTK's GtkScrolledWindow.
func ScrolledWindowNew ¶
func ScrolledWindowNew(hadjustment, vadjustment *Adjustment) (*ScrolledWindow, error)
ScrolledWindowNew() is a wrapper around gtk_scrolled_window_new().
func (*ScrolledWindow) SetPolicy ¶
func (v *ScrolledWindow) SetPolicy(hScrollbarPolicy, vScrollbarPolicy PolicyType)
SetPolicy() is a wrapper around gtk_scrolled_window_set_policy().
type SearchBar ¶
type SearchBar struct {
Bin
}
SearchBar is a representation of GTK's GtkSearchBar.
func SearchBarNew ¶
SearchBarNew is a wrapper around gtk_search_bar_new()
func (*SearchBar) ConnectEntry ¶
ConnectEntry is a wrapper around gtk_search_bar_connect_entry().
func (*SearchBar) GetSearchMode ¶
GetSearchMode is a wrapper around gtk_search_bar_get_search_mode().
func (*SearchBar) GetShowCloseButton ¶
GetShowCloseButton is a wrapper arounb gtk_search_bar_get_show_close_button().
func (*SearchBar) HandleEvent ¶
HandleEvent is a wrapper around gtk_search_bar_handle_event()
func (*SearchBar) SetSearchMode ¶
SetSearchMode is a wrapper around gtk_search_bar_set_search_mode().
func (*SearchBar) SetShowCloseButton ¶
SetShowCloseButton is a wrapper around gtk_search_bar_set_show_close_button()
type SearchEntry ¶
type SearchEntry struct {
Entry
}
SearchEntry is a reprensentation of GTK's GtkSearchEntry.
func SearchEntryNew ¶
func SearchEntryNew() (*SearchEntry, error)
SearchEntryNew is a wrapper around gtk_search_entry_new().
type SelectionMode ¶
type SelectionMode int
SelectionMode is a representation of GTK's GtkSelectionMode.
const ( SELECTION_NONE SelectionMode = C.GTK_SELECTION_NONE SELECTION_SINGLE SelectionMode = C.GTK_SELECTION_SINGLE SELECTION_BROWSE SelectionMode = C.GTK_SELECTION_BROWSE SELECTION_MULTIPLE SelectionMode = C.GTK_SELECTION_MULTIPLE )
type Separator ¶
type Separator struct {
Widget
}
Separator is a representation of GTK's GtkSeparator.
func SeparatorNew ¶
func SeparatorNew(orientation Orientation) (*Separator, error)
SeparatorNew is a wrapper around gtk_separator_new().
type SeparatorMenuItem ¶
type SeparatorMenuItem struct {
MenuItem
}
SeparatorMenuItem is a representation of GTK's GtkSeparatorMenuItem.
func SeparatorMenuItemNew ¶
func SeparatorMenuItemNew() (*SeparatorMenuItem, error)
SeparatorMenuItemNew is a wrapper around gtk_separator_menu_item_new().
type SeparatorToolItem ¶
type SeparatorToolItem struct {
ToolItem
}
SeparatorToolItem is a representation of GTK's GtkSeparatorToolItem.
func SeparatorToolItemNew ¶
func SeparatorToolItemNew() (*SeparatorToolItem, error)
SeparatorToolItemNew is a wrapper around gtk_separator_tool_item_new().
func (*SeparatorToolItem) GetDraw ¶
func (v *SeparatorToolItem) GetDraw() bool
GetDraw is a wrapper around gtk_separator_tool_item_get_draw().
func (*SeparatorToolItem) SetDraw ¶
func (v *SeparatorToolItem) SetDraw(draw bool)
SetDraw is a wrapper around gtk_separator_tool_item_set_draw().
type ShadowType ¶
type ShadowType int
ShadowType is a representation of GTK's GtkShadowType.
const ( SHADOW_NONE ShadowType = C.GTK_SHADOW_NONE SHADOW_IN ShadowType = C.GTK_SHADOW_IN SHADOW_OUT ShadowType = C.GTK_SHADOW_OUT SHADOW_ETCHED_IN ShadowType = C.GTK_SHADOW_ETCHED_IN SHADOW_ETCHED_OUT ShadowType = C.GTK_SHADOW_ETCHED_OUT )
type SpinButton ¶
type SpinButton struct {
Entry
}
SpinButton is a representation of GTK's GtkSpinButton.
func SpinButtonNew ¶
func SpinButtonNew(adjustment *Adjustment, climbRate float64, digits uint) (*SpinButton, error)
SpinButtonNew() is a wrapper around gtk_spin_button_new().
func SpinButtonNewWithRange ¶
func SpinButtonNewWithRange(min, max, step float64) (*SpinButton, error)
SpinButtonNewWithRange() is a wrapper around gtk_spin_button_new_with_range().
func (*SpinButton) Configure ¶
func (v *SpinButton) Configure(adjustment *Adjustment, climbRate float64, digits uint)
Configure() is a wrapper around gtk_spin_button_configure().
func (*SpinButton) GetValue ¶
func (v *SpinButton) GetValue() float64
GetValue() is a wrapper around gtk_spin_button_get_value().
func (*SpinButton) GetValueAsInt ¶
func (v *SpinButton) GetValueAsInt() int
GetValueAsInt() is a wrapper around gtk_spin_button_get_value_as_int().
func (*SpinButton) SetValue ¶
func (v *SpinButton) SetValue(value float64)
SetValue() is a wrapper around gtk_spin_button_set_value().
type Spinner ¶
type Spinner struct {
Widget
}
Spinner is a representation of GTK's GtkSpinner.
func SpinnerNew ¶
SpinnerNew is a wrapper around gtk_spinner_new().
type Stack ¶
type Stack struct {
Container
}
Stack is a representation of GTK's GtkStack.
func (*Stack) GetHomogeneous ¶
GetHomogeneous is a wrapper around gtk_stack_get_homogeneous().
func (*Stack) GetTransitionDuration ¶
GetTransitionDuration is a wrapper around gtk_stack_get_transition_duration().
func (*Stack) GetTransitionType ¶
func (v *Stack) GetTransitionType() StackTransitionType
GetTransitionType is a wrapper around gtk_stack_get_transition_type().
func (*Stack) GetVisibleChild ¶
GetVisibleChild is a wrapper around gtk_stack_get_visible_child().
func (*Stack) GetVisibleChildName ¶
GetVisibleChildName is a wrapper around gtk_stack_get_visible_child_name().
func (*Stack) SetHomogeneous ¶
SetHomogeneous is a wrapper around gtk_stack_set_homogeneous().
func (*Stack) SetTransitionDuration ¶
SetTransitionDuration is a wrapper around gtk_stack_set_transition_duration().
func (*Stack) SetTransitionType ¶
func (v *Stack) SetTransitionType(transition StackTransitionType)
SetTransitionType is a wrapper around gtk_stack_set_transition_type().
func (*Stack) SetVisibleChild ¶
SetVisibleChild is a wrapper around gtk_stack_set_visible_child().
func (*Stack) SetVisibleChildFull ¶
func (v *Stack) SetVisibleChildFull(name string, transaction StackTransitionType)
SetVisibleChildFull is a wrapper around gtk_stack_set_visible_child_full().
func (*Stack) SetVisibleChildName ¶
SetVisibleChildName is a wrapper around gtk_stack_set_visible_child_name().
type StackSwitcher ¶
type StackSwitcher struct {
Box
}
StackSwitcher is a representation of GTK's GtkStackSwitcher
func StackSwitcherNew ¶
func StackSwitcherNew() (*StackSwitcher, error)
StackSwitcherNew is a wrapper around gtk_stack_switcher_new().
func (*StackSwitcher) GetStack ¶
func (v *StackSwitcher) GetStack() *Stack
GetStack is a wrapper around gtk_stack_switcher_get_stack().
func (*StackSwitcher) SetStack ¶
func (v *StackSwitcher) SetStack(stack *Stack)
SetStack is a wrapper around gtk_stack_switcher_set_stack().
type StackTransitionType ¶
type StackTransitionType int
StackTransitionType is a representation of GTK's GtkStackTransitionType.
const ( STACK_TRANSITION_TYPE_NONE StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_NONE STACK_TRANSITION_TYPE_CROSSFADE StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_CROSSFADE STACK_TRANSITION_TYPE_SLIDE_RIGHT StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT STACK_TRANSITION_TYPE_SLIDE_LEFT StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT STACK_TRANSITION_TYPE_SLIDE_UP StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_UP STACK_TRANSITION_TYPE_SLIDE_DOWN StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_DOWN STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT STACK_TRANSITION_TYPE_SLIDE_UP_DOWN StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN )
type StateFlags ¶
type StateFlags int
StateFlags is a representation of GTK's GtkStateFlags.
const ( STATE_FLAG_NORMAL StateFlags = C.GTK_STATE_FLAG_NORMAL STATE_FLAG_ACTIVE StateFlags = C.GTK_STATE_FLAG_ACTIVE STATE_FLAG_PRELIGHT StateFlags = C.GTK_STATE_FLAG_PRELIGHT STATE_FLAG_SELECTED StateFlags = C.GTK_STATE_FLAG_SELECTED STATE_FLAG_INSENSITIVE StateFlags = C.GTK_STATE_FLAG_INSENSITIVE STATE_FLAG_INCONSISTENT StateFlags = C.GTK_STATE_FLAG_INCONSISTENT STATE_FLAG_FOCUSED StateFlags = C.GTK_STATE_FLAG_FOCUSED STATE_FLAG_BACKDROP StateFlags = C.GTK_STATE_FLAG_BACKDROP )
const ( STATE_FLAG_DIR_LTR StateFlags = C.GTK_STATE_FLAG_DIR_LTR STATE_FLAG_DIR_RTL StateFlags = C.GTK_STATE_FLAG_DIR_RTL )
type StatusIcon ¶
StatusIcon is a representation of GTK's GtkStatusIcon
func StatusIconNew ¶
func StatusIconNew() (*StatusIcon, error)
StatusIconNew is a wrapper around gtk_status_icon_new()
func StatusIconNewFromFile ¶
func StatusIconNewFromFile(filename string) (*StatusIcon, error)
StatusIconNewFromFile is a wrapper around gtk_status_icon_new_from_file()
func StatusIconNewFromIconName ¶
func StatusIconNewFromIconName(iconName string) (*StatusIcon, error)
StatusIconNewFromIconName is a wrapper around gtk_status_icon_new_from_name()
func (*StatusIcon) GetHasTooltip ¶
func (v *StatusIcon) GetHasTooltip() bool
GetHasTooltip is a wrapper around gtk_status_icon_get_has_tooltip()
func (*StatusIcon) GetIconName ¶
func (v *StatusIcon) GetIconName() string
GetIconName is a wrapper around gtk_status_icon_get_icon_name()
func (*StatusIcon) GetSize ¶
func (v *StatusIcon) GetSize() int
GetSize is a wrapper around gtk_status_icon_get_size()
func (*StatusIcon) GetStorageType ¶
func (v *StatusIcon) GetStorageType() ImageType
GetStorageType is a wrapper around gtk_status_icon_get_storage_type()
func (*StatusIcon) GetTitle ¶
func (v *StatusIcon) GetTitle() string
GetTitle is a wrapper around gtk_status_icon_get_title()
func (*StatusIcon) GetTooltipMarkup ¶
func (v *StatusIcon) GetTooltipMarkup() string
GetTooltipMarkup is a wrapper around gtk_status_icon_get_tooltip_markup()
func (*StatusIcon) GetTooltipText ¶
func (v *StatusIcon) GetTooltipText() string
GetTooltipText is a wrapper around gtk_status_icon_get_tooltip_text()
func (*StatusIcon) GetVisible ¶
func (v *StatusIcon) GetVisible() bool
GetVisible is a wrapper around gtk_status_icon_get_visible()
func (*StatusIcon) GetX11WindowID ¶
func (v *StatusIcon) GetX11WindowID() int
GetX11WindowID is a wrapper around gtk_status_icon_get_x11_window_id()
func (*StatusIcon) IsEmbedded ¶
func (v *StatusIcon) IsEmbedded() bool
IsEmbedded is a wrapper around gtk_status_icon_is_embedded()
func (*StatusIcon) SetFromFile ¶
func (v *StatusIcon) SetFromFile(filename string)
SetFromFile is a wrapper around gtk_status_icon_set_from_file()
func (*StatusIcon) SetFromIconName ¶
func (v *StatusIcon) SetFromIconName(iconName string)
SetFromIconName is a wrapper around gtk_status_icon_set_from_icon_name()
func (*StatusIcon) SetHasTooltip ¶
func (v *StatusIcon) SetHasTooltip(hasTooltip bool)
SetHasTooltip is a wrapper around gtk_status_icon_set_has_tooltip()
func (*StatusIcon) SetName ¶
func (v *StatusIcon) SetName(name string)
SetName is a wrapper around gtk_status_icon_set_name()
func (*StatusIcon) SetTitle ¶
func (v *StatusIcon) SetTitle(title string)
SetTitle is a wrapper around gtk_status_icon_set_title()
func (*StatusIcon) SetTooltipMarkup ¶
func (v *StatusIcon) SetTooltipMarkup(markup string)
SetTooltipMarkup is a wrapper around gtk_status_icon_set_tooltip_markup()
func (*StatusIcon) SetTooltipText ¶
func (v *StatusIcon) SetTooltipText(text string)
SetTooltipText is a wrapper around gtk_status_icon_set_tooltip_text()
func (*StatusIcon) SetVisible ¶
func (v *StatusIcon) SetVisible(visible bool)
SetVisible is a wrapper around gtk_status_icon_set_visible()
type Statusbar ¶
type Statusbar struct {
Box
}
Statusbar is a representation of GTK's GtkStatusbar
func StatusbarNew ¶
StatusbarNew() is a wrapper around gtk_statusbar_new().
func (*Statusbar) GetContextId ¶
GetContextId() is a wrapper around gtk_statusbar_get_context_id().
func (*Statusbar) GetMessageArea ¶
GetMessageArea() is a wrapper around gtk_statusbar_get_message_area().
type Switch ¶
type Switch struct {
Widget
}
Switch is a representation of GTK's GtkSwitch.
type TextBuffer ¶
TextBuffer is a representation of GTK's GtkTextBuffer.
func TextBufferNew ¶
func TextBufferNew(table *TextTagTable) (*TextBuffer, error)
TextBufferNew() is a wrapper around gtk_text_buffer_new().
func (*TextBuffer) GetBounds ¶
func (v *TextBuffer) GetBounds() (start, end *TextIter)
func (*TextBuffer) GetText ¶
func (v *TextBuffer) GetText(start, end *TextIter, includeHiddenChars bool) (string, error)
func (*TextBuffer) SetText ¶
func (v *TextBuffer) SetText(text string)
type TextTagTable ¶
func TextTagTableNew ¶
func TextTagTableNew() (*TextTagTable, error)
type TextView ¶
type TextView struct {
Container
}
TextView is a representation of GTK's GtkTextView
func TextViewNew ¶
TextViewNew is a wrapper around gtk_text_view_new().
func TextViewNewWithBuffer ¶
func TextViewNewWithBuffer(buf *TextBuffer) (*TextView, error)
TextViewNewWithBuffer is a wrapper around gtk_text_view_new_with_buffer().
func (*TextView) GetAcceptsTab ¶
GetAcceptsTab is a wrapper around gtk_text_view_get_accepts_tab().
func (*TextView) GetBuffer ¶
func (v *TextView) GetBuffer() (*TextBuffer, error)
GetBuffer is a wrapper around gtk_text_view_get_buffer().
func (*TextView) GetCursorVisible ¶
GetCursorVisible is a wrapper around gtk_text_view_get_cursor_visible().
func (*TextView) GetEditable ¶
GetEditable is a wrapper around gtk_text_view_get_editable().
func (*TextView) GetInputHints ¶
func (v *TextView) GetInputHints() InputHints
GetInputHints is a wrapper around gtk_text_view_get_input_hints().
func (*TextView) GetInputPurpose ¶
func (v *TextView) GetInputPurpose() InputPurpose
GetInputPurpose is a wrapper around gtk_text_view_get_input_purpose().
func (*TextView) GetJustification ¶
func (v *TextView) GetJustification() Justification
GetJustification is a wrapper around gtk_text_view_get_justification().
func (*TextView) GetLeftMargin ¶
GetLeftMargin is a wrapper around gtk_text_view_get_left_margin().
func (*TextView) GetOverwrite ¶
GetOverwrite is a wrapper around gtk_text_view_get_overwrite().
func (*TextView) GetPixelsAboveLines ¶
GetPixelsAboveLines is a wrapper around gtk_text_view_get_pixels_above_lines().
func (*TextView) GetPixelsBelowLines ¶
GetPixelsBelowLines is a wrapper around gtk_text_view_get_pixels_below_lines().
func (*TextView) GetPixelsInsideWrap ¶
GetPixelsInsideWrap is a wrapper around gtk_text_view_get_pixels_inside_wrap().
func (*TextView) GetRightMargin ¶
GetRightMargin is a wrapper around gtk_text_view_get_right_margin().
func (*TextView) GetWrapMode ¶
GetWrapMode is a wrapper around gtk_text_view_get_wrap_mode().
func (*TextView) SetAcceptsTab ¶
SetAcceptsTab is a wrapper around gtk_text_view_set_accepts_tab().
func (*TextView) SetBuffer ¶
func (v *TextView) SetBuffer(buffer *TextBuffer)
SetBuffer is a wrapper around gtk_text_view_set_buffer().
func (*TextView) SetCursorVisible ¶
SetCursorVisible is a wrapper around gtk_text_view_set_cursor_visible().
func (*TextView) SetEditable ¶
SetEditable is a wrapper around gtk_text_view_set_editable().
func (*TextView) SetInputHints ¶
func (v *TextView) SetInputHints(hints InputHints)
SetInputHints is a wrapper around gtk_text_view_set_input_hints().
func (*TextView) SetInputPurpose ¶
func (v *TextView) SetInputPurpose(purpose InputPurpose)
SetInputPurpose is a wrapper around gtk_text_view_set_input_purpose().
func (*TextView) SetJustification ¶
func (v *TextView) SetJustification(justify Justification)
SetJustification is a wrapper around gtk_text_view_set_justification().
func (*TextView) SetLeftMargin ¶
SetLeftMargin is a wrapper around gtk_text_view_set_left_margin().
func (*TextView) SetOverwrite ¶
SetOverwrite is a wrapper around gtk_text_view_set_overwrite().
func (*TextView) SetPixelsAboveLines ¶
SetPixelsAboveLines is a wrapper around gtk_text_view_set_pixels_above_lines().
func (*TextView) SetPixelsBelowLines ¶
SetPixelsBelowLines is a wrapper around gtk_text_view_set_pixels_below_lines().
func (*TextView) SetPixelsInsideWrap ¶
SetPixelsInsideWrap is a wrapper around gtk_text_view_set_pixels_inside_wrap().
func (*TextView) SetRightMargin ¶
SetRightMargin is a wrapper around gtk_text_view_set_right_margin().
func (*TextView) SetWrapMode ¶
SetWrapMode is a wrapper around gtk_text_view_set_wrap_mode().
type ToggleButton ¶
type ToggleButton struct {
Button
}
ToggleButton is a representation of GTK's GtkToggleButton.
func ToggleButtonNew ¶
func ToggleButtonNew() (*ToggleButton, error)
ToggleButtonNew is a wrapper around gtk_toggle_button_new().
func ToggleButtonNewWithLabel ¶
func ToggleButtonNewWithLabel(label string) (*ToggleButton, error)
ToggleButtonNewWithLabel is a wrapper around gtk_toggle_button_new_with_label().
func ToggleButtonNewWithMnemonic ¶
func ToggleButtonNewWithMnemonic(label string) (*ToggleButton, error)
ToggleButtonNewWithMnemonic is a wrapper around gtk_toggle_button_new_with_mnemonic().
func (*ToggleButton) GetActive ¶
func (v *ToggleButton) GetActive() bool
GetActive is a wrapper around gtk_toggle_button_get_active().
func (*ToggleButton) SetActive ¶
func (v *ToggleButton) SetActive(isActive bool)
SetActive is a wrapper around gtk_toggle_button_set_active().
type ToolButton ¶
type ToolButton struct {
ToolItem
}
ToolButton is a representation of GTK's GtkToolButton.
func ToolButtonNew ¶
func ToolButtonNew(iconWidget IWidget, label string) (*ToolButton, error)
ToolButtonNew is a wrapper around gtk_tool_button_new().
func (*ToolButton) GetIconName ¶
func (v *ToolButton) GetIconName() string
GetIconName is a wrapper around gtk_tool_button_get_icon_name().
func (*ToolButton) GetIconWidget ¶
func (v *ToolButton) GetIconWidget() *Widget
GetIconWidget is a wrapper around gtk_tool_button_get_icon_widget().
func (*ToolButton) GetLabel ¶
func (v *ToolButton) GetLabel() string
GetLabel is a wrapper aroud gtk_tool_button_get_label().
func (*ToolButton) GetLabelWidget ¶
func (v *ToolButton) GetLabelWidget() *Widget
GetLabelWidget is a wrapper around gtk_tool_button_get_label_widget().
func (*ToolButton) GetuseUnderline ¶
func (v *ToolButton) GetuseUnderline() bool
GetUseUnderline is a wrapper around gtk_tool_button_get_use_underline().
func (*ToolButton) SetGetUnderline ¶
func (v *ToolButton) SetGetUnderline(useUnderline bool)
SetUseUnderline is a wrapper around gtk_tool_button_set_use_underline().
func (*ToolButton) SetIconName ¶
func (v *ToolButton) SetIconName(iconName string)
SetIconName is a wrapper around gtk_tool_button_set_icon_name().
func (*ToolButton) SetIconWidget ¶
func (v *ToolButton) SetIconWidget(iconWidget IWidget)
SetIconWidget is a wrapper around gtk_tool_button_set_icon_widget().
func (*ToolButton) SetLabel ¶
func (v *ToolButton) SetLabel(label string)
SetLabel is a wrapper around gtk_tool_button_set_label().
func (*ToolButton) SetLabelWidget ¶
func (v *ToolButton) SetLabelWidget(labelWidget IWidget)
SetLabelWidget is a wrapper around gtk_tool_button_set_label_widget().
type ToolItem ¶
type ToolItem struct {
Bin
}
ToolItem is a representation of GTK's GtkToolItem.
func ToolItemNew ¶
ToolItemNew is a wrapper around gtk_tool_item_new().
func (*ToolItem) GetHomogeneous ¶
GetHomogeneous is a wrapper around gtk_tool_item_get_homogeneous().
func (*ToolItem) GetIconSize ¶
GetIconSize is a wrapper around gtk_tool_item_get_icon_size().
func (*ToolItem) GetIsImportant ¶
GetIsImportant is a wrapper around gtk_tool_item_get_is_important().
func (*ToolItem) GetOrientation ¶
func (v *ToolItem) GetOrientation() Orientation
GetOrientation is a wrapper around gtk_tool_item_get_orientation().
func (*ToolItem) GetReliefStyle ¶
func (v *ToolItem) GetReliefStyle() ReliefStyle
GetReliefStyle is a wrapper around gtk_tool_item_get_relief_style().
func (*ToolItem) GetTextAlignment ¶
GetTextAlignment is a wrapper around gtk_tool_item_get_text_alignment().
func (*ToolItem) GetTextOrientation ¶
func (v *ToolItem) GetTextOrientation() Orientation
GetTextOrientation is a wrapper around gtk_tool_item_get_text_orientation().
func (*ToolItem) GetUseDragWindow ¶
GetUseDragWindow is a wrapper around gtk_tool_item_get_use_drag_window().
func (*ToolItem) GetVisibleHorizontal ¶
GetVisibleHorizontal is a wrapper around gtk_tool_item_get_visible_horizontal().
func (*ToolItem) GetVisibleVertical ¶
GetVisibleVertical is a wrapper around gtk_tool_item_get_visible_vertical().
func (*ToolItem) RebuildMenu ¶
func (v *ToolItem) RebuildMenu()
RebuildMenu is a wrapper around gtk_tool_item_rebuild_menu().
func (*ToolItem) RetrieveProxyMenuItem ¶
RetrieveProxyMenuItem is a wrapper around gtk_tool_item_retrieve_proxy_menu_item()
func (*ToolItem) SetHomogeneous ¶
SetHomogeneous is a wrapper around gtk_tool_item_set_homogeneous().
func (*ToolItem) SetIsImportant ¶
SetIsImportant is a wrapper around gtk_tool_item_set_is_important().
func (*ToolItem) SetProxyMenuItem ¶
SetProxyMenuItem is a wrapper around gtk_tool_item_set_proxy_menu_item().
func (*ToolItem) SetTooltipMarkup ¶
SetTooltipMarkup is a wrapper around gtk_tool_item_set_tooltip_markup().
func (*ToolItem) SetTooltipText ¶
SetTooltipText is a wrapper around gtk_tool_item_set_tooltip_text().
func (*ToolItem) SetUseDragWindow ¶
SetUseDragWindow is a wrapper around gtk_tool_item_set_use_drag_window().
func (*ToolItem) SetVisibleHorizontal ¶
SetVisibleHorizontal is a wrapper around gtk_tool_item_set_visible_horizontal().
func (*ToolItem) SetVisibleVertical ¶
SetVisibleVertical is a wrapper around gtk_tool_item_set_visible_vertical().
func (*ToolItem) ToolbarReconfigured ¶
func (v *ToolItem) ToolbarReconfigured()
ToolbarReconfigured is a wrapper around gtk_tool_item_toolbar_reconfigured().
type Toolbar ¶
type Toolbar struct {
Container
}
Toolbar is a representation of GTK's GtkToolbar.
func ToolbarNew ¶
ToolbarNew is a wrapper around gtk_toolbar_new().
func (*Toolbar) GetDropIndex ¶
GetDropIndex is a wrapper around gtk_toolbar_get_drop_index().
func (*Toolbar) GetIconSize ¶
GetIconSize is a wrapper around gtk_toolbar_get_icon_size().
func (*Toolbar) GetItemIndex ¶
GetItemIndex is a wrapper around gtk_toolbar_get_item_index().
func (*Toolbar) GetNthItem ¶
GetNthItem is a wrapper around gtk_toolbar_get_nth_item().
func (*Toolbar) GetReliefStyle ¶
func (v *Toolbar) GetReliefStyle() ReliefStyle
GetReliefStyle is a wrapper around gtk_toolbar_get_relief_style().
func (*Toolbar) GetShowArrow ¶
GetShowArrow is a wrapper around gtk_toolbar_get_show_arrow().
func (*Toolbar) GetStyle ¶
func (v *Toolbar) GetStyle() ToolbarStyle
GetStyle is a wrapper around gtk_toolbar_get_style().
func (*Toolbar) SetDropHighlightItem ¶
SetDropHighlightItem is a wrapper around gtk_toolbar_set_drop_highlight_item().
func (*Toolbar) SetIconSize ¶
SetIconSize is a wrapper around gtk_toolbar_set_icon_size().
func (*Toolbar) SetShowArrow ¶
SetShowArrow is a wrapper around gtk_toolbar_set_show_arrow().
func (*Toolbar) SetStyle ¶
func (v *Toolbar) SetStyle(style ToolbarStyle)
SetStyle is a wrapper around gtk_toolbar_set_style().
func (*Toolbar) UnsetIconSize ¶
func (v *Toolbar) UnsetIconSize()
UnsetIconSize is a wrapper around gtk_toolbar_unset_icon_size().
func (*Toolbar) UnsetStyle ¶
func (v *Toolbar) UnsetStyle()
UnsetStyle is a wrapper around gtk_toolbar_unset_style().
type ToolbarStyle ¶
type ToolbarStyle int
ToolbarStyle is a representation of GTK's GtkToolbarStyle.
const ( TOOLBAR_ICONS ToolbarStyle = C.GTK_TOOLBAR_ICONS TOOLBAR_TEXT ToolbarStyle = C.GTK_TOOLBAR_TEXT TOOLBAR_BOTH ToolbarStyle = C.GTK_TOOLBAR_BOTH TOOLBAR_BOTH_HORIZ ToolbarStyle = C.GTK_TOOLBAR_BOTH_HORIZ )
type TreeIter ¶
type TreeIter struct {
GtkTreeIter C.GtkTreeIter
}
TreeIter is a representation of GTK's GtkTreeIter.
type TreeModel ¶
TreeModel is a representation of GTK's GtkTreeModel GInterface.
func (*TreeModel) GetColumnType ¶
GetColumnType() is a wrapper around gtk_tree_model_get_column_type().
func (*TreeModel) GetFlags ¶
func (v *TreeModel) GetFlags() TreeModelFlags
GetFlags() is a wrapper around gtk_tree_model_get_flags().
func (*TreeModel) GetIterFirst ¶
GetIterFirst() is a wrapper around gtk_tree_model_get_iter_first().
func (*TreeModel) GetIterFromString ¶
GetIterFromString() is a wrapper around gtk_tree_model_get_iter_from_string().
func (*TreeModel) GetNColumns ¶
GetNColumns() is a wrapper around gtk_tree_model_get_n_columns().
type TreeModelFlags ¶
type TreeModelFlags int
TreeModelFlags is a representation of GTK's GtkTreeModelFlags.
const ( TREE_MODEL_ITERS_PERSIST TreeModelFlags = C.GTK_TREE_MODEL_ITERS_PERSIST TREE_MODEL_LIST_ONLY TreeModelFlags = C.GTK_TREE_MODEL_LIST_ONLY )
type TreePath ¶
type TreePath struct {
GtkTreePath *C.GtkTreePath
}
TreePath is a representation of GTK's GtkTreePath.
func TreePathFromList ¶
Return a TreePath from the GList
type TreeSelection ¶
TreeSelection is a representation of GTK's GtkTreeSelection.
func (*TreeSelection) CountSelectedRows ¶
func (v *TreeSelection) CountSelectedRows() int
CountSelectedRows() is a wrapper around gtk_tree_selection_count_selected_rows().
func (*TreeSelection) GetSelected ¶
func (v *TreeSelection) GetSelected(model *ITreeModel, iter *TreeIter) bool
GetSelected() is a wrapper around gtk_tree_selection_get_selected().
func (*TreeSelection) GetSelectedRows ¶
func (v *TreeSelection) GetSelectedRows(model ITreeModel) *glib.List
GetSelectedRows is a wrapper around gtk_tree_selection_get_selected_rows().
Please note that a runtime finalizer is only set on the head of the linked list, and must be kept live while accessing any item in the list, or the Go garbage collector will free the whole list.
type TreeView ¶
type TreeView struct {
Container
}
TreeView is a representation of GTK's GtkTreeView.
func TreeViewNew ¶
TreeViewNew() is a wrapper around gtk_tree_view_new().
func TreeViewNewWithModel ¶
func TreeViewNewWithModel(model ITreeModel) (*TreeView, error)
TreeViewNewWithModel() is a wrapper around gtk_tree_view_new_with_model().
func (*TreeView) AppendColumn ¶
func (v *TreeView) AppendColumn(column *TreeViewColumn) int
AppendColumn() is a wrapper around gtk_tree_view_append_column().
func (*TreeView) GetSelection ¶
func (v *TreeView) GetSelection() (*TreeSelection, error)
GetSelection() is a wrapper around gtk_tree_view_get_selection().
func (*TreeView) SetModel ¶
func (v *TreeView) SetModel(model ITreeModel)
SetModel() is a wrapper around gtk_tree_view_set_model().
type TreeViewColumn ¶
type TreeViewColumn struct {
glib.InitiallyUnowned
}
TreeViewColumns is a representation of GTK's GtkTreeViewColumn.
func TreeViewColumnNew ¶
func TreeViewColumnNew() (*TreeViewColumn, error)
TreeViewColumnNew() is a wrapper around gtk_tree_view_column_new().
func TreeViewColumnNewWithAttribute ¶
func TreeViewColumnNewWithAttribute(title string, renderer ICellRenderer, attribute string, column int) (*TreeViewColumn, error)
TreeViewColumnNewWithAttribute() is a wrapper around gtk_tree_view_column_new_with_attributes() that only sets one attribute for one column.
func (*TreeViewColumn) AddAttribute ¶
func (v *TreeViewColumn) AddAttribute(renderer ICellRenderer, attribute string, column int)
AddAttribute() is a wrapper around gtk_tree_view_column_add_attribute().
func (*TreeViewColumn) GetExpand ¶
func (v *TreeViewColumn) GetExpand() bool
GetExpand() is a wrapper around gtk_tree_view_column_get_expand().
func (*TreeViewColumn) GetMinWidth ¶
func (v *TreeViewColumn) GetMinWidth() int
GetMinWidth() is a wrapper around gtk_tree_view_column_get_min_width().
func (*TreeViewColumn) SetExpand ¶
func (v *TreeViewColumn) SetExpand(expand bool)
SetExpand() is a wrapper around gtk_tree_view_column_set_expand().
func (*TreeViewColumn) SetMinWidth ¶
func (v *TreeViewColumn) SetMinWidth(minWidth int)
SetMinWidth() is a wrapper around gtk_tree_view_column_set_min_width().
type Widget ¶
type Widget struct {
glib.InitiallyUnowned
}
Widget is a representation of GTK's GtkWidget.
func (*Widget) Destroy ¶
func (v *Widget) Destroy()
Destroy is a wrapper around gtk_widget_destroy().
func (*Widget) GetAllocatedHeight ¶
GetAllocatedHeight() is a wrapper around gtk_widget_get_allocated_height().
func (*Widget) GetAllocatedWidth ¶
GetAllocatedWidth() is a wrapper around gtk_widget_get_allocated_width().
func (*Widget) GetAppPaintable ¶
GetAppPaintable is a wrapper around gtk_widget_get_app_paintable().
func (*Widget) GetCanFocus ¶
GetCanFocus is a wrapper around gtk_widget_get_can_focus().
func (*Widget) GetDeviceEnabled ¶
GetDeviceEnabled is a wrapper around gtk_widget_get_device_enabled().
func (*Widget) GetDoubleBuffered ¶
GetDoubleBuffered is a wrapper around gtk_widget_get_double_buffered().
func (*Widget) GetHExpand ¶
GetHExpand is a wrapper around gtk_widget_get_hexpand().
func (*Widget) GetHasWindow ¶
GetHasWindow is a wrapper around gtk_widget_get_has_window().
func (*Widget) GetMarginBottom ¶
GetMarginBottom is a wrapper around gtk_widget_get_margin_bottom().
func (*Widget) GetMarginTop ¶
GetMarginTop is a wrapper around gtk_widget_get_margin_top().
func (*Widget) GetName ¶
GetName() is a wrapper around gtk_widget_get_name(). A non-nil error is returned in the case that gtk_widget_get_name returns NULL to differentiate between NULL and an empty string.
func (*Widget) GetNoShowAll ¶
GetNoShowAll is a wrapper around gtk_widget_get_no_show_all().
func (*Widget) GetParentWindow ¶
GetParentWindow is a wrapper around gtk_widget_get_parent_window().
func (*Widget) GetRealized ¶
GetRealized is a wrapper around gtk_window_get_realized().
func (*Widget) GetSensitive ¶
GetSensitive is a wrapper around gtk_widget_get_sensitive().
func (*Widget) GetSizeRequest ¶
GetSizeRequest is a wrapper around gtk_widget_get_size_request().
func (*Widget) GetTooltipText ¶
GetTooltipText is a wrapper around gtk_widget_get_tooltip_text(). A non-nil error is returned in the case that gtk_widget_get_tooltip_text returns NULL to differentiate between NULL and an empty string.
func (*Widget) GetToplevel ¶
GetToplevel is a wrapper around gtk_widget_get_toplevel().
func (*Widget) GetVExpand ¶
GetVExpand is a wrapper around gtk_widget_get_vexpand().
func (*Widget) GetVisible ¶
GetVisible is a wrapper around gtk_widget_get_visible().
func (*Widget) GrabDefault ¶
func (v *Widget) GrabDefault()
GrabDefault() is a wrapper around gtk_widget_grab_default().
func (*Widget) GrabFocus ¶
func (v *Widget) GrabFocus()
GrabFocus() is a wrapper around gtk_widget_grab_focus().
func (*Widget) HasDefault ¶
HasDefault is a wrapper around gtk_widget_has_default().
func (*Widget) HasVisibleFocus ¶
HasVisibleFocus is a wrapper around gtk_widget_has_visible_focus().
func (*Widget) InDestruction ¶
InDestruction is a wrapper around gtk_widget_in_destruction().
func (*Widget) IsDrawable ¶
IsDrawable is a wrapper around gtk_widget_is_drawable().
func (*Widget) IsSensitive ¶
IsSensitive is a wrapper around gtk_widget_is_sensitive().
func (*Widget) IsToplevel ¶
IsToplevel is a wrapper around gtk_widget_is_toplevel().
func (*Widget) OverrideFont ¶
OverrideFont is a wrapper around gtk_widget_override_font().
func (*Widget) QueueDraw ¶
func (v *Widget) QueueDraw()
QueueDraw is a wrapper around gtk_widget_queue_draw().
func (*Widget) SetAppPaintable ¶
SetAppPaintable is a wrapper around gtk_widget_set_app_paintable().
func (*Widget) SetCanFocus ¶
SetCanFocus is a wrapper around gtk_widget_set_can_focus().
func (*Widget) SetDeviceEnabled ¶
SetDeviceEnabled is a wrapper around gtk_widget_set_device_enabled().
func (*Widget) SetDoubleBuffered ¶
SetDoubleBuffered is a wrapper around gtk_widget_set_double_buffered().
func (*Widget) SetHExpand ¶
SetHExpand is a wrapper around gtk_widget_set_hexpand().
func (*Widget) SetHasWindow ¶
SetHasWindow is a wrapper around gtk_widget_set_has_window().
func (*Widget) SetMarginBottom ¶
SetMarginBottom is a wrapper around gtk_widget_set_margin_bottom().
func (*Widget) SetMarginTop ¶
SetMarginTop is a wrapper around gtk_widget_set_margin_top().
func (*Widget) SetNoShowAll ¶
SetNoShowAll is a wrapper around gtk_widget_set_no_show_all().
func (*Widget) SetParentWindow ¶
SetParentWindow is a wrapper around gtk_widget_set_parent_window().
func (*Widget) SetRealized ¶
SetRealized is a wrapper around gtk_widget_set_realized().
func (*Widget) SetSensitive ¶
SetSensitive is a wrapper around gtk_widget_set_sensitive().
func (*Widget) SetSizeRequest ¶
SetSizeRequest is a wrapper around gtk_widget_set_size_request().
func (*Widget) SetTooltipText ¶
SetTooltipText is a wrapper around gtk_widget_set_tooltip_text().
func (*Widget) SetVExpand ¶
SetVExpand is a wrapper around gtk_widget_set_vexpand().
func (*Widget) SetVisible ¶
SetVisible is a wrapper around gtk_widget_set_visible().
func (*Widget) ShowAll ¶
func (v *Widget) ShowAll()
ShowAll is a wrapper around gtk_widget_show_all().
type Window ¶
type Window struct {
Bin
}
Window is a representation of GTK's GtkWindow.
func WindowNew ¶
func WindowNew(t WindowType) (*Window, error)
WindowNew is a wrapper around gtk_window_new().
func (*Window) ActivateDefault ¶
ActivateDefault is a wrapper around gtk_window_activate_default().
func (*Window) ActivateFocus ¶
ActivateFocus is a wrapper around gtk_window_activate_focus().
func (*Window) Deiconify ¶
func (v *Window) Deiconify()
Deiconify is a wrapper around gtk_window_deiconify().
func (*Window) Fullscreen ¶
func (v *Window) Fullscreen()
Fullscreen is a wrapper around gtk_window_fullscreen().
func (*Window) GetAcceptFocus ¶
GetAcceptFocus is a wrapper around gtk_window_get_accept_focus().
func (*Window) GetDecorated ¶
GetDecorated is a wrapper around gtk_window_get_decorated().
func (*Window) GetDefaultSize ¶
GetDefaultSize is a wrapper around gtk_window_get_default_size().
func (*Window) GetDeletable ¶
GetDeletable is a wrapper around gtk_window_get_deletable().
func (*Window) GetDestroyWithParent ¶
GetDestroyWithParent is a wrapper around gtk_window_get_destroy_with_parent().
func (*Window) GetFocusOnMap ¶
GetFocusOnMap is a wrapper around gtk_window_get_focus_on_map().
func (*Window) GetFocusVisible ¶
GetFocusVisible is a wrapper around gtk_window_get_focus_visible().
func (*Window) GetHasResizeGrip ¶
GetHasResizeGrip is a wrapper around gtk_window_get_has_resize_grip().
func (*Window) GetHideTitlebarWhenMaximized ¶
GetHideTitlebarWhenMaximized is a wrapper around gtk_window_get_hide_titlebar_when_maximized().
func (*Window) GetMnemonicsVisible ¶
GetMnemonicsVisible is a wrapper around gtk_window_get_mnemonics_visible().
func (*Window) GetPosition ¶
GetPosition is a wrapper around gtk_window_get_position().
func (*Window) GetResizable ¶
GetResizable is a wrapper around gtk_window_get_resizable().
func (*Window) GetSkipPagerHint ¶
GetSkipPagerHint is a wrapper around gtk_window_get_skip_pager_hint().
func (*Window) GetSkipTaskbarHint ¶
GetSkipTaskbarHint is a wrapper around gtk_window_get_skip_taskbar_hint().
func (*Window) GetUrgencyHint ¶
GetUrgencyHint is a wrapper around gtk_window_get_urgency_hint().
func (*Window) HasToplevelFocus ¶
HasToplevelFocus is a wrapper around gtk_window_has_toplevel_focus().
func (*Window) Iconify ¶
func (v *Window) Iconify()
Iconify is a wrapper around gtk_window_iconify().
func (*Window) Maximize ¶
func (v *Window) Maximize()
Maximize is a wrapper around gtk_window_maximize().
func (*Window) Present ¶
func (v *Window) Present()
Present is a wrapper around gtk_window_present().
func (*Window) PresentWithTime ¶
PresentWithTime is a wrapper around gtk_window_present_with_time().
func (*Window) ResizeGripIsVisible ¶
ResizeGripIsVisible is a wrapper around gtk_window_resize_grip_is_visible().
func (*Window) ResizeToGeometry ¶
ResizeToGeometry is a wrapper around gtk_window_resize_to_geometry().
func (*Window) SetAcceptFocus ¶
SetAcceptFocus is a wrapper around gtk_window_set_accept_focus().
func (*Window) SetDecorated ¶
SetDecorated is a wrapper around gtk_window_set_decorated().
func (*Window) SetDefaultGeometry ¶
SetDefaultGeometry is a wrapper around gtk_window_set_default_geometry().
func (*Window) SetDefaultSize ¶
SetDefaultSize is a wrapper around gtk_window_set_default_size().
func (*Window) SetDeletable ¶
SetDeletable is a wrapper around gtk_window_set_deletable().
func (*Window) SetDestroyWithParent ¶
SetDestroyWithParent is a wrapper around gtk_window_set_destroy_with_parent().
func (*Window) SetFocusOnMap ¶
SetFocusOnMap is a wrapper around gtk_window_set_focus_on_map().
func (*Window) SetFocusVisible ¶
SetFocusVisible is a wrapper around gtk_window_set_focus_visible().
func (*Window) SetHasResizeGrip ¶
SetHasResizeGrip is a wrapper around gtk_window_set_has_resize_grip().
func (*Window) SetHideTitlebarWhenMaximized ¶
SetHideTitlebarWhenMaximized is a wrapper around gtk_window_set_hide_titlebar_when_maximized().
func (*Window) SetIconFromFile ¶
SetIconFromFile is a wrapper around gtk_window_set_icon_from_file().
func (*Window) SetKeepAbove ¶
SetKeepAbove is a wrapper around gtk_window_set_keep_above().
func (*Window) SetKeepBelow ¶
SetKeepBelow is a wrapper around gtk_window_set_keep_below().
func (*Window) SetMnemonicsVisible ¶
SetMnemonicsVisible is a wrapper around gtk_window_get_mnemonics_visible().
func (*Window) SetPosition ¶
func (v *Window) SetPosition(position WindowPosition)
SetPosition is a wrapper around gtk_window_set_position().
func (*Window) SetResizable ¶
SetResizable is a wrapper around gtk_window_set_resizable().
func (*Window) SetSkipPagerHint ¶
SetSkipPagerHint is a wrapper around gtk_window_set_skip_pager_hint().
func (*Window) SetSkipTaskbarHint ¶
SetSkipTaskbarHint is a wrapper around gtk_window_set_skip_taskbar_hint().
func (*Window) SetTitlebar ¶
SetTitlebar is a wrapper around gtk_window_set_titlebar().
func (*Window) SetTransientFor ¶
SetTransientFor is a wrapper around gtk_window_set_transient_for().
func (*Window) SetUrgencyHint ¶
SetUrgencyHint is a wrapper around gtk_window_set_urgency_hint().
func (*Window) Unfullscreen ¶
func (v *Window) Unfullscreen()
Unfullscreen is a wrapper around gtk_window_unfullscreen().
func (*Window) Unmaximize ¶
func (v *Window) Unmaximize()
Unmaximize is a wrapper around gtk_window_unmaximize().
type WindowPosition ¶
type WindowPosition int
WindowPosition is a representation of GTK's GtkWindowPosition.
const ( WIN_POS_NONE WindowPosition = C.GTK_WIN_POS_NONE WIN_POS_CENTER WindowPosition = C.GTK_WIN_POS_CENTER WIN_POS_MOUSE WindowPosition = C.GTK_WIN_POS_MOUSE WIN_POS_CENTER_ALWAYS WindowPosition = C.GTK_WIN_POS_CENTER_ALWAYS WIN_POS_CENTER_ON_PARENT WindowPosition = C.GTK_WIN_POS_CENTER_ON_PARENT )
type WindowType ¶
type WindowType int
WindowType is a representation of GTK's GtkWindowType.
const ( WINDOW_TOPLEVEL WindowType = C.GTK_WINDOW_TOPLEVEL WINDOW_POPUP WindowType = C.GTK_WINDOW_POPUP )
type WrapMode ¶
type WrapMode int
WrapMode is a representation of GTK's GtkWrapMode.
const ( WRAP_NONE WrapMode = C.GTK_WRAP_NONE WRAP_CHAR WrapMode = C.GTK_WRAP_CHAR WRAP_WORD WrapMode = C.GTK_WRAP_WORD WRAP_WORD_CHAR WrapMode = C.GTK_WRAP_WORD_CHAR )