gtk

package
v0.0.0-...-48574e3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: BSD-3-Clause Imports: 13 Imported by: 358

Documentation

Overview

Go Bindings for Gtk+ 2. Support version 2.16 and later.

Index

Constants

View Source
const (
	STOCK_ABOUT                         = "gtk-about"
	STOCK_ADD                           = "gtk-add"
	STOCK_APPLY                         = "gtk-apply"
	STOCK_BOLD                          = "gtk-bold"
	STOCK_CANCEL                        = "gtk-cancel"
	STOCK_CAPS_LOCK_WARNING             = "gtk-caps-lock-warning"
	STOCK_CDROM                         = "gtk-cdrom"
	STOCK_CLEAR                         = "gtk-clear"
	STOCK_CLOSE                         = "gtk-close"
	STOCK_COLOR_PICKER                  = "gtk-color-picker"
	STOCK_CONVERT                       = "gtk-convert"
	STOCK_CONNECT                       = "gtk-connect"
	STOCK_COPY                          = "gtk-copy"
	STOCK_CUT                           = "gtk-cut"
	STOCK_DELETE                        = "gtk-delete"
	STOCK_DIALOG_AUTHENTICATION         = "gtk-dialog-authentication"
	STOCK_DIALOG_INFO                   = "gtk-dialog-info"
	STOCK_DIALOG_WARNING                = "gtk-dialog-warning"
	STOCK_DIALOG_ERROR                  = "gtk-dialog-error"
	STOCK_DIALOG_QUESTION               = "gtk-dialog-question"
	STOCK_DIRECTORY                     = "gtk-directory"
	STOCK_DISCARD                       = "gtk-discard"
	STOCK_DISCONNECT                    = "gtk-disconnect"
	STOCK_DND                           = "gtk-dnd"
	STOCK_DND_MULTIPLE                  = "gtk-dnd-multiple"
	STOCK_EDIT                          = "gtk-edit"
	STOCK_EXECUTE                       = "gtk-execute"
	STOCK_FILE                          = "gtk-file"
	STOCK_FIND                          = "gtk-find"
	STOCK_FIND_AND_REPLACE              = "gtk-find-and-replace"
	STOCK_FLOPPY                        = "gtk-floppy"
	STOCK_FULLSCREEN                    = "gtk-fullscreen"
	STOCK_GOTO_BOTTOM                   = "gtk-goto-bottom"
	STOCK_GOTO_FIRST                    = "gtk-goto-first"
	STOCK_GOTO_LAST                     = "gtk-goto-last"
	STOCK_GOTO_TOP                      = "gtk-goto-top"
	STOCK_GO_BACK                       = "gtk-go-back"
	STOCK_GO_DOWN                       = "gtk-go-down"
	STOCK_GO_FORWARD                    = "gtk-go-forward"
	STOCK_GO_UP                         = "gtk-go-up"
	STOCK_HARDDISK                      = "gtk-harddisk"
	STOCK_HELP                          = "gtk-help"
	STOCK_HOME                          = "gtk-home"
	STOCK_INDEX                         = "gtk-index"
	STOCK_INDENT                        = "gtk-indent"
	STOCK_INFO                          = "gtk-info"
	STOCK_UNINDENT                      = "gtk-unindent"
	STOCK_ITALIC                        = "gtk-italic"
	STOCK_JUMP_TO                       = "gtk-jump-to"
	STOCK_JUSTIFY_CENTER                = "gtk-justify-center"
	STOCK_JUSTIFY_FILL                  = "gtk-justify-fill"
	STOCK_JUSTIFY_LEFT                  = "gtk-justify-left"
	STOCK_JUSTIFY_RIGHT                 = "gtk-justify-right"
	STOCK_LEAVE_FULLSCREEN              = "gtk-leave-fullscreen"
	STOCK_MISSING_IMAGE                 = "gtk-missing-image"
	STOCK_MEDIA_FORWARD                 = "gtk-media-forward"
	STOCK_MEDIA_NEXT                    = "gtk-media-next"
	STOCK_MEDIA_PAUSE                   = "gtk-media-pause"
	STOCK_MEDIA_PLAY                    = "gtk-media-play"
	STOCK_MEDIA_PREVIOUS                = "gtk-media-previous"
	STOCK_MEDIA_RECORD                  = "gtk-media-record"
	STOCK_MEDIA_REWIND                  = "gtk-media-rewind"
	STOCK_MEDIA_STOP                    = "gtk-media-stop"
	STOCK_NETWORK                       = "gtk-network"
	STOCK_NEW                           = "gtk-new"
	STOCK_NO                            = "gtk-no"
	STOCK_OK                            = "gtk-ok"
	STOCK_OPEN                          = "gtk-open"
	STOCK_ORIENTATION_PORTRAIT          = "gtk-orientation-portrait"
	STOCK_ORIENTATION_LANDSCAPE         = "gtk-orientation-landscape"
	STOCK_ORIENTATION_REVERSE_LANDSCAPE = "gtk-orientation-reverse-landscape"
	STOCK_ORIENTATION_REVERSE_PORTRAIT  = "gtk-orientation-reverse-portrait"
	STOCK_PAGE_SETUP                    = "gtk-page-setup"
	STOCK_PASTE                         = "gtk-paste"
	STOCK_PREFERENCES                   = "gtk-preferences"
	STOCK_PRINT                         = "gtk-print"
	STOCK_PRINT_ERROR                   = "gtk-print-error"
	STOCK_PRINT_PAUSED                  = "gtk-print-paused"
	STOCK_PRINT_PREVIEW                 = "gtk-print-preview"
	STOCK_PRINT_REPORT                  = "gtk-print-report"
	STOCK_PRINT_WARNING                 = "gtk-print-warning"
	STOCK_PROPERTIES                    = "gtk-properties"
	STOCK_QUIT                          = "gtk-quit"
	STOCK_REDO                          = "gtk-redo"
	STOCK_REFRESH                       = "gtk-refresh"
	STOCK_REMOVE                        = "gtk-remove"
	STOCK_REVERT_TO_SAVED               = "gtk-revert-to-saved"
	STOCK_SAVE                          = "gtk-save"
	STOCK_SAVE_AS                       = "gtk-save-as"
	STOCK_SELECT_ALL                    = "gtk-select-all"
	STOCK_SELECT_COLOR                  = "gtk-select-color"
	STOCK_SELECT_FONT                   = "gtk-select-font"
	STOCK_SORT_ASCENDING                = "gtk-sort-ascending"
	STOCK_SORT_DESCENDING               = "gtk-sort-descending"
	STOCK_SPELL_CHECK                   = "gtk-spell-check"
	STOCK_STOP                          = "gtk-stop"
	STOCK_STRIKETHROUGH                 = "gtk-strikethrough"
	STOCK_UNDELETE                      = "gtk-undelete"
	STOCK_UNDERLINE                     = "gtk-underline"
	STOCK_UNDO                          = "gtk-undo"
	STOCK_YES                           = "gtk-yes"
	STOCK_ZOOM_100                      = "gtk-zoom-100"
	STOCK_ZOOM_FIT                      = "gtk-zoom-fit"
	STOCK_ZOOM_IN                       = "gtk-zoom-in"
	STOCK_ZOOM_OUT                      = "gtk-zoom-out"
)

----------------------------------------------------------------------- GtkStockItem -----------------------------------------------------------------------

View Source
const (
	TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID  int = -1
	TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID int = -2
)
View Source
const (
	TYPE_CHAR    = glib.G_TYPE_CHAR
	TYPE_UCHAR   = glib.G_TYPE_UCHAR
	TYPE_BOOL    = glib.G_TYPE_BOOL
	TYPE_INT     = glib.G_TYPE_INT
	TYPE_UINT    = glib.G_TYPE_UINT
	TYPE_LONG    = glib.G_TYPE_LONG
	TYPE_ULONG   = glib.G_TYPE_ULONG
	TYPE_FLOAT   = glib.G_TYPE_FLOAT
	TYPE_DOUBLE  = glib.G_TYPE_DOUBLE
	TYPE_STRING  = glib.G_TYPE_STRING
	TYPE_BOXED   = glib.G_TYPE_BOXED
	TYPE_POINTER = glib.G_TYPE_POINTER
	TYPE_PIXBUF  = TYPE_POINTER
)

----------------------------------------------------------------------- GtkListStore -----------------------------------------------------------------------

View Source
const (
	RESIZE_PARENT    = ResizeMode(0)
	RESIZE_QUEUE     = ResizeMode(1)
	RESIZE_IMMEDIATE = ResizeMode(2)
)

Variables

This section is empty.

Functions

func ABOUT_DIALOG

func ABOUT_DIALOG(p *AboutDialog) *C.GtkAboutDialog

func ACCEL_LABEL

func ACCEL_LABEL(p *AccelLabel) *C.GtkAccelLabel

func ACCESSIBLE

func ACCESSIBLE(p *Accessible) *C.GtkAccessible

func ACTION

func ACTION(p *Action) *C.GtkAction

func ACTION_GROUP

func ACTION_GROUP(p *ActionGroup) *C.GtkActionGroup

func ACTIVATABLE

func ACTIVATABLE(p *Activatable) *C.GtkActivatable

func ADJUSTMENT

func ADJUSTMENT(p *Adjustment) *C.GtkAdjustment

func ALIGNMENT

func ALIGNMENT(p *Alignment) *C.GtkAlignment

func ARROW

func ARROW(p *Arrow) *C.GtkArrow

func ASSISTANT

func ASSISTANT(p *Assistant) *C.GtkAssistant

func AS_GWIDGET

func AS_GWIDGET(p unsafe.Pointer) *C.GtkWidget

func AcceleratorGetDefaultModMask

func AcceleratorGetDefaultModMask() uint

func AcceleratorParse

func AcceleratorParse(accelerator string) (uint, gdk.ModifierType)

Parse string representing an accelerator and return the key code and the modifier masks.

func BIN

func BIN(p *Bin) *C.GtkBin

func BOX

func BOX(p *Box) *C.GtkBox

func BUTTON

func BUTTON(p *Button) *C.GtkButton

func BinaryAge

func BinaryAge() uint

func CALENDAR

func CALENDAR(p *Calendar) *C.GtkCalendar

func CELL_RENDERER_TEXT

func CELL_RENDERER_TEXT(p *CellRendererText) *C.GtkCellRendererText

func CELL_RENDERER_TOGGLE

func CELL_RENDERER_TOGGLE(p *CellRendererToggle) *C.GtkCellRendererToggle

func CHECK_MENU_ITEM

func CHECK_MENU_ITEM(p *CheckMenuItem) *C.GtkCheckMenuItem

func COLOR_BUTTON

func COLOR_BUTTON(p *ColorButton) *C.GtkColorButton

func COMBO_BOX

func COMBO_BOX(p *ComboBox) *C.GtkComboBox

func COMBO_BOX_ENTRY

func COMBO_BOX_ENTRY(p *ComboBoxEntry) *C.GtkComboBoxEntry

func COMBO_BOX_TEXT

func COMBO_BOX_TEXT(p *ComboBoxText) *C.GtkComboBoxText

func CONTAINER

func CONTAINER(p *Container) *C.GtkContainer

func CheckVersion

func CheckVersion(major uint, minor uint, micro uint) string

func DIALOG

func DIALOG(p *Dialog) *C.GtkDialog

func DRAWING_AREA

func DRAWING_AREA(p *DrawingArea) *C.GtkDrawingArea

func ENTRY

func ENTRY(p *Entry) *C.GtkEntry

func EXPANDER

func EXPANDER(p *Expander) *C.GtkExpander

func EventsPending

func EventsPending() bool

func FILE_CHOOSER

func FILE_CHOOSER(p *Widget) *C.GtkFileChooser

func FIXED

func FIXED(p *Fixed) *C.GtkFixed

func FONT_BUTTON

func FONT_BUTTON(p *FontButton) *C.GtkFontButton

func FONT_SELECTION

func FONT_SELECTION(p *FontSelection) *C.GtkFontSelection

func FRAME

func FRAME(p *Frame) *C.GtkFrame

func GetCurrentEventTime

func GetCurrentEventTime() uint32

func ICON_VIEW

func ICON_VIEW(p *IconView) *C.GtkIconView

func IMAGE

func IMAGE(p *Image) *C.GtkImage

func IMAGE_MENU_ITEM

func IMAGE_MENU_ITEM(p *ImageMenuItem) *C.GtkImageMenuItem

func INFO_BAR

func INFO_BAR(p *InfoBar) *C.GtkInfoBar

func ITEM

func ITEM(p *Item) *C.GtkItem

func IconSizeLookup

func IconSizeLookup(size IconSize) (width int, height int)

gtk_icon_size_lookup

func Init

func Init(args *[]string)

func InterfaceAge

func InterfaceAge() uint

func LABEL

func LABEL(p *Label) *C.GtkLabel

func LAYOUT

func LAYOUT(p *Layout) *C.GtkLayout
func LINK_BUTTON(p *LinkButton) *C.GtkLinkButton
func MENU(p *Menu) *C.GtkMenu
func MENU_BAR(p *MenuBar) *C.GtkMenuBar
func MENU_ITEM(p *MenuItem) *C.GtkMenuItem
func MENU_SHELL(p *MenuShell) *C.GtkMenuShell
func MENU_TOOL_BUTTON(p *MenuToolButton) *C.GtkMenuToolButton

func MESSAGE_DIALOG

func MESSAGE_DIALOG(p *MessageDialog) *C.GtkMessageDialog

func MISC

func MISC(m *Misc) *C.GtkMisc

func Main

func Main()

func MainIteration

func MainIteration() bool

func MainIterationDo

func MainIterationDo(blocking bool) bool

func MainQuit

func MainQuit()

func MajorVersion

func MajorVersion() uint

----------------------------------------------------------------------- Version Information -----------------------------------------------------------------------

func MicroVersion

func MicroVersion() uint

func MinorVersion

func MinorVersion() uint

func NOTEBOOK

func NOTEBOOK(p *Notebook) *C.GtkNotebook

func PANED

func PANED(p *Paned) *C.GtkPaned

func PROGRESS_BAR

func PROGRESS_BAR(p *ProgressBar) *C.GtkProgressBar

func RADIO_ACTION

func RADIO_ACTION(p *RadioAction) *C.GtkRadioAction

func RADIO_BUTTON

func RADIO_BUTTON(p *RadioButton) *C.GtkRadioButton

func RADIO_MENU_ITEM

func RADIO_MENU_ITEM(p *RadioMenuItem) *C.GtkRadioMenuItem

func RANGE

func RANGE(p *Range) *C.GtkRange

func RCParse

func RCParse(file string)

func RCParseString

func RCParseString(style string)

func RCReparseAll

func RCReparseAll() bool

func RCResetStyles

func RCResetStyles(settings *Settings)

func RECENT_ACTION

func RECENT_ACTION(p *RecentAction) *C.GtkRecentAction

func SCALE

func SCALE(p *Scale) *C.GtkScale

func SCALEBUTTON

func SCALEBUTTON(p *ScaleButton) *C.GtkScaleButton

func SCROLLED_WINDOW

func SCROLLED_WINDOW(p *ScrolledWindow) *C.GtkScrolledWindow

func SEPARATOR_TOOL_ITEM

func SEPARATOR_TOOL_ITEM(p *SeparatorToolItem) *C.GtkSeparatorToolItem

func SPINNER

func SPINNER(s *Spinner) *C.GtkSpinner

func SPIN_BUTTON

func SPIN_BUTTON(p *SpinButton) *C.GtkSpinButton

func STATUSBAR

func STATUSBAR(p *Statusbar) *C.GtkStatusbar

func STYLE

func STYLE(p *Style) *C.GtkStyle

func SetLocale

func SetLocale()

