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: 948

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