Deprecated since 2.24. Use setlocale() directly. (see http://developer.gnome.org/gtk/stable/gtk-General.html#gtk-set-locale)

func StatusIconPositionMenu

func StatusIconPositionMenu(menu *Menu, px, py *int, push_in *bool, data interface{})

func StockListIDs

func StockListIDs() *glib.SList

func StockLookup

func StockLookup(stock_id string, item *StockItem) bool

func TABLE

func TABLE(p *Table) *C.GtkTable

func TEXT_BUFFER

func TEXT_BUFFER(p unsafe.Pointer) *C.GtkTextBuffer

func TEXT_TAG

func TEXT_TAG(p unsafe.Pointer) *C.GtkTextTag

func TEXT_VIEW

func TEXT_VIEW(p *TextView) *C.GtkTextView

func TOGGLE_ACTION

func TOGGLE_ACTION(p *ToggleAction) *C.GtkToggleAction

func TOGGLE_BUTTON

func TOGGLE_BUTTON(p *ToggleButton) *C.GtkToggleButton

func TOGGLE_TOOL_BUTTON

func TOGGLE_TOOL_BUTTON(p *ToggleToolButton) *C.GtkToggleToolButton

func TOOLBAR

func TOOLBAR(p *Toolbar) *C.GtkToolbar

func TOOL_BUTTON

func TOOL_BUTTON(p *ToolButton) *C.GtkToolButton

func TOOL_ITEM

func TOOL_ITEM(p *ToolItem) *C.GtkToolItem

func TOOL_ITEM_GROUP

func TOOL_ITEM_GROUP(p *ToolItemGroup) *C.GtkToolItemGroup

func TOOL_PALETTE

func TOOL_PALETTE(p *ToolPalette) *C.GtkToolPalette

func TREE_VIEW

func TREE_VIEW(p *TreeView) *C.GtkTreeView

func ToNative

func ToNative(w IWidget) *C.GtkWidget

func UI_MANAGER

func UI_MANAGER(p *UIManager) *C.GtkUIManager

func VIEWPORT

func VIEWPORT(p *Viewport) *C.GtkViewport

func WIDGET

func WIDGET(p *Widget) *C.GtkWidget

func WINDOW

func WINDOW(p *Window) *C.GtkWindow

Types

type AboutDialog

type AboutDialog struct {
	Dialog
}

----------------------------------------------------------------------- GtkAboutDialog -----------------------------------------------------------------------

func NewAboutDialog

func NewAboutDialog() *AboutDialog

func (*AboutDialog) GetArtists

func (v *AboutDialog) GetArtists() []string

func (*AboutDialog) GetAuthors

func (v *AboutDialog) GetAuthors() []string

func (*AboutDialog) GetComments

func (v *AboutDialog) GetComments() string

func (*AboutDialog) GetCopyright

func (v *AboutDialog) GetCopyright() string

func (*AboutDialog) GetDocumenters

func (v *AboutDialog) GetDocumenters() []string

func (*AboutDialog) GetLicense

func (v *AboutDialog) GetLicense() string
func (v *AboutDialog) GetLogo() *gdkpixbuf.Pixbuf

func (*AboutDialog) GetLogoIconName

func (v *AboutDialog) GetLogoIconName() string

func (*AboutDialog) GetProgramName

func (v *AboutDialog) GetProgramName() string

func (*AboutDialog) GetTranslatorCredits

func (v *AboutDialog) GetTranslatorCredits() string

func (*AboutDialog) GetVersion

func (v *AboutDialog) GetVersion() string

func (*AboutDialog) GetWebsite

func (v *AboutDialog) GetWebsite() string

func (*AboutDialog) GetWebsiteLabel

func (v *AboutDialog) GetWebsiteLabel() string

func (*AboutDialog) GetWrapLicense

func (v *AboutDialog) GetWrapLicense() bool

func (*AboutDialog) SetArtists

func (v *AboutDialog) SetArtists(artists []string)

func (*AboutDialog) SetAuthors

func (v *AboutDialog) SetAuthors(authors []string)

func (*AboutDialog) SetComments

func (v *AboutDialog) SetComments(comments string)

func (*AboutDialog) SetCopyright

func (v *AboutDialog) SetCopyright(copyright string)

func (*AboutDialog) SetDocumenters

func (v *AboutDialog) SetDocumenters(documenters []string)

func (*AboutDialog) SetLicense

func (v *AboutDialog) SetLicense(license string)
func (v *AboutDialog) SetLogo(logo *gdkpixbuf.Pixbuf)

func (*AboutDialog) SetLogoIconName

func (v *AboutDialog) SetLogoIconName(icon_name string)

func (*AboutDialog) SetProgramName

func (v *AboutDialog) SetProgramName(name string)

func (*AboutDialog) SetTranslatorCredits

func (v *AboutDialog) SetTranslatorCredits(translator_credits string)

func (*AboutDialog) SetVersion

func (v *AboutDialog) SetVersion(version string)

func (*AboutDialog) SetWebsite

func (v *AboutDialog) SetWebsite(website string)

func (*AboutDialog) SetWebsiteLabel

func (v *AboutDialog) SetWebsiteLabel(website_label string)

func (*AboutDialog) SetWrapLicense

func (v *AboutDialog) SetWrapLicense(wrap_license bool)

type AccelFlags

type AccelFlags int
const (
	ACCEL_VISIBLE AccelFlags = 1 << iota
	ACCEL_LOCKED
	ACCEL_MASK = 0x07
)

type AccelGroup

type AccelGroup struct {
	GAccelGroup *C.GtkAccelGroup
}

----------------------------------------------------------------------- GtkAccelGroup -----------------------------------------------------------------------

func NewAccelGroup

func NewAccelGroup() *AccelGroup

type AccelLabel

type AccelLabel struct {
	Widget
}

----------------------------------------------------------------------- GtkAccelLabel -----------------------------------------------------------------------

type IAccelLabel interface {
	IWidget
	GetAccelWidget() GtkWidget
	SetAccelWidget(GtkWidget)
}

func NewAccelLabel

func NewAccelLabel(label string) *AccelLabel

func (*AccelLabel) GetAccelWidget

func (v *AccelLabel) GetAccelWidget() Widget

func (*AccelLabel) GetAccelWidth

func (v *AccelLabel) GetAccelWidth() uint

func (*AccelLabel) Refetch

func (v *AccelLabel) Refetch() bool

func (*AccelLabel) SetAccelWidget

func (v *AccelLabel) SetAccelWidget(w IWidget)

type Accessible

type Accessible struct {
	glib.GObject
}

----------------------------------------------------------------------- GtkAccessible -----------------------------------------------------------------------

func (*Accessible) ConnectWidgetDestroyed

func (v *Accessible) ConnectWidgetDestroyed()

func (*Accessible) GetWidget

func (v *Accessible) GetWidget() *Widget

func (*Accessible) SetWidget

func (v *Accessible) SetWidget(w IWidget)

type Action

type Action struct {
	glib.GObject
}

func NewAction

func NewAction(name string, label string, tooltip string, stock_id string) *Action

func (*Action) Activate

func (v *Action) Activate()

func (*Action) BlockActivate

func (v *Action) BlockActivate()

func (*Action) BlockActivateFrom

func (v *Action) BlockActivateFrom(proxy *Widget)

func (*Action) ConnectAccelerator

func (v *Action) ConnectAccelerator()

func (*Action) ConnectProxy

func (v *Action) ConnectProxy(proxy *Widget)

func (*Action) CreateIcon

func (v *Action) CreateIcon(icon_size IconSize) *Widget

func (*Action) CreateMenu

func (v *Action) CreateMenu() *Widget

func (*Action) CreateMenuItem

func (v *Action) CreateMenuItem() *Widget

func (*Action) CreateToolItem

func (v *Action) CreateToolItem() *Widget

func (*Action) DisconnectAccelerator

func (v *Action) DisconnectAccelerator()

func (*Action) DisconnectProxy

func (v *Action) DisconnectProxy(proxy *Widget)

func (*Action) GetAccelPath

func (v *Action) GetAccelPath() string

func (*Action) GetAlwaysShowImage

func (v *Action) GetAlwaysShowImage() bool

func (*Action) GetIconName

func (v *Action) GetIconName() string

func (*Action) GetIsImportant

func (v *Action) GetIsImportant() bool

func (*Action) GetLabel

func (v *Action) GetLabel() string

func (*Action) GetName

func (v *Action) GetName() string

func (*Action) GetProxies

func (v *Action) GetProxies() *glib.SList

func (*Action) GetSensitive

func (v *Action) GetSensitive() bool

func (*Action) GetShortLabel

func (v *Action) GetShortLabel() string

func (*Action) GetStockId

func (v *Action) GetStockId() string

func (*Action) GetTooltip

func (v *Action) GetTooltip() string

func (*Action) GetVisible

func (v *Action) GetVisible() bool

func (*Action) GetVisibleHorizontal

func (v *Action) GetVisibleHorizontal() bool

func (*Action) GetVisibleVertical

func (v *Action) GetVisibleVertical() bool

func (*Action) IsSensitive

func (v *Action) IsSensitive() bool

func (*Action) IsVisible

func (v *Action) IsVisible() bool

func (*Action) SetAccelGroup

func (v *Action) SetAccelGroup(accel_group *AccelGroup)

func (*Action) SetAccelPath

func (v *Action) SetAccelPath(accel_path string)

func (*Action) SetAlwaysShowImage

func (v *Action) SetAlwaysShowImage(always_show bool)

func (*Action) SetIconName

func (v *Action) SetIconName(icon_name string)

func (*Action) SetIsImportant

func (v *Action) SetIsImportant(is_important bool)

func (*Action) SetLable

func (v *Action) SetLable(label string)

func (*Action) SetSensitive

func (v *Action) SetSensitive(sensitive bool)

func (*Action) SetShortLabel

func (v *Action) SetShortLabel(short_label string)

func (*Action) SetStockId

func (v *Action) SetStockId(stock_id string)

func (*Action) SetTooltip

func (v *Action) SetTooltip(tooltip string)

func (*Action) SetVisible

func (v *Action) SetVisible(visible bool)

func (*Action) SetVisibleHorizontal

func (v *Action) SetVisibleHorizontal(visible_horizontal bool)

func (*Action) SetVisibleVertical

func (v *Action) SetVisibleVertical(visible_vertical bool)

func (*Action) UnblockActivate

func (v *Action) UnblockActivate()

func (*Action) UnblockActivateFrom

func (v *Action) UnblockActivateFrom(proxy *Widget)

type ActionGroup

type ActionGroup struct {
	glib.GObject
}

func NewActionGroup

func NewActionGroup(name string) *ActionGroup

func (*ActionGroup) AddAction

func (v *ActionGroup) AddAction(action interface{})

func (*ActionGroup) AddActionWithAccel

func (v *ActionGroup) AddActionWithAccel(action *Action, accelerator string)

func (*ActionGroup) GetAction

func (v *ActionGroup) GetAction(action_name string) *Action

func (*ActionGroup) GetName

func (v *ActionGroup) GetName() string

func (*ActionGroup) GetSensitive

func (v *ActionGroup) GetSensitive() bool

func (*ActionGroup) GetVisible

func (v *ActionGroup) GetVisible() bool

func (*ActionGroup) ListActions

func (v *ActionGroup) ListActions() *glib.List

func (*ActionGroup) RemoveAction

func (v *ActionGroup) RemoveAction(action *Action)

func (*ActionGroup) SetSensitive

func (v *ActionGroup) SetSensitive(sensitive bool)

func (*ActionGroup) SetVisible

func (v *ActionGroup) SetVisible(visible bool)

type Activatable

type Activatable struct {
	GWidget *C.GtkWidget
}

Known Implementations for GtkActivatable interface: GtkActivatable is implemented by GtkButton, GtkCheckButton, GtkCheckMenuItem, GtkColorButton, GtkFontButton, GtkImageMenuItem, GtkLinkButton, GtkLockButton, GtkMenuItem, GtkMenuToolButton, GtkRadioButton, GtkRadioMenuItem, GtkRadioToolButton, GtkRecentChooserMenu, GtkScaleButton, GtkSeparatorMenuItem, GtkSeparatorToolItem, GtkSwitch, GtkTearoffMenuItem, GtkToggleButton, GtkToggleToolButton, GtkToolButton, GtkToolItem and GtkVolumeButton.

func (*Activatable) GetRelatedAction

func (v *Activatable) GetRelatedAction() *Action

func (*Activatable) GetUseActionAppearance

func (v *Activatable) GetUseActionAppearance() bool

func (*Activatable) SetRelatedAction

func (v *Activatable) SetRelatedAction(action *Action)

func (*Activatable) SetUseActionAppearance

func (v *Activatable) SetUseActionAppearance(use_appearance bool)

type Adjustment

type Adjustment struct {
	GAdjustment *C.GtkAdjustment
}

----------------------------------------------------------------------- GtkAdjustment -----------------------------------------------------------------------

func NewAdjustment

func NewAdjustment(value, lower, upper, step_increment, page_increment, page_size float64) *Adjustment

func (*Adjustment) Configure

func (v *Adjustment) Configure(value, lower, upper, step_increment, page_increment, page_size float64)

func (*Adjustment) Connect

func (v *Adjustment) Connect(s string, f interface{}, datas ...interface{}) int

func (*Adjustment) GetLower

func (v *Adjustment) GetLower() float64

func (*Adjustment) GetPageIncrement

func (v *Adjustment) GetPageIncrement() float64

func (*Adjustment) GetPageSize

func (v *Adjustment) GetPageSize() float64

func (*Adjustment) GetStepIncrement

func (v *Adjustment) GetStepIncrement() float64

func (*Adjustment) GetUpper

func (v *Adjustment) GetUpper() float64

func (*Adjustment) GetValue

func (v *Adjustment) GetValue() float64

func (*Adjustment) SetLower

func (v *Adjustment) SetLower(lower float64)

func (*Adjustment) SetPageIncrement

func (v *Adjustment) SetPageIncrement(page_increment float64)

func (*Adjustment) SetPageSize

func (v *Adjustment) SetPageSize(page_size float64)

func (*Adjustment) SetStepIncrement

func (v *Adjustment) SetStepIncrement(step_increment float64)

func (*Adjustment) SetUpper

func (v *Adjustment) SetUpper(upper float64)

func (*Adjustment) SetValue

func (v *Adjustment) SetValue(value float64)

type Alignment

type Alignment struct {
	Bin
}

----------------------------------------------------------------------- GtkAlignment -----------------------------------------------------------------------

func NewAlignment

func NewAlignment(xalign float64, yalign float64, xscale float64, yscale float64) *Alignment

func (*Alignment) GetPadding

func (v *Alignment) GetPadding() (padding_top uint, padding_bottom uint, padding_left uint, padding_right uint)

func (*Alignment) Set

func (v *Alignment) Set(xalign float64, yalign float64, xscale float64, yscale float64)

func (*Alignment) SetPadding

func (v *Alignment) SetPadding(padding_top uint, padding_bottom uint, padding_left uint, padding_right uint)

type Allocation

type Allocation gdk.Rectangle

----------------------------------------------------------------------- GtkWidget -----------------------------------------------------------------------

type Arrow

type Arrow struct {
	Widget
}

func NewArrow

func NewArrow(at ArrowType, st ShadowType) *Arrow

Draw arrowhead facing in given direction with a shadow. Like gtk.Label it does not emit signals.

func (*Arrow) Set

func (a *Arrow) Set(at ArrowType, st ShadowType)

Change the arrows direction and shadow.

type ArrowType

type ArrowType int
const (
	ARROW_UP ArrowType = iota
	ARROW_DOWN
	ARROW_LEFT
	ARROW_RIGHT
	ARROW_NONE
)

type Assistant

type Assistant struct {
	Widget
}

func NewAssistant

func NewAssistant() *Assistant

func (*Assistant) AddActionWidget

func (v *Assistant) AddActionWidget(child IWidget)

func (*Assistant) AppendPage

func (v *Assistant) AppendPage(page IWidget) int

func (*Assistant) GetCurrentPage

func (v *Assistant) GetCurrentPage() int

func (*Assistant) GetNPages

func (v *Assistant) GetNPages() int

func (*Assistant) GetNthPage

func (v *Assistant) GetNthPage(page_num int) *Widget

func (*Assistant) GetPageComplete

func (v *Assistant) GetPageComplete(page IWidget) bool

func (*Assistant) GetPageHeaderImage

func (v *Assistant) GetPageHeaderImage(page IWidget) *gdkpixbuf.Pixbuf

func (*Assistant) GetPageSideImage

func (v *Assistant) GetPageSideImage(page IWidget) *gdkpixbuf.Pixbuf

func (*Assistant) GetPageTitle

func (v *Assistant) GetPageTitle(page IWidget) string

func (*Assistant) GetPageType

func (v *Assistant) GetPageType(page IWidget) AssistantPageType

func (*Assistant) InsertPage

func (v *Assistant) InsertPage(page IWidget, position int) int

func (*Assistant) PrependPage

func (v *Assistant) PrependPage(page IWidget) int

func (*Assistant) RemoveActionWidget

func (v *Assistant) RemoveActionWidget(child IWidget)

func (*Assistant) SetCurrentPage

func (v *Assistant) SetCurrentPage(page_num int)

func (*Assistant) SetPageComplete

func (v *Assistant) SetPageComplete(page IWidget, complete bool)

func (*Assistant) SetPageHeaderImage

func (v *Assistant) SetPageHeaderImage(page IWidget, pixbuf *gdkpixbuf.Pixbuf)

func (*Assistant) SetPageSideImage

func (v *Assistant) SetPageSideImage(page IWidget, pixbuf *gdkpixbuf.Pixbuf)

func (*Assistant) SetPageTitle

func (v *Assistant) SetPageTitle(page IWidget, title string)

func (*Assistant) SetPageType

func (v *Assistant) SetPageType(page IWidget, t AssistantPageType)

func (*Assistant) UpdateButtonsState

func (v *Assistant) UpdateButtonsState()

type AssistantPageType

type AssistantPageType int

----------------------------------------------------------------------- GtkAssistant -----------------------------------------------------------------------

const (
	ASSISTANT_PAGE_CONTENT AssistantPageType = iota
	ASSISTANT_PAGE_INTRO
	ASSISTANT_PAGE_CONFIRM
	ASSISTANT_PAGE_SUMMARY
	ASSISTANT_PAGE_PROGRESS
)

type AttachOptions

type AttachOptions int

----------------------------------------------------------------------- GtkTable -----------------------------------------------------------------------

const (
	EXPAND AttachOptions = 1 << iota
	SHRINK
	FILL
)

type Bin

type Bin struct {
	Container
}

----------------------------------------------------------------------- GtkBin -----------------------------------------------------------------------

func (*Bin) GetChild

func (v *Bin) GetChild() *Widget

type Border

type Border struct {
	Left   int
	Right  int
	Top    int
	Bottom int
}

type Box

type Box struct {
	Container
}

func (*Box) GetHomogeneous

func (v *Box) GetHomogeneous() bool

func (*Box) GetSpacing

func (v *Box) GetSpacing() int

func (*Box) PackEnd

func (v *Box) PackEnd(child IWidget, expand bool, fill bool, padding uint)

func (*Box) PackEndDefaults

func (v *Box) PackEndDefaults(child IWidget)

Deprecated since 2.14. Use PackEnd() instead.

func (*Box) PackStart

func (v *Box) PackStart(child IWidget, expand bool, fill bool, padding uint)

func (*Box) PackStartDefaults

func (v *Box) PackStartDefaults(child IWidget)

Deprecated since 2.14. Use PackStart() instead.

func (*Box) QueryChildPacking

func (v *Box) QueryChildPacking(child IWidget, expand *bool, fill *bool, padding *uint, pack_type *PackType)

func (*Box) ReorderChild

func (v *Box) ReorderChild(child IWidget, position int)

func (*Box) SetChildPacking

func (v *Box) SetChildPacking(child IWidget, expand, fill bool, padding uint, pack_type PackType)

func (*Box) SetHomogeneous

func (v *Box) SetHomogeneous(homogeneous bool)

func (*Box) SetSpacing

func (v *Box) SetSpacing(spacing int)

type Builder

type Builder struct {
	GBuilder *C.GtkBuilder
}

----------------------------------------------------------------------- GtkBuilder -----------------------------------------------------------------------

func NewBuilder

func NewBuilder() *Builder

func (*Builder) AddFromFile

func (v *Builder) AddFromFile(filename string) (ret uint, error *glib.Error)

func (*Builder) AddFromString

func (v *Builder) AddFromString(buffer string) (ret uint, error *glib.Error)

func (*Builder) ConnectSignals

func (v *Builder) ConnectSignals(user_data interface{})

func (*Builder) ConnectSignalsFull

func (v *Builder) ConnectSignalsFull(f BuilderConnectFunc, user_data interface{})

func (*Builder) GetObject

func (v *Builder) GetObject(name string) *glib.GObject

func (*Builder) GetObjects

func (v *Builder) GetObjects() *glib.SList

func (*Builder) GetTranslationDomain

func (v *Builder) GetTranslationDomain() string

func (*Builder) GetTypeFromName

func (v *Builder) GetTypeFromName(type_name string) int

func (*Builder) SetTranslationDomain

func (v *Builder) SetTranslationDomain(domain string)

type BuilderConnectFunc

type BuilderConnectFunc func(builder *Builder, obj *glib.GObject, sig, handler string, conn *glib.GObject, flags glib.ConnectFlags, user_data interface{})

type BuilderConnectInfo

type BuilderConnectInfo struct {
	// contains filtered or unexported fields
}

type Button

type Button struct {
	Bin
	Activatable // implement GtkActivatable interface
}

func NewButton

func NewButton() *Button

func NewButtonFromStock

func NewButtonFromStock(stock_id string) *Button

func NewButtonWithLabel

func NewButtonWithLabel(label string) *Button

func NewButtonWithMnemonic

func NewButtonWithMnemonic(label string) *Button

func (*Button) Clicked

func (v *Button) Clicked(onclick interface{}, datas ...interface{}) int

func (*Button) Enter

func (v *Button) Enter()

func (*Button) GetAlignment

func (v *Button) GetAlignment() (xalign, yalign float64)

func (*Button) GetEventWindow

func (v *Button) GetEventWindow() *gdk.Window

func (*Button) GetFocusOnClick

func (v *Button) GetFocusOnClick() bool

func (*Button) GetImage

func (v *Button) GetImage() *Image

func (*Button) GetImagePosition

func (v *Button) GetImagePosition() PositionType

func (*Button) GetLabel

func (v *Button) GetLabel() string

func (*Button) GetRelief

func (v *Button) GetRelief() ReliefStyle

func (*Button) GetUseStock

func (v *Button) GetUseStock() bool

func (*Button) GetUseUnderline

func (v *Button) GetUseUnderline() bool

func (*Button) Leave

func (v *Button) Leave()

func (*Button) Pressed

func (v *Button) Pressed()

func (*Button) Released

func (v *Button) Released()

func (*Button) SetAlignment

func (v *Button) SetAlignment(xalign, yalign float64)

func (*Button) SetFocusOnClick

func (v *Button) SetFocusOnClick(setting bool)

func (*Button) SetImage

func (v *Button) SetImage(image IWidget)

func (*Button) SetImagePosition

func (v *Button) SetImagePosition(pos PositionType)

func (*Button) SetLabel

func (v *Button) SetLabel(label string)

func (*Button) SetRelief

func (v *Button) SetRelief(relief ReliefStyle)

func (*Button) SetUseStock

func (v *Button) SetUseStock(use bool)

func (*Button) SetUseUnderline

func (v *Button) SetUseUnderline(setting bool)

type ButtonsType

type ButtonsType int
const (
	BUTTONS_NONE ButtonsType = iota
	BUTTONS_OK
	BUTTONS_CLOSE
	BUTTONS_CANCEL
	BUTTONS_YES_NO
	BUTTONS_OK_CANCEL
)

type Calendar

type Calendar struct {
	Container
}

func NewCalendar

func NewCalendar() *Calendar

func (*Calendar) GetDate

func (c *Calendar) GetDate() (year, month, date uint)

type CellRenderer

type CellRenderer struct {
	GCellRenderer *C.GtkCellRenderer
	ICellRenderer
}

func (*CellRenderer) Connect

func (v *CellRenderer) Connect(s string, f interface{}, datas ...interface{}) int

func (*CellRenderer) ToCellRenderer

func (v *CellRenderer) ToCellRenderer() *C.GtkCellRenderer

type CellRendererAccel

type CellRendererAccel struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererAccel -----------------------------------------------------------------------

func NewCellRendererAccel

func NewCellRendererAccel() *CellRendererAccel

type CellRendererCombo

type CellRendererCombo struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererCombo -----------------------------------------------------------------------

func NewCellRendererCombo

func NewCellRendererCombo() *CellRendererCombo

type CellRendererPixbuf

type CellRendererPixbuf struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererPixbuf -----------------------------------------------------------------------

func NewCellRendererPixbuf

func NewCellRendererPixbuf() *CellRendererPixbuf

type CellRendererProgress

type CellRendererProgress struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererProgress -----------------------------------------------------------------------

func NewCellRendererProgress

func NewCellRendererProgress() *CellRendererProgress

type CellRendererSpin

type CellRendererSpin struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererSpin -----------------------------------------------------------------------

func NewCellRendererSpin

func NewCellRendererSpin() *CellRendererSpin

type CellRendererSpinner

type CellRendererSpinner struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererSpinner -----------------------------------------------------------------------

func NewCellRendererSpinner

func NewCellRendererSpinner() *CellRendererSpinner

type CellRendererText

type CellRendererText struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererText -----------------------------------------------------------------------

func NewCellRendererText

func NewCellRendererText() *CellRendererText

func (*CellRendererText) SetFixedHeightFromFont

func (v *CellRendererText) SetFixedHeightFromFont(number_of_rows int)

type CellRendererToggle

type CellRendererToggle struct {
	CellRenderer
}

----------------------------------------------------------------------- GtkCellRendererToggle -----------------------------------------------------------------------

func NewCellRendererToggle

func NewCellRendererToggle() *CellRendererToggle

func (*CellRendererToggle) GetActivatable

func (v *CellRendererToggle) GetActivatable() bool

func (*CellRendererToggle) GetActive

func (v *CellRendererToggle) GetActive() bool

func (*CellRendererToggle) GetRadio

func (v *CellRendererToggle) GetRadio() bool

func (*CellRendererToggle) SetActivatable

func (v *CellRendererToggle) SetActivatable(activatable bool)

func (*CellRendererToggle) SetActive

func (v *CellRendererToggle) SetActive(active bool)

func (*CellRendererToggle) SetRadio

func (v *CellRendererToggle) SetRadio(radio bool)

type CheckButton

type CheckButton struct {
	ToggleButton
}

----------------------------------------------------------------------- GtkCheckButton -----------------------------------------------------------------------

func NewCheckButton

func NewCheckButton() *CheckButton

func NewCheckButtonWithLabel

func NewCheckButtonWithLabel(label string) *CheckButton

func NewCheckButtonWithMnemonic

func NewCheckButtonWithMnemonic(label string) *CheckButton

type CheckMenuItem

type CheckMenuItem struct {
	MenuItem
}

----------------------------------------------------------------------- GtkCheckMenuItem -----------------------------------------------------------------------

func NewCheckMenuItem

func NewCheckMenuItem() *CheckMenuItem

func NewCheckMenuItemWithLabel

func NewCheckMenuItemWithLabel(label string) *CheckMenuItem

func NewCheckMenuItemWithMnemonic

func NewCheckMenuItemWithMnemonic(label string) *CheckMenuItem

func (*CheckMenuItem) GetActive

func (v *CheckMenuItem) GetActive() bool

func (*CheckMenuItem) GetDrawAsRadio

func (v *CheckMenuItem) GetDrawAsRadio() bool

func (*CheckMenuItem) GetInconsistent

func (v *CheckMenuItem) GetInconsistent() bool

func (*CheckMenuItem) SetActive

func (v *CheckMenuItem) SetActive(setting bool)

func (*CheckMenuItem) SetDrawAsRadio

func (v *CheckMenuItem) SetDrawAsRadio(setting bool)

func (*CheckMenuItem) SetInconsistent

func (v *CheckMenuItem) SetInconsistent(setting bool)

func (*CheckMenuItem) Toggled

func (v *CheckMenuItem) Toggled()

type Clipboard

type Clipboard struct {
	GClipboard *C.GtkClipboard
}

----------------------------------------------------------------------- GtkClipboard -----------------------------------------------------------------------

func NewClipboardGetForDisplay

func NewClipboardGetForDisplay(display *gdk.Display, selection gdk.Atom) *Clipboard

func (*Clipboard) Clear

func (v *Clipboard) Clear()

func (*Clipboard) Connect

func (v *Clipboard) Connect(s string, f interface{}, datas ...interface{}) int

func (*Clipboard) SetImage

func (v *Clipboard) SetImage(pixbuf *gdkpixbuf.Pixbuf)

func (*Clipboard) SetText

func (v *Clipboard) SetText(text string)

func (*Clipboard) Store

func (v *Clipboard) Store()

func (*Clipboard) WaitForContents

func (v *Clipboard) WaitForContents(target gdk.Atom) *SelectionData

func (*Clipboard) WaitForImage

func (v *Clipboard) WaitForImage() *gdkpixbuf.Pixbuf

func (*Clipboard) WaitForText

func (v *Clipboard) WaitForText() string

type ColorButton

type ColorButton struct {
	Button
}

func NewColorButton

func NewColorButton() *ColorButton

func NewColorButtonWithColor

func NewColorButtonWithColor(color *gdk.Color) *ColorButton

func (*ColorButton) GetAlpha

func (v *ColorButton) GetAlpha() uint16

func (*ColorButton) GetColor

func (v *ColorButton) GetColor() *gdk.Color

func (*ColorButton) GetTitle

func (v *ColorButton) GetTitle() string

func (*ColorButton) GetUseAlpha

func (v *ColorButton) GetUseAlpha() bool

func (*ColorButton) SetAlpha

func (v *ColorButton) SetAlpha(alpha uint16)

func (*ColorButton) SetColor

func (v *ColorButton) SetColor(color *gdk.Color)

func (*ColorButton) SetTitle

func (v *ColorButton) SetTitle(title string)

func (*ColorButton) SetUseAlpha

func (v *ColorButton) SetUseAlpha(use_alpha bool)

type ComboBox

type ComboBox struct {
	Bin
}

----------------------------------------------------------------------- GtkComboBox -----------------------------------------------------------------------

func NewComboBox

func NewComboBox() *ComboBox

func NewComboBoxNewText

func NewComboBoxNewText() *ComboBox

Deprecated since 2.24. Use GtkComboBoxText.

func NewComboBoxWithEntry

func NewComboBoxWithEntry() *ComboBox

func NewComboBoxWithModel

func NewComboBoxWithModel(model *TreeModel) *ComboBox

func NewComboBoxWithModelAndEntry

func NewComboBoxWithModelAndEntry(model *TreeModel) *ComboBox

func (*ComboBox) AppendText

func (v *ComboBox) AppendText(text string)

Deprecated since 2.24. Use GtkComboBoxText.

func (*ComboBox) GetActive

func (v *ComboBox) GetActive() int

func (*ComboBox) GetActiveIter

func (v *ComboBox) GetActiveIter(iter *TreeIter) bool

func (*ComboBox) GetActiveText

func (v *ComboBox) GetActiveText() string

Deprecated since 2.24. Use GtkComboBoxText or, if combo box contains an entry, get text directly from GtkEntry.

func (*ComboBox) GetAddTearoffs

func (v *ComboBox) GetAddTearoffs() bool

func (*ComboBox) GetColumnSpanColumn

func (v *ComboBox) GetColumnSpanColumn() int

func (*ComboBox) GetFocusOnClick

func (v *ComboBox) GetFocusOnClick() bool

func (*ComboBox) GetModel

func (v *ComboBox) GetModel() *TreeModel

func (*ComboBox) GetRowSpanColumn

func (v *ComboBox) GetRowSpanColumn() int

func (*ComboBox) GetTitle

func (v *ComboBox) GetTitle() string

func (*ComboBox) GetWrapWidth

func (v *ComboBox) GetWrapWidth() int

func (*ComboBox) InsertText

func (v *ComboBox) InsertText(text string, position int)

Deprecated since 2.24. Use GtkComboBoxText.

func (*ComboBox) Popdown

func (v *ComboBox) Popdown()

func (*ComboBox) Popup

func (v *ComboBox) Popup()

func (*ComboBox) PrependText

func (v *ComboBox) PrependText(text string)

Deprecated since 2.24. Use GtkComboBoxText.

func (*ComboBox) RemoveText

func (v *ComboBox) RemoveText(position int)

Deprecated since 2.24. Use GtkComboBoxText.

func (*ComboBox) SetActive

func (v *ComboBox) SetActive(width int)

func (*ComboBox) SetActiveIter

func (v *ComboBox) SetActiveIter(iter *TreeIter)

func (*ComboBox) SetAddTearoffs

func (v *ComboBox) SetAddTearoffs(add_tearoffs bool)

func (*ComboBox) SetColumnSpanColumn

func (v *ComboBox) SetColumnSpanColumn(column_span int)

func (*ComboBox) SetFocusOnClick

func (v *ComboBox) SetFocusOnClick(focus_on_click bool)

func (*ComboBox) SetModel

func (v *ComboBox) SetModel(model *TreeModel)

func (*ComboBox) SetRowSpanColumn

func (v *ComboBox) SetRowSpanColumn(row_span int)

func (*ComboBox) SetTitle

func (v *ComboBox) SetTitle(title string)

func (*ComboBox) SetWrapWidth

func (v *ComboBox) SetWrapWidth(width int)

type ComboBoxEntry

type ComboBoxEntry struct {
	ComboBox
}

----------------------------------------------------------------------- GtkComboBoxEntry -----------------------------------------------------------------------

func NewComboBoxEntry

func NewComboBoxEntry() *ComboBoxEntry

func NewComboBoxEntryNewText

func NewComboBoxEntryNewText() *ComboBoxEntry

func (*ComboBoxEntry) GetTextColumn

func (v *ComboBoxEntry) GetTextColumn() int

func (*ComboBoxEntry) SetTextColumn

func (v *ComboBoxEntry) SetTextColumn(text_column int)

type ComboBoxText

type ComboBoxText struct {
	ComboBox
}

----------------------------------------------------------------------- GtkComboBoxText -----------------------------------------------------------------------

func NewComboBoxText

func NewComboBoxText() *ComboBoxText

func NewComboBoxTextWithEntry

func NewComboBoxTextWithEntry() *ComboBoxText

func (*ComboBoxText) AppendText

func (v *ComboBoxText) AppendText(text string)

func (*ComboBoxText) GetActiveText

func (v *ComboBoxText) GetActiveText() string

func (*ComboBoxText) GetEntry

func (v *ComboBoxText) GetEntry() *Entry

func (*ComboBoxText) InsertText

func (v *ComboBoxText) InsertText(position int, text string)

func (*ComboBoxText) PrependText

func (v *ComboBoxText) PrependText(text string)

func (*ComboBoxText) Remove

func (v *ComboBoxText) Remove(position int)

type Container

type Container struct {
	Widget
}

func (*Container) Add

func (v *Container) Add(w IWidget)

func (*Container) CheckResize

func (v *Container) CheckResize()

func (*Container) ChildGet

func (v *Container) ChildGet(w IWidget, propName string, value interface{})

value must be pointer to int or bool

func (*Container) ChildSet

func (v *Container) ChildSet(w IWidget, propName string, value interface{})

func (*Container) GetBorderWidth

func (v *Container) GetBorderWidth() uint

func (*Container) GetChildren

func (v *Container) GetChildren() *glib.List

func (*Container) GetFocusChild

func (v *Container) GetFocusChild() *Widget

func (*Container) GetFocusHAdjustment

func (v *Container) GetFocusHAdjustment() *Adjustment

func (*Container) GetFocusVAdjustment

func (v *Container) GetFocusVAdjustment() *Adjustment

func (*Container) GetResizeMode

func (v *Container) GetResizeMode() ResizeMode

gtk_container_add_with_properties

func (*Container) Remove

func (v *Container) Remove(w IWidget)

func (*Container) SetBorderWidth

func (v *Container) SetBorderWidth(border_width uint)

func (*Container) SetFocusChild

func (v *Container) SetFocusChild(child *Widget)

func (*Container) SetFocusHAdjustment

func (v *Container) SetFocusHAdjustment(adjustment *Adjustment)

func (*Container) SetFocusVAdjustment

func (v *Container) SetFocusVAdjustment(adjustment *Adjustment)

func (*Container) SetReallocateRedraws

func (v *Container) SetReallocateRedraws(redraws bool)

func (*Container) SetResizeMode

func (v *Container) SetResizeMode(resize_mode ResizeMode)

type CornerType

type CornerType int
const (
	CORNER_TOP_LEFT CornerType = iota
	CORNER_BOTTOM_LEFT
	CORNER_TOP_RIGHT
	CORNER_BOTTOM_RIGHT
)

type DestDefaults

type DestDefaults int

----------------------------------------------------------------------- Drag and Drop -----------------------------------------------------------------------

const (
	DEST_DEFAULT_MOTION    DestDefaults = 1 << iota /* respond to "drag_motion" */
	DEST_DEFAULT_HIGHLIGHT                          /* auto-highlight */
	DEST_DEFAULT_DROP                               /* respond to "drag_drop" */
	DEST_DEFAULT_ALL       = 0x07
)

type Dialog

type Dialog struct {
	Window
}

func NewDialog

func NewDialog() *Dialog

func (*Dialog) AddButton

func (v *Dialog) AddButton(button_text string, response_id ResponseType) *Button

func (*Dialog) GetContentArea

func (v *Dialog) GetContentArea() *VBox

func (*Dialog) GetHasSeparator

func (v *Dialog) GetHasSeparator() bool

Deprecated since 2.22.

func (*Dialog) GetResponseForWidget

func (v *Dialog) GetResponseForWidget(w *Widget) ResponseType

func (*Dialog) GetVBox

func (v *Dialog) GetVBox() *VBox

func (*Dialog) GetWidgetForResponse

func (v *Dialog) GetWidgetForResponse(id ResponseType) *Widget

func (*Dialog) Response

func (v *Dialog) Response(response interface{}, datas ...interface{})

func (*Dialog) Run

func (v *Dialog) Run() ResponseType

func (*Dialog) SetDefaultResponse

func (v *Dialog) SetDefaultResponse(id ResponseType)

func (*Dialog) SetHasSeparator

func (v *Dialog) SetHasSeparator(f bool)

Deprecated since 2.22.

func (*Dialog) SetResponseSensitive

func (v *Dialog) SetResponseSensitive(id ResponseType, setting bool)

type DialogFlags

type DialogFlags int

----------------------------------------------------------------------- GtkDialog -----------------------------------------------------------------------

const (
	DIALOG_MODAL               DialogFlags = 1 << iota /* call gtk_window_set_modal (win, TRUE) */
	DIALOG_DESTROY_WITH_PARENT                         /* call gtk_window_set_destroy_with_parent () */
	DIALOG_NO_SEPARATOR                                /* no separator bar above buttons */
)

type DrawingArea

type DrawingArea struct {
	Widget
}

----------------------------------------------------------------------- GtkDrawingArea -----------------------------------------------------------------------

func NewDrawingArea

func NewDrawingArea() *DrawingArea

func (*DrawingArea) Size deprecated

func (v *DrawingArea) Size(width, height int)

Deprecated: Use GtkWidget.SetSizeRequest() instead.

type Editable

type Editable struct {
	GEditable *C.GtkEditable
}

----------------------------------------------------------------------- GtkEditable -----------------------------------------------------------------------

func (*Editable) CopyClipboard

func (v *Editable) CopyClipboard()

func (*Editable) CutClipboard

func (v *Editable) CutClipboard()

func (*Editable) DeleteSelection

func (v *Editable) DeleteSelection()

func (*Editable) DeleteText

func (v *Editable) DeleteText(startPos int, endPos int)

func (*Editable) GetChars

func (v *Editable) GetChars(startPos int, endPos int) string

func (*Editable) GetEditable

func (v *Editable) GetEditable() bool

func (*Editable) GetPosition

func (v *Editable) GetPosition() int

func (*Editable) GetSelectionBounds

func (v *Editable) GetSelectionBounds() (isSelected bool,
	startPos int, endPos int)

func (*Editable) InsertText

func (v *Editable) InsertText(newText string, position int) int

func (*Editable) PasteClipboard

func (v *Editable) PasteClipboard()

func (*Editable) SelectRegion

func (v *Editable) SelectRegion(startPos int, endPos int)

func (*Editable) SetEditable

func (v *Editable) SetEditable(isEditable bool)

func (*Editable) SetPosition

func (v *Editable) SetPosition(position int)

type Entry

type Entry struct {
	Widget
	Editable
}

func NewEntry

func NewEntry() *Entry

func NewEntryWithBuffer

func NewEntryWithBuffer(buffer *EntryBuffer) *Entry

func (*Entry) GetActivatesDefault

func (v *Entry) GetActivatesDefault() bool

func (*Entry) GetAlignment

func (v *Entry) GetAlignment() float64

func (*Entry) GetBuffer

func (v *Entry) GetBuffer() *EntryBuffer

func (*Entry) GetCompletion

func (v *Entry) GetCompletion() *EntryCompletion

func (*Entry) GetHasFrame

func (v *Entry) GetHasFrame() bool

func (*Entry) GetInnerBorder

func (v *Entry) GetInnerBorder() *Border

func (*Entry) GetInvisibleChar

func (v *Entry) GetInvisibleChar() rune

func (*Entry) GetMaxLength

func (v *Entry) GetMaxLength() int

func (*Entry) GetOverwriteMode

func (v *Entry) GetOverwriteMode() bool

func (*Entry) GetText

func (v *Entry) GetText() string

func (*Entry) GetTextLength

func (v *Entry) GetTextLength() int

func (*Entry) GetVisibility

func (v *Entry) GetVisibility() bool

func (*Entry) GetWidthChars

func (v *Entry) GetWidthChars() int

func (*Entry) SetActivatesDefault

func (v *Entry) SetActivatesDefault(setting bool)

func (*Entry) SetAlignment

func (v *Entry) SetAlignment(xalign float64)

func (*Entry) SetBuffer

func (v *Entry) SetBuffer(buffer *EntryBuffer)

func (*Entry) SetCompletion

func (v *Entry) SetCompletion(completion *EntryCompletion)

func (*Entry) SetHasFrame

func (v *Entry) SetHasFrame(setting bool)

func (*Entry) SetInnerBorder

func (v *Entry) SetInnerBorder(border *Border)

func (*Entry) SetInvisibleChar

func (v *Entry) SetInvisibleChar(ch rune)

func (*Entry) SetMaxLength

func (v *Entry) SetMaxLength(i int)

func (*Entry) SetOverwriteMode

func (v *Entry) SetOverwriteMode(mode bool)

func (*Entry) SetText

func (v *Entry) SetText(text string)

func (*Entry) SetVisibility

func (v *Entry) SetVisibility(setting bool)

func (*Entry) SetWidthChars

func (v *Entry) SetWidthChars(i int)

func (*Entry) UnsetInvisibleChar

func (v *Entry) UnsetInvisibleChar()

type EntryBuffer

type EntryBuffer struct {
	GEntryBuffer *C.GtkEntryBuffer
}

----------------------------------------------------------------------- GtkEntryBuffer -----------------------------------------------------------------------

func NewEntryBuffer

func NewEntryBuffer(initialText string) *EntryBuffer

func (*EntryBuffer) DeleteText

func (v *EntryBuffer) DeleteText(position uint, nChars int) uint

func (*EntryBuffer) GetLength

func (v *EntryBuffer) GetLength() uint

func (*EntryBuffer) GetMaxLength

func (v *EntryBuffer) GetMaxLength() int

func (*EntryBuffer) GetText

func (v *EntryBuffer) GetText() string

func (*EntryBuffer) InsertText

func (v *EntryBuffer) InsertText(position uint, text string) uint

func (*EntryBuffer) SetMaxLength

func (v *EntryBuffer) SetMaxLength(maxLength int)

func (*EntryBuffer) SetText

func (v *EntryBuffer) SetText(text string)

type EntryCompletion

type EntryCompletion struct {
	GEntryCompletion *C.GtkEntryCompletion
	*glib.GObject
}

func NewEntryCompletion

func NewEntryCompletion() *EntryCompletion

func (*EntryCompletion) Complete

func (v *EntryCompletion) Complete()

func (*EntryCompletion) DeleteAction

func (v *EntryCompletion) DeleteAction(index int)

func (*EntryCompletion) GetCompletionPrefix

func (v *EntryCompletion) GetCompletionPrefix() string

func (*EntryCompletion) GetEntry

func (v *EntryCompletion) GetEntry() *Widget

func (*EntryCompletion) GetInlineCompletion

func (v *EntryCompletion) GetInlineCompletion() bool

func (*EntryCompletion) GetInlineSelection

func (v *EntryCompletion) GetInlineSelection() bool

func (*EntryCompletion) GetMinimumKeyLength

func (v *EntryCompletion) GetMinimumKeyLength() int

func (*EntryCompletion) GetModel

func (v *EntryCompletion) GetModel() *TreeModel

func (*EntryCompletion) GetPopupCompletion

func (v *EntryCompletion) GetPopupCompletion() bool

func (*EntryCompletion) GetPopupSetWidth

func (v *EntryCompletion) GetPopupSetWidth() bool

func (*EntryCompletion) GetPopupSingleMatch

func (v *EntryCompletion) GetPopupSingleMatch() bool

func (*EntryCompletion) GetTextColumn

func (v *EntryCompletion) GetTextColumn() int

func (*EntryCompletion) InsertActionMarkup

func (v *EntryCompletion) InsertActionMarkup(index int, markup string)

func (*EntryCompletion) InsertActionText

func (v *EntryCompletion) InsertActionText(index int, text string)

func (*EntryCompletion) InsertPrefix

func (v *EntryCompletion) InsertPrefix()

func (*EntryCompletion) SetInlineCompletion

func (v *EntryCompletion) SetInlineCompletion(inlineCompletion bool)

func (*EntryCompletion) SetInlineSelection

func (v *EntryCompletion) SetInlineSelection(inlineSelection bool)

func (*EntryCompletion) SetMinimumKeyLength

func (v *EntryCompletion) SetMinimumKeyLength(length int)

func (*EntryCompletion) SetModel

func (v *EntryCompletion) SetModel(model *TreeModel)

func (*EntryCompletion) SetPopupCompletion

func (v *EntryCompletion) SetPopupCompletion(popupCompletion bool)

func (*EntryCompletion) SetPopupSetWidth

func (v *EntryCompletion) SetPopupSetWidth(popupSetWidth bool)

func (*EntryCompletion) SetPopupSingleMatch

func (v *EntryCompletion) SetPopupSingleMatch(popupSingleMatch bool)

func (*EntryCompletion) SetTextColumn

func (v *EntryCompletion) SetTextColumn(column int)

type EntryCompletionMatchFunc

type EntryCompletionMatchFunc func(completion *EntryCompletion, key string, iter *TreeIter, data interface{})

type EventBox

type EventBox struct {
	Bin
}

----------------------------------------------------------------------- GtkEventBox -----------------------------------------------------------------------

func EventBoxFromObject

func EventBoxFromObject(object *glib.GObject) *EventBox

add by xtlx2000

func NewEventBox

func NewEventBox() *EventBox

type Expander

type Expander struct {
	Bin
}

----------------------------------------------------------------------- GtkExpander -----------------------------------------------------------------------

func NewExpander

func NewExpander(label string) *Expander

func NewExpanderWithMnemonic

func NewExpanderWithMnemonic(label string) *Expander

func (*Expander) GetExpanded

func (v *Expander) GetExpanded() bool

func (*Expander) GetLabel

func (v *Expander) GetLabel() string

func (*Expander) GetLabelWidget

func (v *Expander) GetLabelWidget() ILabel

func (*Expander) GetSpacing

func (v *Expander) GetSpacing() int

func (*Expander) GetUseMarkup

func (v *Expander) GetUseMarkup() bool

func (*Expander) GetUseUnderline

func (v *Expander) GetUseUnderline() bool

func (*Expander) SetExpanded

func (v *Expander) SetExpanded(expanded bool)

func (*Expander) SetLabel

func (v *Expander) SetLabel(label string)

func (*Expander) SetLabelWidget

func (v *Expander) SetLabelWidget(label_widget ILabel)

func (*Expander) SetSpacing

func (v *Expander) SetSpacing(spacing int)

func (*Expander) SetUseMarkup

func (v *Expander) SetUseMarkup(setting bool)

func (*Expander) SetUseUnderline

func (v *Expander) SetUseUnderline(setting bool)

type FileChooser

type FileChooser struct {
	GFileChooser *C.GtkFileChooser
}

func (*FileChooser) AddFilter

func (v *FileChooser) AddFilter(f *FileFilter)

func (*FileChooser) GetAction

func (v *FileChooser) GetAction() FileChooserAction

func (*FileChooser) GetCreateFolders

func (v *FileChooser) GetCreateFolders() bool

func (*FileChooser) GetCurrentFolder

func (v *FileChooser) GetCurrentFolder() string

func (*FileChooser) GetDoOverwriteConfirmation

func (v *FileChooser) GetDoOverwriteConfirmation() bool

func (*FileChooser) GetFilename

func (v *FileChooser) GetFilename() string

func (*FileChooser) GetFilenames

func (v *FileChooser) GetFilenames() []string

func (*FileChooser) GetFilter

func (v *FileChooser) GetFilter() *FileFilter

func (*FileChooser) GetLocalOnly

func (v *FileChooser) GetLocalOnly() bool

func (*FileChooser) GetSelectMultiple

func (v *FileChooser) GetSelectMultiple() bool

func (*FileChooser) GetShowHidden

func (v *FileChooser) GetShowHidden() bool

func (*FileChooser) GetUri

func (v *FileChooser) GetUri() string

func (*FileChooser) GetUris

func (v *FileChooser) GetUris() []string

func (*FileChooser) ListFilters

func (v *FileChooser) ListFilters() []*FileFilter

func (*FileChooser) RemoveFilter

func (v *FileChooser) RemoveFilter(f *FileFilter)

func (*FileChooser) SelectAll

func (v *FileChooser) SelectAll()

func (*FileChooser) SelectFilename

func (v *FileChooser) SelectFilename(filename string) bool

GTK doc said the return value is "Not useful".

func (*FileChooser) SelectUri

func (v *FileChooser) SelectUri(uri string) bool

func (*FileChooser) SetAction

func (v *FileChooser) SetAction(action FileChooserAction)

func (*FileChooser) SetCreateFolders

func (v *FileChooser) SetCreateFolders(b bool)

func (*FileChooser) SetCurrentFolder

func (v *FileChooser) SetCurrentFolder(f string) bool

func (*FileChooser) SetCurrentName

func (v *FileChooser) SetCurrentName(name string)

func (*FileChooser) SetDoOverwriteConfirmation

func (v *FileChooser) SetDoOverwriteConfirmation(b bool)

func (*FileChooser) SetFilename

func (v *FileChooser) SetFilename(filename string)

func (*FileChooser) SetFilter

func (v *FileChooser) SetFilter(f *FileFilter)

func (*FileChooser) SetLocalOnly

func (v *FileChooser) SetLocalOnly(b bool)

func (*FileChooser) SetSelectMultiple

func (v *FileChooser) SetSelectMultiple(b bool)

func (*FileChooser) SetShowHidden

func (v *FileChooser) SetShowHidden(showHidden bool)

func (*FileChooser) SetUri

func (v *FileChooser) SetUri(uri string) bool

func (*FileChooser) UnselectAll

func (v *FileChooser) UnselectAll()

func (*FileChooser) UnselectFilename

func (v *FileChooser) UnselectFilename(filename string)

func (*FileChooser) UnselectUri

func (v *FileChooser) UnselectUri(uri string)

type FileChooserAction

type FileChooserAction int

----------------------------------------------------------------------- GtkFileChooser -----------------------------------------------------------------------

const (
	FILE_CHOOSER_ACTION_OPEN FileChooserAction = iota
	FILE_CHOOSER_ACTION_SAVE
	FILE_CHOOSER_ACTION_SELECT_FOLDER
	FILE_CHOOSER_ACTION_CREATE_FOLDER
)

type FileChooserButton

type FileChooserButton struct {
	HBox
	FileChooser
}

----------------------------------------------------------------------- GtkFileChooserButton -----------------------------------------------------------------------

func NewFileChooserButton

func NewFileChooserButton(title string, action FileChooserAction) *FileChooserButton

gtk_file_chooser_button_new

func NewFileChooserButtonWithDialog

func NewFileChooserButtonWithDialog(dialog *FileChooserDialog) *FileChooserButton

gtk_file_chooser_button_new_with_dialog

type FileChooserDialog

type FileChooserDialog struct {
	Dialog
	FileChooser
}

----------------------------------------------------------------------- GtkFileChooserDialog -----------------------------------------------------------------------

func NewFileChooserDialog

func NewFileChooserDialog(title string, parent *Window, file_chooser_action FileChooserAction,
	button_text string, button_action ResponseType, buttons ...interface{}) *FileChooserDialog

type FileChooserWidget

type FileChooserWidget struct {
	VBox
	FileChooser
}

----------------------------------------------------------------------- GtkFileChooserWidget -----------------------------------------------------------------------

func NewFileChooserWidget

func NewFileChooserWidget(file_chooser_action FileChooserAction) *FileChooserWidget

type FileFilter

type FileFilter struct {
	GFileFilter *C.GtkFileFilter
}

----------------------------------------------------------------------- GtkFileFilter -----------------------------------------------------------------------

func NewFileFilter

func NewFileFilter() *FileFilter

func (*FileFilter) AddMimeType

func (v *FileFilter) AddMimeType(mimetype string)

func (*FileFilter) AddPattern

func (v *FileFilter) AddPattern(pattern string)

func (*FileFilter) GetName

func (v *FileFilter) GetName() string

func (*FileFilter) SetName

func (v *FileFilter) SetName(name string)

type Fixed

type Fixed struct {
	Container
}

----------------------------------------------------------------------- GtkFixed -----------------------------------------------------------------------

func NewFixed

func NewFixed() *Fixed

func (*Fixed) Move

func (v *Fixed) Move(w IWidget, x, y int)

func (*Fixed) Put

func (v *Fixed) Put(w IWidget, x, y int)

type FontButton

type FontButton struct {
	Button
}

----------------------------------------------------------------------- GtkFontButton -----------------------------------------------------------------------

func NewFontButton

func NewFontButton() *FontButton

func NewFontButtonWithFont

func NewFontButtonWithFont(fontname string) *FontButton

func (*FontButton) GetFontName

func (v *FontButton) GetFontName() string

func (*FontButton) GetShowSize

func (v *FontButton) GetShowSize() bool

func (*FontButton) GetShowStyle

func (v *FontButton) GetShowStyle() bool

func (*FontButton) GetTitle

func (v *FontButton) GetTitle() string

func (*FontButton) GetUseFont

func (v *FontButton) GetUseFont() bool

func (*FontButton) GetUseSize

func (v *FontButton) GetUseSize() bool

func (*FontButton) SetFontName

func (v *FontButton) SetFontName(fontname string)

func (*FontButton) SetShowSize

func (v *FontButton) SetShowSize(show_size bool)

func (*FontButton) SetShowStyle

func (v *FontButton) SetShowStyle(show bool)

func (*FontButton) SetTitle

func (v *FontButton) SetTitle(title string)

func (*FontButton) SetUseFont

func (v *FontButton) SetUseFont(use bool)

func (*FontButton) SetUseSize

func (v *FontButton) SetUseSize(use_size bool)

type FontSelection

type FontSelection struct {
	VBox
}

----------------------------------------------------------------------- GtkFontSelection -----------------------------------------------------------------------

func NewFontSelection

func NewFontSelection() *FontSelection

func (*FontSelection) GetFont

func (v *FontSelection) GetFont() *gdk.Font

func (*FontSelection) GetFontName

func (v *FontSelection) GetFontName() string

func (*FontSelection) SetFontName

func (v *FontSelection) SetFontName(name string)

type FontSelectionDialog

type FontSelectionDialog struct {
	Dialog
}

----------------------------------------------------------------------- GtkFontSelectionDialog -----------------------------------------------------------------------

func NewFontSelectionDialog

func NewFontSelectionDialog(title string) *FontSelectionDialog

func (*FontSelectionDialog) GetCancelButton

func (v *FontSelectionDialog) GetCancelButton() *Widget

func (*FontSelectionDialog) GetFontName

func (v *FontSelectionDialog) GetFontName() string

func (*FontSelectionDialog) GetFontSelection

func (v *FontSelectionDialog) GetFontSelection() *FontSelection

func (*FontSelectionDialog) GetOkButton

func (v *FontSelectionDialog) GetOkButton() *Widget

func (*FontSelectionDialog) GetPreviewText

func (v *FontSelectionDialog) GetPreviewText() string

func (*FontSelectionDialog) SetFontName

func (v *FontSelectionDialog) SetFontName(font string)

func (*FontSelectionDialog) SetPreviewText

func (v *FontSelectionDialog) SetPreviewText(text string)

type Frame

type Frame struct {
	Bin
}

func NewFrame

func NewFrame(label string) *Frame

func (*Frame) GetLabel

func (v *Frame) GetLabel() string

func (*Frame) GetLabelAlign

func (v *Frame) GetLabelAlign() (xalign, yalign float64)

func (*Frame) GetLabelWidget

func (v *Frame) GetLabelWidget() ILabel

func (*Frame) GetShadowType

func (v *Frame) GetShadowType() ShadowType

func (*Frame) SetLabel

func (v *Frame) SetLabel(label string)

func (*Frame) SetLabelAlign

func (v *Frame) SetLabelAlign(xalign, yalign float64)

func (*Frame) SetLabelWidget

func (v *Frame) SetLabelWidget(label_widget ILabel)

func (*Frame) SetShadowType

func (v *Frame) SetShadowType(shadow_type ShadowType)

type GtkTreeSelecter

type GtkTreeSelecter interface {
	Select(selection *TreeSelection, model *TreeModel, path *TreePath, selected bool) bool
}

type HBox

type HBox struct {
	Box
}

----------------------------------------------------------------------- GtkHBox -----------------------------------------------------------------------

func NewHBox

func NewHBox(homogeneous bool, spacing int) *HBox

type HPaned

type HPaned struct {
	Paned
}

----------------------------------------------------------------------- GtkHPaned -----------------------------------------------------------------------

func NewHPaned

func NewHPaned() *HPaned

type HScrollbar

type HScrollbar struct {
	Scrollbar
}

----------------------------------------------------------------------- GtkHScrollbar -----------------------------------------------------------------------

func NewHScrollbar

func NewHScrollbar(ha *Adjustment) *HScrollbar

type HSeparator

type HSeparator struct {
	Separator
}

----------------------------------------------------------------------- GtkHSeparator -----------------------------------------------------------------------

func NewHSeparator

func NewHSeparator() *HSeparator

type IAction

type IAction interface {
	// contains filtered or unexported methods
}

type IBox

type IBox interface {
	IContainer
	PackStart(child IWidget, expand bool, fill bool, padding uint)
	PackEnd(child IWidget, expand bool, fill bool, padding uint)
}

type ICellRenderer

type ICellRenderer interface {
	ToCellRenderer() *C.GtkCellRenderer
}

----------------------------------------------------------------------- GtkCellRenderer -----------------------------------------------------------------------

type IContainer

type IContainer interface {
	IWidget
	Add(w IWidget)
}

----------------------------------------------------------------------- GtkContainer -----------------------------------------------------------------------

type ILabel

type ILabel interface {
	IWidget

	GetLabel() string
	SetLabel(label string)
	// contains filtered or unexported methods
}

type IPaned

type IPaned interface {
	IContainer
	Add1(child IWidget)
	Add2(child IWidget)
	Pack1(child IWidget, expand bool, fill bool)
	Pack2(child IWidget, expand bool, fill bool)
}

----------------------------------------------------------------------- GtkPaned -----------------------------------------------------------------------

type ITextBuffer

type ITextBuffer interface {
	GetNativeBuffer() unsafe.Pointer
}

----------------------------------------------------------------------- GtkTextBuffer -----------------------------------------------------------------------

type ITreeModel

type ITreeModel interface {
	// contains filtered or unexported methods
}

type IWidget

type IWidget interface {
	ToNative() *C.GtkWidget
	Hide()
	HideAll()
	Show()
	ShowAll()
	ShowNow()
	Destroy()
	Connect(s string, f interface{}, data ...interface{}) int
	GetTopLevel() *Widget
	GetTopLevelAsWindow() *Window
	HideOnDelete()
	QueueResize()
	GetName() string
}

type IconInfo

type IconInfo struct {
	GtkIconInfo *C.GtkIconInfo
}

func (*IconInfo) LoadIcon

func (ii *IconInfo) LoadIcon() (*gdkpixbuf.GdkPixbuf, error)

gtk_icon_info_load_icon

type IconLookupFlags

type IconLookupFlags C.GtkIconLookupFlags

type IconSize

type IconSize int

----------------------------------------------------------------------- GtkImage -----------------------------------------------------------------------

const (
	ICON_SIZE_INVALID IconSize = iota
	ICON_SIZE_MENU
	ICON_SIZE_SMALL_TOOLBAR
	ICON_SIZE_LARGE_TOOLBAR
	ICON_SIZE_BUTTON
	ICON_SIZE_DND
	ICON_SIZE_DIALOG
)
const (
	GTK_ICON_SIZE_INVALID       IconSize = C.GTK_ICON_SIZE_INVALID
	GTK_ICON_SIZE_MENU          IconSize = C.GTK_ICON_SIZE_MENU
	GTK_ICON_SIZE_SMALL_TOOLBAR IconSize = C.GTK_ICON_SIZE_SMALL_TOOLBAR
	GTK_ICON_SIZE_LARGE_TOOLBAR IconSize = C.GTK_ICON_SIZE_LARGE_TOOLBAR
	GTK_ICON_SIZE_BUTTON        IconSize = C.GTK_ICON_SIZE_BUTTON
	GTK_ICON_SIZE_DND           IconSize = C.GTK_ICON_SIZE_DND
	GTK_ICON_SIZE_DIALOG        IconSize = C.GTK_ICON_SIZE_DIALOG
)

type IconTheme

type IconTheme struct {
	GtkIconTheme *C.GtkIconTheme
}

func GetDefaultIconTheme

func GetDefaultIconTheme() *IconTheme

gtk_icon_theme_get_default

func (*IconTheme) LookupByGIcon

func (it *IconTheme) LookupByGIcon(icon *gio.GIcon, width int) *IconInfo

gtk_icon_theme_lookup_by_gicon

type IconView

type IconView struct {
	Container
}

----------------------------------------------------------------------- GtkIconView -----------------------------------------------------------------------

func NewIconView

func NewIconView() *IconView

func NewIconViewWithModel

func NewIconViewWithModel(model ITreeModel) *IconView

func (*IconView) GetMarkupColumn

func (v *IconView) GetMarkupColumn() int

func (*IconView) GetModel

func (v *IconView) GetModel() *TreeModel

func (*IconView) GetPixbufColumn

func (v *IconView) GetPixbufColumn() int

func (*IconView) GetTextColumn

func (v *IconView) GetTextColumn() int

func (*IconView) ScrollToPath

func (v *IconView) ScrollToPath(path *TreePath, use bool, ra float64, ca float64)

func (*IconView) SetMarkupColumn

func (v *IconView) SetMarkupColumn(markup_column int)

func (*IconView) SetModel

func (v *IconView) SetModel(model ITreeModel)

func (*IconView) SetPixbufColumn

func (v *IconView) SetPixbufColumn(pixbuf_column int)

func (*IconView) SetTextColumn

func (v *IconView) SetTextColumn(text_column int)

type Image

type Image struct {
	Misc
}
type IImage interface {
	IWidget
}

func NewImage

func NewImage() *Image

func NewImageFromFile

func NewImageFromFile(filename string) *Image

func NewImageFromIconName

func NewImageFromIconName(stock_id string, size IconSize) *Image

func NewImageFromPixbuf

func NewImageFromPixbuf(pixbuf *gdkpixbuf.Pixbuf) *Image

func NewImageFromStock

func NewImageFromStock(stock_id string, size IconSize) *Image

func (*Image) Clear

func (v *Image) Clear()

func (*Image) GetPixbuf

func (v *Image) GetPixbuf() *gdkpixbuf.Pixbuf

func (*Image) SetFromFile

func (v *Image) SetFromFile(filename string)

func (*Image) SetFromPixbuf

func (v *Image) SetFromPixbuf(pixbuf *gdkpixbuf.Pixbuf)

func (*Image) SetFromStock

func (v *Image) SetFromStock(stock_id string, size IconSize)

type ImageMenuItem

type ImageMenuItem struct {
	MenuItem
}

func NewImageMenuItem

func NewImageMenuItem() *ImageMenuItem

func NewImageMenuItemFromStock

func NewImageMenuItemFromStock(stock_id string, accel_group *AccelGroup) *ImageMenuItem

func NewImageMenuItemWithLabel

func NewImageMenuItemWithLabel(label string) *ImageMenuItem

func NewImageMenuItemWithMnemonic

func NewImageMenuItemWithMnemonic(label string) *ImageMenuItem

func (*ImageMenuItem) GetImage

func (v *ImageMenuItem) GetImage() *Widget

func (*ImageMenuItem) SetImage

func (v *ImageMenuItem) SetImage(image *Widget)

type InfoBar

type InfoBar struct {
	HBox
}

----------------------------------------------------------------------- GtkInfoBar -----------------------------------------------------------------------

func NewInfoBar

func NewInfoBar() *InfoBar

func NewInfoBarWithButtons

func NewInfoBarWithButtons(buttons ...interface{}) *InfoBar

func (*InfoBar) AddActionWidget

func (v *InfoBar) AddActionWidget(child IWidget, responseId ResponseType)

func (*InfoBar) AddButton

func (v *InfoBar) AddButton(buttonText string, responseId ResponseType) *Widget

func (*InfoBar) AddButtons

func (v *InfoBar) AddButtons(buttons ...interface{})

func (*InfoBar) GetActionArea

func (v *InfoBar) GetActionArea() *Widget

func (*InfoBar) GetContentArea

func (v *InfoBar) GetContentArea() *Widget

func (*InfoBar) GetMessageType

func (v *InfoBar) GetMessageType() MessageType

func (*InfoBar) Response

func (v *InfoBar) Response(responseId ResponseType)

func (*InfoBar) SetDefaultResponse

func (v *InfoBar) SetDefaultResponse(responseId ResponseType)

func (*InfoBar) SetMessageType

func (v *InfoBar) SetMessageType(messageType MessageType)

func (*InfoBar) SetResponseSensitive

func (v *InfoBar) SetResponseSensitive(responseId ResponseType, setting bool)

type Item

type Item struct {
	Bin
}

----------------------------------------------------------------------- GtkItem -----------------------------------------------------------------------

func (*Item) Deselect

func (v *Item) Deselect()

Deprecated since 2.22. Use GtkMenuItem.Deselect() instead.

func (*Item) Select

func (v *Item) Select()

Deprecated since 2.22. Use GtkMenuItem.Select() instead.

func (*Item) Toggle

func (v *Item) Toggle()

Deprecated since 2.22.

type Justification

type Justification int

----------------------------------------------------------------------- GtkLabel -----------------------------------------------------------------------

const (
	JUSTIFY_LEFT Justification = iota
	JUSTIFY_RIGHT
	JUSTIFY_CENTER
	JUSTIFY_FILL
)

type Label

type Label struct {
	Misc
}

func LabelWithMnemonic

func LabelWithMnemonic(label string) *Label

func NewLabel

func NewLabel(label string) *Label

func (*Label) GetAngle

func (v *Label) GetAngle() float64

func (*Label) GetCurrentUri

func (v *Label) GetCurrentUri() string

func (*Label) GetEllipsize

func (v *Label) GetEllipsize() pango.EllipsizeMode

func (*Label) GetJustify

func (v *Label) GetJustify() Justification

gtk_label_get_attributes

func (*Label) GetLabel

func (v *Label) GetLabel() string

func (*Label) GetLineWrap

func (v *Label) GetLineWrap() bool

func (*Label) GetLineWrapMode

func (v *Label) GetLineWrapMode() pango.WrapMode

func (*Label) GetMaxWidthChars

func (v *Label) GetMaxWidthChars() int

func (*Label) GetMnemonicWidget

func (v *Label) GetMnemonicWidget() *Widget

func (*Label) GetSelectable

func (v *Label) GetSelectable() bool

func (*Label) GetSelectionBounds

func (v *Label) GetSelectionBounds() (start int, end int)

gtk_label_get_mnemonic_widget

func (*Label) GetSingleLineMode

func (v *Label) GetSingleLineMode() bool

func (*Label) GetText

func (v *Label) GetText() string
func (v *Label) GetTrackVisitedLinks() bool

func (*Label) GetUseMarkup

func (v *Label) GetUseMarkup() bool

func (*Label) GetUseUnderline

func (v *Label) GetUseUnderline() bool

func (*Label) GetWidthChars

func (v *Label) GetWidthChars() int

func (*Label) SelectRegion

func (v *Label) SelectRegion(start_offset int, end_offset int)

func (*Label) SetAngle

func (v *Label) SetAngle(angle float64)

func (*Label) SetEllipsize

func (v *Label) SetEllipsize(ellipsize pango.EllipsizeMode)

func (*Label) SetJustify

func (v *Label) SetJustify(jtype Justification)

func (*Label) SetLabel

func (v *Label) SetLabel(label string)

func (*Label) SetLineWrap

func (v *Label) SetLineWrap(setting bool)

func (*Label) SetMarkup

func (v *Label) SetMarkup(markup string)

func (*Label) SetMaxWidthChars

func (v *Label) SetMaxWidthChars(n_chars int)

func (*Label) SetMnemonicWidget

func (v *Label) SetMnemonicWidget(widget IWidget)

func (*Label) SetPattern

func (v *Label) SetPattern(pattern string)

func (*Label) SetSelectable

func (v *Label) SetSelectable(setting bool)

func (*Label) SetSingleLineMode

func (v *Label) SetSingleLineMode(single_line bool)

func (*Label) SetText

func (v *Label) SetText(label string)

func (*Label) SetTextWithMnemonic

func (v *Label) SetTextWithMnemonic(str string)
func (v *Label) SetTrackVisitedLinks(track_links bool)

func (*Label) SetUseLineWrapMode

func (v *Label) SetUseLineWrapMode(wrap_mode pango.WrapMode)

func (*Label) SetUseMarkup

func (v *Label) SetUseMarkup(setting bool)

func (*Label) SetUseUnderline

func (v *Label) SetUseUnderline(setting bool)

func (*Label) SetWidthChars

func (v *Label) SetWidthChars(n_chars int)

type Layout

type Layout struct {
	Container
}

func NewLayout

func NewLayout(hadjustment *Adjustment, vadjustment *Adjustment) *Layout

func (*Layout) Freeze

func (v *Layout) Freeze()

func (*Layout) GetBinWindow

func (v *Layout) GetBinWindow() *Window

func (*Layout) GetHAdjustment

func (v *Layout) GetHAdjustment() *Adjustment

func (*Layout) GetSize

func (v *Layout) GetSize() (width int, height int)

func (*Layout) GetVAdjustment

func (v *Layout) GetVAdjustment() *Adjustment

func (*Layout) Move

func (v *Layout) Move(child IWidget, x int, y int)

func (*Layout) Put

func (v *Layout) Put(child IWidget, x int, y int)

func (*Layout) SetHAdjustment

func (v *Layout) SetHAdjustment(hadjustment *Adjustment)

func (*Layout) SetSize

func (v *Layout) SetSize(width int, height int)

func (*Layout) SetVAdjustment

func (v *Layout) SetVAdjustment(vadjustment *Adjustment)

func (*Layout) Thaw

func (v *Layout) Thaw()

type LinkButton

type LinkButton struct {
	Button
}

----------------------------------------------------------------------- GtkLinkButton -----------------------------------------------------------------------

func NewLinkButton

func NewLinkButton(uri string) *LinkButton

func NewLinkButtonWithLabel

func NewLinkButtonWithLabel(uri string, label string) *LinkButton

func (*LinkButton) GetUri

func (v *LinkButton) GetUri() string

func (*LinkButton) GetVisited

func (v *LinkButton) GetVisited() bool

gtk_link_button_set_uri_hook has been deprecated since 2.24. Use clicked signal instead. //TODO func (v GtkLinkButton) SetUriHook(f func(button *GtkLinkButton, link string, user_data unsafe.Pointer), ) { GtkLinkButtonUriFunc gtk_link_button_set_uri_hook (GtkLinkButtonUriFunc func, gpointer data, GDestroyNotify destroy); }

func (*LinkButton) SetUri

func (v *LinkButton) SetUri(uri string)

func (*LinkButton) SetVisited

func (v *LinkButton) SetVisited(visited bool)

type ListStore

type ListStore struct {
	TreeModel
	GListStore *C.GtkListStore
}

func NewListStore

func NewListStore(v ...interface{}) *ListStore

func NewListStoreFromNative

func NewListStoreFromNative(l unsafe.Pointer) *ListStore

func (*ListStore) Append

func (v *ListStore) Append(iter *TreeIter)

func (*ListStore) Clear

func (v *ListStore) Clear()

func (*ListStore) Insert

func (v *ListStore) Insert(iter *TreeIter, position int)

func (*ListStore) InsertAfter

func (v *ListStore) InsertAfter(iter *TreeIter, sibling *TreeIter)

func (*ListStore) InsertBefore

func (v *ListStore) InsertBefore(iter *TreeIter, sibling *TreeIter)

func (*ListStore) IterIsValid

func (v *ListStore) IterIsValid(iter *TreeIter) bool

func (*ListStore) MoveAfter

func (v *ListStore) MoveAfter(iter *TreeIter, position *TreeIter)

func (*ListStore) MoveBefore

func (v *ListStore) MoveBefore(iter *TreeIter, position *TreeIter)

func (*ListStore) Prepend

func (v *ListStore) Prepend(iter *TreeIter)

func (*ListStore) Remove

func (v *ListStore) Remove(iter *TreeIter) bool

func (*ListStore) Reorder

func (v *ListStore) Reorder(i *int)

func (*ListStore) Set

func (v *ListStore) Set(iter *TreeIter, a ...interface{})

func (*ListStore) SetValue

func (v *ListStore) SetValue(iter *TreeIter, column int, a interface{})

func (*ListStore) Swap

func (v *ListStore) Swap(a *TreeIter, b *TreeIter)

func (*ListStore) ToTreeModel

func (v *ListStore) ToTreeModel() *TreeModel

TODO instead of using this methods to change between treemodel and liststore, is better to usa an interface ITreeModel nb: ListStore e TreeStore sono un TreeModel (implementano GtkTreeModel!)

type Menu struct {
	MenuShell
}

----------------------------------------------------------------------- GtkMenu -----------------------------------------------------------------------

func NewMenu

func NewMenu() *Menu
func (v *Menu) Detach()
func (v *Menu) GetActive() *Widget
func (v *Menu) GetAttachWidget() *Widget
func (v *Menu) GetReserveToggleSize() bool
func (v *Menu) GetTearoffState() bool
func (v *Menu) Popdown()
func (v *Menu) Popup(parent_menu_shell, parent_menu_item IWidget, f MenuPositionFunc, data interface{}, button uint, active_item uint32)
func (v *Menu) Reposition()
func (v *Menu) SetReserveToggleSize(b bool)
func (v *Menu) SetTearoffState(b bool)
func (v *Menu) SetTitle(title string)
type MenuBar struct {
	MenuShell
}

func NewMenuBar

func NewMenuBar() *MenuBar
func (v *MenuBar) GetChildPackDirection() PackDirection
func (v *MenuBar) GetPackDirection() PackDirection
func (v *MenuBar) SetChildPackDirection(pack_dir PackDirection)
func (v *MenuBar) SetPackDirection(pack_dir PackDirection)
type MenuItem struct {
	Item
	Activatable // implement GtkActivatable interface
}

----------------------------------------------------------------------- GtkMenuItem -----------------------------------------------------------------------

func NewMenuItem

func NewMenuItem() *MenuItem

func NewMenuItemWithLabel

func NewMenuItemWithLabel(label string) *MenuItem

func NewMenuItemWithMnemonic

func NewMenuItemWithMnemonic(label string) *MenuItem
func (v *MenuItem) Activate()
func (v *MenuItem) Deselect()
func (v *MenuItem) GetLabel() string
func (v *MenuItem) GetRightJustified() bool
func (v *MenuItem) GetSubmenu() *Widget
func (v *MenuItem) GetUseUnderline() bool
func (v *MenuItem) RemoveSubmenu()

Deprecated since 2.12. Use SetSubmenu() instead.

func (v *MenuItem) Select()
func (v *MenuItem) SetLabel(label string)
func (v *MenuItem) SetRightJustified(b bool)
func (v *MenuItem) SetSubmenu(w IWidget)
func (v *MenuItem) SetUseUnderline(setting bool)
func (v *MenuItem) ToggleSizeAllocate(i int)
func (v *MenuItem) ToggleSizeRequest(i *int)
type MenuPositionFunc func(menu *Menu, px, py *int, push_in *bool, data interface{})
type MenuPositionFuncInfo struct {
	// contains filtered or unexported fields
}
type MenuShell struct {
	Container
}
func (v *MenuShell) Append(child IWidget)
func (v *MenuShell) Insert(child IWidget, position int)
func (v *MenuShell) Prepend(child IWidget)
type MenuToolButton struct {
	ToolButton
	// contains filtered or unexported fields
}

func NewMenuToolButton

func NewMenuToolButton(icon IWidget, text string) *MenuToolButton

func NewMenuToolButtonFromStock

func NewMenuToolButtonFromStock(stock_id string) *MenuToolButton
func (v *MenuToolButton) GetMenu() *Menu
func (v *MenuToolButton) SetArrowTooltipMarkup(markup string)
func (v *MenuToolButton) SetArrowTooltipText(text string)

gtk_menu_tool_button_set_arrow_tooltip (deprecated since 2.12)

func (v *MenuToolButton) SetMenu(menu *Menu)

type MessageDialog

type MessageDialog struct {
	Dialog
}

func NewMessageDialog

func NewMessageDialog(parent *Window, flag DialogFlags, t MessageType, buttons ButtonsType, format string, args ...interface{}) *MessageDialog

TODO should be variadic function

func NewMessageDialogWithMarkup

func NewMessageDialogWithMarkup(parent *Window, flag DialogFlags, t MessageType, buttons ButtonsType, format string, args ...interface{}) *MessageDialog

func (*MessageDialog) GetImage

func (v *MessageDialog) GetImage() *Image

func (*MessageDialog) SetImage

func (v *MessageDialog) SetImage(image IWidget)

func (*MessageDialog) SetMarkup

func (v *MessageDialog) SetMarkup(markup string)

type MessageType

type MessageType int

----------------------------------------------------------------------- GtkMessageDialog -----------------------------------------------------------------------

const (
	MESSAGE_INFO MessageType = iota
	MESSAGE_WARNING
	MESSAGE_QUESTION
	MESSAGE_ERROR
	MESSAGE_OTHER
)

type Misc

type Misc struct {
	Widget
}

func (*Misc) GetAlignment

func (m *Misc) GetAlignment(xalign, yalign *float64)

func (*Misc) GetPadding

func (m *Misc) GetPadding() (xpad, ypad int)

func (*Misc) SetAlignment

func (m *Misc) SetAlignment(xalign, yalign float64)

func (*Misc) SetPadding

func (m *Misc) SetPadding(xpad, ypad int)

type Notebook

type Notebook struct {
	Container
}

----------------------------------------------------------------------- GtkNotebook -----------------------------------------------------------------------

func NewNotebook

func NewNotebook() *Notebook

func (*Notebook) AppendPage

func (v *Notebook) AppendPage(child IWidget, tab_label IWidget) int

func (*Notebook) AppendPageMenu

func (v *Notebook) AppendPageMenu(child IWidget, tab_label IWidget, menu_label IWidget) int

func (*Notebook) GetCurrentPage

func (v *Notebook) GetCurrentPage() int

func (*Notebook) GetGroup

func (v *Notebook) GetGroup() unsafe.Pointer

Deprecated since 2.24, use GetGroupName() instead

func (*Notebook) GetGroupId

func (v *Notebook) GetGroupId() int

Deprecated since 2.12, use GetGroupName() instead

func (*Notebook) GetGroupName

func (v *Notebook) GetGroupName() string

func (*Notebook) GetMenuLabel

func (v *Notebook) GetMenuLabel(child IWidget) *Widget

func (*Notebook) GetMenuLabelText

func (v *Notebook) GetMenuLabelText(child IWidget) string

func (*Notebook) GetNPages

func (v *Notebook) GetNPages() int

func (*Notebook) GetNthPage

func (v *Notebook) GetNthPage(page_num int) *Widget

func (*Notebook) GetScrollable

func (v *Notebook) GetScrollable() bool

func (*Notebook) GetShowBorder

func (v *Notebook) GetShowBorder() bool

func (*Notebook) GetShowTabs

func (v *Notebook) GetShowTabs() bool

func (*Notebook) GetTabDetachable

func (v *Notebook) GetTabDetachable(child IWidget) bool

func (*Notebook) GetTabLabel

func (v *Notebook) GetTabLabel(child IWidget) *Widget

func (*Notebook) GetTabLabelText

func (v *Notebook) GetTabLabelText(child IWidget) string

func (*Notebook) GetTabPos

func (v *Notebook) GetTabPos() uint

func (*Notebook) GetTabReorderable

func (v *Notebook) GetTabReorderable(child IWidget) bool

func (*Notebook) InsertPage

func (v *Notebook) InsertPage(child IWidget, tab_label IWidget, position int) int

func (*Notebook) InsertPageMenu

func (v *Notebook) InsertPageMenu(child IWidget, tab_label IWidget, menu_label IWidget, position int) int

func (*Notebook) NextPage

func (v *Notebook) NextPage()

func (*Notebook) PageNum

func (v *Notebook) PageNum(child IWidget) int

func (*Notebook) PopupDisable

func (v *Notebook) PopupDisable()

func (*Notebook) PopupEnable

func (v *Notebook) PopupEnable()

func (*Notebook) PrependPage

func (v *Notebook) PrependPage(child IWidget, tab_label IWidget) int

func (*Notebook) PrependPageMenu

func (v *Notebook) PrependPageMenu(child IWidget, tab_label IWidget, menu_label IWidget) int

func (*Notebook) PrevPage

func (v *Notebook) PrevPage()

func (*Notebook) QueryTabLabelPacking

func (v *Notebook) QueryTabLabelPacking(child IWidget, expand *bool, fill *bool, pack_type *uint)

Deprecated since 2.20. Modify the "tab-expand" and "tab-fill" child properties instead.

func (*Notebook) RemovePage

func (v *Notebook) RemovePage(child IWidget, page_num int)

func (*Notebook) ReorderChild

func (v *Notebook) ReorderChild(child IWidget, position int)

func (*Notebook) SetCurrentPage

func (v *Notebook) SetCurrentPage(pageNum int)

func (*Notebook) SetGroup

func (v *Notebook) SetGroup(group unsafe.Pointer)

Deprecated since 2.24, use SetGroupName() instead

func (*Notebook) SetGroupId

func (v *Notebook) SetGroupId(group_id int)

Deprecated since 2.12, use SetGroupName() instead

func (*Notebook) SetGroupName

func (v *Notebook) SetGroupName(group string)

func (*Notebook) SetHomogeneousTabs

func (v *Notebook) SetHomogeneousTabs(homogeneous bool)

Deprecated.

func (*Notebook) SetMenuLabel

func (v *Notebook) SetMenuLabel(child IWidget, menu_label IWidget)

func (*Notebook) SetMenuLabelText

func (v *Notebook) SetMenuLabelText(child IWidget, name string)

func (*Notebook) SetReorderable

func (v *Notebook) SetReorderable(child IWidget, reorderable bool)

func (*Notebook) SetScrollable

func (v *Notebook) SetScrollable(scrollable bool)

func (*Notebook) SetShowBorder

func (v *Notebook) SetShowBorder(show_border bool)

func (*Notebook) SetShowTabs

func (v *Notebook) SetShowTabs(show_tabs bool)

func (*Notebook) SetTabBorder

func (v *Notebook) SetTabBorder(border_width uint)

Deprecated.

func (*Notebook) SetTabDetachable

func (v *Notebook) SetTabDetachable(child IWidget, detachable bool)

func (*Notebook) SetTabHBorder

func (v *Notebook) SetTabHBorder(tab_hborder uint)

Deprecated.

func (*Notebook) SetTabLabel

func (v *Notebook) SetTabLabel(child IWidget, tab_label IWidget)

func (*Notebook) SetTabLabelPacking

func (v *Notebook) SetTabLabelPacking(child IWidget, expand bool, fill bool, pack_type uint)

Deprecated since 2.20. Modify the "tab-expand" and "tab-fill" child properties instead.

func (*Notebook) SetTabLabelText

func (v *Notebook) SetTabLabelText(child IWidget, name string)

func (*Notebook) SetTabPos

func (v *Notebook) SetTabPos(pos PositionType)

func (*Notebook) SetTabVBorder

func (v *Notebook) SetTabVBorder(tab_vborder uint)

Deprecated.

type Object

type Object struct {
	glib.GObject
}

----------------------------------------------------------------------- GtkObject -----------------------------------------------------------------------

func (*Object) Ref

func (v *Object) Ref()

func (*Object) Unref

func (v *Object) Unref()

type Orientation

type Orientation int
const (
	ORIENTATION_HORIZONTAL Orientation = iota
	ORIENTATION_VERTICAL
)

type PackDirection

type PackDirection int

----------------------------------------------------------------------- GtkMenuBar -----------------------------------------------------------------------

const (
	PACK_DIRECTION_LTR PackDirection = iota
	PACK_DIRECTION_RTL
	PACK_DIRECTION_TTB
	PACK_DIRECTION_BTT
)

type PackType

type PackType int

----------------------------------------------------------------------- GtkBox -----------------------------------------------------------------------

const (
	PACK_START PackType = iota
	PACK_END
)

type Paned

type Paned struct {
	Container
}

func (*Paned) Add1

func (v *Paned) Add1(child IWidget)

func (*Paned) Add2

func (v *Paned) Add2(child IWidget)

func (*Paned) GetChild1

func (v *Paned) GetChild1() *Widget

func (*Paned) GetChild2

func (v *Paned) GetChild2() *Widget

func (*Paned) GetPosition

func (v *Paned) GetPosition() int

func (*Paned) Pack1

func (v *Paned) Pack1(child IWidget, resize bool, shrink bool)

func (*Paned) Pack2

func (v *Paned) Pack2(child IWidget, resize bool, shrink bool)

func (*Paned) SetPosition

func (v *Paned) SetPosition(position int)

type PolicyType

type PolicyType int

----------------------------------------------------------------------- GtkScrolledWindow -----------------------------------------------------------------------

const (
	POLICY_ALWAYS PolicyType = iota
	POLICY_AUTOMATIC
	POLICY_NEVER
)

type PositionType

type PositionType int

----------------------------------------------------------------------- GtkScale -----------------------------------------------------------------------

const (
	POS_LEFT PositionType = iota
	POS_RIGHT
	POS_TOP
	POS_BOTTOM
)

type PrintContext

type PrintContext struct {
	GPrintContext *C.GtkPrintContext
}

----------------------------------------------------------------------- GtkPrintContext -----------------------------------------------------------------------

func PrintContextFromNative

func PrintContextFromNative(l unsafe.Pointer) *PrintContext

func (*PrintContext) GetCairoContext

func (v *PrintContext) GetCairoContext() *C.cairo_t

func (*PrintContext) SetCairoContext

func (v *PrintContext) SetCairoContext(cairo *C.cairo_t, dpi_x float64, dpi_y float64)

type PrintOperation

type PrintOperation struct {
	GPrintOperation *C.GtkPrintOperation
}

func NewPrintOperation

func NewPrintOperation() *PrintOperation

func (*PrintOperation) Cancel

func (v *PrintOperation) Cancel()

func (*PrintOperation) Connect

func (v *PrintOperation) Connect(s string, f interface{}, datas ...interface{}) int

func (*PrintOperation) IsFinished

func (v *PrintOperation) IsFinished() bool

func (*PrintOperation) Run

func (v *PrintOperation) Run(action PrintOperationAction, parent *Window) (result PrintOperationResult, err error)

type PrintOperationAction

type PrintOperationAction int
const (
	PRINT_OPERATION_ACTION_PRINT_DIALOG PrintOperationAction = iota
	PRINT_OPERATION_ACTION_PRINT
	PRINT_OPERATION_ACTION_PREVIEW
	PRINT_OPERATION_ACTION_EXPOR
)

type PrintOperationResult

type PrintOperationResult int
const (
	PRINT_OPERATION_RESULT_ERROR PrintOperationResult = iota
	PRINT_OPERATION_RESULT_APPLY
	PRINT_OPERATION_RESULT_CANCEL
	PRINT_OPERATION_RESULT_IN_PROGRESS
)

type ProgressBar

type ProgressBar struct {
	Widget
}

func NewProgressBar

func NewProgressBar() *ProgressBar

func (*ProgressBar) GetEllipsize

func (v *ProgressBar) GetEllipsize() pango.EllipsizeMode

func (*ProgressBar) GetFraction

func (v *ProgressBar) GetFraction() float64

func (*ProgressBar) GetOrientation

func (v *ProgressBar) GetOrientation() ProgressBarOrientation

func (*ProgressBar) GetPulseStep

func (v *ProgressBar) GetPulseStep() float64

func (*ProgressBar) GetText

func (v *ProgressBar) GetText() string

func (*ProgressBar) Pulse

func (v *ProgressBar) Pulse()

func (*ProgressBar) SetEllipsize

func (v *ProgressBar) SetEllipsize(ellipsize pango.EllipsizeMode)

func (*ProgressBar) SetFraction

func (v *ProgressBar) SetFraction(fraction float64)

func (*ProgressBar) SetOrientation

func (v *ProgressBar) SetOrientation(i ProgressBarOrientation)

func (*ProgressBar) SetPulseStep

func (v *ProgressBar) SetPulseStep(fraction float64)

func (*ProgressBar) SetText

func (v *ProgressBar) SetText(show_text string)

type ProgressBarOrientation

type ProgressBarOrientation int

----------------------------------------------------------------------- GtkProgressBar -----------------------------------------------------------------------

const (
	PROGRESS_LEFT_TO_RIGHT ProgressBarOrientation = iota
	PROGRESS_RIGHT_TO_LEFT
	PROGRESS_BOTTOM_TO_TOP
	PROGRESS_TOP_TO_BOTTOM
)

type RadioAction

type RadioAction struct {
	ToggleAction
}

func NewRadioAction

func NewRadioAction(name string, label string, tooltip string,
	stock_id string, value int) *RadioAction

func (*RadioAction) GetCurrentValue

func (v *RadioAction) GetCurrentValue() int

func (*RadioAction) GetGroup

func (v *RadioAction) GetGroup() *glib.SList

func (*RadioAction) SetCurrentValue

func (v *RadioAction) SetCurrentValue(current_value int)

func (*RadioAction) SetGroup

func (v *RadioAction) SetGroup(group *glib.SList)

type RadioButton

type RadioButton struct {
	CheckButton
}

----------------------------------------------------------------------- GtkRadioButton -----------------------------------------------------------------------

func NewRadioButton

func NewRadioButton(group *glib.SList) *RadioButton

func NewRadioButtonFromWidget

func NewRadioButtonFromWidget(w *RadioButton) *RadioButton

func NewRadioButtonWithLabel

func NewRadioButtonWithLabel(group *glib.SList, label string) *RadioButton

func NewRadioButtonWithLabelFromWidget

func NewRadioButtonWithLabelFromWidget(w *RadioButton, label string) *RadioButton

func NewRadioButtonWithMnemonic

func NewRadioButtonWithMnemonic(group *glib.SList, label string) *RadioButton

func NewRadioButtonWithMnemonicFromWidget

func NewRadioButtonWithMnemonicFromWidget(w *RadioButton, label string) *RadioButton

func (*RadioButton) GetGroup

func (v *RadioButton) GetGroup() *glib.SList

func (*RadioButton) SetGroup

func (v *RadioButton) SetGroup(group *glib.SList)

type RadioMenuItem

type RadioMenuItem struct {
	CheckMenuItem
}

----------------------------------------------------------------------- GtkRadioMenuItem -----------------------------------------------------------------------

func NewRadioMenuItem

func NewRadioMenuItem(group *glib.SList) *RadioMenuItem

func NewRadioMenuItemWithLabel

func NewRadioMenuItemWithLabel(group *glib.SList, label string) *RadioMenuItem

func (*RadioMenuItem) GetGroup

func (v *RadioMenuItem) GetGroup() *glib.SList

func (*RadioMenuItem) SetGroup

func (v *RadioMenuItem) SetGroup(group *glib.SList)

type RadioToolButton

type RadioToolButton struct {
	ToggleToolButton
}

func NewRadioToolButton

func NewRadioToolButton(group *glib.SList) *RadioToolButton

func NewRadioToolButtonFromStock

func NewRadioToolButtonFromStock(group *glib.SList, stock_id string) *RadioToolButton

type Range

type Range struct {
	Widget
}

----------------------------------------------------------------------- GtkRange -----------------------------------------------------------------------

func (*Range) GetAdjustment

func (v *Range) GetAdjustment() *Adjustment

func (*Range) GetFillLevel

func (v *Range) GetFillLevel() float64

func (*Range) GetFlippable

func (v *Range) GetFlippable() bool

func (*Range) GetInverted

func (v *Range) GetInverted() bool

func (*Range) GetRestrictToFillLevel

func (v *Range) GetRestrictToFillLevel() bool

func (*Range) GetShowFillLevel

func (v *Range) GetShowFillLevel() bool

func (*Range) GetValue

func (v *Range) GetValue() float64

func (*Range) SetAdjustment

func (v *Range) SetAdjustment(a *Adjustment)

func (*Range) SetFillLevel

func (v *Range) SetFillLevel(value float64)

func (*Range) SetFlippable

func (v *Range) SetFlippable(b bool)

func (*Range) SetIncrements

func (v *Range) SetIncrements(step, page float64)

func (*Range) SetInverted

func (v *Range) SetInverted(b bool)

func (*Range) SetRange

func (v *Range) SetRange(min, max float64)

func (*Range) SetRestrictToFillLevel

func (v *Range) SetRestrictToFillLevel(b bool)

func (*Range) SetShowFillLevel

func (v *Range) SetShowFillLevel(b bool)

func (*Range) SetValue

func (v *Range) SetValue(value float64)

type RecentAction

type RecentAction struct {
	Action
}

func NewRecentAction

func NewRecentAction(name string, label string, tooltip string,
	stock_id string) *RecentAction

func (*RecentAction) GetShowNumbers

func (v *RecentAction) GetShowNumbers() bool

func (*RecentAction) SetShowNumbers

func (v *RecentAction) SetShowNumbers(show_numbers bool)

type ReliefStyle

type ReliefStyle int
const (
	RELIEF_NORMAL ReliefStyle = iota
	RELIEF_HALF
	RELIEF_NONE
)

type ResizeMode

type ResizeMode int

type ResponseType

type ResponseType int
const (
	RESPONSE_NONE ResponseType = -iota - 1
	RESPONSE_REJECT
	RESPONSE_ACCEPT
	RESPONSE_DELETE_EVENT
	RESPONSE_OK
	RESPONSE_CANCEL
	RESPONSE_CLOSE
	RESPONSE_YES
	RESPONSE_NO
	RESPONSE_APPLY
	RESPONSE_HELP
)

type Scale

type Scale struct {
	Range
}

func NewHScale

func NewHScale(adjustment *Adjustment) *Scale

----------------------------------------------------------------------- GtkHScale -----------------------------------------------------------------------

func NewHScaleWithRange

func NewHScaleWithRange(min, max, step float64) *Scale

func NewVScale

func NewVScale(a *Adjustment) *Scale

----------------------------------------------------------------------- GtkVScale -----------------------------------------------------------------------

func NewVScaleWithRange

func NewVScaleWithRange(min, max, step float64) *Scale

func (*Scale) AddMark

func (v *Scale) AddMark(value float64, position PositionType, markup string)

func (*Scale) ClearMarks

func (v *Scale) ClearMarks()

func (*Scale) GetDigits

func (v *Scale) GetDigits() int

func (*Scale) GetDrawValue

func (v *Scale) GetDrawValue() bool

func (*Scale) GetLayoutOffsets

func (v *Scale) GetLayoutOffsets() (x int, y int)

func (*Scale) GetValuePos

func (v *Scale) GetValuePos() PositionType

func (*Scale) SetDigits

func (v *Scale) SetDigits(digits int)

func (*Scale) SetDrawValue

func (v *Scale) SetDrawValue(draw_value bool)

func (*Scale) SetValuePos

func (v *Scale) SetValuePos(pos PositionType)

type ScaleButton

type ScaleButton struct {
	Bin
}

func NewScaleButton

func NewScaleButton(size IconSize, min, max, step float64, icons []string) *ScaleButton

TODO: wrapper around icons** C.gchar

func (*ScaleButton) GetAdjustment

func (v *ScaleButton) GetAdjustment() *Adjustment

func (*ScaleButton) GetMinusButton

func (v *ScaleButton) GetMinusButton() *Widget

func (*ScaleButton) GetPlusButton

func (v *ScaleButton) GetPlusButton() *Widget

func (*ScaleButton) GetPopup

func (v *ScaleButton) GetPopup() *Widget

func (*ScaleButton) GetValue

func (v *ScaleButton) GetValue() float64

func (*ScaleButton) SetAdjustment

func (v *ScaleButton) SetAdjustment(a *Adjustment)

func (*ScaleButton) SetIcons

func (v *ScaleButton) SetIcons(icons []string)

func (*ScaleButton) SetValue

func (v *ScaleButton) SetValue(value float64)

type Scrollbar

type Scrollbar struct {
	Range
}

----------------------------------------------------------------------- GtkScrollbar -----------------------------------------------------------------------

type ScrolledWindow

type ScrolledWindow struct {
	Bin
}

func NewScrolledWindow

func NewScrolledWindow(hadjustment *Adjustment, vadjustment *Adjustment) *ScrolledWindow

func (*ScrolledWindow) AddWithViewPort

func (v *ScrolledWindow) AddWithViewPort(w IWidget)

func (*ScrolledWindow) GetHAdjustment

func (v *ScrolledWindow) GetHAdjustment() *Adjustment

func (*ScrolledWindow) GetPlacement

func (v *ScrolledWindow) GetPlacement() CornerType

func (*ScrolledWindow) GetPolicy

func (v *ScrolledWindow) GetPolicy(hscrollbar_policy *PolicyType, vscrollbar_policy *PolicyType)

func (*ScrolledWindow) GetShadowType

func (v *ScrolledWindow) GetShadowType() ShadowType

func (*ScrolledWindow) GetVAdjustment

func (v *ScrolledWindow) GetVAdjustment() *Adjustment

func (*ScrolledWindow) SetHAdjustment

func (v *ScrolledWindow) SetHAdjustment(hadjustment *Adjustment)

func (*ScrolledWindow) SetPlacement

func (v *ScrolledWindow) SetPlacement(window_placement CornerType)

func (*ScrolledWindow) SetPolicy

func (v *ScrolledWindow) SetPolicy(hscrollbar_policy PolicyType, vscrollbar_policy PolicyType)

func (*ScrolledWindow) SetShadowType

func (v *ScrolledWindow) SetShadowType(typ ShadowType)

func (*ScrolledWindow) SetVAdjustment

func (v *ScrolledWindow) SetVAdjustment(vadjustment *Adjustment)

func (*ScrolledWindow) UnsetPlacement

func (v *ScrolledWindow) UnsetPlacement()

type SelectionData

type SelectionData struct {
	GSelectionData unsafe.Pointer
}

func NewSelectionDataFromNative

func NewSelectionDataFromNative(l unsafe.Pointer) *SelectionData

func (*SelectionData) GetData

func (v *SelectionData) GetData() unsafe.Pointer

func (*SelectionData) GetLength

func (v *SelectionData) GetLength() int

func (*SelectionData) GetText

func (v *SelectionData) GetText() string

type SelectionMode

type SelectionMode int
const (
	SELECTION_NONE SelectionMode = iota
	SELECTION_SINGLE
	SELECTION_BROWSE
	SELECTION_MULTIPLE
	SELECTION_EXTENDED = SELECTION_MULTIPLE
)

type Separator

type Separator struct {
	Widget
}

----------------------------------------------------------------------- GtkSeparator -----------------------------------------------------------------------

type SeparatorMenuItem

type SeparatorMenuItem struct {
	MenuItem
}

----------------------------------------------------------------------- GtkSeparatorMenuItem -----------------------------------------------------------------------

func NewSeparatorMenuItem

func NewSeparatorMenuItem() *SeparatorMenuItem

type SeparatorToolItem

type SeparatorToolItem struct {
	ToolItem
}

----------------------------------------------------------------------- GtkSeparatorToolItem -----------------------------------------------------------------------

func NewSeparatorToolItem

func NewSeparatorToolItem() *SeparatorToolItem

func (*SeparatorToolItem) GetDraw

func (v *SeparatorToolItem) GetDraw() bool

func (*SeparatorToolItem) SetDraw

func (v *SeparatorToolItem) SetDraw(draw bool)

type Settings

type Settings struct {
	GSettings *C.GtkSettings
}

----------------------------------------------------------------------- GtkSettings -----------------------------------------------------------------------

func GetSettingsForScreen

func GetSettingsForScreen(screen gdk.Screen) *Settings

gtk_settings_get_for_screen

func SettingsGetDefault

func SettingsGetDefault() *Settings

func (*Settings) SetDoubleProperty

func (s *Settings) SetDoubleProperty(name string, v_double float64, origin string)

func (*Settings) SetLongProperty

func (s *Settings) SetLongProperty(name string, v_long int32, origin string)

func (*Settings) SetStringProperty

func (s *Settings) SetStringProperty(name string, v_string string, origin string)

func (*Settings) ToGObject

func (s *Settings) ToGObject() *glib.GObject

type ShadowType

type ShadowType int

----------------------------------------------------------------------- GtkFrame -----------------------------------------------------------------------

const (
	SHADOW_NONE ShadowType = iota
	SHADOW_IN
	SHADOW_OUT
	SHADOW_ETCHED_IN
	SHADOW_ETCHED_OUT
)

type SizeGroup

type SizeGroup struct {
	GSizeGroup *C.GtkSizeGroup
}

func NewSizeGroup

func NewSizeGroup(mode SizeGroupMode) *SizeGroup

func (*SizeGroup) AddWidget

func (v *SizeGroup) AddWidget(w IWidget)

func (*SizeGroup) GetIgnoreHidden

func (v *SizeGroup) GetIgnoreHidden() bool

func (*SizeGroup) GetMode

func (v *SizeGroup) GetMode() SizeGroupMode

func (*SizeGroup) GetWidgets

func (v *SizeGroup) GetWidgets() *glib.SList

func (*SizeGroup) RemoveWidget

func (v *SizeGroup) RemoveWidget(w IWidget)

func (*SizeGroup) SetIgnoreHidden

func (v *SizeGroup) SetIgnoreHidden(ignore_hidden bool)

func (*SizeGroup) SetMode

func (v *SizeGroup) SetMode(mode SizeGroupMode)

type SizeGroupMode

type SizeGroupMode int

----------------------------------------------------------------------- GtkSizeGroup -----------------------------------------------------------------------

const (
	SIZE_GROUP_NONE SizeGroupMode = iota
	SIZE_GROUP_HORIZONTAL
	SIZE_GROUP_VERTICAL
	SIZE_GROUP_BOTH
)

type SortFunc

type SortFunc func(m *TreeModel, a *TreeIter, b *TreeIter, userData interface{}) int

type SortType

type SortType int

----------------------------------------------------------------------- GtkTreeSortable -----------------------------------------------------------------------

const (
	SORT_ASCENDING SortType = iota
	SORT_DESCENDING
)

type SpinButton

type SpinButton struct {
	Entry
}

func NewSpinButton

func NewSpinButton(a *Adjustment, climb float64, digits uint) *SpinButton

func NewSpinButtonWithRange

func NewSpinButtonWithRange(min, max, step float64) *SpinButton

func (*SpinButton) Configure

func (v *SpinButton) Configure(a *Adjustment, climb_rate float64, digits uint)

func (*SpinButton) GetAdjustment

func (v *SpinButton) GetAdjustment() *Adjustment

func (*SpinButton) GetDigits

func (v *SpinButton) GetDigits() uint

func (*SpinButton) GetIncrements

func (v *SpinButton) GetIncrements() (float64, float64)

func (*SpinButton) GetNumeric

func (v *SpinButton) GetNumeric() bool

func (*SpinButton) GetRange

func (v *SpinButton) GetRange() (float64, float64)

func (*SpinButton) GetSnapToTicks

func (v *SpinButton) GetSnapToTicks() bool

func (*SpinButton) GetUpdatePolicy

func (v *SpinButton) GetUpdatePolicy() SpinButtonUpdatePolicy

func (*SpinButton) GetValue

func (v *SpinButton) GetValue() float64

func (*SpinButton) GetValueAsFloat

func (v *SpinButton) GetValueAsFloat() float64

func (*SpinButton) GetValueAsInt

func (v *SpinButton) GetValueAsInt() int

func (*SpinButton) GetWrap

func (v *SpinButton) GetWrap() bool

func (*SpinButton) OnChangeValue

func (v *SpinButton) OnChangeValue(onclick interface{}, datas ...interface{}) int

func (*SpinButton) OnInput

func (v *SpinButton) OnInput(onclick interface{}, datas ...interface{}) int

func (*SpinButton) OnOutput

func (v *SpinButton) OnOutput(onclick interface{}, datas ...interface{}) int

func (*SpinButton) OnValueChanged

func (v *SpinButton) OnValueChanged(onclick interface{}, datas ...interface{}) int

func (*SpinButton) OnWrapped

func (v *SpinButton) OnWrapped(onclick interface{}, datas ...interface{}) int

func (*SpinButton) SetAdjustment

func (v *SpinButton) SetAdjustment(a *Adjustment)

func (*SpinButton) SetDigits

func (v *SpinButton) SetDigits(digits uint)

func (*SpinButton) SetIncrements

func (v *SpinButton) SetIncrements(step, page float64)

func (*SpinButton) SetNumeric

func (v *SpinButton) SetNumeric(numeric bool)

func (*SpinButton) SetRange

func (v *SpinButton) SetRange(min, max float64)

func (*SpinButton) SetSnapToTicks

func (v *SpinButton) SetSnapToTicks(snap_to_ticks bool)

func (*SpinButton) SetUpdatePolicy

func (v *SpinButton) SetUpdatePolicy(policy SpinButtonUpdatePolicy)

func (*SpinButton) SetValue

func (v *SpinButton) SetValue(val float64)

func (*SpinButton) SetWrap

func (v *SpinButton) SetWrap(wrap bool)

func (*SpinButton) Spin

func (v *SpinButton) Spin(direction SpinType, increment float64)

func (*SpinButton) Update

func (v *SpinButton) Update()

type SpinButtonUpdatePolicy

type SpinButtonUpdatePolicy int

----------------------------------------------------------------------- GtkSpinButton -----------------------------------------------------------------------

const (
	UPDATE_ALWAYS SpinButtonUpdatePolicy = iota
	UPDATE_IF_VALID
)

type SpinType

type SpinType int
const (
	SPIN_STEP_FORWARD SpinType = iota
	SPIN_STEP_BACKWARD
	SPIN_PAGE_FORWARD
	SPIN_PAGE_BACKWARD
	SPIN_HOME
	SPIN_END
	SPIN_USER_DEFINED
)

type Spinner

type Spinner struct {
	DrawingArea
}

func NewSpinner

func NewSpinner() *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

type StateType

type StateType int
const (
	STATE_NORMAL StateType = iota
	STATE_ACTIVE
	STATE_PRELIGHT
	STATE_SELECTED
	STATE_INSENSITIVE
)

type StatusIcon

type StatusIcon struct {
	GStatusIcon *C.GtkStatusIcon
}

----------------------------------------------------------------------- GtkStatusIcon -----------------------------------------------------------------------

func NewStatusIcon

func NewStatusIcon() *StatusIcon

func NewStatusIconFromFile

func NewStatusIconFromFile(filename string) *StatusIcon

func NewStatusIconFromIconName

func NewStatusIconFromIconName(icon_name string) *StatusIcon

func NewStatusIconFromPixbuf

func NewStatusIconFromPixbuf(pixbuf *gdkpixbuf.Pixbuf) *StatusIcon

func NewStatusIconFromStock

func NewStatusIconFromStock(stock_id string) *StatusIcon

func (*StatusIcon) Connect

func (v *StatusIcon) Connect(s string, f interface{}, datas ...interface{}) int

func (*StatusIcon) GetHasTooltip

func (v *StatusIcon) GetHasTooltip() bool

func (*StatusIcon) GetIconName

func (v *StatusIcon) GetIconName() string

func (*StatusIcon) GetPixbuf

func (v *StatusIcon) GetPixbuf() *gdkpixbuf.Pixbuf

func (*StatusIcon) GetStock

func (v *StatusIcon) GetStock() string

func (*StatusIcon) GetTitle

func (v *StatusIcon) GetTitle() string

func (*StatusIcon) GetTooltipMarkup

func (v *StatusIcon) GetTooltipMarkup() string

func (*StatusIcon) GetTooltipText

func (v *StatusIcon) GetTooltipText() string

func (*StatusIcon) GetVisible

func (v *StatusIcon) GetVisible() bool

func (*StatusIcon) SetFromFile

func (v *StatusIcon) SetFromFile(filename string)

func (*StatusIcon) SetFromIconName

func (v *StatusIcon) SetFromIconName(icon_name string)

func (*StatusIcon) SetFromPixbuf

func (v *StatusIcon) SetFromPixbuf(pixbuf *gdkpixbuf.Pixbuf)

func (*StatusIcon) SetFromStock

func (v *StatusIcon) SetFromStock(stock_id string)

func (*StatusIcon) SetHasTooltip

func (v *StatusIcon) SetHasTooltip(setting bool)

func (*StatusIcon) SetName

func (v *StatusIcon) SetName(name string)

func (*StatusIcon) SetTitle

func (v *StatusIcon) SetTitle(title string)

func (*StatusIcon) SetTooltipMarkup

func (v *StatusIcon) SetTooltipMarkup(markup string)

func (*StatusIcon) SetTooltipText

func (v *StatusIcon) SetTooltipText(text string)

func (*StatusIcon) SetVisible

func (v *StatusIcon) SetVisible(setting bool)

type Statusbar

type Statusbar struct {
	HBox
}

----------------------------------------------------------------------- GtkStatusbar -----------------------------------------------------------------------

func NewStatusbar

func NewStatusbar() *Statusbar

func (*Statusbar) GetContextId

func (v *Statusbar) GetContextId(content_description string) uint

func (*Statusbar) GetHasResizeGrip

func (v *Statusbar) GetHasResizeGrip() bool

func (*Statusbar) Pop

func (v *Statusbar) Pop(context_id uint)

func (*Statusbar) Push

func (v *Statusbar) Push(context_id uint, text string)

func (*Statusbar) Remove

func (v *Statusbar) Remove(context_id uint, message_id uint)

func (*Statusbar) SetHasResizeGrip

func (v *Statusbar) SetHasResizeGrip(add_tearoffs bool)

type StockItem

type StockItem struct {
	GStockItem *C.GtkStockItem
}

func (*StockItem) Add

func (v *StockItem) Add(nitems uint)

func (*StockItem) AddStatic

func (v *StockItem) AddStatic(nitems uint)

type Style

type Style struct {
	GStyle *C.GtkStyle
}

func NewStyle

func NewStyle() *Style

func (*Style) Attach

func (v *Style) Attach(window *Window) *Style

func (*Style) Copy

func (v *Style) Copy() *Style

func (*Style) Detach

func (v *Style) Detach()

func (*Style) LookupColor

func (v *Style) LookupColor(colorName string) (*gdk.Color, bool)

func (*Style) SetBackground

func (v *Style) SetBackground(window *Window, state StateType)

type Table

type Table struct {
	Container
}

func NewTable

func NewTable(rows uint, columns uint, homogeneous bool) *Table

func (*Table) Attach

func (v *Table) Attach(child IWidget, left_attach uint, right_attach uint, top_attach uint, bottom_attach uint, xoptions AttachOptions, yoptions AttachOptions, xpadding uint, ypadding uint)

func (*Table) AttachDefaults

func (v *Table) AttachDefaults(child IWidget, left_attach uint, right_attach uint, top_attach uint, bottom_attach uint)

func (*Table) GetColSpacing

func (v *Table) GetColSpacing(column uint) uint

func (*Table) GetDefaultColSpacing

func (v *Table) GetDefaultColSpacing() uint

func (*Table) GetDefaultRowSpacing

func (v *Table) GetDefaultRowSpacing() uint

func (*Table) GetHomogeneous

func (v *Table) GetHomogeneous() bool

func (*Table) GetRowSpacing

func (v *Table) GetRowSpacing(row uint) uint

func (*Table) Resize

func (v *Table) Resize(rows uint, columns uint)

func (*Table) SetColSpacing

func (v *Table) SetColSpacing(column uint, spacing uint)

func (*Table) SetColSpacings

func (v *Table) SetColSpacings(spacing uint)

func (*Table) SetHomogeneous

func (v *Table) SetHomogeneous(homogeneous bool)

func (*Table) SetRowSpacing

func (v *Table) SetRowSpacing(row uint, spacing uint)

func (*Table) SetRowSpacings

func (v *Table) SetRowSpacings(spacing uint)

type TargetEntry

type TargetEntry struct {
	Target string
	Flags  uint
	Info   uint
}

type TearoffMenuItem

type TearoffMenuItem struct {
	MenuItem
}

----------------------------------------------------------------------- GtkTearoffMenuItem -----------------------------------------------------------------------

func NewTearoffMenuItem

func NewTearoffMenuItem() *TearoffMenuItem

type TextAttributes

type TextAttributes struct {
	GTextAttributes *C.GtkTextAttributes
}

----------------------------------------------------------------------- GtkTextAttributes -----------------------------------------------------------------------

func NewTextAttributes

func NewTextAttributes() *TextAttributes

func (*TextAttributes) Copy

func (v *TextAttributes) Copy() *TextAttributes

func (*TextAttributes) CopyValues

func (v *TextAttributes) CopyValues(ta *TextAttributes)

func (*TextAttributes) Ref

func (v *TextAttributes) Ref() *TextAttributes

func (*TextAttributes) Unref

func (v *TextAttributes) Unref()

type TextBuffer

type TextBuffer struct {
	GTextBuffer *C.GtkTextBuffer
	*glib.GObject
}

func NewTextBuffer

func NewTextBuffer(tagtable *TextTagTable) *TextBuffer

func NewTextBufferFromPointer

func NewTextBufferFromPointer(v unsafe.Pointer) *TextBuffer

func (*TextBuffer) AddMark

func (v *TextBuffer) AddMark(mark *TextMark, where *TextIter)

func (*TextBuffer) ApplyTag

func (v *TextBuffer) ApplyTag(tag *TextTag, start *TextIter, end *TextIter)

func (*TextBuffer) ApplyTagByName

func (v *TextBuffer) ApplyTagByName(name string, start *TextIter, end *TextIter)

func (*TextBuffer) Backspace

func (v *TextBuffer) Backspace(iter *TextIter, interactive bool, default_editable bool) bool

func (*TextBuffer) CreateMark

func (v *TextBuffer) CreateMark(mark_name string, where *TextIter, left_gravity bool) *TextMark

func (*TextBuffer) CreateTag

func (v *TextBuffer) CreateTag(tag_name string, props map[string]interface{}) *TextTag

func (*TextBuffer) Delete

func (v *TextBuffer) Delete(start *TextIter, end *TextIter)

func (*TextBuffer) DeleteInteractive

func (v *TextBuffer) DeleteInteractive(start *TextIter, end *TextIter, default_editable bool) bool

func (*TextBuffer) DeleteMark

func (v *TextBuffer) DeleteMark(mark *TextMark)

func (*TextBuffer) DeleteMarkByName

func (v *TextBuffer) DeleteMarkByName(name string)

func (*TextBuffer) DeleteSelection

func (v *TextBuffer) DeleteSelection(interactive bool, default_editable bool)

func (*TextBuffer) GetBounds

func (v *TextBuffer) GetBounds(start *TextIter, end *TextIter)

func (*TextBuffer) GetCharCount

func (v *TextBuffer) GetCharCount() int

func (*TextBuffer) GetEndIter

func (v *TextBuffer) GetEndIter(iter *TextIter)

func (*TextBuffer) GetHasSelection

func (v *TextBuffer) GetHasSelection() bool

func (*TextBuffer) GetInsert

func (v *TextBuffer) GetInsert() *TextMark

func (*TextBuffer) GetIterAtChildAnchor

func (v *TextBuffer) GetIterAtChildAnchor(i *TextIter, a *TextChildAnchor)

func (*TextBuffer) GetIterAtLine

func (v *TextBuffer) GetIterAtLine(iter *TextIter, line_number int)

func (*TextBuffer) GetIterAtLineIndex

func (v *TextBuffer) GetIterAtLineIndex(iter *TextIter, line_number int, byte_index int)

func (*TextBuffer) GetIterAtLineOffset

func (v *TextBuffer) GetIterAtLineOffset(iter *TextIter, line_number int, char_offset int)

func (*TextBuffer) GetIterAtMark

func (v *TextBuffer) GetIterAtMark(iter *TextIter, mark *TextMark)

func (*TextBuffer) GetIterAtOffset

func (v *TextBuffer) GetIterAtOffset(iter *TextIter, char_offset int)

func (*TextBuffer) GetLineCount

func (v *TextBuffer) GetLineCount() int

func (*TextBuffer) GetMark

func (v *TextBuffer) GetMark(name string) *TextMark

func (*TextBuffer) GetModified

func (v *TextBuffer) GetModified() bool

func (*TextBuffer) GetNativeBuffer

func (v *TextBuffer) GetNativeBuffer() unsafe.Pointer

func (*TextBuffer) GetSelectionBound

func (v *TextBuffer) GetSelectionBound() *TextMark

func (*TextBuffer) GetSelectionBounds

func (v *TextBuffer) GetSelectionBounds(be, en *TextIter) bool

func (*TextBuffer) GetSlice

func (v *TextBuffer) GetSlice(start *TextIter, end *TextIter, include_hidden_chars bool) string

func (*TextBuffer) GetStartIter

func (v *TextBuffer) GetStartIter(iter *TextIter)

func (*TextBuffer) GetTagTable

func (v *TextBuffer) GetTagTable() *TextTagTable

func (*TextBuffer) GetText

func (v *TextBuffer) GetText(start *TextIter, end *TextIter, include_hidden_chars bool) string

func (*TextBuffer) Insert

func (v *TextBuffer) Insert(iter *TextIter, text string)

func (*TextBuffer) InsertAtCursor

func (v *TextBuffer) InsertAtCursor(text string)

func (*TextBuffer) InsertInteractive

func (v *TextBuffer) InsertInteractive(iter *TextIter, text string, default_editable bool) bool

func (*TextBuffer) InsertInteractiveAtCursor

func (v *TextBuffer) InsertInteractiveAtCursor(text string, default_editable bool) bool

func (*TextBuffer) InsertPixbuf

func (v *TextBuffer) InsertPixbuf(iter *TextIter, pixbuf *gdkpixbuf.Pixbuf)

func (*TextBuffer) InsertRange

func (v *TextBuffer) InsertRange(iter *TextIter, start *TextIter, end *TextIter)

func (*TextBuffer) InsertRangeInteractive

func (v *TextBuffer) InsertRangeInteractive(iter *TextIter, start *TextIter, end *TextIter, default_editable bool) bool

func (*TextBuffer) InsertWithTag

func (v *TextBuffer) InsertWithTag(iter *TextIter, text string, tag *TextTag)

func (*TextBuffer) MoveMark

func (v *TextBuffer) MoveMark(mark *TextMark, where *TextIter)

func (*TextBuffer) MoveMarkByName

func (v *TextBuffer) MoveMarkByName(name string, where *TextIter)

func (*TextBuffer) PlaceCursor

func (v *TextBuffer) PlaceCursor(where *TextIter)

func (*TextBuffer) RemoveAllTags

func (v *TextBuffer) RemoveAllTags(start *TextIter, end *TextIter)

func (*TextBuffer) RemoveTag

func (v *TextBuffer) RemoveTag(tag *TextTag, start *TextIter, end *TextIter)

func (*TextBuffer) RemoveTagByName

func (v *TextBuffer) RemoveTagByName(name string, start *TextIter, end *TextIter)

func (*TextBuffer) SelectRange

func (v *TextBuffer) SelectRange(ins *TextIter, bound *TextIter)

func (*TextBuffer) SetModified

func (v *TextBuffer) SetModified(setting bool)

func (*TextBuffer) SetText

func (v *TextBuffer) SetText(text string)

type TextChildAnchor

type TextChildAnchor struct {
	GTextChildAnchor *C.GtkTextChildAnchor
}

type TextIter

type TextIter struct {
	GTextIter C.GtkTextIter
}

----------------------------------------------------------------------- GtkTextIter -----------------------------------------------------------------------

func (*TextIter) Assign

func (v *TextIter) Assign(iter *TextIter)

func (*TextIter) BackwardChar

func (v *TextIter) BackwardChar() bool

func (*TextIter) BackwardChars

func (v *TextIter) BackwardChars(count int) bool

func (*TextIter) BackwardSearch

func (v *TextIter) BackwardSearch(str string, flags TextSearchFlags, start *TextIter, end *TextIter, limit *TextIter) bool

func (*TextIter) Copy

func (v *TextIter) Copy() *TextIter

func (*TextIter) ForwardChar

func (v *TextIter) ForwardChar() bool

func (*TextIter) ForwardChars

func (v *TextIter) ForwardChars(count int) bool

func (*TextIter) ForwardSearch

func (v *TextIter) ForwardSearch(str string, flags TextSearchFlags, start *TextIter, end *TextIter, limit *TextIter) bool

func (*TextIter) Free

func (v *TextIter) Free()

func (*TextIter) GetBuffer

func (v *TextIter) GetBuffer() *TextBuffer

func (*TextIter) GetChar

func (v *TextIter) GetChar() int

func (*TextIter) GetLine

func (v *TextIter) GetLine() int

func (*TextIter) GetLineIndex

func (v *TextIter) GetLineIndex() int

func (*TextIter) GetLineOffset

func (v *TextIter) GetLineOffset() int

func (*TextIter) GetMarks

func (v *TextIter) GetMarks() *glib.SList

func (*TextIter) GetOffset

func (v *TextIter) GetOffset() int

func (*TextIter) GetSlice

func (v *TextIter) GetSlice(end *TextIter) string

func (*TextIter) GetTags

func (v *TextIter) GetTags() *glib.SList

func (*TextIter) GetText

func (v *TextIter) GetText(end *TextIter) string

func (*TextIter) GetVisibleLineIndex

func (v *TextIter) GetVisibleLineIndex() int

func (*TextIter) GetVisibleLineOffset

func (v *TextIter) GetVisibleLineOffset() int

func (*TextIter) GetVisibleSlice

func (v *TextIter) GetVisibleSlice(end *TextIter) string

func (*TextIter) GetVisibleText

func (v *TextIter) GetVisibleText(end *TextIter) string

type TextMark

type TextMark struct {
	GTextMark *C.GtkTextMark
}

----------------------------------------------------------------------- GtkTextMark -----------------------------------------------------------------------

type TextSearchFlags

type TextSearchFlags int
const (
	TEXT_SEARCH_VISIBLE_ONLY TextSearchFlags = 1 << iota
	TEXT_SEARCH_TEXT_ONLY
	TEXT_SEARCH_CASE_INSENSITIVE
)

type TextTag

type TextTag struct {
	GTextTag *C.GtkTextTag
	*glib.GObject
}

----------------------------------------------------------------------- GtkTextTag -----------------------------------------------------------------------

func NewTextTag

func NewTextTag(name string) *TextTag

func NewTextTagFromPointer

func NewTextTagFromPointer(v unsafe.Pointer) *TextTag

func (*TextTag) GetPriority

func (v *TextTag) GetPriority() int

func (*TextTag) SetPriority

func (v *TextTag) SetPriority(priority int)

type TextTagTable

type TextTagTable struct {
	GTextTagTable *C.GtkTextTagTable
}

----------------------------------------------------------------------- GtkTextTagTable -----------------------------------------------------------------------

func NewTextTagTable

func NewTextTagTable() *TextTagTable

func (*TextTagTable) Add

func (v *TextTagTable) Add(tag *TextTag)

func (*TextTagTable) GetSize

func (v *TextTagTable) GetSize() int

func (*TextTagTable) Lookup

func (v *TextTagTable) Lookup(name string) *TextTag

func (*TextTagTable) Remove

func (v *TextTagTable) Remove(tag *TextTag)

type TextView

type TextView struct {
	Container
}

gtk_text_child_anchor_new gtk_text_child_anchor_get_widgets gtk_text_child_anchor_get_deleted

func NewTextView

func NewTextView() *TextView

func NewTextViewWithBuffer

func NewTextViewWithBuffer(b TextBuffer) *TextView

func (*TextView) GetAcceptsTab

func (v *TextView) GetAcceptsTab() bool

func (*TextView) GetBuffer

func (v *TextView) GetBuffer() *TextBuffer

func (*TextView) GetCursorVisible

func (v *TextView) GetCursorVisible() bool

func (*TextView) GetEditable

func (v *TextView) GetEditable() bool

func (*TextView) GetIterAtLocation

func (v *TextView) GetIterAtLocation(iter *TextIter, x int, y int)

func (*TextView) GetIterAtPosition

func (v *TextView) GetIterAtPosition(iter *TextIter, trailing *int, x int, y int)

func (*TextView) GetLineYrange

func (v *TextView) GetLineYrange(iter *TextIter) (y int, height int)

func (*TextView) GetOverwrite

func (v *TextView) GetOverwrite() bool

func (*TextView) GetWrapMode

func (v *TextView) GetWrapMode() WrapMode

func (*TextView) ScrollToIter

func (v *TextView) ScrollToIter(iter *TextIter, wm float64, ua bool, xa float64, ya float64) bool

func (*TextView) ScrollToMark

func (v *TextView) ScrollToMark(mark *TextMark, wm float64, ua bool, xa float64, ya float64)

func (*TextView) SetAcceptsTab

func (v *TextView) SetAcceptsTab(accepts_tab bool)

func (*TextView) SetBuffer

func (v *TextView) SetBuffer(b ITextBuffer)

func (*TextView) SetCursorVisible

func (v *TextView) SetCursorVisible(setting bool)

func (*TextView) SetEditable

func (v *TextView) SetEditable(setting bool)

func (*TextView) SetOverwrite

func (v *TextView) SetOverwrite(overwrite bool)

func (*TextView) SetWrapMode

func (v *TextView) SetWrapMode(mode WrapMode)

type ToggleAction

type ToggleAction struct {
	Action
}

func NewToggleAction

func NewToggleAction(name string, label string, tooltip string,
	stock_id string) *ToggleAction

func (*ToggleAction) GetActive

func (v *ToggleAction) GetActive() bool

func (*ToggleAction) GetDrawAsRadio

func (v *ToggleAction) GetDrawAsRadio() bool

func (*ToggleAction) SetActive

func (v *ToggleAction) SetActive(is_active bool)

func (*ToggleAction) SetDrawAsRadio

func (v *ToggleAction) SetDrawAsRadio(draw_as_radio bool)

func (*ToggleAction) Toggled

func (v *ToggleAction) Toggled()

type ToggleButton

type ToggleButton struct {
	Button
}

----------------------------------------------------------------------- GtkToggleButton -----------------------------------------------------------------------

func NewToggleButton

func NewToggleButton() *ToggleButton

func NewToggleButtonWithLabel

func NewToggleButtonWithLabel(label string) *ToggleButton

func NewToggleButtonWithMnemonic

func NewToggleButtonWithMnemonic(label string) *ToggleButton

func (*ToggleButton) GetActive

func (v *ToggleButton) GetActive() bool

func (*ToggleButton) GetInconsistent

func (v *ToggleButton) GetInconsistent() bool

func (*ToggleButton) GetMode

func (v *ToggleButton) GetMode() bool

func (*ToggleButton) SetActive

func (v *ToggleButton) SetActive(is_active bool)

func (*ToggleButton) SetInconsistent

func (v *ToggleButton) SetInconsistent(setting bool)

func (*ToggleButton) SetMode

func (v *ToggleButton) SetMode(draw_indicator bool)

type ToggleToolButton

type ToggleToolButton struct {
	ToolButton
}

func NewToggleToolButton

func NewToggleToolButton() *ToggleToolButton

func NewToggleToolButtonFromStock

func NewToggleToolButtonFromStock(stock_id string) *ToggleToolButton

func (*ToggleToolButton) GetActive

func (v *ToggleToolButton) GetActive() bool

func (*ToggleToolButton) OnToggled

func (v *ToggleToolButton) OnToggled(onclick interface{}, datas ...interface{}) int

func (*ToggleToolButton) SetActive

func (v *ToggleToolButton) SetActive(is_active bool)

type ToolButton

type ToolButton struct {
	ToolItem
	// contains filtered or unexported fields
}

func NewToolButton

func NewToolButton(icon IWidget, text string) *ToolButton

func NewToolButtonFromStock

func NewToolButtonFromStock(stock_id string) *ToolButton

func (*ToolButton) GetIconName

func (v *ToolButton) GetIconName() string

func (*ToolButton) GetIconWidget

func (v *ToolButton) GetIconWidget() *Widget

func (*ToolButton) GetLabel

func (v *ToolButton) GetLabel() string

func (*ToolButton) GetLabelWidget

func (v *ToolButton) GetLabelWidget() *Widget

func (*ToolButton) GetStockId

func (v *ToolButton) GetStockId() string

func (*ToolButton) GetUseUnderline

func (v *ToolButton) GetUseUnderline() bool

func (*ToolButton) OnClicked

func (v *ToolButton) OnClicked(onclick interface{}, datas ...interface{}) int

func (*ToolButton) SetIconName

func (v *ToolButton) SetIconName(icon_name string)

func (*ToolButton) SetIconWidget

func (v *ToolButton) SetIconWidget(icon_widget *Widget)

func (*ToolButton) SetLabel

func (v *ToolButton) SetLabel(label string)

func (*ToolButton) SetLabelWidget

func (v *ToolButton) SetLabelWidget(label_widget *Widget)

func (*ToolButton) SetStockId

func (v *ToolButton) SetStockId(stock_id string)

func (*ToolButton) SetUseUnderline

func (v *ToolButton) SetUseUnderline(use_underline bool)

type ToolItem

type ToolItem struct {
	Bin
	Activatable // implement GtkActivatable interface
}

func NewToolItem

func NewToolItem() *ToolItem

func (*ToolItem) GetExpand

func (v *ToolItem) GetExpand() bool

func (*ToolItem) GetHomogeneous

func (v *ToolItem) GetHomogeneous() bool

func (*ToolItem) GetIsImportant

func (v *ToolItem) GetIsImportant() bool

func (*ToolItem) GetReliefStyle

func (v *ToolItem) GetReliefStyle() ReliefStyle

func (*ToolItem) GetTextAlignment

func (v *ToolItem) GetTextAlignment() float64

func (*ToolItem) GetTextOrientation

func (v *ToolItem) GetTextOrientation() Orientation

func (*ToolItem) GetToolbarStyle

func (v *ToolItem) GetToolbarStyle() ToolbarStyle

func (*ToolItem) OnCreateMenuProxy

func (v *ToolItem) OnCreateMenuProxy(onclick interface{}, datas ...interface{}) int

func (*ToolItem) OnSetTooltip

func (v *ToolItem) OnSetTooltip(onclick interface{}, datas ...interface{}) int

func (*ToolItem) OnToolbarReconfigured

func (v *ToolItem) OnToolbarReconfigured(onclick interface{}, datas ...interface{}) int

func (*ToolItem) RebuildMenu

func (v *ToolItem) RebuildMenu()

gtk_tool_item_retrieve_proxy_menu_item gtk_tool_item_get_proxy_menu_item gtk_tool_item_set_proxy_menu_item

func (*ToolItem) SetArrowTooltipMarkup

func (v *ToolItem) SetArrowTooltipMarkup(markup string)

func (*ToolItem) SetArrowTooltipText

func (v *ToolItem) SetArrowTooltipText(text string)

gtk_tool_item_set_tooltip (deprecated since 2.12)

func (*ToolItem) SetExpand

func (v *ToolItem) SetExpand(expand bool)

func (*ToolItem) SetHomogeneous

func (v *ToolItem) SetHomogeneous(homogeneous bool)

func (*ToolItem) SetIsImportant

func (v *ToolItem) SetIsImportant(b bool)

Mark a tool item as important or non-important.

When a gtk.Toolbar’s style is gtk.TOOLBAR_BOTH_HORIZ, labels are only displayed for tool item buttons considered important. This is an effect known as “priority text”.

func (*ToolItem) SetTooltipMarkup

func (v *ToolItem) SetTooltipMarkup(markup string)

type ToolItemGroup

type ToolItemGroup struct {
	Container
	// contains filtered or unexported fields
}

func NewToolItemGroup

func NewToolItemGroup(label string) *ToolItemGroup

func (*ToolItemGroup) GetCollapsed

func (v *ToolItemGroup) GetCollapsed() bool

func (*ToolItemGroup) GetHeaderRelief

func (v *ToolItemGroup) GetHeaderRelief() ReliefStyle

gtk_tool_item_group_get_label_widget gtk_tool_item_group_get_nth_item

func (*ToolItemGroup) GetLabel

func (v *ToolItemGroup) GetLabel() string

gtk_tool_item_group_get_drop_item gtk_tool_item_group_get_ellipsize gtk_tool_item_group_get_item_position gtk_tool_item_group_get_n_items

func (*ToolItemGroup) Insert

func (v *ToolItemGroup) Insert(item IWidget, pos int)

func (*ToolItemGroup) SetCollapsed

func (v *ToolItemGroup) SetCollapsed(collapsed bool)

func (*ToolItemGroup) SetHeaderRelief

func (v *ToolItemGroup) SetHeaderRelief(style ReliefStyle)

gtk_tool_item_group_set_label_widget

func (*ToolItemGroup) SetLabel

func (v *ToolItemGroup) SetLabel(label string)

gtk_tool_item_group_set_ellipsize gtk_tool_item_group_set_item_position

type ToolPalette

type ToolPalette struct {
	Container
}

func NewToolPalette

func NewToolPalette() *ToolPalette

func (*ToolPalette) GetExclusive

func (v *ToolPalette) GetExclusive(group *ToolItemGroup) bool

func (*ToolPalette) GetExpand

func (v *ToolPalette) GetExpand(group *ToolItemGroup) bool

func (*ToolPalette) GetGroupPosition

func (v *ToolPalette) GetGroupPosition(group *ToolItemGroup) int

func (*ToolPalette) GetIconSize

func (v *ToolPalette) GetIconSize() IconSize

func (*ToolPalette) GetStyle

func (v *ToolPalette) GetStyle() ToolbarStyle

func (*ToolPalette) SetExclusive

func (v *ToolPalette) SetExclusive(group *ToolItemGroup, exclusive bool)

func (*ToolPalette) SetExpand

func (v *ToolPalette) SetExpand(group *ToolItemGroup, expand bool)

func (*ToolPalette) SetGroupPosition

func (v *ToolPalette) SetGroupPosition(group *ToolItemGroup, pos int)

func (*ToolPalette) SetIconSize

func (v *ToolPalette) SetIconSize(size IconSize)

func (*ToolPalette) SetStyle

func (v *ToolPalette) SetStyle(style ToolbarStyle)

func (*ToolPalette) UnsetIconSize

func (v *ToolPalette) UnsetIconSize()

func (*ToolPalette) UnsetStyle

func (v *ToolPalette) UnsetStyle()

type Toolbar

type Toolbar struct {
	Container
	// contains filtered or unexported fields
}

func NewToolbar

func NewToolbar() *Toolbar

func (*Toolbar) GetDropIndex

func (v *Toolbar) GetDropIndex(x, y int) int

func (*Toolbar) GetIconSize

func (v *Toolbar) GetIconSize() IconSize

func (*Toolbar) GetItemIndex

func (v *Toolbar) GetItemIndex(item IWidget) int

func (*Toolbar) GetNItems

func (v *Toolbar) GetNItems() int

func (*Toolbar) GetNthItem

func (v *Toolbar) GetNthItem(n int) IWidget

func (*Toolbar) GetOrientation

func (v *Toolbar) GetOrientation() Orientation

func (*Toolbar) GetReliefStyle

func (v *Toolbar) GetReliefStyle() ReliefStyle

func (*Toolbar) GetShowArrow

func (v *Toolbar) GetShowArrow() bool

func (*Toolbar) GetStyle

func (v *Toolbar) GetStyle() ToolbarStyle

func (*Toolbar) GetTooltips

func (v *Toolbar) GetTooltips() bool

func (*Toolbar) Insert

func (v *Toolbar) Insert(item IWidget, pos int)

func (*Toolbar) OnFocusHomeOrEnd

func (v *Toolbar) OnFocusHomeOrEnd(onclick interface{}, datas ...interface{}) int

func (*Toolbar) OnOrientationChanged

func (v *Toolbar) OnOrientationChanged(onclick interface{}, datas ...interface{}) int

func (*Toolbar) OnPopupContextMenu

func (v *Toolbar) OnPopupContextMenu(onclick interface{}, datas ...interface{}) int

func (*Toolbar) OnStyleChanged

func (v *Toolbar) OnStyleChanged(onclick interface{}, datas ...interface{}) int

func (*Toolbar) SetDropHighlightItem

func (v *Toolbar) SetDropHighlightItem(item IWidget, index int)

func (*Toolbar) SetIconSize

func (v *Toolbar) SetIconSize(icon_size IconSize)

gtk_toolbar_insert_stock

func (*Toolbar) SetOrientation

func (v *Toolbar) SetOrientation(orientation Orientation)

func (*Toolbar) SetShowArrow

func (v *Toolbar) SetShowArrow(show_arrow bool)

func (*Toolbar) SetStyle

func (v *Toolbar) SetStyle(style ToolbarStyle)

gtk_toolbar_append_item gtk_toolbar_prepend_item gtk_toolbar_insert_item gtk_toolbar_append_space gtk_toolbar_prepend_space gtk_toolbar_insert_space gtk_toolbar_append_element gtk_toolbar_prepend_element gtk_toolbar_insert_element gtk_toolbar_append_widget gtk_toolbar_prepend_widget gtk_toolbar_insert_widget

func (*Toolbar) SetTooltips

func (v *Toolbar) SetTooltips(enable bool)

func (*Toolbar) UnsetIconSize

func (v *Toolbar) UnsetIconSize()

func (*Toolbar) UnsetStyle

func (v *Toolbar) UnsetStyle()

gtk_toolbar_remove_space

type ToolbarStyle

type ToolbarStyle int
const (
	TOOLBAR_ICONS ToolbarStyle = iota
	TOOLBAR_TEXT
	TOOLBAR_BOTH
	TOOLBAR_BOTH_HORIZ
)

type Tooltip

type Tooltip struct {
	GTooltip *C.GtkTooltip
}

----------------------------------------------------------------------- GtkTooltip -----------------------------------------------------------------------

func TooltipFromNative

func TooltipFromNative(l unsafe.Pointer) *Tooltip

func (*Tooltip) SetIcon

func (v *Tooltip) SetIcon(pixbuf *gdkpixbuf.Pixbuf)

func (*Tooltip) SetIconFromIconName

func (v *Tooltip) SetIconFromIconName(icon_name string, size IconSize)

func (*Tooltip) SetIconFromStock

func (v *Tooltip) SetIconFromStock(stock_id string, size IconSize)

func (*Tooltip) SetMarkup

func (v *Tooltip) SetMarkup(markup string)

func (*Tooltip) SetText

func (v *Tooltip) SetText(text string)

type TreeIter

type TreeIter struct {
	GTreeIter *C.GtkTreeIter
}

----------------------------------------------------------------------- GtkTreeIter -----------------------------------------------------------------------

func (*TreeIter) Assign

func (v *TreeIter) Assign(to *TreeIter)

type TreeModel

type TreeModel struct {
	GTreeModel *C.GtkTreeModel
}

func (*TreeModel) GetFlags

func (v *TreeModel) GetFlags() TreeModelFlags

func (*TreeModel) GetIter

func (v *TreeModel) GetIter(iter *TreeIter, path *TreePath) bool

gtk_tree_model_get_column_type

func (*TreeModel) GetIterFirst

func (v *TreeModel) GetIterFirst(iter *TreeIter) bool

func (*TreeModel) GetIterFromString

func (v *TreeModel) GetIterFromString(iter *TreeIter, path_string string) bool

func (*TreeModel) GetNColumns

func (v *TreeModel) GetNColumns() int

func (*TreeModel) GetPath

func (v *TreeModel) GetPath(iter *TreeIter) *TreePath

func (*TreeModel) GetStringFromIter

func (v *TreeModel) GetStringFromIter(iter *TreeIter) string

func (*TreeModel) GetValue

func (v *TreeModel) GetValue(iter *TreeIter, col int, val *glib.GValue)

func (*TreeModel) IterChildren

func (v *TreeModel) IterChildren(iter *TreeIter, parent *TreeIter) bool

func (*TreeModel) IterHasChild

func (v *TreeModel) IterHasChild(iter *TreeIter) bool

func (*TreeModel) IterNChildren

func (v *TreeModel) IterNChildren(iter *TreeIter) int

func (*TreeModel) IterNext

func (v *TreeModel) IterNext(iter *TreeIter) bool

func (*TreeModel) IterNthChild

func (v *TreeModel) IterNthChild(iter *TreeIter, parent *TreeIter, n int) bool

func (*TreeModel) IterParent

func (v *TreeModel) IterParent(iter *TreeIter, child *TreeIter) bool

type TreeModelFlags

type TreeModelFlags int

----------------------------------------------------------------------- GtkTreeModel -----------------------------------------------------------------------

const (
	TREE_MODEL_ITERS_PERSIST TreeModelFlags = 1 << iota
	TREE_MODEL_LIST_ONLY
)

type TreePath

type TreePath struct {
	GTreePath *C.GtkTreePath
}

----------------------------------------------------------------------- GtkTreePath -----------------------------------------------------------------------

func NewTreePath

func NewTreePath() *TreePath

func NewTreePathFromString

func NewTreePathFromString(path string) *TreePath

func NewTreePathNewFirst

func NewTreePathNewFirst() *TreePath

func TreePathFromNative

func TreePathFromNative(value unsafe.Pointer) *TreePath

func (*TreePath) AppendIndex

func (v *TreePath) AppendIndex(index int)

func (*TreePath) Compare

func (v *TreePath) Compare(w TreePath) int

func (*TreePath) Copy

func (v *TreePath) Copy() *TreePath

func (*TreePath) Down

func (v *TreePath) Down()

func (*TreePath) Free

func (v *TreePath) Free()

func (*TreePath) GetDepth

func (v *TreePath) GetDepth() int

func (*TreePath) GetIndices

func (v *TreePath) GetIndices() []int

func (*TreePath) IsAncestor

func (v *TreePath) IsAncestor(descendant TreePath) bool

func (*TreePath) IsDescendant

func (v *TreePath) IsDescendant(ancestor TreePath) bool

func (*TreePath) Next

func (v *TreePath) Next()

func (*TreePath) PrependIndex

func (v *TreePath) PrependIndex(index int)

func (*TreePath) Prev

func (v *TreePath) Prev() bool

func (*TreePath) String

func (v *TreePath) String() string

func (*TreePath) Up

func (v *TreePath) Up() bool

type TreeRowReference

type TreeRowReference struct {
	GTreeRowReference *C.GtkTreeRowReference
}

----------------------------------------------------------------------- GtkTreeRowReference -----------------------------------------------------------------------

func NewTreeRowReference

func NewTreeRowReference(model ITreeModel, path *TreePath) *TreeRowReference

func (*TreeRowReference) Copy

func (*TreeRowReference) Free

func (r *TreeRowReference) Free()

func (*TreeRowReference) GetModel

func (r *TreeRowReference) GetModel() *TreeModel

func (*TreeRowReference) GetPath

func (r *TreeRowReference) GetPath() *TreePath

func (*TreeRowReference) Valid

func (r *TreeRowReference) Valid() bool

type TreeSelection

type TreeSelection struct {
	GTreeSelection *C.GtkTreeSelection
}

----------------------------------------------------------------------- GtkTreeSelection -----------------------------------------------------------------------

func (*TreeSelection) Connect

func (v *TreeSelection) Connect(s string, f interface{}, datas ...interface{}) int

func (*TreeSelection) CountSelectedRows

func (v *TreeSelection) CountSelectedRows() int

func (*TreeSelection) GetMode

func (v *TreeSelection) GetMode() SelectionMode

func (*TreeSelection) GetSelected

func (v *TreeSelection) GetSelected(iter *TreeIter) bool

func (*TreeSelection) GetSelectedRows

func (v *TreeSelection) GetSelectedRows(model *TreeModel) *C.GList

func (*TreeSelection) IterIsSelected

func (v *TreeSelection) IterIsSelected(iter *TreeIter) bool

func (*TreeSelection) PathIsSelected

func (v *TreeSelection) PathIsSelected(path *TreePath) bool

func (*TreeSelection) SelectAll

func (v *TreeSelection) SelectAll()

func (*TreeSelection) SelectIter

func (v *TreeSelection) SelectIter(iter *TreeIter)

func (*TreeSelection) SelectPath

func (v *TreeSelection) SelectPath(path *TreePath)

func (*TreeSelection) SelectRange

func (v *TreeSelection) SelectRange(start_path *TreePath, end_path *TreePath)

func (*TreeSelection) SetMode

func (v *TreeSelection) SetMode(m SelectionMode)

func (*TreeSelection) SetSelectFunction

func (v *TreeSelection) SetSelectFunction(selecter *GtkTreeSelecter)

Caller is responsible for ensuring that *selecter does not get reaped by garbage collection during the time that gtk maintains a reference to it (e.g. pass the address of a package global variable).

func (*TreeSelection) UnselectAll

func (v *TreeSelection) UnselectAll()

func (*TreeSelection) UnselectIter

func (v *TreeSelection) UnselectIter(iter *TreeIter)

func (*TreeSelection) UnselectPath

func (v *TreeSelection) UnselectPath(path *TreePath)

func (*TreeSelection) UnselectRange

func (v *TreeSelection) UnselectRange(start_path *TreePath, end_path *TreePath)

type TreeSortable

type TreeSortable struct {
	GTreeSortable *C.GtkTreeSortable
	// contains filtered or unexported fields
}

func NewTreeSortable

func NewTreeSortable(model ITreeModel) *TreeSortable

func (*TreeSortable) GetSortColumnId

func (ts *TreeSortable) GetSortColumnId(id int, order SortType) bool

func (*TreeSortable) HasDefaultSortFunc

func (ts *TreeSortable) HasDefaultSortFunc() bool

func (*TreeSortable) SetDefaultSortFunc

func (ts *TreeSortable) SetDefaultSortFunc(fun SortFunc, userData interface{})

func (*TreeSortable) SetSortColumnId

func (ts *TreeSortable) SetSortColumnId(id int, order SortType)

func (*TreeSortable) SetSortFunc

func (ts *TreeSortable) SetSortFunc(col int, fun SortFunc, userData interface{})

type TreeStore

type TreeStore struct {
	TreeModel
	GTreeStore *C.GtkTreeStore
}

----------------------------------------------------------------------- GtkTreeStore -----------------------------------------------------------------------

func NewTreeStore

func NewTreeStore(v ...interface{}) *TreeStore

func (*TreeStore) Append

func (v *TreeStore) Append(iter *TreeIter, parent *TreeIter)

func (*TreeStore) Clear

func (v *TreeStore) Clear()

func (*TreeStore) Insert

func (v *TreeStore) Insert(iter *TreeIter, parent *TreeIter, position int)

func (*TreeStore) InsertAfter

func (v *TreeStore) InsertAfter(iter *TreeIter, parent *TreeIter, sibling *TreeIter)

func (*TreeStore) InsertBefore

func (v *TreeStore) InsertBefore(iter *TreeIter, parent *TreeIter, sibling *TreeIter)

func (*TreeStore) IterDepth

func (v *TreeStore) IterDepth(iter *TreeIter) int

func (*TreeStore) IterIsValid

func (v *TreeStore) IterIsValid(iter *TreeIter) bool

func (*TreeStore) MoveAfter

func (v *TreeStore) MoveAfter(iter *TreeIter, position *TreeIter)

func (*TreeStore) MoveBefore

func (v *TreeStore) MoveBefore(iter *TreeIter, position *TreeIter)

func (*TreeStore) Prepend

func (v *TreeStore) Prepend(iter *TreeIter, parent *TreeIter)

func (*TreeStore) Remove

func (v *TreeStore) Remove(iter *TreeIter) bool

func (*TreeStore) Reorder

func (v *TreeStore) Reorder(iter *TreeIter, i *int)

func (*TreeStore) Set

func (v *TreeStore) Set(iter *TreeIter, a ...interface{})

func (*TreeStore) SetValue

func (v *TreeStore) SetValue(iter *TreeIter, column int, a interface{})

func (*TreeStore) Swap

func (v *TreeStore) Swap(a *TreeIter, b *TreeIter)

func (*TreeStore) ToTreeModel

func (v *TreeStore) ToTreeModel() *TreeModel

type TreeView

type TreeView struct {
	Container
}

----------------------------------------------------------------------- GtkTreeView -----------------------------------------------------------------------

func NewTreeView

func NewTreeView() *TreeView

func (*TreeView) AppendColumn

func (v *TreeView) AppendColumn(c *TreeViewColumn) int

func (*TreeView) CollapseAll

func (v *TreeView) CollapseAll()

func (*TreeView) CollapseRow

func (v *TreeView) CollapseRow(path *TreePath) bool

func (*TreeView) ExpandAll

func (v *TreeView) ExpandAll()

func (*TreeView) ExpandRow

func (v *TreeView) ExpandRow(path *TreePath, openall bool) bool

func (*TreeView) GetColumn

func (v *TreeView) GetColumn(n int) *TreeViewColumn

func (*TreeView) GetColumns

func (v *TreeView) GetColumns() []*TreeViewColumn

func (*TreeView) GetCursor

func (v *TreeView) GetCursor(path **TreePath, focus_column **TreeViewColumn)

func (*TreeView) GetModel

func (v *TreeView) GetModel() *TreeModel

func (*TreeView) GetSelection

func (v *TreeView) GetSelection() *TreeSelection

func (*TreeView) RemoveColumn

func (v *TreeView) RemoveColumn(c *TreeViewColumn) int

Remove column from TreeView and return number of existing columns

func (*TreeView) RowExpanded

func (v *TreeView) RowExpanded(path *TreePath) bool

func (*TreeView) ScrollToCell

func (v *TreeView) ScrollToCell(path *TreePath, col *TreeViewColumn, use bool, ra, ca float64)

func (*TreeView) SetCursor

func (v *TreeView) SetCursor(path *TreePath, col *TreeViewColumn, se bool)

func (*TreeView) SetHeadersClickable

func (v *TreeView) SetHeadersClickable(flag bool)

void gtk_tree_view_columns_autosize (GtkTreeView *tree_view); gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view); void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view, gboolean setting);

func (*TreeView) SetHeadersVisible

func (v *TreeView) SetHeadersVisible(flag bool)

func (*TreeView) SetModel

func (v *TreeView) SetModel(model ITreeModel)

func (*TreeView) SetRubberBanding

func (v *TreeView) SetRubberBanding(enable bool)

type TreeViewColumn

type TreeViewColumn struct {
	GTreeViewColumn *C.GtkTreeViewColumn
	*glib.GObject
}

func NewTreeViewColumn

func NewTreeViewColumn() *TreeViewColumn

func NewTreeViewColumnWithAttribute

func NewTreeViewColumnWithAttribute(title string, cell ICellRenderer) *TreeViewColumn

func NewTreeViewColumnWithAttributes

func NewTreeViewColumnWithAttributes(title string, cell ICellRenderer, attributes ...interface{}) *TreeViewColumn
func NewTreeViewColumnWithAttributes(title string, cell ICellRenderer, attribute string, column int) *TreeViewColumn {
	ptitle := C.CString(title)
	defer cfree(ptitle)
	pattribute := C.CString(attribute)
	defer cfree(pattribute)
	return newTreeViewColumn(
		C._gtk_tree_view_column_new_with_attributes(gstring(ptitle), cell.ToCellRenderer(), gstring(pattribute), gint(column)))
}

func (*TreeViewColumn) AddAttribute

func (v *TreeViewColumn) AddAttribute(cell ICellRenderer, attribute string, column int)

func (*TreeViewColumn) Clear

func (v *TreeViewColumn) Clear()

func (*TreeViewColumn) Clicked

func (v *TreeViewColumn) Clicked()

func (*TreeViewColumn) GetClickable

func (v *TreeViewColumn) GetClickable() bool

func (*TreeViewColumn) GetExpand

func (v *TreeViewColumn) GetExpand() bool

func (*TreeViewColumn) GetFixedWidth

func (v *TreeViewColumn) GetFixedWidth() int

func (*TreeViewColumn) GetMaxWidth

func (v *TreeViewColumn) GetMaxWidth() int

func (*TreeViewColumn) GetMinWidth

func (v *TreeViewColumn) GetMinWidth() int

func (*TreeViewColumn) GetReorderable

func (v *TreeViewColumn) GetReorderable() bool

func (*TreeViewColumn) GetResizable

func (v *TreeViewColumn) GetResizable() bool

func (*TreeViewColumn) GetSizing

func (v *TreeViewColumn) GetSizing() TreeViewColumnSizing

func (*TreeViewColumn) GetSpacing

func (v *TreeViewColumn) GetSpacing() int

func (*TreeViewColumn) GetTitle

func (v *TreeViewColumn) GetTitle() string

func (*TreeViewColumn) GetVisible

func (v *TreeViewColumn) GetVisible() bool

func (*TreeViewColumn) GetWidth

func (v *TreeViewColumn) GetWidth() int

func (*TreeViewColumn) PackEnd

func (v *TreeViewColumn) PackEnd(cell ICellRenderer, expand bool)

func (*TreeViewColumn) PackStart

func (v *TreeViewColumn) PackStart(cell ICellRenderer, expand bool)

func (*TreeViewColumn) SetClickable

func (v *TreeViewColumn) SetClickable(clickable bool)

func (*TreeViewColumn) SetExpand

func (v *TreeViewColumn) SetExpand(expand bool)

func (*TreeViewColumn) SetFixedWidth

func (v *TreeViewColumn) SetFixedWidth(w int)

func (*TreeViewColumn) SetMaxWidth

func (v *TreeViewColumn) SetMaxWidth(w int)

func (*TreeViewColumn) SetMinWidth

func (v *TreeViewColumn) SetMinWidth(w int)

func (*TreeViewColumn) SetReorderable

func (v *TreeViewColumn) SetReorderable(reorderable bool)

func (*TreeViewColumn) SetResizable

func (v *TreeViewColumn) SetResizable(resizable bool)

func (*TreeViewColumn) SetSizing

func (v *TreeViewColumn) SetSizing(s TreeViewColumnSizing)

func (*TreeViewColumn) SetSortColumnId

func (v *TreeViewColumn) SetSortColumnId(col int)

void gtk_tree_view_column_set_sort_column_id (GtkTreeViewColumn *tree_column, gint sort_column_id);

func (*TreeViewColumn) SetSpacing

func (v *TreeViewColumn) SetSpacing(spacing int)

func (*TreeViewColumn) SetTitle

func (v *TreeViewColumn) SetTitle(title string)

func (*TreeViewColumn) SetVisible

func (v *TreeViewColumn) SetVisible(resizable bool)

type TreeViewColumnSizing

type TreeViewColumnSizing int

----------------------------------------------------------------------- GtkTreeViewColumn -----------------------------------------------------------------------

const (
	TREE_VIEW_COLUMN_GROW_ONLY TreeViewColumnSizing = iota
	TREE_VIEW_COLUMN_AUTOSIZE
	TREE_VIEW_COLUMN_FIXED
)

type UIManager

type UIManager struct {
	glib.GObject
}

func NewUIManager

func NewUIManager() *UIManager

func (*UIManager) AddUIFromString

func (v *UIManager) AddUIFromString(buffer string) error

func (*UIManager) GetAccelGroup

func (v *UIManager) GetAccelGroup() *AccelGroup

func (*UIManager) GetWidget

func (v *UIManager) GetWidget(path string) *Widget

func (*UIManager) InsertActionGroup

func (v *UIManager) InsertActionGroup(action_group *ActionGroup, pos int)

type VBox

type VBox struct {
	Box
}

----------------------------------------------------------------------- GtkVBox -----------------------------------------------------------------------

func NewVBox

func NewVBox(homogeneous bool, spacing int) *VBox

type VPaned

type VPaned struct {
	Paned
}

----------------------------------------------------------------------- GtkVPaned -----------------------------------------------------------------------

func NewVPaned

func NewVPaned() *VPaned

type VScrollbar

type VScrollbar struct {
	Scrollbar
}

----------------------------------------------------------------------- GtkVScrollbar -----------------------------------------------------------------------

func NewVScrollbar

func NewVScrollbar(va *Adjustment) *VScrollbar

type VSeparator

type VSeparator struct {
	Separator
}

----------------------------------------------------------------------- GtkVSeparator -----------------------------------------------------------------------

func NewVSeparator

func NewVSeparator() *VSeparator

type Viewport

type Viewport struct {
	Bin
}

----------------------------------------------------------------------- GtkViewport -----------------------------------------------------------------------

func NewViewport

func NewViewport(ha, va *Adjustment) *Viewport

func (*Viewport) GetBinWindow

func (v *Viewport) GetBinWindow() *Window

func (*Viewport) GetHAdjustment

func (v *Viewport) GetHAdjustment() *Adjustment

func (*Viewport) GetShadowType

func (v *Viewport) GetShadowType() ShadowType

func (*Viewport) GetVAdjustment

func (v *Viewport) GetVAdjustment() *Adjustment

func (*Viewport) GetViewWindow

func (v *Viewport) GetViewWindow() *Window

func (*Viewport) SetHAdjustment

func (v *Viewport) SetHAdjustment(ha *Adjustment)

func (*Viewport) SetShadowType

func (v *Viewport) SetShadowType(typ ShadowType)

func (*Viewport) SetVAdjustment

func (v *Viewport) SetVAdjustment(va *Adjustment)

type VolumeButton

type VolumeButton struct {
	Bin
}

func NewVolumeButton

func NewVolumeButton() *VolumeButton

type Widget

type Widget struct {
	GWidget *C.GtkWidget
}

func WidgetFromNative

func WidgetFromNative(p unsafe.Pointer) *Widget

func WidgetFromObject

func WidgetFromObject(object *glib.GObject) *Widget

TODO GtkWidget will have GObject as anonymous field.

func (*Widget) Activate

func (v *Widget) Activate()

func (*Widget) AddAccelerator

func (v *Widget) AddAccelerator(signal string, group *AccelGroup, key uint, mods gdk.ModifierType, flags AccelFlags)

func (*Widget) AddEvents

func (v *Widget) AddEvents(events int)

func (*Widget) CanActivateAccel

func (v *Widget) CanActivateAccel(signal_id uint) bool

func (*Widget) Connect

func (v *Widget) Connect(s string, f interface{}, datas ...interface{}) int

func (*Widget) Destroy

func (v *Widget) Destroy()

func (*Widget) DragDestAddUriTargets

func (v *Widget) DragDestAddUriTargets()

func (*Widget) DragDestSet

func (v *Widget) DragDestSet(flags DestDefaults, targets []TargetEntry, actions gdk.DragAction)

func (*Widget) DragFinish

func (v *Widget) DragFinish(context *gdk.DragContext, success bool, del bool, time uint32)

func (*Widget) DragSourceSet

func (v *Widget) DragSourceSet(start_button_mask gdk.ModifierType, targets []TargetEntry, actions gdk.DragAction)

func (*Widget) Emit

func (v *Widget) Emit(s string)

func (*Widget) GetAllocation

func (v *Widget) GetAllocation() *Allocation

func (*Widget) GetAppPaintable

func (v *Widget) GetAppPaintable() bool

func (*Widget) GetCanDefault

func (v *Widget) GetCanDefault() bool

func (*Widget) GetCanFocus

func (v *Widget) GetCanFocus() bool

func (*Widget) GetChildVisible

func (v *Widget) GetChildVisible() bool

func (*Widget) GetColormap

func (v *Widget) GetColormap() *gdk.Colormap

func (*Widget) GetDoubleBuffered

func (v *Widget) GetDoubleBuffered() bool

func (*Widget) GetHasTooltip

func (v *Widget) GetHasTooltip() bool

func (*Widget) GetHasWindow

func (v *Widget) GetHasWindow() bool

func (*Widget) GetName

func (v *Widget) GetName() string

func (*Widget) GetNoShowAll

func (v *Widget) GetNoShowAll() bool

func (*Widget) GetPangoContext

func (v *Widget) GetPangoContext() *pango.Context

gtk_widget_reset_rc_styles gtk_widget_push_colormap gtk_widget_pop_colormap gtk_widget_set_default_colormap gtk_widget_get_default_style gtk_widget_get_default_colormap gtk_widget_get_default_visual gtk_widget_set_direction gtk_widget_get_direction gtk_widget_set_default_direction gtk_widget_get_default_direction gtk_widget_shape_combine_mask gtk_widget_input_shape_combine_mask gtk_widget_path gtk_widget_class_path gtk_widget_get_composite_name gtk_widget_modify_style gtk_widget_get_modifier_style gtk_widget_modify_text gtk_widget_modify_base gtk_widget_modify_cursor gtk_widget_create_pango_context gtk_widget_get_pango_context

func (*Widget) GetParent

func (v *Widget) GetParent() *Widget

func (*Widget) GetParentWindow

func (v *Widget) GetParentWindow() *gdk.Window

func (*Widget) GetReceivesDefault

func (v *Widget) GetReceivesDefault() bool

func (*Widget) GetSensitive

func (v *Widget) GetSensitive() bool

func (*Widget) GetSettings

func (v *Widget) GetSettings() *Settings

func (*Widget) GetSizeRequest

func (v *Widget) GetSizeRequest() (width int, height int)

func (*Widget) GetState

func (v *Widget) GetState() StateType

func (*Widget) GetStyle

func (v *Widget) GetStyle() *Style

func (*Widget) GetTooltipMarkup

func (v *Widget) GetTooltipMarkup() string

func (*Widget) GetTooltipText

func (v *Widget) GetTooltipText() string

func (*Widget) GetTooltipWindow

func (v *Widget) GetTooltipWindow() *Window

func (*Widget) GetTopLevel

func (v *Widget) GetTopLevel() *Widget

func (*Widget) GetTopLevelAsWindow

func (v *Widget) GetTopLevelAsWindow() *Window

func (*Widget) GetVisible

func (v *Widget) GetVisible() bool

func (*Widget) GetWindow

func (v *Widget) GetWindow() *gdk.Window

func (*Widget) GrabDefault

func (v *Widget) GrabDefault()

func (*Widget) GrabFocus

func (v *Widget) GrabFocus()

func (*Widget) HandlerBlock

func (v *Widget) HandlerBlock(id int)

func (*Widget) HandlerDisconnect

func (v *Widget) HandlerDisconnect(id int)

func (*Widget) HandlerUnblock

func (v *Widget) HandlerUnblock(id int)

func (*Widget) HasDefault

func (v *Widget) HasDefault() bool

func (*Widget) HasFocus

func (v *Widget) HasFocus() bool

func (*Widget) HasGrab

func (v *Widget) HasGrab() bool

func (*Widget) Hide

func (v *Widget) Hide()

func (*Widget) HideAll

func (v *Widget) HideAll()

Deprecated since 2.24. Use Hide() instead.

func (*Widget) HideOnDelete

func (v *Widget) HideOnDelete()

func (*Widget) IsComposited

func (v *Widget) IsComposited() bool

func (*Widget) IsDrawable

func (v *Widget) IsDrawable() bool

func (*Widget) IsFocus

func (v *Widget) IsFocus() bool

func (*Widget) IsSensitive

func (v *Widget) IsSensitive() bool

func (*Widget) IsToplevel

func (v *Widget) IsToplevel() bool

func (*Widget) Map

func (v *Widget) Map()

func (*Widget) MnemonicActivate

func (v *Widget) MnemonicActivate(group_cycling bool) bool

func (*Widget) ModifyBG

func (v *Widget) ModifyBG(state StateType, color *gdk.Color)

func (*Widget) ModifyBase

func (v *Widget) ModifyBase(state StateType, color *gdk.Color)

func (*Widget) ModifyFG

func (v *Widget) ModifyFG(state StateType, color *gdk.Color)

func (*Widget) ModifyFontEasy

func (v *Widget) ModifyFontEasy(desc string)

func (*Widget) ModifyText

func (v *Widget) ModifyText(state StateType, color *gdk.Color)

func (*Widget) QueueClear

func (v *Widget) QueueClear()

Deprecated since 2.2. Use QueueDraw() instead.

func (*Widget) QueueDraw

func (v *Widget) QueueDraw()

func (*Widget) QueueResize

func (v *Widget) QueueResize()

func (*Widget) QueueResizeNoRedraw

func (v *Widget) QueueResizeNoRedraw()

func (*Widget) Realize

func (v *Widget) Realize()

func (*Widget) Ref

func (v *Widget) Ref()

func (*Widget) RenderIcon

func (v *Widget) RenderIcon(stock_id string, size IconSize, detail string) *gdkpixbuf.Pixbuf

func (*Widget) Reparent

func (v *Widget) Reparent(parent IWidget)

func (*Widget) SetAllocation

func (v *Widget) SetAllocation(allocation *Allocation)

func (*Widget) SetAppPaintable

func (v *Widget) SetAppPaintable(setting bool)

func (*Widget) SetCanDefault

func (v *Widget) SetCanDefault(setting bool)

func (*Widget) SetCanFocus

func (v *Widget) SetCanFocus(setting bool)

func (*Widget) SetChildVisible

func (v *Widget) SetChildVisible(setting bool)

func (*Widget) SetDoubleBuffered

func (v *Widget) SetDoubleBuffered(setting bool)

func (*Widget) SetEvents

func (v *Widget) SetEvents(events int)

func (*Widget) SetHasTooltip

func (v *Widget) SetHasTooltip(setting bool)

func (*Widget) SetHasWindow

func (v *Widget) SetHasWindow(setting bool)

func (*Widget) SetName

func (v *Widget) SetName(name string)

func (*Widget) SetNoShowAll

func (v *Widget) SetNoShowAll(setting bool)

func (*Widget) SetParent

func (v *Widget) SetParent(parent IWidget)

func (*Widget) SetParentWindow

func (v *Widget) SetParentWindow(parent *gdk.Window)

func (*Widget) SetReceivesDefault

func (v *Widget) SetReceivesDefault(setting bool)

func (*Widget) SetRedrawOnAllocate

func (v *Widget) SetRedrawOnAllocate(setting bool)

func (*Widget) SetSensitive

func (v *Widget) SetSensitive(setting bool)

func (*Widget) SetSizeRequest

func (v *Widget) SetSizeRequest(width int, height int)

func (*Widget) SetState

func (v *Widget) SetState(state StateType)

func (*Widget) SetTooltipMarkup

func (v *Widget) SetTooltipMarkup(markup string)

func (*Widget) SetTooltipText

func (v *Widget) SetTooltipText(text string)

func (*Widget) SetTooltipWindow

func (v *Widget) SetTooltipWindow(w *Window)

func (*Widget) SetUSize

func (v *Widget) SetUSize(width int, height int)

Deprecated since 2.2, use SetSizeRequest() instead

func (*Widget) SetVisible

func (v *Widget) SetVisible(setting bool)

func (*Widget) SetWindow

func (v *Widget) SetWindow(window *gdk.Window)

func (*Widget) Show

func (v *Widget) Show()

func (*Widget) ShowAll

func (v *Widget) ShowAll()

func (*Widget) ShowNow

func (v *Widget) ShowNow()

func (*Widget) StopEmission

func (v *Widget) StopEmission(s string)

func (*Widget) ToNative

func (v *Widget) ToNative() *C.GtkWidget

func (*Widget) Unmap

func (v *Widget) Unmap()

func (*Widget) Unparent

func (v *Widget) Unparent()

func (*Widget) Unrealize

func (v *Widget) Unrealize()

func (*Widget) Unref

func (v *Widget) Unref()

type Window

type Window struct {
	Bin
}

func NewWindow

func NewWindow(t WindowType) *Window

func (*Window) ActivateDefault

func (v *Window) ActivateDefault() bool

func (*Window) ActivateFocus

func (v *Window) ActivateFocus() bool

func (*Window) AddAccelGroup

func (v *Window) AddAccelGroup(agroup *AccelGroup)

func (*Window) Deiconify

func (v *Window) Deiconify()

func (*Window) Fullscreen

func (v *Window) Fullscreen()

func (*Window) GetAcceptFocus

func (v *Window) GetAcceptFocus() bool

func (*Window) GetDefaultSize

func (v *Window) GetDefaultSize() (width int, height int)

func (*Window) GetDestroyWithParent

func (v *Window) GetDestroyWithParent() bool

func (*Window) GetIconName

func (v *Window) GetIconName() string

func (*Window) GetModal

func (v *Window) GetModal() bool

func (*Window) GetOpacity

func (v *Window) GetOpacity() float64

func (*Window) GetPosition

func (v *Window) GetPosition() (root_x int, root_y int)

func (*Window) GetResizable

func (v *Window) GetResizable() bool

func (*Window) GetScreen

func (v *Window) GetScreen() *gdk.Screen

func (*Window) GetSize

func (v *Window) GetSize() (width int, height int)

func (*Window) GetSkipTaskbarHint

func (v *Window) GetSkipTaskbarHint() bool

func (*Window) GetTitle

func (v *Window) GetTitle() string

func (*Window) GetTypeHint

func (v *Window) GetTypeHint() gdk.WindowTypeHint

func (*Window) HasToplevelFocus

func (v *Window) HasToplevelFocus() bool

func (*Window) Iconify

func (v *Window) Iconify()

func (*Window) IsActive

func (v *Window) IsActive() bool

func (*Window) ListToplevels

func (v *Window) ListToplevels() *glib.List

func (*Window) Maximize

func (v *Window) Maximize()

func (*Window) Move

func (v *Window) Move(x int, y int)

func (*Window) Present

func (v *Window) Present()

func (*Window) RemoveAccelGroup

func (v *Window) RemoveAccelGroup(agroup *AccelGroup)

func (*Window) Resize

func (v *Window) Resize(width int, height int)

func (*Window) SetAcceptFocus

func (v *Window) SetAcceptFocus(setting bool)

func (*Window) SetAutoStartupNotification

func (v *Window) SetAutoStartupNotification(setting bool)

func (*Window) SetDecorated

func (v *Window) SetDecorated(setting bool)

func (*Window) SetDefault

func (v *Window) SetDefault(w *Widget)

func (*Window) SetDefaultSize

func (v *Window) SetDefaultSize(width int, height int)

func (*Window) SetDeletable

func (v *Window) SetDeletable(setting bool)

func (*Window) SetDestroyWithParent

func (v *Window) SetDestroyWithParent(setting bool)

func (*Window) SetGravity

func (v *Window) SetGravity(gravity gdk.Gravity)

func (*Window) SetIcon

func (v *Window) SetIcon(icon *gdkpixbuf.Pixbuf)

gtk_window_set_default_icon_list gtk_window_set_default_icon gtk_window_set_default_icon_from_file gtk_window_set_default_icon_name

func (*Window) SetIconFromFile

func (v *Window) SetIconFromFile(file string)

func (*Window) SetIconName

func (v *Window) SetIconName(name string)

func (*Window) SetKeepAbove

func (v *Window) SetKeepAbove(setting bool)

func (*Window) SetKeepBelow

func (v *Window) SetKeepBelow(setting bool)

func (*Window) SetModal

func (v *Window) SetModal(modal bool)

func (*Window) SetOpacity

func (v *Window) SetOpacity(opacity float64)

func (*Window) SetPosition

func (v *Window) SetPosition(position WindowPosition)

func (*Window) SetResizable

func (v *Window) SetResizable(resizable bool)

func (*Window) SetScreen

func (v *Window) SetScreen(screen *gdk.Screen)

func (*Window) SetSkipTaskbarHint

func (v *Window) SetSkipTaskbarHint(setting bool)

func (*Window) SetTitle

func (v *Window) SetTitle(title string)

func (*Window) SetTransientFor

func (v *Window) SetTransientFor(parent *Window)

func (*Window) SetTypeHint

func (v *Window) SetTypeHint(hint gdk.WindowTypeHint)

func (*Window) SetWMClass

func (v *Window) SetWMClass(name string, class string)

func (*Window) Stick

func (v *Window) Stick()

func (*Window) Unfullscreen

func (v *Window) Unfullscreen()

func (*Window) Unmaximize

func (v *Window) Unmaximize()

func (*Window) Unstick

func (v *Window) Unstick()

type WindowPosition

type WindowPosition int
const (
	WIN_POS_NONE WindowPosition = iota
	WIN_POS_CENTER
	WIN_POS_MOUSE
	WIN_POS_CENTER_ALWAYS
	WIN_POS_CENTER_ON_PARENT
)

type WindowType

type WindowType int

----------------------------------------------------------------------- GtkWindow -----------------------------------------------------------------------

const (
	WINDOW_TOPLEVEL WindowType = iota
	WINDOW_POPUP
)

type WrapMode

type WrapMode int

----------------------------------------------------------------------- GtkTextView -----------------------------------------------------------------------

const (
	WRAP_NONE WrapMode = iota
	WRAP_CHAR
	WRAP_WORD
	WRAP_WORD_CHAR
)

Jump to

Keyboard shortcuts

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