gotk3: github.com/gotk3/gotk3/gtk Index | Files

package gtk

import "github.com/gotk3/gotk3/gtk"

Go bindings for GTK+ 3. Supports version 3.6 and later.

Functions use the same names as the native C function calls, but use CamelCase. In cases where native GTK uses pointers to values to simulate multiple return values, Go's native multiple return values are used instead. Whenever a native GTK call could return an unexpected NULL pointer, an additional error is returned in the Go binding.

GTK's C API documentation can be very useful for understanding how the functions in this package work and what each type is for. This documentation can be found at https://developer.gnome.org/gtk3/.

In addition to Go versions of the C GTK functions, every struct type includes a method named Native (either by direct implementation, or by means of struct embedding). These methods return a uintptr of the native C object the binding type represents. These pointers may be type switched to a native C pointer using unsafe and used with cgo function calls outside this package.

Memory management is handled in proper Go fashion, using runtime finalizers to properly free memory when it is no longer needed. Each time a Go type is created with a pointer to a GObject, a reference is added for Go, sinking the floating reference when necessary. After going out of scope and the next time Go's garbage collector is run, a finalizer is run to remove Go's reference to the GObject. When this reference count hits zero (when neither Go nor GTK holds ownership) the object will be freed internally by GTK.

Index

Package Files

aboutdialog.go accel.go actionable.go actionbar_since_3_12.go app_chooser.go application.go application_since_3_12.go application_since_3_14.go application_window.go box_since_3_12.go button_box.go color_chooser.go combo_box.go fixed.go font_chooser.go gdk.go glarea.go glarea_since_3_22.go gtk.go gtk_export.go gtk_export_since_3_10.go gtk_since_3_10.go gtk_since_3_12.go gtk_since_3_14.go gtk_since_3_16.go gtk_since_3_20.go gtk_since_3_8.go icon_view.go info_bar.go label.go level_bar.go level_bar_since_3_8.go menu.go menu_shell.go menu_since_3_22.go print.go print_since_3_16.go settings.go shortcutswindow_since_3_22.go stack_since_3_12.go stackswitcher_since_3_10.go style.go text_child_anchor.go text_iter.go text_mark.go text_view.go tooltip.go tree_view.go tree_view_column.go version.go widget.go widget_export_since_3_8.go widget_since_3_12.go widget_since_3_14.go widget_since_3_20.go widget_since_3_8.go window.go window_since_3_10.go window_since_3_12.go

Constants

const (
    ICON_LOOKUP_NO_SVG           IconLookupFlags = C.GTK_ICON_LOOKUP_NO_SVG
    ICON_LOOKUP_FORCE_SVG                        = C.GTK_ICON_LOOKUP_FORCE_SVG
    ICON_LOOKUP_USE_BUILTIN                      = C.GTK_ICON_LOOKUP_USE_BUILTIN
    ICON_LOOKUP_GENERIC_FALLBACK                 = C.GTK_ICON_LOOKUP_GENERIC_FALLBACK
    ICON_LOOKUP_FORCE_SIZE                       = C.GTK_ICON_LOOKUP_FORCE_SIZE
)
const (
    SORT_COLUMN_DEFAULT  int = -1
    SORT_COLUMN_UNSORTED int = -2
)

Use as column id in SetSortColumnId to specify ListStore sorted by default column or unsorted

const (
    LEVEL_BAR_OFFSET_LOW  string = C.GTK_LEVEL_BAR_OFFSET_LOW
    LEVEL_BAR_OFFSET_HIGH string = C.GTK_LEVEL_BAR_OFFSET_HIGH
)
const (
    UNIT_PIXEL           int    = C.GTK_UNIT_PIXEL
    PAPER_NAME_A3        string = C.GTK_PAPER_NAME_A3
    PAPER_NAME_A4        string = C.GTK_PAPER_NAME_A4
    PAPER_NAME_A5        string = C.GTK_PAPER_NAME_A5
    PAPER_NAME_B5        string = C.GTK_PAPER_NAME_B5
    PAPER_NAME_LETTER    string = C.GTK_PAPER_NAME_LETTER
    PAPER_NAME_EXECUTIVE string = C.GTK_PAPER_NAME_EXECUTIVE
    PAPER_NAME_LEGAL     string = C.GTK_PAPER_NAME_LEGAL
)
const (
    PRINT_SETTINGS_PRINTER              string = C.GTK_PRINT_SETTINGS_PRINTER
    PRINT_SETTINGS_ORIENTATION          string = C.GTK_PRINT_SETTINGS_ORIENTATION
    PRINT_SETTINGS_PAPER_FORMAT         string = C.GTK_PRINT_SETTINGS_PAPER_FORMAT
    PRINT_SETTINGS_PAPER_WIDTH          string = C.GTK_PRINT_SETTINGS_PAPER_WIDTH
    PRINT_SETTINGS_PAPER_HEIGHT         string = C.GTK_PRINT_SETTINGS_PAPER_HEIGHT
    PRINT_SETTINGS_USE_COLOR            string = C.GTK_PRINT_SETTINGS_USE_COLOR
    PRINT_SETTINGS_COLLATE              string = C.GTK_PRINT_SETTINGS_COLLATE
    PRINT_SETTINGS_REVERSE              string = C.GTK_PRINT_SETTINGS_REVERSE
    PRINT_SETTINGS_DUPLEX               string = C.GTK_PRINT_SETTINGS_DUPLEX
    PRINT_SETTINGS_QUALITY              string = C.GTK_PRINT_SETTINGS_QUALITY
    PRINT_SETTINGS_N_COPIES             string = C.GTK_PRINT_SETTINGS_N_COPIES
    PRINT_SETTINGS_NUMBER_UP            string = C.GTK_PRINT_SETTINGS_NUMBER_UP
    PRINT_SETTINGS_NUMBER_UP_LAYOUT     string = C.GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT
    PRINT_SETTINGS_RESOLUTION           string = C.GTK_PRINT_SETTINGS_RESOLUTION
    PRINT_SETTINGS_RESOLUTION_X         string = C.GTK_PRINT_SETTINGS_RESOLUTION_X
    PRINT_SETTINGS_RESOLUTION_Y         string = C.GTK_PRINT_SETTINGS_RESOLUTION_Y
    PRINT_SETTINGS_PRINTER_LPI          string = C.GTK_PRINT_SETTINGS_PRINTER_LPI
    PRINT_SETTINGS_SCALE                string = C.GTK_PRINT_SETTINGS_SCALE
    PRINT_SETTINGS_PRINT_PAGES          string = C.GTK_PRINT_SETTINGS_PRINT_PAGES
    PRINT_SETTINGS_PAGE_RANGES          string = C.GTK_PRINT_SETTINGS_PAGE_RANGES
    PRINT_SETTINGS_PAGE_SET             string = C.GTK_PRINT_SETTINGS_PAGE_SET
    PRINT_SETTINGS_DEFAULT_SOURCE       string = C.GTK_PRINT_SETTINGS_DEFAULT_SOURCE
    PRINT_SETTINGS_MEDIA_TYPE           string = C.GTK_PRINT_SETTINGS_MEDIA_TYPE
    PRINT_SETTINGS_DITHER               string = C.GTK_PRINT_SETTINGS_DITHER
    PRINT_SETTINGS_FINISHINGS           string = C.GTK_PRINT_SETTINGS_FINISHINGS
    PRINT_SETTINGS_OUTPUT_BIN           string = C.GTK_PRINT_SETTINGS_OUTPUT_BIN
    PRINT_SETTINGS_OUTPUT_DIR           string = C.GTK_PRINT_SETTINGS_OUTPUT_DIR
    PRINT_SETTINGS_OUTPUT_BASENAME      string = C.GTK_PRINT_SETTINGS_OUTPUT_BASENAME
    PRINT_SETTINGS_OUTPUT_FILE_FORMAT   string = C.GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT
    PRINT_SETTINGS_OUTPUT_URI           string = C.GTK_PRINT_SETTINGS_OUTPUT_URI
    PRINT_SETTINGS_WIN32_DRIVER_EXTRA   string = C.GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA
    PRINT_SETTINGS_WIN32_DRIVER_VERSION string = C.GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION
)
const (
    STYLE_PROVIDER_PRIORITY_FALLBACK    StyleProviderPriority = C.GTK_STYLE_PROVIDER_PRIORITY_FALLBACK
    STYLE_PROVIDER_PRIORITY_THEME                             = C.GTK_STYLE_PROVIDER_PRIORITY_THEME
    STYLE_PROVIDER_PRIORITY_SETTINGS                          = C.GTK_STYLE_PROVIDER_PRIORITY_SETTINGS
    STYLE_PROVIDER_PRIORITY_APPLICATION                       = C.GTK_STYLE_PROVIDER_PRIORITY_APPLICATION
    STYLE_PROVIDER_PRIORITY_USER                              = C.GTK_STYLE_PROVIDER_PRIORITY_USER
)
const (
    TREE_VIEW_COLUMN_GROW_ONLY TreeViewColumnSizing = C.GTK_TREE_VIEW_COLUMN_GROW_ONLY
    TREE_VIEW_COLUMN_AUTOSIZE                       = C.GTK_TREE_VIEW_COLUMN_AUTOSIZE
    TREE_VIEW_COLUMN_FIXED                          = C.GTK_TREE_VIEW_COLUMN_FIXED
)

Variables

var WrapMap = map[string]WrapFn{
    "GtkAccelGroup":           wrapAccelGroup,
    "GtkAccelMao":             wrapAccelMap,
    "GtkAdjustment":           wrapAdjustment,
    "GtkApplicationWindow":    wrapApplicationWindow,
    "GtkAssistant":            wrapAssistant,
    "GtkBin":                  wrapBin,
    "GtkBox":                  wrapBox,
    "GtkButton":               wrapButton,
    "GtkCalendar":             wrapCalendar,
    "GtkCellLayout":           wrapCellLayout,
    "GtkCellRenderer":         wrapCellRenderer,
    "GtkCellRendererSpinner":  wrapCellRendererSpinner,
    "GtkCellRendererPixbuf":   wrapCellRendererPixbuf,
    "GtkCellRendererText":     wrapCellRendererText,
    "GtkCellRendererProgress": wrapCellRendererProgress,
    "GtkCellRendererToggle":   wrapCellRendererToggle,
    "GtkCheckButton":          wrapCheckButton,
    "GtkCheckMenuItem":        wrapCheckMenuItem,
    "GtkClipboard":            wrapClipboard,
    "GtkColorButton":          wrapColorButton,
    "GtkContainer":            wrapContainer,
    "GtkDialog":               wrapDialog,
    "GtkDrawingArea":          wrapDrawingArea,
    "GtkEditable":             wrapEditable,
    "GtkEntry":                wrapEntry,
    "GtkEntryBuffer":          wrapEntryBuffer,
    "GtkEntryCompletion":      wrapEntryCompletion,
    "GtkEventBox":             wrapEventBox,
    "GtkExpander":             wrapExpander,
    "GtkFrame":                wrapFrame,
    "GtkFileChooser":          wrapFileChooser,
    "GtkFileChooserButton":    wrapFileChooserButton,
    "GtkFileChooserDialog":    wrapFileChooserDialog,
    "GtkFileChooserWidget":    wrapFileChooserWidget,
    "GtkGrid":                 wrapGrid,
    "GtkIconView":             wrapIconView,
    "GtkImage":                wrapImage,
    "GtkLabel":                wrapLabel,
    "GtkLayout":               wrapLayout,
    "GtkLinkButton":           wrapLinkButton,
    "GtkListStore":            wrapListStore,
    "GtkMenu":                 wrapMenu,
    "GtkMenuBar":              wrapMenuBar,
    "GtkMenuButton":           wrapMenuButton,
    "GtkMenuItem":             wrapMenuItem,
    "GtkMenuShell":            wrapMenuShell,
    "GtkMessageDialog":        wrapMessageDialog,
    "GtkNotebook":             wrapNotebook,
    "GtkOffscreenWindow":      wrapOffscreenWindow,
    "GtkOrientable":           wrapOrientable,
    "GtkOverlay":              wrapOverlay,
    "GtkPaned":                wrapPaned,
    "GtkProgressBar":          wrapProgressBar,
    "GtkRadioButton":          wrapRadioButton,
    "GtkRadioMenuItem":        wrapRadioMenuItem,
    "GtkRange":                wrapRange,
    "GtkRecentChooser":        wrapRecentChooser,
    "GtkRecentChooserMenu":    wrapRecentChooserMenu,
    "GtkRecentFilter":         wrapRecentFilter,
    "GtkRecentManager":        wrapRecentManager,
    "GtkScaleButton":          wrapScaleButton,
    "GtkScale":                wrapScale,
    "GtkScrollable":           wrapScrollable,
    "GtkScrollbar":            wrapScrollbar,
    "GtkScrolledWindow":       wrapScrolledWindow,
    "GtkSearchEntry":          wrapSearchEntry,
    "GtkSeparator":            wrapSeparator,
    "GtkSeparatorMenuItem":    wrapSeparatorMenuItem,
    "GtkSeparatorToolItem":    wrapSeparatorToolItem,
    "GtkSpinButton":           wrapSpinButton,
    "GtkSpinner":              wrapSpinner,
    "GtkStatusbar":            wrapStatusbar,
    "GtkSwitch":               wrapSwitch,
    "GtkTextView":             wrapTextView,
    "GtkTextBuffer":           wrapTextBuffer,
    "GtkTextTag":              wrapTextTag,
    "GtkTextTagTable":         wrapTextTagTable,
    "GtkToggleButton":         wrapToggleButton,
    "GtkToolbar":              wrapToolbar,
    "GtkToolButton":           wrapToolButton,
    "GtkToggleToolButton":     wrapToggleToolButton,
    "GtkToolItem":             wrapToolItem,
    "GtkTreeModel":            wrapTreeModel,
    "GtkTreeModelFilter":      wrapTreeModelFilter,
    "GtkTreeSelection":        wrapTreeSelection,
    "GtkTreeStore":            wrapTreeStore,
    "GtkTreeView":             wrapTreeView,
    "GtkTreeViewColumn":       wrapTreeViewColumn,
    "GtkViewport":             wrapViewport,
    "GtkVolumeButton":         wrapVolumeButton,
    "GtkWidget":               wrapWidget,
    "GtkWindow":               wrapWindow,
}

func AccelGroupsActivate Uses

func AccelGroupsActivate(obj *glib.Object, key uint, mods gdk.ModifierType) bool

AccelGroupsActivate is a wrapper around gtk_accel_groups_activate().

func AccelGroupsFromObject Uses

func AccelGroupsFromObject(obj *glib.Object) *glib.SList

AccelGroupsFromObject is a wrapper around gtk_accel_groups_from_object().

func AccelMapAddEntry Uses

func AccelMapAddEntry(path string, key uint, mods gdk.ModifierType)

AccelMapAddEntry is a wrapper around gtk_accel_map_add_entry().

func AccelMapAddFilter Uses

func AccelMapAddFilter(filter string)

AccelMapAddFilter is a wrapper around gtk_accel_map_add_filter().

func AccelMapChangeEntry Uses

func AccelMapChangeEntry(path string, key uint, mods gdk.ModifierType, replace bool) bool

AccelMapChangeEntry is a wrapper around gtk_accel_map_change_entry().

func AccelMapLoad Uses

func AccelMapLoad(fileName string)

AccelMapLoad is a wrapper around gtk_accel_map_load().

func AccelMapLoadFD Uses

func AccelMapLoadFD(fd int)

AccelMapLoadFD is a wrapper around gtk_accel_map_load_fd().

func AccelMapLockPath Uses

func AccelMapLockPath(path string)

AccelMapLockPath is a wrapper around gtk_accel_map_lock_path().

func AccelMapSave Uses

func AccelMapSave(fileName string)

AccelMapSave is a wrapper around gtk_accel_map_save().

func AccelMapSaveFD Uses

func AccelMapSaveFD(fd int)

AccelMapSaveFD is a wrapper around gtk_accel_map_save_fd().

func AccelMapUnlockPath Uses

func AccelMapUnlockPath(path string)

AccelMapUnlockPath is a wrapper around gtk_accel_map_unlock_path().

func AcceleratorGetDefaultModMask Uses

func AcceleratorGetDefaultModMask() gdk.ModifierType

AcceleratorGetDefaultModMask is a wrapper around gtk_accelerator_get_default_mod_mask().

func AcceleratorGetLabel Uses

func AcceleratorGetLabel(key uint, mods gdk.ModifierType) string

AcceleratorGetLabel is a wrapper around gtk_accelerator_get_label().

func AcceleratorName Uses

func AcceleratorName(key uint, mods gdk.ModifierType) string

AcceleratorName is a wrapper around gtk_accelerator_name().

func AcceleratorParse Uses

func AcceleratorParse(acc string) (key uint, mods gdk.ModifierType)

AcceleratorParse is a wrapper around gtk_accelerator_parse().

func AcceleratorSetDefaultModMask Uses

func AcceleratorSetDefaultModMask(mods gdk.ModifierType)

AcceleratorSetDefaultModMask is a wrapper around gtk_accelerator_set_default_mod_mask().

func AcceleratorValid Uses

func AcceleratorValid(key uint, mods gdk.ModifierType) bool

AcceleratorValid is a wrapper around gtk_accelerator_valid().

func AddProviderForScreen Uses

func AddProviderForScreen(s *gdk.Screen, provider IStyleProvider, prio uint)

AddProviderForScreen is a wrapper around gtk_style_context_add_provider_for_screen().

func CheckVersion Uses

func CheckVersion(major, minor, micro uint) error

func DragSetIconPixbuf Uses

func DragSetIconPixbuf(context *gdk.DragContext, pixbuf *gdk.Pixbuf, hot_x int, hot_y int)

for "drag-begin" event

func EventsPending Uses

func EventsPending() bool

EventsPending is a wrapper around gtk_events_pending.

func GdkCairoSetSourcePixBuf Uses

func GdkCairoSetSourcePixBuf(cr *cairo.Context, pixbuf *gdk.Pixbuf, pixbufX, pixbufY float64)

GdkCairoSetSourcePixBuf() is a wrapper around gdk_cairo_set_source_pixbuf().

func GetData Uses

func GetData(pointer uintptr) (data []byte)

fixed GetData directly from ptr

func GetMajorVersion Uses

func GetMajorVersion() uint

func GetMicroVersion Uses

func GetMicroVersion() uint

func GetMinorVersion Uses

func GetMinorVersion() uint

func Init Uses

func Init(args *[]string)

Init() is a wrapper around gtk_init() and must be called before any other GTK calls and is used to initialize everything necessary.

In addition to setting up GTK for usage, a pointer to a slice of strings may be passed in to parse standard GTK command line arguments. args will be modified to remove any flags that were handled. Alternatively, nil may be passed in to not perform any command line parsing.

func InitCheck Uses

func InitCheck(args *[]string) error

InitCheck() is a wrapper around gtk_init_check() and works exactly like Init() only that it doesn't terminate the program if initialization fails.

func Main Uses

func Main()

Main() is a wrapper around gtk_main() and runs the GTK main loop, blocking until MainQuit() is called.

func MainIteration Uses

func MainIteration() bool

MainIteration is a wrapper around gtk_main_iteration.

func MainIterationDo Uses

func MainIterationDo(blocking bool) bool

MainIterationDo is a wrapper around gtk_main_iteration_do.

func MainQuit Uses

func MainQuit()

MainQuit() is a wrapper around gtk_main_quit() is used to terminate the GTK main loop (started by Main()).

func OpenFileChooserNative Uses

func OpenFileChooserNative(title string, parent_window IWindow) *string

* FileChooserNative

func PaperSizeGetDefaultRightMargin Uses

func PaperSizeGetDefaultRightMargin(unit Unit) string

PaperSizeGetDefault() is a wrapper around gtk_paper_size_get_default().

func PaperSizeGetPaperSizes Uses

func PaperSizeGetPaperSizes(includeCustom bool) *glib.List

PaperSizeGetPaperSizes() is a wrapper around gtk_paper_size_get_paper_sizes().

func PrintRunPageSetupDialogAsync Uses

func PrintRunPageSetupDialogAsync(parent IWindow, setup *PageSetup,
    settings *PrintSettings, cb PageSetupDoneCallback, data uintptr)

PrintRunPageSetupDialogAsync() is a wrapper around gtk_print_run_page_setup_dialog_async().

func RemoveProviderForScreen Uses

func RemoveProviderForScreen(s *gdk.Screen, provider IStyleProvider)

RemoveProviderForScreen is a wrapper around gtk_style_context_remove_provider_for_screen().

func SetData Uses

func SetData(pointer uintptr, atom gdk.Atom, data []byte)

for "drag-data-get"

func StyleContextResetWidgets Uses

func StyleContextResetWidgets(v *gdk.Screen)

StyleContextResetWidgets is a wrapper around gtk_style_context_reset_widgets().

func WidgetToLabel Uses

func WidgetToLabel(widget *Widget) (interface{}, error)

func WindowGetDefaultIconName Uses

func WindowGetDefaultIconName() (string, error)

WindowGetDefaultIconName is a wrapper around gtk_window_get_default_icon_name().

func WindowSetDefaultIcon Uses

func WindowSetDefaultIcon(icon *gdk.Pixbuf)

WindowSetDefaultIcon is a wrapper around gtk_window_set_default_icon().

func WindowSetDefaultIconFromFile Uses

func WindowSetDefaultIconFromFile(file string) error

WindowSetDefaultIconFromFile is a wrapper around gtk_window_set_default_icon_from_file().

func WindowSetDefaultIconName Uses

func WindowSetDefaultIconName(s string)

WindowSetDefaultIconName is a wrapper around gtk_window_set_default_icon_name().

type AboutDialog Uses

type AboutDialog struct {
    Dialog
}

AboutDialog is a representation of GTK's GtkAboutDialog.

func AboutDialogNew Uses

func AboutDialogNew() (*AboutDialog, error)

AboutDialogNew is a wrapper around gtk_about_dialog_new().

func (*AboutDialog) AddCreditSection Uses

func (v *AboutDialog) AddCreditSection(sectionName string, people []string)

AddCreditSection is a wrapper around gtk_about_dialog_add_credit_section().

func (*AboutDialog) GetArtists Uses

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

GetArtists is a wrapper around gtk_about_dialog_get_artists().

func (*AboutDialog) GetAuthors Uses

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

GetAuthors is a wrapper around gtk_about_dialog_get_authors().

func (*AboutDialog) GetComments Uses

func (v *AboutDialog) GetComments() string

GetComments is a wrapper around gtk_about_dialog_get_comments().

func (*AboutDialog) GetCopyright Uses

func (v *AboutDialog) GetCopyright() string

GetCopyright is a wrapper around gtk_about_dialog_get_copyright().

func (*AboutDialog) GetDocumenters Uses

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

GetDocumenters is a wrapper around gtk_about_dialog_get_documenters().

func (*AboutDialog) GetLicense Uses

func (v *AboutDialog) GetLicense() string

GetLicense is a wrapper around gtk_about_dialog_get_license().

func (*AboutDialog) GetLicenseType Uses

func (v *AboutDialog) GetLicenseType() License

GetLicenseType is a wrapper around gtk_about_dialog_get_license_type().

func (v *AboutDialog) GetLogo() (*gdk.Pixbuf, error)

GetLogo is a wrapper around gtk_about_dialog_get_logo().

func (*AboutDialog) GetLogoIconName Uses

func (v *AboutDialog) GetLogoIconName() string

GetLogoIconName is a wrapper around gtk_about_dialog_get_logo_icon_name().

func (*AboutDialog) GetProgramName Uses

func (v *AboutDialog) GetProgramName() string

GetProgramName is a wrapper around gtk_about_dialog_get_program_name().

func (*AboutDialog) GetTranslatorCredits Uses

func (v *AboutDialog) GetTranslatorCredits() string

GetTranslatorCredits is a wrapper around gtk_about_dialog_get_translator_credits().

func (*AboutDialog) GetVersion Uses

func (v *AboutDialog) GetVersion() string

GetVersion is a wrapper around gtk_about_dialog_get_version().

func (*AboutDialog) GetWebsite Uses

func (v *AboutDialog) GetWebsite() string

GetWebsite is a wrapper around gtk_about_dialog_get_website().

func (*AboutDialog) GetWebsiteLabel Uses

func (v *AboutDialog) GetWebsiteLabel() string

GetWebsiteLabel is a wrapper around gtk_about_dialog_get_website_label().

func (*AboutDialog) GetWrapLicense Uses

func (v *AboutDialog) GetWrapLicense() bool

GetWrapLicense is a wrapper around gtk_about_dialog_get_wrap_license().

func (*AboutDialog) SetArtists Uses

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

SetArtists is a wrapper around gtk_about_dialog_set_artists().

func (*AboutDialog) SetAuthors Uses

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

SetAuthors is a wrapper around gtk_about_dialog_set_authors().

func (*AboutDialog) SetComments Uses

func (v *AboutDialog) SetComments(comments string)

SetComments is a wrapper around gtk_about_dialog_set_comments().

func (*AboutDialog) SetCopyright Uses

func (v *AboutDialog) SetCopyright(copyright string)

SetCopyright is a wrapper around gtk_about_dialog_set_copyright().

func (*AboutDialog) SetDocumenters Uses

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

SetDocumenters is a wrapper around gtk_about_dialog_set_documenters().

func (*AboutDialog) SetLicense Uses

func (v *AboutDialog) SetLicense(license string)

SetLicense is a wrapper around gtk_about_dialog_set_license().

func (*AboutDialog) SetLicenseType Uses

func (v *AboutDialog) SetLicenseType(license License)

SetLicenseType is a wrapper around gtk_about_dialog_set_license_type().

func (v *AboutDialog) SetLogo(logo *gdk.Pixbuf)

SetLogo is a wrapper around gtk_about_dialog_set_logo().

func (*AboutDialog) SetLogoIconName Uses

func (v *AboutDialog) SetLogoIconName(name string)

SetLogoIconName is a wrapper around gtk_about_dialog_set_logo_icon_name().

func (*AboutDialog) SetProgramName Uses

func (v *AboutDialog) SetProgramName(name string)

SetProgramName is a wrapper around gtk_about_dialog_set_program_name().

func (*AboutDialog) SetTranslatorCredits Uses

func (v *AboutDialog) SetTranslatorCredits(translatorCredits string)

SetTranslatorCredits is a wrapper around gtk_about_dialog_set_translator_credits().

func (*AboutDialog) SetVersion Uses

func (v *AboutDialog) SetVersion(version string)

SetVersion is a wrapper around gtk_about_dialog_set_version().

func (*AboutDialog) SetWebsite Uses

func (v *AboutDialog) SetWebsite(website string)

SetWebsite is a wrapper around gtk_about_dialog_set_website().

func (*AboutDialog) SetWebsiteLabel Uses

func (v *AboutDialog) SetWebsiteLabel(websiteLabel string)

SetWebsiteLabel is a wrapper around gtk_about_dialog_set_website_label().

func (*AboutDialog) SetWrapLicense Uses

func (v *AboutDialog) SetWrapLicense(wrapLicense bool)

SetWrapLicense is a wrapper around gtk_about_dialog_set_wrap_license().

type AccelFlags Uses

type AccelFlags int

AccelFlags is a representation of GTK's GtkAccelFlags

const (
    ACCEL_VISIBLE AccelFlags = C.GTK_ACCEL_VISIBLE
    ACCEL_LOCKED  AccelFlags = C.GTK_ACCEL_LOCKED
    ACCEL_MASK    AccelFlags = C.GTK_ACCEL_MASK
)

type AccelGroup Uses

type AccelGroup struct {
    *glib.Object
}

AccelGroup is a representation of GTK's GtkAccelGroup.

func AccelGroupFromClosure Uses

func AccelGroupFromClosure(f interface{}) *AccelGroup

AccelGroupFromClosure is a wrapper around gtk_accel_group_from_accel_closure().

func AccelGroupNew Uses

func AccelGroupNew() (*AccelGroup, error)

AccelGroup is a wrapper around gtk_accel_group_new().

func (*AccelGroup) Activate Uses

func (v *AccelGroup) Activate(quark glib.Quark, acceleratable *glib.Object, key uint, mods gdk.ModifierType) bool

Activate is a wrapper around gtk_accel_group_activate().

func (*AccelGroup) Connect Uses

func (v *AccelGroup) Connect(key uint, mods gdk.ModifierType, flags AccelFlags, f interface{})

Connect is a wrapper around gtk_accel_group_connect().

func (*AccelGroup) ConnectByPath Uses

func (v *AccelGroup) ConnectByPath(path string, f interface{})

ConnectByPath is a wrapper around gtk_accel_group_connect_by_path().

func (*AccelGroup) Disconnect Uses

func (v *AccelGroup) Disconnect(f interface{})

Disconnect is a wrapper around gtk_accel_group_disconnect().

func (*AccelGroup) DisconnectKey Uses

func (v *AccelGroup) DisconnectKey(key uint, mods gdk.ModifierType)

DisconnectKey is a wrapper around gtk_accel_group_disconnect_key().

func (*AccelGroup) GetModifierMask Uses

func (v *AccelGroup) GetModifierMask() gdk.ModifierType

GetModifierMask is a wrapper around gtk_accel_group_get_modifier_mask().

func (*AccelGroup) IsLocked Uses

func (v *AccelGroup) IsLocked() bool

IsLocked is a wrapper around gtk_accel_group_get_is_locked().

func (*AccelGroup) Lock Uses

func (v *AccelGroup) Lock()

Lock is a wrapper around gtk_accel_group_lock().

func (*AccelGroup) Unlock Uses

func (v *AccelGroup) Unlock()

Unlock is a wrapper around gtk_accel_group_unlock().

type AccelKey Uses

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

func AccelMapLookupEntry Uses

func AccelMapLookupEntry(path string) *AccelKey

AccelMapLookupEntry is a wrapper around gtk_accel_map_lookup_entry().

type AccelMap Uses

type AccelMap struct {
    *glib.Object
}

AccelMap is a representation of GTK's GtkAccelMap.

func AccelMapGet Uses

func AccelMapGet() *AccelMap

AccelMapGet is a wrapper around gtk_accel_map_get().

type ActionBar Uses

type ActionBar struct {
    Bin
}

GtkActionBar

func ActionBarNew Uses

func ActionBarNew() (*ActionBar, error)

gtk_action_bar_new()

func (*ActionBar) GetCenterWidget Uses

func (a *ActionBar) GetCenterWidget() *Widget

gtk_action_bar_get_center_widget(GtkActionBar *action_bar)

func (*ActionBar) PackEnd Uses

func (a *ActionBar) PackEnd(child IWidget)

gtk_action_bar_pack_end(GtkActionBar *action_bar,GtkWidget *child)

func (*ActionBar) PackStart Uses

func (a *ActionBar) PackStart(child IWidget)

gtk_action_bar_pack_start(GtkActionBar *action_bar,GtkWidget *child)

func (*ActionBar) SetCenterWidget Uses

func (a *ActionBar) SetCenterWidget(child IWidget)

gtk_action_bar_set_center_widget(GtkActionBar *action_bar,GtkWidget *center_widget)

type Actionable Uses

type Actionable struct {
    *glib.Object
}

Actionable is a representation of the GtkActionable GInterface. Do not embed this concrete type in implementing structs but rather use IActionable (see Button wrapper for an example)

func (*Actionable) GetActionName Uses

func (v *Actionable) GetActionName() (string, error)

GetActionName is a wrapper around gtk_actionable_set_action_name(). Since 3.4

func (*Actionable) SetActionName Uses

func (v *Actionable) SetActionName(action_name string)

SetActionName is a wrapper around gtk_actionable_set_action_name(). Since 3.4

func (*Actionable) SetDetailedActionName Uses

func (v *Actionable) SetDetailedActionName(detailed_action_name string)

SetDetailedActionName is a wrapper around gtk_actionable_set_detailed_action_name(). Since 3.4

type Adjustment Uses

type Adjustment struct {
    glib.InitiallyUnowned
}

Adjustment is a representation of GTK's GtkAdjustment.

func AdjustmentNew Uses

func AdjustmentNew(value, lower, upper, stepIncrement, pageIncrement, pageSize float64) (*Adjustment, error)

AdjustmentNew is a wrapper around gtk_adjustment_new().

func (*Adjustment) Configure Uses

func (v *Adjustment) Configure(value, lower, upper, stepIncrement, pageIncrement, pageSize float64)

Configure is a wrapper around gtk_adjustment_configure().

func (*Adjustment) GetLower Uses

func (v *Adjustment) GetLower() float64

GetLower is a wrapper around gtk_adjustment_get_lower().

func (*Adjustment) GetMinimumIncrement Uses

func (v *Adjustment) GetMinimumIncrement() float64

GetMinimumIncrement is a wrapper around gtk_adjustment_get_minimum_increment().

func (*Adjustment) GetPageIncrement Uses

func (v *Adjustment) GetPageIncrement() float64

GetPageIncrement is a wrapper around gtk_adjustment_get_page_increment().

func (*Adjustment) GetPageSize Uses

func (v *Adjustment) GetPageSize() float64

GetPageSize is a wrapper around gtk_adjustment_get_page_size().

func (*Adjustment) GetStepIncrement Uses

func (v *Adjustment) GetStepIncrement() float64

GetStepIncrement is a wrapper around gtk_adjustment_get_step_increment().

func (*Adjustment) GetUpper Uses

func (v *Adjustment) GetUpper() float64

GetUpper is a wrapper around gtk_adjustment_get_upper().

func (*Adjustment) GetValue Uses

func (v *Adjustment) GetValue() float64

GetValue is a wrapper around gtk_adjustment_get_value().

func (*Adjustment) SetLower Uses

func (v *Adjustment) SetLower(value float64)

SetLower is a wrapper around gtk_adjustment_set_lower().

func (*Adjustment) SetPageIncrement Uses

func (v *Adjustment) SetPageIncrement(value float64)

SetPageIncrement is a wrapper around gtk_adjustment_set_page_increment().

func (*Adjustment) SetPageSize Uses

func (v *Adjustment) SetPageSize(value float64)

SetPageSize is a wrapper around gtk_adjustment_set_page_size().

func (*Adjustment) SetStepIncrement Uses

func (v *Adjustment) SetStepIncrement(value float64)

SetStepIncrement is a wrapper around gtk_adjustment_set_step_increment().

func (*Adjustment) SetUpper Uses

func (v *Adjustment) SetUpper(value float64)

SetUpper is a wrapper around gtk_adjustment_set_upper().

func (*Adjustment) SetValue Uses

func (v *Adjustment) SetValue(value float64)

SetValue is a wrapper around gtk_adjustment_set_value().

type Align Uses

type Align int

Align is a representation of GTK's GtkAlign.

const (
    ALIGN_FILL   Align = C.GTK_ALIGN_FILL
    ALIGN_START  Align = C.GTK_ALIGN_START
    ALIGN_END    Align = C.GTK_ALIGN_END
    ALIGN_CENTER Align = C.GTK_ALIGN_CENTER
)
const (
    ALIGN_BASELINE Align = C.GTK_ALIGN_BASELINE
)

type Allocation Uses

type Allocation struct {
    gdk.Rectangle
}

Allocation is a representation of GTK's GtkAllocation type.

type AppChooser Uses

type AppChooser struct {
    *glib.Object
}

AppChooser is a representation of GTK's GtkAppChooser GInterface.

func (*AppChooser) GetContentType Uses

func (v *AppChooser) GetContentType() string

GetContentType is a wrapper around gtk_app_chooser_get_content_type().

func (*AppChooser) Refresh Uses

func (v *AppChooser) Refresh()

Refresh is a wrapper around gtk_app_chooser_refresh().

type AppChooserButton Uses

type AppChooserButton struct {
    ComboBox

    // Interfaces
    AppChooser
}

AppChooserButton is a representation of GTK's GtkAppChooserButton.

func AppChooserButtonNew Uses

func AppChooserButtonNew(content_type string) (*AppChooserButton, error)

AppChooserButtonNew() is a wrapper around gtk_app_chooser_button_new().

func (*AppChooserButton) AppendSeparator Uses

func (v *AppChooserButton) AppendSeparator()

AppendSeparator() is a wrapper around gtk_app_chooser_button_append_separator().

func (*AppChooserButton) GetHeading Uses

func (v *AppChooserButton) GetHeading() (string, error)

GetHeading() is a wrapper around gtk_app_chooser_button_get_heading(). In case when gtk_app_chooser_button_get_heading() returns a nil string, GetHeading() returns a non-nil error.

func (*AppChooserButton) GetShowDefaultItem Uses

func (v *AppChooserButton) GetShowDefaultItem() bool

GetShowDefaultItem() is a wrapper around gtk_app_chooser_button_get_show_default_item().

func (*AppChooserButton) GetShowDialogItem Uses

func (v *AppChooserButton) GetShowDialogItem() bool

GetShowDialogItem() is a wrapper around gtk_app_chooser_button_get_show_dialog_item().

func (*AppChooserButton) SetActiveCustomItem Uses

func (v *AppChooserButton) SetActiveCustomItem(name string)

SetActiveCustomItem() is a wrapper around gtk_app_chooser_button_set_active_custom_item().

func (*AppChooserButton) SetHeading Uses

func (v *AppChooserButton) SetHeading(heading string)

SetHeading() is a wrapper around gtk_app_chooser_button_set_heading().

func (*AppChooserButton) SetShowDefaultItem Uses

func (v *AppChooserButton) SetShowDefaultItem(setting bool)

SetShowDefaultItem() is a wrapper around gtk_app_chooser_button_set_show_default_item().

func (*AppChooserButton) SetShowDialogItem Uses

func (v *AppChooserButton) SetShowDialogItem(setting bool)

SetShowDialogItem() is a wrapper around gtk_app_chooser_button_set_show_dialog_item().

type AppChooserDialog Uses

type AppChooserDialog struct {
    Dialog

    // Interfaces
    AppChooser
}

AppChooserDialog is a representation of GTK's GtkAppChooserDialog.

func AppChooserDialogNewForContentType Uses

func AppChooserDialogNewForContentType(parent IWindow, flags DialogFlags, content_type string) (*AppChooserDialog, error)

AppChooserDialogNewForContentType() is a wrapper around gtk_app_chooser_dialog_new_for_content_type().

func (*AppChooserDialog) GetHeading Uses

func (v *AppChooserDialog) GetHeading() (string, error)

GetHeading() is a wrapper around gtk_app_chooser_dialog_get_heading(). In case when gtk_app_chooser_dialog_get_heading() returns a nil string, GetHeading() returns a non-nil error.

func (*AppChooserDialog) GetWidget Uses

func (v *AppChooserDialog) GetWidget() *AppChooserWidget

GetWidget() is a wrapper around gtk_app_chooser_dialog_get_widget().

func (*AppChooserDialog) SetHeading Uses

func (v *AppChooserDialog) SetHeading(heading string)

SetHeading() is a wrapper around gtk_app_chooser_dialog_set_heading().

type AppChooserWidget Uses

type AppChooserWidget struct {
    Box

    // Interfaces
    AppChooser
}

AppChooserWidget is a representation of GTK's GtkAppChooserWidget.

func AppChooserWidgetNew Uses

func AppChooserWidgetNew(content_type string) (*AppChooserWidget, error)

AppChooserWidgetNew() is a wrapper around gtk_app_chooser_widget_new().

func (*AppChooserWidget) GetDefaultText Uses

func (v *AppChooserWidget) GetDefaultText() (string, error)

GetDefaultText() is a wrapper around gtk_app_chooser_widget_get_default_text(). In case when gtk_app_chooser_widget_get_default_text() returns a nil string, GetDefaultText() returns a non-nil error.

func (*AppChooserWidget) GetShowAll Uses

func (v *AppChooserWidget) GetShowAll() bool

GetShowAll() is a wrapper around gtk_app_chooser_widget_get_show_all().

func (*AppChooserWidget) GetShowDefault Uses

func (v *AppChooserWidget) GetShowDefault() bool

GetShowDefault() is a wrapper around gtk_app_chooser_widget_get_show_default().

func (*AppChooserWidget) GetShowFallback Uses

func (v *AppChooserWidget) GetShowFallback() bool

GetShowFallback() is a wrapper around gtk_app_chooser_widget_get_show_fallback().

func (*AppChooserWidget) GetShowOther Uses

func (v *AppChooserWidget) GetShowOther() bool

GetShowOther() is a wrapper around gtk_app_chooser_widget_get_show_other().

func (*AppChooserWidget) GetShowRecommended Uses

func (v *AppChooserWidget) GetShowRecommended() bool

GetShowRecommended() is a wrapper around gtk_app_chooser_widget_get_show_recommended().

func (*AppChooserWidget) SetDefaultText Uses

func (v *AppChooserWidget) SetDefaultText(text string)

SetDefaultText() is a wrapper around gtk_app_chooser_widget_set_default_text().

func (*AppChooserWidget) SetShowAll Uses

func (v *AppChooserWidget) SetShowAll(setting bool)

SetShowAll() is a wrapper around gtk_app_chooser_widget_set_show_all().

func (*AppChooserWidget) SetShowDefault Uses

func (v *AppChooserWidget) SetShowDefault(setting bool)

SetShowDefault() is a wrapper around gtk_app_chooser_widget_set_show_default().

func (*AppChooserWidget) SetShowFallback Uses

func (v *AppChooserWidget) SetShowFallback(setting bool)

SetShowFallback() is a wrapper around gtk_app_chooser_widget_set_show_fallback().

func (*AppChooserWidget) SetShowOther Uses

func (v *AppChooserWidget) SetShowOther(setting bool)

SetShowOther() is a wrapper around gtk_app_chooser_widget_set_show_other().

func (*AppChooserWidget) SetShowRecommended Uses

func (v *AppChooserWidget) SetShowRecommended(setting bool)

SetShowRecommended() is a wrapper around gtk_app_chooser_widget_set_show_recommended().

type Application Uses

type Application struct {
    glib.Application
}

Application is a representation of GTK's GtkApplication.

func ApplicationNew Uses

func ApplicationNew(appId string, flags glib.ApplicationFlags) (*Application, error)

ApplicationNew is a wrapper around gtk_application_new().

func (*Application) AddWindow Uses

func (v *Application) AddWindow(w IWindow)

AddWindow is a wrapper around gtk_application_add_window().

func (*Application) GetAccelsForAction Uses

func (v *Application) GetAccelsForAction(act string) []string

GetAccelsForAction is a wrapper around gtk_application_get_accels_for_action().

func (*Application) GetActionsForAccel Uses

func (v *Application) GetActionsForAccel(acc string) []string

GetActionsForAccel is a wrapper around gtk_application_get_actions_for_accel().

func (*Application) GetActiveWindow Uses

func (v *Application) GetActiveWindow() *Window

GetActiveWindow is a wrapper around gtk_application_get_active_window().

func (*Application) GetAppMenu Uses

func (v *Application) GetAppMenu() *glib.MenuModel

GetAppMenu is a wrapper around gtk_application_get_app_menu().

func (*Application) GetMenuByID Uses

func (v *Application) GetMenuByID(id string) *glib.Menu

GetMenuByID is a wrapper around gtk_application_get_menu_by_id().

func (*Application) GetMenubar Uses

func (v *Application) GetMenubar() *glib.MenuModel

GetMenubar is a wrapper around gtk_application_get_menubar().

func (*Application) GetWindowByID Uses

func (v *Application) GetWindowByID(id uint) *Window

GetWindowByID is a wrapper around gtk_application_get_window_by_id().

func (*Application) GetWindows Uses

func (v *Application) GetWindows() *glib.List

GetWindows is a wrapper around gtk_application_get_windows(). Returned list is wrapped to return *gtk.Window elements.

func (*Application) Inhibited Uses

func (v *Application) Inhibited(w IWindow, flags ApplicationInhibitFlags, reason string) uint

Inhibited is a wrapper around gtk_application_inhibit().

func (*Application) IsInhibited Uses

func (v *Application) IsInhibited(flags ApplicationInhibitFlags) bool

IsInhibited is a wrapper around gtk_application_is_inhibited().

func (*Application) ListActionDescriptions Uses

func (v *Application) ListActionDescriptions() []string

ListActionDescriptions is a wrapper around gtk_application_list_action_descriptions().

func (*Application) PrefersAppMenu Uses

func (v *Application) PrefersAppMenu() bool

PrefersAppMenu is a wrapper around gtk_application_prefers_app_menu().

func (*Application) RemoveWindow Uses

func (v *Application) RemoveWindow(w IWindow)

RemoveWindow is a wrapper around gtk_application_remove_window().

func (*Application) SetAccelsForAction Uses

func (v *Application) SetAccelsForAction(act string, accels []string)

SetAccelsForAction is a wrapper around gtk_application_set_accels_for_action().

func (*Application) SetAppMenu Uses

func (v *Application) SetAppMenu(m *glib.MenuModel)

SetAppMenu is a wrapper around gtk_application_set_app_menu().

func (*Application) SetMenubar Uses

func (v *Application) SetMenubar(m *glib.MenuModel)

SetMenubar is a wrapper around gtk_application_set_menubar().

func (*Application) Uninhibit Uses

func (v *Application) Uninhibit(cookie uint)

Uninhibit is a wrapper around gtk_application_uninhibit().

type ApplicationInhibitFlags Uses

type ApplicationInhibitFlags int

ApplicationInhibitFlags is a representation of GTK's GtkApplicationInhibitFlags.

const (
    APPLICATION_INHIBIT_LOGOUT  ApplicationInhibitFlags = C.GTK_APPLICATION_INHIBIT_LOGOUT
    APPLICATION_INHIBIT_SWITCH  ApplicationInhibitFlags = C.GTK_APPLICATION_INHIBIT_SWITCH
    APPLICATION_INHIBIT_SUSPEND ApplicationInhibitFlags = C.GTK_APPLICATION_INHIBIT_SUSPEND
    APPLICATION_INHIBIT_IDLE    ApplicationInhibitFlags = C.GTK_APPLICATION_INHIBIT_IDLE
)

type ApplicationWindow Uses

type ApplicationWindow struct {
    Window

    // Interfaces
    glib.IActionMap
    glib.IActionGroup
}

ApplicationWindow is a representation of GTK's GtkApplicationWindow.

func ApplicationWindowNew Uses

func ApplicationWindowNew(app *Application) (*ApplicationWindow, error)

ApplicationWindowNew is a wrapper around gtk_application_window_new().

func (*ApplicationWindow) GetID Uses

func (v *ApplicationWindow) GetID() uint

GetID is a wrapper around gtk_application_window_get_id().

func (*ApplicationWindow) GetShowMenubar Uses

func (v *ApplicationWindow) GetShowMenubar() bool

GetShowMenubar is a wrapper around gtk_application_window_get_show_menubar().

func (*ApplicationWindow) SetShowMenubar Uses

func (v *ApplicationWindow) SetShowMenubar(b bool)

SetShowMenubar is a wrapper around gtk_application_window_set_show_menubar().

type ArrowPlacement Uses

type ArrowPlacement int

ArrowPlacement is a representation of GTK's GtkArrowPlacement.

const (
    ARROWS_BOTH  ArrowPlacement = C.GTK_ARROWS_BOTH
    ARROWS_START ArrowPlacement = C.GTK_ARROWS_START
    ARROWS_END   ArrowPlacement = C.GTK_ARROWS_END
)

type ArrowType Uses

type ArrowType int

ArrowType is a representation of GTK's GtkArrowType.

const (
    ARROW_UP    ArrowType = C.GTK_ARROW_UP
    ARROW_DOWN  ArrowType = C.GTK_ARROW_DOWN
    ARROW_LEFT  ArrowType = C.GTK_ARROW_LEFT
    ARROW_RIGHT ArrowType = C.GTK_ARROW_RIGHT
    ARROW_NONE  ArrowType = C.GTK_ARROW_NONE
)

type AspectFrame Uses

type AspectFrame struct {
    Frame
}

AspectFrame is a representation of GTK's GtkAspectFrame.

func AspectFrameNew Uses

func AspectFrameNew(label string, xalign, yalign, ratio float32, obeyChild bool) (*AspectFrame, error)

type Assistant Uses

type Assistant struct {
    Window
}

Assistant is a representation of GTK's GtkAssistant.

func AssistantNew Uses

func AssistantNew() (*Assistant, error)

AssistantNew is a wrapper around gtk_assistant_new().

func (*Assistant) AddActionWidget Uses

func (v *Assistant) AddActionWidget(child IWidget)

AddActionWidget is a wrapper around gtk_assistant_add_action_widget().

func (*Assistant) AppendPage Uses

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

AppendPage is a wrapper around gtk_assistant_append_page().

func (*Assistant) Commit Uses

func (v *Assistant) Commit()

Commit is a wrapper around gtk_assistant_commit().

func (*Assistant) GetCurrentPage Uses

func (v *Assistant) GetCurrentPage() int

GetCurrentPage is a wrapper around gtk_assistant_get_current_page().

func (*Assistant) GetNPages Uses

func (v *Assistant) GetNPages() int

GetNPages is a wrapper around gtk_assistant_get_n_pages().

func (*Assistant) GetNthPage Uses

func (v *Assistant) GetNthPage(pageNum int) (*Widget, error)

GetNthPage is a wrapper around gtk_assistant_get_nth_page().

func (*Assistant) GetPageComplete Uses

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

GetPageComplete is a wrapper around gtk_assistant_get_page_complete().

func (*Assistant) GetPageTitle Uses

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

GetPageTitle is a wrapper around gtk_assistant_get_page_title().

func (*Assistant) GetPageType Uses

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

GetPageType is a wrapper around gtk_assistant_get_page_type().

func (*Assistant) InsertPage Uses

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

InsertPage is a wrapper around gtk_assistant_insert_page().

func (*Assistant) NextPage Uses

func (v *Assistant) NextPage()

NextPage is a wrapper around gtk_assistant_next_page().

func (*Assistant) PrependPage Uses

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

PrependPage is a wrapper around gtk_assistant_prepend_page().

func (*Assistant) PreviousPage Uses

func (v *Assistant) PreviousPage()

PreviousPage is a wrapper around gtk_assistant_previous_page().

func (*Assistant) RemoveActionWidget Uses

func (v *Assistant) RemoveActionWidget(child IWidget)

RemoveActionWidget is a wrapper around gtk_assistant_remove_action_widget().

func (*Assistant) RemovePage Uses

func (v *Assistant) RemovePage(pageNum int)

RemovePage is a wrapper around gtk_assistant_remove_page().

func (*Assistant) SetCurrentPage Uses

func (v *Assistant) SetCurrentPage(pageNum int)

SetCurrentPage is a wrapper around gtk_assistant_set_current_page().

func (*Assistant) SetPageComplete Uses

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

SetPageComplete is a wrapper around gtk_assistant_set_page_complete().

func (*Assistant) SetPageTitle Uses

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

SetPageTitle is a wrapper around gtk_assistant_set_page_title().

func (*Assistant) SetPageType Uses

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

SetPageType is a wrapper around gtk_assistant_set_page_type().

func (*Assistant) UpdateButtonsState Uses

func (v *Assistant) UpdateButtonsState()

UpdateButtonsState is a wrapper around gtk_assistant_update_buttons_state().

type AssistantPageType Uses

type AssistantPageType int

AssistantPageType is a representation of GTK's GtkAssistantPageType.

const (
    ASSISTANT_PAGE_CONTENT  AssistantPageType = C.GTK_ASSISTANT_PAGE_CONTENT
    ASSISTANT_PAGE_INTRO    AssistantPageType = C.GTK_ASSISTANT_PAGE_INTRO
    ASSISTANT_PAGE_CONFIRM  AssistantPageType = C.GTK_ASSISTANT_PAGE_CONFIRM
    ASSISTANT_PAGE_SUMMARY  AssistantPageType = C.GTK_ASSISTANT_PAGE_SUMMARY
    ASSISTANT_PAGE_PROGRESS AssistantPageType = C.GTK_ASSISTANT_PAGE_PROGRESS
    ASSISTANT_PAGE_CUSTOM   AssistantPageType = C.GTK_ASSISTANT_PAGE_CUSTOM
)

type Bin Uses

type Bin struct {
    Container
}

Bin is a representation of GTK's GtkBin.

func (*Bin) GetChild Uses

func (v *Bin) GetChild() (*Widget, error)

GetChild is a wrapper around gtk_bin_get_child().

type Box Uses

type Box struct {
    Container
}

Box is a representation of GTK's GtkBox.

func BoxNew Uses

func BoxNew(orientation Orientation, spacing int) (*Box, error)

BoxNew() is a wrapper around gtk_box_new().

func (*Box) GetCenterWidget Uses

func (a *Box) GetCenterWidget() *Widget

gtk_box_bar_get_center_widget(GtkBox *box)

func (*Box) GetHomogeneous Uses

func (v *Box) GetHomogeneous() bool

GetHomogeneous() is a wrapper around gtk_box_get_homogeneous().

func (*Box) GetOrientation Uses

func (v *Box) GetOrientation() Orientation

GetOrientation() is a wrapper around C.gtk_orientable_get_orientation() for a GtkBox

func (*Box) GetSpacing Uses

func (v *Box) GetSpacing() int

GetSpacing() is a wrapper around gtk_box_get_spacing().

func (*Box) PackEnd Uses

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

PackEnd() is a wrapper around gtk_box_pack_end().

func (*Box) PackStart Uses

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

PackStart() is a wrapper around gtk_box_pack_start().

func (*Box) QueryChildPacking Uses

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

QueryChildPacking() is a wrapper around gtk_box_query_child_packing().

func (*Box) ReorderChild Uses

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

ReorderChild() is a wrapper around gtk_box_reorder_child().

func (*Box) SetCenterWidget Uses

func (a *Box) SetCenterWidget(child IWidget)

gtk_box_bar_set_center_widget(GtkBox *box,GtkWidget *center_widget)

func (*Box) SetChildPacking Uses

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

SetChildPacking() is a wrapper around gtk_box_set_child_packing().

func (*Box) SetHomogeneous Uses

func (v *Box) SetHomogeneous(homogeneous bool)

SetHomogeneous() is a wrapper around gtk_box_set_homogeneous().

func (*Box) SetOrientation Uses

func (v *Box) SetOrientation(o Orientation)

SetOrientation() is a wrapper around C.gtk_orientable_set_orientation() for a GtkBox

func (*Box) SetSpacing Uses

func (v *Box) SetSpacing(spacing int)

SetSpacing() is a wrapper around gtk_box_set_spacing()

type Builder Uses

type Builder struct {
    *glib.Object
}

Builder is a representation of GTK's GtkBuilder.

func BuilderNew Uses

func BuilderNew() (*Builder, error)

BuilderNew is a wrapper around gtk_builder_new().

func BuilderNewFromFile Uses

func BuilderNewFromFile(filePath string) (*Builder, error)

BuilderNewFromFile is a wrapper around gtk_builder_new_from_file().

func BuilderNewFromResource Uses

func BuilderNewFromResource(resourcePath string) (*Builder, error)

BuilderNewFromResource is a wrapper around gtk_builder_new_from_resource().

func (*Builder) AddFromFile Uses

func (b *Builder) AddFromFile(filename string) error

AddFromFile is a wrapper around gtk_builder_add_from_file().

func (*Builder) AddFromResource Uses

func (b *Builder) AddFromResource(path string) error

AddFromResource is a wrapper around gtk_builder_add_from_resource().

func (*Builder) AddFromString Uses

func (b *Builder) AddFromString(str string) error

AddFromString is a wrapper around gtk_builder_add_from_string().

func (*Builder) ConnectSignals Uses

func (b *Builder) ConnectSignals(signals map[string]interface{})

ConnectSignals is a wrapper around gtk_builder_connect_signals_full().

func (*Builder) GetObject Uses

func (b *Builder) GetObject(name string) (glib.IObject, error)

GetObject is a wrapper around gtk_builder_get_object(). The returned result is an IObject, so it will need to be type-asserted to the appropriate type before being used. For example, to get an object and type assert it as a window:

obj, err := builder.GetObject("window")
if err != nil {
    // object not found
    return
}
if w, ok := obj.(*gtk.Window); ok {
    // do stuff with w here
} else {
    // not a *gtk.Window
}

type Button Uses

type Button struct {
    Bin

    // Interfaces
    IActionable
}

Button is a representation of GTK's GtkButton.

func ButtonNew Uses

func ButtonNew() (*Button, error)

ButtonNew() is a wrapper around gtk_button_new().

func ButtonNewFromIconName Uses

func ButtonNewFromIconName(iconName string, size IconSize) (*Button, error)

ButtonNewFromIconName is a wrapper around gtk_button_new_from_icon_name().

func ButtonNewWithLabel Uses

func ButtonNewWithLabel(label string) (*Button, error)

ButtonNewWithLabel() is a wrapper around gtk_button_new_with_label().

func ButtonNewWithMnemonic Uses

func ButtonNewWithMnemonic(label string) (*Button, error)

ButtonNewWithMnemonic() is a wrapper around gtk_button_new_with_mnemonic().

func (*Button) Clicked Uses

func (v *Button) Clicked()

Clicked() is a wrapper around gtk_button_clicked().

func (*Button) GetAlwaysShowImage Uses

func (v *Button) GetAlwaysShowImage() bool

GetAlwaysShowImage() is a wrapper around gtk_button_get_always_show_image().

func (*Button) GetEventWindow Uses

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

GetEventWindow() is a wrapper around gtk_button_get_event_window().

func (*Button) GetImage Uses

func (v *Button) GetImage() (*Widget, error)

GetImage() is a wrapper around gtk_button_get_image().

func (*Button) GetImagePosition Uses

func (v *Button) GetImagePosition() PositionType

GetImagePosition() is a wrapper around gtk_button_get_image_position().

func (*Button) GetLabel Uses

func (v *Button) GetLabel() (string, error)

GetLabel() is a wrapper around gtk_button_get_label().

func (*Button) GetRelief Uses

func (v *Button) GetRelief() ReliefStyle

GetRelief() is a wrapper around gtk_button_get_relief().

func (*Button) GetUseUnderline Uses

func (v *Button) GetUseUnderline() bool

GetUseUnderline() is a wrapper around gtk_button_get_use_underline().

func (*Button) SetAlwaysShowImage Uses

func (v *Button) SetAlwaysShowImage(alwaysShow bool)

SetAlwaysShowImage() is a wrapper around gtk_button_set_always_show_image().

func (*Button) SetImage Uses

func (v *Button) SetImage(image IWidget)

SetImage() is a wrapper around gtk_button_set_image().

func (*Button) SetImagePosition Uses

func (v *Button) SetImagePosition(position PositionType)

SetImagePosition() is a wrapper around gtk_button_set_image_position().

func (*Button) SetLabel Uses

func (v *Button) SetLabel(label string)

SetLabel() is a wrapper around gtk_button_set_label().

func (*Button) SetRelief Uses

func (v *Button) SetRelief(newStyle ReliefStyle)

SetRelief() is a wrapper around gtk_button_set_relief().

func (*Button) SetUseUnderline Uses

func (v *Button) SetUseUnderline(useUnderline bool)

SetUseUnderline() is a wrapper around gtk_button_set_use_underline().

type ButtonBox Uses

type ButtonBox struct {
    Box
}

ButtonBox is a representation of GTK's GtkButtonBox.

func ButtonBoxNew Uses

func ButtonBoxNew(o Orientation) (*ButtonBox, error)

ButtonBoxNew is a wrapper around gtk_button_box_new().

func (*ButtonBox) GetChildNonHomogeneous Uses

func (v *ButtonBox) GetChildNonHomogeneous(child IWidget) bool

GetChildNonHomogeneous() is a wrapper around gtk_button_box_get_child_non_homogeneous().

func (*ButtonBox) GetChildSecondary Uses

func (v *ButtonBox) GetChildSecondary(child IWidget) bool

GetChildSecondary() is a wrapper around gtk_button_box_get_child_secondary().

func (*ButtonBox) GetLayout Uses

func (v *ButtonBox) GetLayout() ButtonBoxStyle

GetLayout() is a wrapper around gtk_button_box_get_layout().

func (*ButtonBox) SetChildNonHomogeneous Uses

func (v *ButtonBox) SetChildNonHomogeneous(child IWidget, nonHomogeneous bool)

SetChildNonHomogeneous() is a wrapper around gtk_button_box_set_child_non_homogeneous().

func (*ButtonBox) SetChildSecondary Uses

func (v *ButtonBox) SetChildSecondary(child IWidget, isSecondary bool)

SetChildSecondary() is a wrapper around gtk_button_box_set_child_secondary().

func (*ButtonBox) SetLayout Uses

func (v *ButtonBox) SetLayout(style ButtonBoxStyle)

SetLayout() is a wrapper around gtk_button_box_set_layout().

type ButtonBoxStyle Uses

type ButtonBoxStyle int
const (
    BUTTONBOX_SPREAD ButtonBoxStyle = C.GTK_BUTTONBOX_SPREAD
    BUTTONBOX_EDGE   ButtonBoxStyle = C.GTK_BUTTONBOX_EDGE
    BUTTONBOX_START  ButtonBoxStyle = C.GTK_BUTTONBOX_START
    BUTTONBOX_END    ButtonBoxStyle = C.GTK_BUTTONBOX_END
    BUTTONBOX_CENTER ButtonBoxStyle = C.GTK_BUTTONBOX_CENTER
)
const (
    BUTTONBOX_EXPAND ButtonBoxStyle = C.GTK_BUTTONBOX_EXPAND
)

type ButtonsType Uses

type ButtonsType int

ButtonsType is a representation of GTK's GtkButtonsType.

const (
    BUTTONS_NONE      ButtonsType = C.GTK_BUTTONS_NONE
    BUTTONS_OK        ButtonsType = C.GTK_BUTTONS_OK
    BUTTONS_CLOSE     ButtonsType = C.GTK_BUTTONS_CLOSE
    BUTTONS_CANCEL    ButtonsType = C.GTK_BUTTONS_CANCEL
    BUTTONS_YES_NO    ButtonsType = C.GTK_BUTTONS_YES_NO
    BUTTONS_OK_CANCEL ButtonsType = C.GTK_BUTTONS_OK_CANCEL
)

type Calendar Uses

type Calendar struct {
    Widget
}

Calendar is a representation of GTK's GtkCalendar.

func CalendarNew Uses

func CalendarNew() (*Calendar, error)

CalendarNew is a wrapper around gtk_calendar_new().

func (*Calendar) ClearMarks Uses

func (v *Calendar) ClearMarks()

ClearMarks is a wrapper around gtk_calendar_clear_marks().

func (*Calendar) GetDate Uses

func (v *Calendar) GetDate() (year, month, day uint)

GetDate is a wrapper around gtk_calendar_get_date().

func (*Calendar) GetDayIsMarked Uses

func (v *Calendar) GetDayIsMarked(day uint) bool

GetDayIsMarked is a wrapper around gtk_calendar_get_day_is_marked().

func (*Calendar) GetDetailHeightRows Uses

func (v *Calendar) GetDetailHeightRows() int

GetDetailHeightRows is a wrapper around gtk_calendar_get_detail_height_rows().

func (*Calendar) GetDetailWidthChars Uses

func (v *Calendar) GetDetailWidthChars() int

GetDetailWidthChars is a wrapper around gtk_calendar_get_detail_width_chars().

func (*Calendar) GetDisplayOptions Uses

func (v *Calendar) GetDisplayOptions() CalendarDisplayOptions

GetDisplayOptions is a wrapper around gtk_calendar_get_display_options().

func (*Calendar) MarkDay Uses

func (v *Calendar) MarkDay(day uint)

MarkDay is a wrapper around gtk_calendar_mark_day().

func (*Calendar) SelectDay Uses

func (v *Calendar) SelectDay(day uint)

SelectDay is a wrapper around gtk_calendar_select_day().

func (*Calendar) SelectMonth Uses

func (v *Calendar) SelectMonth(month, year uint)

SelectMonth is a wrapper around gtk_calendar_select_month().

func (*Calendar) SetDetailHeightRows Uses

func (v *Calendar) SetDetailHeightRows(rows int)

SetDetailHeightRows is a wrapper around gtk_calendar_set_detail_height_rows().

func (*Calendar) SetDetailWidthChars Uses

func (v *Calendar) SetDetailWidthChars(chars int)

SetDetailWidthChars is a wrapper around gtk_calendar_set_detail_width_chars().

func (*Calendar) SetDisplayOptions Uses

func (v *Calendar) SetDisplayOptions(flags CalendarDisplayOptions)

SetDisplayOptions is a wrapper around gtk_calendar_set_display_options().

func (*Calendar) UnmarkDay Uses

func (v *Calendar) UnmarkDay(day uint)

UnmarkDay is a wrapper around gtk_calendar_unmark_day().

type CalendarDisplayOptions Uses

type CalendarDisplayOptions int

CalendarDisplayOptions is a representation of GTK's GtkCalendarDisplayOptions

const (
    CALENDAR_SHOW_HEADING      CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_HEADING
    CALENDAR_SHOW_DAY_NAMES    CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_DAY_NAMES
    CALENDAR_NO_MONTH_CHANGE   CalendarDisplayOptions = C.GTK_CALENDAR_NO_MONTH_CHANGE
    CALENDAR_SHOW_WEEK_NUMBERS CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_WEEK_NUMBERS
    CALENDAR_SHOW_DETAILS      CalendarDisplayOptions = C.GTK_CALENDAR_SHOW_DETAILS
)

type CellLayout Uses

type CellLayout struct {
    *glib.Object
}

CellLayout is a representation of GTK's GtkCellLayout GInterface.

func (*CellLayout) AddAttribute Uses

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

AddAttribute() is a wrapper around gtk_cell_layout_add_attribute().

func (*CellLayout) PackStart Uses

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

PackStart() is a wrapper around gtk_cell_layout_pack_start().

type CellRenderer Uses

type CellRenderer struct {
    glib.InitiallyUnowned
}

CellRenderer is a representation of GTK's GtkCellRenderer.

type CellRendererPixbuf Uses

type CellRendererPixbuf struct {
    CellRenderer
}

CellRendererPixbuf is a representation of GTK's GtkCellRendererPixbuf.

func CellRendererPixbufNew Uses

func CellRendererPixbufNew() (*CellRendererPixbuf, error)

CellRendererPixbufNew is a wrapper around gtk_cell_renderer_pixbuf_new().

type CellRendererProgress Uses

type CellRendererProgress struct {
    CellRenderer
}

CellRendererProgress is a representation of GTK's GtkCellRendererProgress.

func CellRendererProgressNew Uses

func CellRendererProgressNew() (*CellRendererProgress, error)

CellRendererProgressNew is a wrapper around gtk_cell_renderer_progress_new().

type CellRendererSpinner Uses

type CellRendererSpinner struct {
    CellRenderer
}

CellRendererSpinner is a representation of GTK's GtkCellRendererSpinner.

func CellRendererSpinnerNew Uses

func CellRendererSpinnerNew() (*CellRendererSpinner, error)

CellRendererSpinnerNew is a wrapper around gtk_cell_renderer_spinner_new().

type CellRendererText Uses

type CellRendererText struct {
    CellRenderer
}

CellRendererText is a representation of GTK's GtkCellRendererText.

func CellRendererTextNew Uses

func CellRendererTextNew() (*CellRendererText, error)

CellRendererTextNew is a wrapper around gtk_cell_renderer_text_new().

type CellRendererToggle Uses

type CellRendererToggle struct {
    CellRenderer
}

CellRendererToggle is a representation of GTK's GtkCellRendererToggle.

func CellRendererToggleNew Uses

func CellRendererToggleNew() (*CellRendererToggle, error)

CellRendererToggleNew is a wrapper around gtk_cell_renderer_toggle_new().

func (*CellRendererToggle) GetActivatable Uses

func (v *CellRendererToggle) GetActivatable() bool

GetActivatable is a wrapper around gtk_cell_renderer_toggle_get_activatable().

func (*CellRendererToggle) GetActive Uses

func (v *CellRendererToggle) GetActive() bool

GetActive is a wrapper around gtk_cell_renderer_toggle_get_active().

func (*CellRendererToggle) GetRadio Uses

func (v *CellRendererToggle) GetRadio() bool

GetRadio is a wrapper around gtk_cell_renderer_toggle_get_radio().

func (*CellRendererToggle) SetActivatable Uses

func (v *CellRendererToggle) SetActivatable(activatable bool)

SetActivatable is a wrapper around gtk_cell_renderer_toggle_set_activatable().

func (*CellRendererToggle) SetActive Uses

func (v *CellRendererToggle) SetActive(active bool)

SetActive is a wrapper around gtk_cell_renderer_toggle_set_active().

func (*CellRendererToggle) SetRadio Uses

func (v *CellRendererToggle) SetRadio(set bool)

SetRadio is a wrapper around gtk_cell_renderer_toggle_set_radio().

type CheckButton Uses

type CheckButton struct {
    ToggleButton
}

CheckButton is a wrapper around GTK's GtkCheckButton.

func CheckButtonNew Uses

func CheckButtonNew() (*CheckButton, error)

CheckButtonNew is a wrapper around gtk_check_button_new().

func CheckButtonNewWithLabel Uses

func CheckButtonNewWithLabel(label string) (*CheckButton, error)

CheckButtonNewWithLabel is a wrapper around gtk_check_button_new_with_label().

func CheckButtonNewWithMnemonic Uses

func CheckButtonNewWithMnemonic(label string) (*CheckButton, error)

CheckButtonNewWithMnemonic is a wrapper around gtk_check_button_new_with_mnemonic().

type CheckMenuItem Uses

type CheckMenuItem struct {
    MenuItem
}

func CheckMenuItemNew Uses

func CheckMenuItemNew() (*CheckMenuItem, error)

CheckMenuItemNew is a wrapper around gtk_check_menu_item_new().

func CheckMenuItemNewWithLabel Uses

func CheckMenuItemNewWithLabel(label string) (*CheckMenuItem, error)

CheckMenuItemNewWithLabel is a wrapper around gtk_check_menu_item_new_with_label().

func CheckMenuItemNewWithMnemonic Uses

func CheckMenuItemNewWithMnemonic(label string) (*CheckMenuItem, error)

CheckMenuItemNewWithMnemonic is a wrapper around gtk_check_menu_item_new_with_mnemonic().

func (*CheckMenuItem) GetActive Uses

func (v *CheckMenuItem) GetActive() bool

GetActive is a wrapper around gtk_check_menu_item_get_active().

func (*CheckMenuItem) GetDrawAsRadio Uses

func (v *CheckMenuItem) GetDrawAsRadio() bool

GetDrawAsRadio is a wrapper around gtk_check_menu_item_get_draw_as_radio().

func (*CheckMenuItem) GetInconsistent Uses

func (v *CheckMenuItem) GetInconsistent() bool

GetInconsistent is a wrapper around gtk_check_menu_item_get_inconsistent().

func (*CheckMenuItem) SetActive Uses

func (v *CheckMenuItem) SetActive(isActive bool)

SetActive is a wrapper around gtk_check_menu_item_set_active().

func (*CheckMenuItem) SetDrawAsRadio Uses

func (v *CheckMenuItem) SetDrawAsRadio(drawAsRadio bool)

SetDrawAsRadio is a wrapper around gtk_check_menu_item_set_draw_as_radio().

func (*CheckMenuItem) SetInconsistent Uses

func (v *CheckMenuItem) SetInconsistent(setting bool)

SetInconsistent is a wrapper around gtk_check_menu_item_set_inconsistent().

func (*CheckMenuItem) Toggled Uses

func (v *CheckMenuItem) Toggled()

Toggled is a wrapper around gtk_check_menu_item_toggled().

type Clipboard Uses

type Clipboard struct {
    *glib.Object
}

Clipboard is a wrapper around GTK's GtkClipboard.

func ClipboardGet Uses

func ClipboardGet(atom gdk.Atom) (*Clipboard, error)

ClipboardGet() is a wrapper around gtk_clipboard_get().

func ClipboardGetForDisplay Uses

func ClipboardGetForDisplay(display *gdk.Display, atom gdk.Atom) (*Clipboard, error)

ClipboardGetForDisplay() is a wrapper around gtk_clipboard_get_for_display().

func (*Clipboard) SetImage Uses

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

SetImage is a wrapper around gtk_clipboard_set_image

func (*Clipboard) SetText Uses

func (v *Clipboard) SetText(text string)

SetText() is a wrapper around gtk_clipboard_set_text().

func (*Clipboard) Store Uses

func (v *Clipboard) Store()

Store is a wrapper around gtk_clipboard_store

func (*Clipboard) WaitForContents Uses

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

WaitForContents is a wrapper around gtk_clipboard_wait_for_contents

func (*Clipboard) WaitForImage Uses

func (v *Clipboard) WaitForImage() (*gdk.Pixbuf, error)

WaitForImage is a wrapper around gtk_clipboard_wait_for_image

func (*Clipboard) WaitForText Uses

func (v *Clipboard) WaitForText() (string, error)

WaitForText is a wrapper around gtk_clipboard_wait_for_text

func (*Clipboard) WaitIsImageAvailable Uses

func (v *Clipboard) WaitIsImageAvailable() bool

WaitIsImageAvailable is a wrapper around gtk_clipboard_wait_is_image_available

func (*Clipboard) WaitIsRichTextAvailable Uses

func (v *Clipboard) WaitIsRichTextAvailable(buf *TextBuffer) bool

WaitIsRichTextAvailable is a wrapper around gtk_clipboard_wait_is_rich_text_available

func (*Clipboard) WaitIsTargetAvailable Uses

func (v *Clipboard) WaitIsTargetAvailable(target gdk.Atom) bool

WaitIsTargetAvailable is a wrapper around gtk_clipboard_wait_is_target_available

func (*Clipboard) WaitIsTextAvailable Uses

func (v *Clipboard) WaitIsTextAvailable() bool

WaitIsTextAvailable is a wrapper around gtk_clipboard_wait_is_text_available

func (*Clipboard) WaitIsUrisAvailable Uses

func (v *Clipboard) WaitIsUrisAvailable() bool

WaitIsUrisAvailable is a wrapper around gtk_clipboard_wait_is_uris_available

type ColorButton Uses

type ColorButton struct {
    Button

    // Interfaces
    ColorChooser
}

ColorButton is a representation of GTK's GtkColorButton.

func ColorButtonNew Uses

func ColorButtonNew() (*ColorButton, error)

ColorButtonNew is a wrapper around gtk_color_button_new().

func ColorButtonNewWithRGBA Uses

func ColorButtonNewWithRGBA(gdkColor *gdk.RGBA) (*ColorButton, error)

ColorButtonNewWithRGBA is a wrapper around gtk_color_button_new_with_rgba().

type ColorChooser Uses

type ColorChooser struct {
    *glib.Object
}

ColorChooser is a representation of GTK's GtkColorChooser GInterface.

func (*ColorChooser) AddPalette Uses

func (v *ColorChooser) AddPalette(orientation Orientation, colors_per_line int, colors []*gdk.RGBA)

AddPalette() is a wrapper around gtk_color_chooser_add_palette().

func (*ColorChooser) GetRGBA Uses

func (v *ColorChooser) GetRGBA() *gdk.RGBA

GetRGBA() is a wrapper around gtk_color_chooser_get_rgba().

func (*ColorChooser) GetUseAlpha Uses

func (v *ColorChooser) GetUseAlpha() bool

GetUseAlpha() is a wrapper around gtk_color_chooser_get_use_alpha().

func (*ColorChooser) SetRGBA Uses

func (v *ColorChooser) SetRGBA(gdkColor *gdk.RGBA)

SetRGBA() is a wrapper around gtk_color_chooser_set_rgba().

func (*ColorChooser) SetUseAlpha Uses

func (v *ColorChooser) SetUseAlpha(use_alpha bool)

SetUseAlpha() is a wrapper around gtk_color_chooser_set_use_alpha().

type ColorChooserDialog Uses

type ColorChooserDialog struct {
    Dialog

    // Interfaces
    ColorChooser
}

ColorChooserDialog is a representation of GTK's GtkColorChooserDialog.

func ColorChooserDialogNew Uses

func ColorChooserDialogNew(title string, parent IWindow) (*ColorChooserDialog, error)

ColorChooserDialogNew() is a wrapper around gtk_color_chooser_dialog_new().

type Cols Uses

type Cols map[int]interface{}

Convenient map for Columns and values (See ListStore, TreeStore)

type ComboBox Uses

type ComboBox struct {
    Bin

    // Interfaces
    CellLayout
}

ComboBox is a representation of GTK's GtkComboBox.

func ComboBoxNew Uses

func ComboBoxNew() (*ComboBox, error)

ComboBoxNew() is a wrapper around gtk_combo_box_new().

func ComboBoxNewWithEntry Uses

func ComboBoxNewWithEntry() (*ComboBox, error)

ComboBoxNewWithEntry() is a wrapper around gtk_combo_box_new_with_entry().

func ComboBoxNewWithModel Uses

func ComboBoxNewWithModel(model ITreeModel) (*ComboBox, error)

ComboBoxNewWithModel() is a wrapper around gtk_combo_box_new_with_model().

func (*ComboBox) GetActive Uses

func (v *ComboBox) GetActive() int

GetActive() is a wrapper around gtk_combo_box_get_active().

func (*ComboBox) GetActiveID Uses

func (v *ComboBox) GetActiveID() string

GetActiveID is a wrapper around gtk_combo_box_get_active_id().

func (*ComboBox) GetActiveIter Uses

func (v *ComboBox) GetActiveIter() (*TreeIter, error)

GetActiveIter is a wrapper around gtk_combo_box_get_active_iter().

func (*ComboBox) GetEntryTextColumn Uses

func (v *ComboBox) GetEntryTextColumn() int

GetEntryTextColumn is a wrapper around gtk_combo_box_get_entry_text_column()

func (*ComboBox) GetIDColumn Uses

func (v *ComboBox) GetIDColumn() int

GetIDColumn is a wrapper around gtk_combo_box_get_id_column()

func (*ComboBox) GetModel Uses

func (v *ComboBox) GetModel() (*TreeModel, error)

GetModel is a wrapper around gtk_combo_box_get_model().

func (*ComboBox) Popdown Uses

func (v *ComboBox) Popdown()

func (*ComboBox) Popup Uses

func (v *ComboBox) Popup()

func (*ComboBox) SetActive Uses

func (v *ComboBox) SetActive(index int)

SetActive() is a wrapper around gtk_combo_box_set_active().

func (*ComboBox) SetActiveID Uses

func (v *ComboBox) SetActiveID(id string) bool

SetActiveID is a wrapper around gtk_combo_box_set_active_id().

func (*ComboBox) SetActiveIter Uses

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

SetActiveIter is a wrapper around gtk_combo_box_set_active_iter().

func (*ComboBox) SetEntryTextColumn Uses

func (v *ComboBox) SetEntryTextColumn(textColumn int)

SetEntryTextColumn is a wrapper around gtk_combo_box_set_entry_text_column()

func (*ComboBox) SetIDColumn Uses

func (v *ComboBox) SetIDColumn(idColumn int)

SetIDColumn is a wrapper around gtk_combo_box_set_id_column()

func (*ComboBox) SetModel Uses

func (v *ComboBox) SetModel(model ITreeModel)

SetModel is a wrapper around gtk_combo_box_set_model().

type ComboBoxText Uses

type ComboBoxText struct {
    ComboBox
}

ComboBoxText is a representation of GTK's GtkComboBoxText.

func ComboBoxTextNew Uses

func ComboBoxTextNew() (*ComboBoxText, error)

ComboBoxTextNew is a wrapper around gtk_combo_box_text_new().

func ComboBoxTextNewWithEntry Uses

func ComboBoxTextNewWithEntry() (*ComboBoxText, error)

ComboBoxTextNewWithEntry is a wrapper around gtk_combo_box_text_new_with_entry().

func (*ComboBoxText) Append Uses

func (v *ComboBoxText) Append(id, text string)

Append is a wrapper around gtk_combo_box_text_append().

func (*ComboBoxText) AppendText Uses

func (v *ComboBoxText) AppendText(text string)

AppendText is a wrapper around gtk_combo_box_text_append_text().

func (*ComboBoxText) GetActiveText Uses

func (v *ComboBoxText) GetActiveText() string

GetActiveText is a wrapper around gtk_combo_box_text_get_active_text().

func (*ComboBoxText) Insert Uses

func (v *ComboBoxText) Insert(position int, id, text string)

Insert is a wrapper around gtk_combo_box_text_insert().

func (*ComboBoxText) InsertText Uses

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

InsertText is a wrapper around gtk_combo_box_text_insert_text().

func (*ComboBoxText) Prepend Uses

func (v *ComboBoxText) Prepend(id, text string)

Prepend is a wrapper around gtk_combo_box_text_prepend().

func (*ComboBoxText) PrependText Uses

func (v *ComboBoxText) PrependText(text string)

PrependText is a wrapper around gtk_combo_box_text_prepend_text().

func (*ComboBoxText) Remove Uses

func (v *ComboBoxText) Remove(position int)

Remove is a wrapper around gtk_combo_box_text_remove().

func (*ComboBoxText) RemoveAll Uses

func (v *ComboBoxText) RemoveAll()

RemoveAll is a wrapper around gtk_combo_box_text_remove_all().

type Container Uses

type Container struct {
    Widget
}

Container is a representation of GTK's GtkContainer.

func (*Container) Add Uses

func (v *Container) Add(w IWidget)

Add is a wrapper around gtk_container_add().

func (*Container) CheckResize Uses

func (v *Container) CheckResize()

CheckResize is a wrapper around gtk_container_check_resize().

func (*Container) ChildGetProperty Uses

func (v *Container) ChildGetProperty(child IWidget, name string, valueType glib.Type) (interface{}, error)

ChildGetProperty is a wrapper around gtk_container_child_get_property().

func (*Container) ChildNotify Uses

func (v *Container) ChildNotify(child IWidget, childProperty string)

ChildNotify is a wrapper around gtk_container_child_notify().

func (*Container) ChildSetProperty Uses

func (v *Container) ChildSetProperty(child IWidget, name string, value interface{}) error

ChildSetProperty is a wrapper around gtk_container_child_set_property().

func (*Container) ChildType Uses

func (v *Container) ChildType() glib.Type

ChildType is a wrapper around gtk_container_child_type().

func (*Container) GetBorderWidth Uses

func (v *Container) GetBorderWidth() uint

GetBorderWidth is a wrapper around gtk_container_get_border_width().

func (*Container) GetChildren Uses

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

GetChildren is a wrapper around gtk_container_get_children().

func (*Container) GetFocusChild Uses

func (v *Container) GetFocusChild() *Widget

GetFocusChild is a wrapper around gtk_container_get_focus_child().

func (*Container) GetFocusHAdjustment Uses

func (v *Container) GetFocusHAdjustment() *Adjustment

GetFocusHAdjustment is a wrapper around gtk_container_get_focus_hadjustment().

func (*Container) GetFocusVAdjustment Uses

func (v *Container) GetFocusVAdjustment() *Adjustment

GetFocusVAdjustment is a wrapper around gtk_container_get_focus_vadjustment().

func (*Container) PropagateDraw Uses

func (v *Container) PropagateDraw(child IWidget, cr *cairo.Context)

PropagateDraw is a wrapper around gtk_container_propagate_draw().

func (*Container) Remove Uses

func (v *Container) Remove(w IWidget)

Remove is a wrapper around gtk_container_remove().

func (*Container) SetBorderWidth Uses

func (v *Container) SetBorderWidth(borderWidth uint)

SetBorderWidth is a wrapper around gtk_container_set_border_width().

func (*Container) SetFocusChild Uses

func (v *Container) SetFocusChild(child IWidget)

SetFocusChild is a wrapper around gtk_container_set_focus_child().

func (*Container) SetFocusHAdjustment Uses

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

SetFocusHAdjustment is a wrapper around gtk_container_set_focus_hadjustment().

func (*Container) SetFocusVAdjustment Uses

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

SetFocusVAdjustment is a wrapper around gtk_container_set_focus_vadjustment().

type CornerType Uses

type CornerType int

CornerType is a representation of GTK's GtkCornerType.

const (
    CORNER_TOP_LEFT     CornerType = C.GTK_CORNER_TOP_LEFT
    CORNER_BOTTOM_LEFT  CornerType = C.GTK_CORNER_BOTTOM_LEFT
    CORNER_TOP_RIGHT    CornerType = C.GTK_CORNER_TOP_RIGHT
    CORNER_BOTTOM_RIGHT CornerType = C.GTK_CORNER_BOTTOM_RIGHT
)

type CssProvider Uses

type CssProvider struct {
    *glib.Object
}

CssProvider is a representation of GTK's GtkCssProvider.

func CssProviderGetNamed Uses

func CssProviderGetNamed(name string, variant string) (*CssProvider, error)

GetNamed is a wrapper around gtk_css_provider_get_named().

func CssProviderNew Uses

func CssProviderNew() (*CssProvider, error)

CssProviderNew is a wrapper around gtk_css_provider_new().

func (*CssProvider) LoadFromData Uses

func (v *CssProvider) LoadFromData(data string) error

LoadFromData is a wrapper around gtk_css_provider_load_from_data().

func (*CssProvider) LoadFromPath Uses

func (v *CssProvider) LoadFromPath(path string) error

LoadFromPath is a wrapper around gtk_css_provider_load_from_path().

func (*CssProvider) ToString Uses

func (v *CssProvider) ToString() (string, error)

ToString is a wrapper around gtk_css_provider_to_string().

type DestDefaults Uses

type DestDefaults int

DestDefaults is a representation of GTK's GtkDestDefaults.

const (
    DEST_DEFAULT_MOTION    DestDefaults = C.GTK_DEST_DEFAULT_MOTION
    DEST_DEFAULT_HIGHLIGHT DestDefaults = C.GTK_DEST_DEFAULT_HIGHLIGHT
    DEST_DEFAULT_DROP      DestDefaults = C.GTK_DEST_DEFAULT_DROP
    DEST_DEFAULT_ALL       DestDefaults = C.GTK_DEST_DEFAULT_ALL
)

type Dialog Uses

type Dialog struct {
    Window
}

Dialog is a representation of GTK's GtkDialog.

func DialogNew Uses

func DialogNew() (*Dialog, error)

DialogNew() is a wrapper around gtk_dialog_new().

func DialogNewWithButtons Uses

func DialogNewWithButtons(title string, parent IWindow, flags DialogFlags, buttons ...string) (dialog *Dialog, err error)

DialogNewWithButtons() is a wrapper around gtk_dialog_new_with_buttons().

func (*Dialog) AddActionWidget Uses

func (v *Dialog) AddActionWidget(child IWidget, id ResponseType)

AddActionWidget() is a wrapper around gtk_dialog_add_action_widget().

func (*Dialog) AddButton Uses

func (v *Dialog) AddButton(text string, id ResponseType) (*Button, error)

AddButton() is a wrapper around gtk_dialog_add_button(). text may be either the literal button text, or if using GTK 3.8 or earlier, a Stock type converted to a string.

func (*Dialog) GetContentArea Uses

func (v *Dialog) GetContentArea() (*Box, error)

GetContentArea() is a wrapper around gtk_dialog_get_content_area().

func (*Dialog) GetHeaderBar Uses

func (v *Dialog) GetHeaderBar() *Widget

GetHeaderBar is a wrapper around gtk_dialog_get_header_bar().

func (*Dialog) GetResponseForWidget Uses

func (v *Dialog) GetResponseForWidget(widget IWidget) ResponseType

GetResponseForWidget() is a wrapper around gtk_dialog_get_response_for_widget().

func (*Dialog) GetWidgetForResponse Uses

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

GetWidgetForResponse() is a wrapper around gtk_dialog_get_widget_for_response().

func (*Dialog) Response Uses

func (v *Dialog) Response(response ResponseType)

Response() is a wrapper around gtk_dialog_response().

func (*Dialog) Run Uses

func (v *Dialog) Run() ResponseType

Run() is a wrapper around gtk_dialog_run().

func (*Dialog) SetDefaultResponse Uses

func (v *Dialog) SetDefaultResponse(id ResponseType)

SetDefaultResponse() is a wrapper around gtk_dialog_set_default_response().

func (*Dialog) SetResponseSensitive Uses

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

SetResponseSensitive() is a wrapper around gtk_dialog_set_response_sensitive().

type DialogFlags Uses

type DialogFlags int

DialogFlags is a representation of GTK's GtkDialogFlags.

const (
    DIALOG_MODAL               DialogFlags = C.GTK_DIALOG_MODAL
    DIALOG_DESTROY_WITH_PARENT DialogFlags = C.GTK_DIALOG_DESTROY_WITH_PARENT
)

type DrawingArea Uses

type DrawingArea struct {
    Widget
}

DrawingArea is a representation of GTK's GtkDrawingArea.

func DrawingAreaNew Uses

func DrawingAreaNew() (*DrawingArea, error)

DrawingAreaNew is a wrapper around gtk_drawing_area_new().

type Editable Uses

type Editable struct {
    *glib.Object
}

Editable is a representation of GTK's GtkEditable GInterface.

func (*Editable) CopyClipboard Uses

func (v *Editable) CopyClipboard()

CopyClipboard is a wrapper around gtk_editable_copy_clipboard().

func (*Editable) CutClipboard Uses

func (v *Editable) CutClipboard()

CutClipboard is a wrapper around gtk_editable_cut_clipboard().

func (*Editable) DeleteSelection Uses

func (v *Editable) DeleteSelection()

DeleteSelection is a wrapper around gtk_editable_delete_selection().

func (*Editable) DeleteText Uses

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

DeleteText is a wrapper around gtk_editable_delete_text().

func (*Editable) GetChars Uses

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

GetChars is a wrapper around gtk_editable_get_chars().

func (*Editable) GetEditable Uses

func (v *Editable) GetEditable() bool

GetEditable is a wrapper around gtk_editable_get_editable().

func (*Editable) GetPosition Uses

func (v *Editable) GetPosition() int

GetPosition is a wrapper around gtk_editable_get_position().

func (*Editable) GetSelectionBounds Uses

func (v *Editable) GetSelectionBounds() (start, end int, nonEmpty bool)

GetSelectionBounds is a wrapper around gtk_editable_get_selection_bounds().

func (*Editable) InsertText Uses

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

InsertText is a wrapper around gtk_editable_insert_text(). The returned int is the position after the inserted text.

func (*Editable) PasteClipboard Uses

func (v *Editable) PasteClipboard()

PasteClipboard is a wrapper around gtk_editable_paste_clipboard().

func (*Editable) SelectRegion Uses

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

SelectRegion is a wrapper around gtk_editable_select_region().

func (*Editable) SetEditable Uses

func (v *Editable) SetEditable(isEditable bool)

SetEditable is a wrapper around gtk_editable_set_editable().

func (*Editable) SetPosition Uses

func (v *Editable) SetPosition(position int)

SetPosition is a wrapper around gtk_editable_set_position().

type Entry Uses

type Entry struct {
    Widget

    // Interfaces
    Editable
}

Entry is a representation of GTK's GtkEntry.

func EntryNew Uses

func EntryNew() (*Entry, error)

EntryNew() is a wrapper around gtk_entry_new().

func EntryNewWithBuffer Uses

func EntryNewWithBuffer(buffer *EntryBuffer) (*Entry, error)

EntryNewWithBuffer() is a wrapper around gtk_entry_new_with_buffer().

func (*Entry) GetActivatesDefault Uses

func (v *Entry) GetActivatesDefault() bool

GetActivatesDefault() is a wrapper around gtk_entry_get_activates_default().

func (*Entry) GetAlignment Uses

func (v *Entry) GetAlignment() float32

GetAlignment() is a wrapper around gtk_entry_get_alignment().

func (*Entry) GetBuffer Uses

func (v *Entry) GetBuffer() (*EntryBuffer, error)

GetBuffer() is a wrapper around gtk_entry_get_buffer().

func (*Entry) GetCompletion Uses

func (v *Entry) GetCompletion() (*EntryCompletion, error)

GetCompletion() is a wrapper around gtk_entry_get_completion().

func (*Entry) GetCurrentIconDragSource Uses

func (v *Entry) GetCurrentIconDragSource() int

GetCurrentIconDragSource() is a wrapper around gtk_entry_get_current_icon_drag_source().

func (*Entry) GetCursorHAdjustment Uses

func (v *Entry) GetCursorHAdjustment() (*Adjustment, error)

GetCursorHAdjustment() is a wrapper around gtk_entry_get_cursor_hadjustment().

func (*Entry) GetHasFrame Uses

func (v *Entry) GetHasFrame() bool

GetHasFrame() is a wrapper around gtk_entry_get_has_frame().

func (*Entry) GetIconActivatable Uses

func (v *Entry) GetIconActivatable(iconPos EntryIconPosition) bool

GetIconActivatable() is a wrapper around gtk_entry_get_icon_activatable().

func (*Entry) GetIconAtPos Uses

func (v *Entry) GetIconAtPos(x, y int) int

GetIconAtPos() is a wrapper around gtk_entry_get_icon_at_pos().

func (*Entry) GetIconName Uses

func (v *Entry) GetIconName(iconPos EntryIconPosition) (string, error)

GetIconName() is a wrapper around gtk_entry_get_icon_name().

func (*Entry) GetIconSensitive Uses

func (v *Entry) GetIconSensitive(iconPos EntryIconPosition) bool

GetIconSensitive() is a wrapper around gtk_entry_get_icon_sensitive().

func (*Entry) GetIconStorageType Uses

func (v *Entry) GetIconStorageType(iconPos EntryIconPosition) ImageType

GetIconStorageType() is a wrapper around gtk_entry_get_icon_storage_type().

func (*Entry) GetIconTooltipMarkup Uses

func (v *Entry) GetIconTooltipMarkup(iconPos EntryIconPosition) (string, error)

GetIconTooltipMarkup() is a wrapper around gtk_entry_get_icon_tooltip_markup().

func (*Entry) GetIconTooltipText Uses

func (v *Entry) GetIconTooltipText(iconPos EntryIconPosition) (string, error)

GetIconTooltipText() is a wrapper around gtk_entry_get_icon_tooltip_text().

func (*Entry) GetInputHints Uses

func (v *Entry) GetInputHints() InputHints

GetInputHints() is a wrapper around gtk_entry_get_input_hints().

func (*Entry) GetInputPurpose Uses

func (v *Entry) GetInputPurpose() InputPurpose

GetInputPurpose() is a wrapper around gtk_entry_get_input_purpose().

func (*Entry) GetInvisibleChar Uses

func (v *Entry) GetInvisibleChar() rune

GetInvisibleChar() is a wrapper around gtk_entry_get_invisible_char().

func (*Entry) GetLayoutOffsets Uses

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

GetLayoutOffsets() is a wrapper around gtk_entry_get_layout_offsets().

func (*Entry) GetMaxLength Uses

func (v *Entry) GetMaxLength() int

GetMaxLength() is a wrapper around gtk_entry_get_max_length().

func (*Entry) GetMaxWidthChars Uses

func (v *Entry) GetMaxWidthChars() int

GetMaxWidthChars() is a wrapper around gtk_entry_get_max_width_chars().

func (*Entry) GetOverwriteMode Uses

func (v *Entry) GetOverwriteMode() bool

GetOverwriteMode() is a wrapper around gtk_entry_get_overwrite_mode().

func (*Entry) GetPlaceholderText Uses

func (v *Entry) GetPlaceholderText() (string, error)

GetPlaceholderText() is a wrapper around gtk_entry_get_placeholder_text().

func (*Entry) GetProgressFraction Uses

func (v *Entry) GetProgressFraction() float64

GetProgressFraction() is a wrapper around gtk_entry_get_progress_fraction().

func (*Entry) GetProgressPulseStep Uses

func (v *Entry) GetProgressPulseStep() float64

GetProgressPulseStep() is a wrapper around gtk_entry_get_progress_pulse_step().

func (*Entry) GetText Uses

func (v *Entry) GetText() (string, error)

GetText() is a wrapper around gtk_entry_get_text().

func (*Entry) GetTextLength Uses

func (v *Entry) GetTextLength() uint16

GetTextLength() is a wrapper around gtk_entry_get_text_length().

func (*Entry) GetVisibility Uses

func (v *Entry) GetVisibility() bool

GetVisibility() is a wrapper around gtk_entry_get_visibility().

func (*Entry) GetWidthChars Uses

func (v *Entry) GetWidthChars() int

GetWidthChars() is a wrapper around gtk_entry_get_width_chars().

func (*Entry) GrabFocusWithoutSelecting Uses

func (v *Entry) GrabFocusWithoutSelecting()

GrabFocusWithoutSelecting is a wrapper for gtk_entry_grab_focus_without_selecting()

func (*Entry) LayoutIndexToTextIndex Uses

func (v *Entry) LayoutIndexToTextIndex(layoutIndex int) int

LayoutIndexToTextIndex() is a wrapper around gtk_entry_layout_index_to_text_index().

func (*Entry) ProgressPulse Uses

func (v *Entry) ProgressPulse()

ProgressPulse() is a wrapper around gtk_entry_progress_pulse().

func (*Entry) RemoveIcon Uses

func (v *Entry) RemoveIcon(iconPos EntryIconPosition)

RemoveIcon() is a wrapper around gtk_entry_set_icon_from_icon_name() with a nil pointer to the icon name.

func (*Entry) ResetIMContext Uses

func (v *Entry) ResetIMContext()

ResetIMContext() is a wrapper around gtk_entry_reset_im_context().

func (*Entry) SetActivatesDefault Uses

func (v *Entry) SetActivatesDefault(setting bool)

SetActivatesDefault() is a wrapper around gtk_entry_set_activates_default().

func (*Entry) SetAlignment Uses

func (v *Entry) SetAlignment(xalign float32)

SetAlignment() is a wrapper around gtk_entry_set_alignment().

func (*Entry) SetBuffer Uses

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

SetBuffer() is a wrapper around gtk_entry_set_buffer().

func (*Entry) SetCompletion Uses

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

SetCompletion() is a wrapper around gtk_entry_set_completion().

func (*Entry) SetCursorHAdjustment Uses

func (v *Entry) SetCursorHAdjustment(adjustment *Adjustment)

SetCursorHAdjustment() is a wrapper around gtk_entry_set_cursor_hadjustment().

func (*Entry) SetHasFrame Uses

func (v *Entry) SetHasFrame(setting bool)

SetHasFrame() is a wrapper around gtk_entry_set_has_frame().

func (*Entry) SetIconActivatable Uses

func (v *Entry) SetIconActivatable(iconPos EntryIconPosition, activatable bool)

SetIconActivatable() is a wrapper around gtk_entry_set_icon_activatable().

func (*Entry) SetIconFromIconName Uses

func (v *Entry) SetIconFromIconName(iconPos EntryIconPosition, name string)

SetIconFromIconName() is a wrapper around gtk_entry_set_icon_from_icon_name().

func (*Entry) SetIconFromPixbuf Uses

func (v *Entry) SetIconFromPixbuf(iconPos EntryIconPosition, pixbuf *gdk.Pixbuf)

SetIconFromPixbuf is a wrapper around gtk_entry_set_icon_from_pixbuf().

func (*Entry) SetIconSensitive Uses

func (v *Entry) SetIconSensitive(iconPos EntryIconPosition, sensitive bool)

SetIconSensitive() is a wrapper around gtk_entry_set_icon_sensitive().

func (*Entry) SetIconTooltipMarkup Uses

func (v *Entry) SetIconTooltipMarkup(iconPos EntryIconPosition, tooltip string)

SetIconTooltipMarkup() is a wrapper around gtk_entry_set_icon_tooltip_markup().

func (*Entry) SetIconTooltipText Uses

func (v *Entry) SetIconTooltipText(iconPos EntryIconPosition, tooltip string)

SetIconTooltipText() is a wrapper around gtk_entry_set_icon_tooltip_text().

func (*Entry) SetInputHints Uses

func (v *Entry) SetInputHints(hints InputHints)

SetInputHints() is a wrapper around gtk_entry_set_input_hints().

func (*Entry) SetInputPurpose Uses

func (v *Entry) SetInputPurpose(purpose InputPurpose)

SetInputPurpose() is a wrapper around gtk_entry_set_input_purpose().

func (*Entry) SetInvisibleChar Uses

func (v *Entry) SetInvisibleChar(ch rune)

SetInvisibleChar() is a wrapper around gtk_entry_set_invisible_char().

func (*Entry) SetMaxLength Uses

func (v *Entry) SetMaxLength(len int)

SetMaxLength() is a wrapper around gtk_entry_set_max_length().

func (*Entry) SetMaxWidthChars Uses

func (v *Entry) SetMaxWidthChars(nChars int)

SetMaxWidthChars() is a wrapper around gtk_entry_set_max_width_chars().

func (*Entry) SetOverwriteMode Uses

func (v *Entry) SetOverwriteMode(overwrite bool)

SetOverwriteMode() is a wrapper around gtk_entry_set_overwrite_mode().

func (*Entry) SetPlaceholderText Uses

func (v *Entry) SetPlaceholderText(text string)

SetPlaceholderText() is a wrapper around gtk_entry_set_placeholder_text().

func (*Entry) SetProgressFraction Uses

func (v *Entry) SetProgressFraction(fraction float64)

SetProgressFraction() is a wrapper around gtk_entry_set_progress_fraction().

func (*Entry) SetProgressPulseStep Uses

func (v *Entry) SetProgressPulseStep(fraction float64)

SetProgressPulseStep() is a wrapper around gtk_entry_set_progress_pulse_step().

func (*Entry) SetText Uses

func (v *Entry) SetText(text string)

SetText() is a wrapper around gtk_entry_set_text().

func (*Entry) SetVisibility Uses

func (v *Entry) SetVisibility(visible bool)

SetVisibility() is a wrapper around gtk_entry_set_visibility().

func (*Entry) SetWidthChars Uses

func (v *Entry) SetWidthChars(nChars int)

SetWidthChars() is a wrapper around gtk_entry_set_width_chars().

func (*Entry) TextIndexToLayoutIndex Uses

func (v *Entry) TextIndexToLayoutIndex(textIndex int) int

TextIndexToLayoutIndex() is a wrapper around gtk_entry_text_index_to_layout_index().

func (*Entry) UnsetInvisibleChar Uses

func (v *Entry) UnsetInvisibleChar()

UnsetInvisibleChar() is a wrapper around gtk_entry_unset_invisible_char().

type EntryBuffer Uses

type EntryBuffer struct {
    *glib.Object
}

EntryBuffer is a representation of GTK's GtkEntryBuffer.

func EntryBufferNew Uses

func EntryBufferNew(initialChars string, nInitialChars int) (*EntryBuffer, error)

EntryBufferNew() is a wrapper around gtk_entry_buffer_new().

func (*EntryBuffer) DeleteText Uses

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

DeleteText() is a wrapper around gtk_entry_buffer_delete_text().

func (*EntryBuffer) EmitDeletedText Uses

func (v *EntryBuffer) EmitDeletedText(pos, nChars uint)

EmitDeletedText() is a wrapper around gtk_entry_buffer_emit_deleted_text().

func (*EntryBuffer) EmitInsertedText Uses

func (v *EntryBuffer) EmitInsertedText(pos uint, text string)

EmitInsertedText() is a wrapper around gtk_entry_buffer_emit_inserted_text().

func (*EntryBuffer) GetBytes Uses

func (v *EntryBuffer) GetBytes() uint

GetBytes() is a wrapper around gtk_entry_buffer_get_bytes().

func (*EntryBuffer) GetLength Uses

func (v *EntryBuffer) GetLength() uint

GetLength() is a wrapper around gtk_entry_buffer_get_length().

func (*EntryBuffer) GetMaxLength Uses

func (v *EntryBuffer) GetMaxLength() int

GetMaxLength() is a wrapper around gtk_entry_buffer_get_max_length().

func (*EntryBuffer) GetText Uses

func (v *EntryBuffer) GetText() (string, error)

GetText() is a wrapper around gtk_entry_buffer_get_text(). A non-nil error is returned in the case that gtk_entry_buffer_get_text returns NULL to differentiate between NULL and an empty string.

func (*EntryBuffer) InsertText Uses

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

InsertText() is a wrapper around gtk_entry_buffer_insert_text().

func (*EntryBuffer) SetMaxLength Uses

func (v *EntryBuffer) SetMaxLength(maxLength int)

SetMaxLength() is a wrapper around gtk_entry_buffer_set_max_length().

func (*EntryBuffer) SetText Uses

func (v *EntryBuffer) SetText(text string)

SetText() is a wrapper around gtk_entry_buffer_set_text().

type EntryCompletion Uses

type EntryCompletion struct {
    *glib.Object
}

EntryCompletion is a representation of GTK's GtkEntryCompletion.

func EntryCompletionNew Uses

func EntryCompletionNew() (*EntryCompletion, error)

EntryCompletionNew is a wrapper around gtk_entry_completion_new

func (*EntryCompletion) GetInlineCompletion Uses

func (v *EntryCompletion) GetInlineCompletion() bool

GetInlineCompletion is a wrapper around gtk_entry_completion_get_inline_completion

func (*EntryCompletion) GetMinimumKeyLength Uses

func (v *EntryCompletion) GetMinimumKeyLength() int

GetMinimumKeyLength is a wrapper around gtk_entry_completion_get_minimum_key_length

func (*EntryCompletion) GetModel Uses

func (v *EntryCompletion) GetModel() (*TreeModel, error)

GetModel is a wrapper around gtk_entry_completion_get_model

func (*EntryCompletion) GetPopupCompletion Uses

func (v *EntryCompletion) GetPopupCompletion() bool

GetPopupCompletion is a wrapper around gtk_entry_completion_get_popup_completion

func (*EntryCompletion) GetPopupSetWidth Uses

func (v *EntryCompletion) GetPopupSetWidth() bool

GetPopupSetWidth is a wrapper around gtk_entry_completion_get_popup_set_width

func (*EntryCompletion) GetTextColumn Uses

func (v *EntryCompletion) GetTextColumn() int

GetTextColumn is a wrapper around gtk_entry_completion_get_text_column

func (*EntryCompletion) SetInlineCompletion Uses

func (v *EntryCompletion) SetInlineCompletion(inlineCompletion bool)

SetInlineCompletion is a wrapper around gtk_entry_completion_set_inline_completion

func (*EntryCompletion) SetMinimumKeyLength Uses

func (v *EntryCompletion) SetMinimumKeyLength(minimumLength int)

SetMinimumKeyLength is a wrapper around gtk_entry_completion_set_minimum_key_length

func (*EntryCompletion) SetModel Uses

func (v *EntryCompletion) SetModel(model ITreeModel)

SetModel is a wrapper around gtk_entry_completion_set_model

func (*EntryCompletion) SetPopupCompletion Uses

func (v *EntryCompletion) SetPopupCompletion(popupCompletion bool)

SetPopupCompletion is a wrapper around gtk_entry_completion_set_popup_completion

func (*EntryCompletion) SetPopupSetWidth Uses

func (v *EntryCompletion) SetPopupSetWidth(popupSetWidth bool)

SetPopupSetWidth is a wrapper around gtk_entry_completion_set_popup_set_width

func (*EntryCompletion) SetTextColumn Uses

func (v *EntryCompletion) SetTextColumn(textColumn int)

SetTextColumn is a wrapper around gtk_entry_completion_set_text_column

type EntryIconPosition Uses

type EntryIconPosition int

EntryIconPosition is a representation of GTK's GtkEntryIconPosition.

const (
    ENTRY_ICON_PRIMARY   EntryIconPosition = C.GTK_ENTRY_ICON_PRIMARY
    ENTRY_ICON_SECONDARY EntryIconPosition = C.GTK_ENTRY_ICON_SECONDARY
)

type EventBox Uses

type EventBox struct {
    Bin
}

EventBox is a representation of GTK's GtkEventBox.

func EventBoxNew Uses

func EventBoxNew() (*EventBox, error)

EventBoxNew is a wrapper around gtk_event_box_new().

func (*EventBox) GetAboveChild Uses

func (v *EventBox) GetAboveChild() bool

GetAboveChild is a wrapper around gtk_event_box_get_above_child().

func (*EventBox) GetVisibleWindow Uses

func (v *EventBox) GetVisibleWindow() bool

GetVisibleWindow is a wrapper around gtk_event_box_get_visible_window().

func (*EventBox) SetAboveChild Uses

func (v *EventBox) SetAboveChild(aboveChild bool)

SetAboveChild is a wrapper around gtk_event_box_set_above_child().

func (*EventBox) SetVisibleWindow Uses

func (v *EventBox) SetVisibleWindow(visibleWindow bool)

SetVisibleWindow is a wrapper around gtk_event_box_set_visible_window().

type Expander Uses

type Expander struct {
    Bin
}

Expander is a representation of GTK's GtkExpander.

func ExpanderNew Uses

func ExpanderNew(label string) (*Expander, error)

ExpanderNew is a wrapper around gtk_expander_new().

func (*Expander) GetExpanded Uses

func (v *Expander) GetExpanded() bool

GetExpanded is a wrapper around gtk_expander_get_expanded().

func (*Expander) GetLabel Uses

func (v *Expander) GetLabel() string

GetLabel is a wrapper around gtk_expander_get_label().

func (*Expander) SetExpanded Uses

func (v *Expander) SetExpanded(expanded bool)

SetExpanded is a wrapper around gtk_expander_set_expanded().

func (*Expander) SetLabel Uses

func (v *Expander) SetLabel(label string)

SetLabel is a wrapper around gtk_expander_set_label().

func (*Expander) SetLabelWidget Uses

func (v *Expander) SetLabelWidget(widget IWidget)

SetLabelWidget is a wrapper around gtk_expander_set_label_widget().

type FileChooser Uses

type FileChooser struct {
    *glib.Object
}

FileChoser is a representation of GTK's GtkFileChooser GInterface.

func (*FileChooser) AddFilter Uses

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

AddFilter is a wrapper around gtk_file_chooser_add_filter().

func (*FileChooser) AddShortcutFolder Uses

func (v *FileChooser) AddShortcutFolder(folder string) bool

AddShortcutFolder is a wrapper around gtk_file_chooser_add_shortcut_folder().

func (*FileChooser) GetCreateFolders Uses

func (v *FileChooser) GetCreateFolders() bool

GetCreateFolders is a wrapper around gtk_file_chooser_get_create_folders().

func (*FileChooser) GetCurrentFolder Uses

func (v *FileChooser) GetCurrentFolder() (string, error)

GetCurrentFolder is a wrapper around gtk_file_chooser_get_current_folder().

func (*FileChooser) GetDoOverwriteConfirmation Uses

func (v *FileChooser) GetDoOverwriteConfirmation() bool

GetDoOverwriteConfirmation is a wrapper around gtk_file_chooser_get_do_overwrite_confirmation().

func (*FileChooser) GetFilename Uses

func (v *FileChooser) GetFilename() string

GetFilename is a wrapper around gtk_file_chooser_get_filename().

func (*FileChooser) GetFilenames Uses

func (v *FileChooser) GetFilenames() (*glib.SList, error)

GetFilenames is a wrapper around gtk_file_chooser_get_filenames().

func (*FileChooser) GetLocalOnly Uses

func (v *FileChooser) GetLocalOnly() bool

GetLocalOnly is a wrapper around gtk_file_chooser_get_local_only().

func (*FileChooser) GetPreviewFilename Uses

func (v *FileChooser) GetPreviewFilename() string

GetPreviewFilename is a wrapper around gtk_file_chooser_get_preview_filename().

func (*FileChooser) GetSelectMultiple Uses

func (v *FileChooser) GetSelectMultiple() bool

GetSelectMultiple is a wrapper around gtk_file_chooser_get_select_multiple().

func (*FileChooser) GetURI Uses

func (v *FileChooser) GetURI() string

GetURI is a wrapper around gtk_file_chooser_get_uri().

func (FileChooser) GetURIs Uses

func (v FileChooser) GetURIs() (*glib.SList, error)

GetURIs is a wrapper around gtk_file_chooser_get_uris().

func (*FileChooser) RemoveFilter Uses

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

RemoveFilter is a wrapper around gtk_file_chooser_remove_filter().

func (*FileChooser) SetCreateFolders Uses

func (v *FileChooser) SetCreateFolders(value bool)

SetCreateFolders is a wrapper around gtk_file_chooser_set_create_folders().

func (*FileChooser) SetCurrentFolder Uses

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

SetCurrentFolder is a wrapper around gtk_file_chooser_set_current_folder().

func (*FileChooser) SetCurrentName Uses

func (v *FileChooser) SetCurrentName(name string)

SetCurrentName is a wrapper around gtk_file_chooser_set_current_name().

func (*FileChooser) SetDoOverwriteConfirmation Uses

func (v *FileChooser) SetDoOverwriteConfirmation(value bool)

SetDoOverwriteConfirmation is a wrapper around gtk_file_chooser_set_do_overwrite_confirmation().

func (*FileChooser) SetFilename Uses

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

SetFilename is a wrapper around gtk_file_chooser_set_filename().

func (*FileChooser) SetFilter Uses

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

SetFilter is a wrapper around gtk_file_chooser_set_filter().

func (*FileChooser) SetLocalOnly Uses

func (v *FileChooser) SetLocalOnly(value bool)

SetLocalOnly is a wrapper around gtk_file_chooser_set_local_only().

func (*FileChooser) SetPreviewWidget Uses

func (v *FileChooser) SetPreviewWidget(widget IWidget)

SetPreviewWidget is a wrapper around gtk_file_chooser_set_preview_widget().

func (*FileChooser) SetPreviewWidgetActive Uses

func (v *FileChooser) SetPreviewWidgetActive(active bool)

SetPreviewWidgetActive is a wrapper around gtk_file_chooser_set_preview_widget_active().

func (*FileChooser) SetSelectMultiple Uses

func (v *FileChooser) SetSelectMultiple(value bool)

SetSelectMultiple is a wrapper around gtk_file_chooser_set_select_multiple().

type FileChooserAction Uses

type FileChooserAction int

FileChooserAction is a representation of GTK's GtkFileChooserAction.

const (
    FILE_CHOOSER_ACTION_OPEN          FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_OPEN
    FILE_CHOOSER_ACTION_SAVE          FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_SAVE
    FILE_CHOOSER_ACTION_SELECT_FOLDER FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER
    FILE_CHOOSER_ACTION_CREATE_FOLDER FileChooserAction = C.GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
)

type FileChooserButton Uses

type FileChooserButton struct {
    Box

    // Interfaces
    FileChooser
}

FileChooserButton is a representation of GTK's GtkFileChooserButton.

func FileChooserButtonNew Uses

func FileChooserButtonNew(title string, action FileChooserAction) (*FileChooserButton, error)

FileChooserButtonNew is a wrapper around gtk_file_chooser_button_new().

type FileChooserDialog Uses

type FileChooserDialog struct {
    Dialog

    // Interfaces
    FileChooser
}

FileChooserDialog is a representation of GTK's GtkFileChooserDialog.

func FileChooserDialogNewWith1Button Uses

func FileChooserDialogNewWith1Button(
    title string,
    parent IWindow,
    action FileChooserAction,
    first_button_text string,
    first_button_id ResponseType) (*FileChooserDialog, error)

FileChooserDialogNewWith1Button is a wrapper around gtk_file_chooser_dialog_new() with one button.

func FileChooserDialogNewWith2Buttons Uses

func FileChooserDialogNewWith2Buttons(
    title string,
    parent IWindow,
    action FileChooserAction,
    first_button_text string,
    first_button_id ResponseType,
    second_button_text string,
    second_button_id ResponseType) (*FileChooserDialog, error)

FileChooserDialogNewWith2Buttons is a wrapper around gtk_file_chooser_dialog_new() with two buttons.

type FileChooserNativeDialog Uses

type FileChooserNativeDialog struct {
    NativeDialog

    // Interfaces
    FileChooser
}

FileChooserNativeDialog is a representation of GTK's GtkFileChooserNative.

func FileChooserNativeDialogNew Uses

func FileChooserNativeDialogNew(
    title string,
    parent IWindow,
    action FileChooserAction,
    accept_label string,
    cancel_label string) (*FileChooserNativeDialog, error)

FileChooserNativeDialogNew is a wrapper around gtk_file_chooser_native_new().

func (*FileChooserNativeDialog) GetAcceptLabel Uses

func (v *FileChooserNativeDialog) GetAcceptLabel() (string, error)

GetAcceptLabel() is a wrapper around gtk_file_chooser_native_get_accept_label().

func (*FileChooserNativeDialog) GetCancelLabel Uses

func (v *FileChooserNativeDialog) GetCancelLabel() (string, error)

GetCancelLabel() is a wrapper around gtk_file_chooser_native_get_cancel_label().

func (*FileChooserNativeDialog) SetAcceptLabel Uses

func (v *FileChooserNativeDialog) SetAcceptLabel(accept_label string)

SetAcceptLabel is a wrapper around gtk_file_chooser_native_set_accept_label().

func (*FileChooserNativeDialog) SetCancelLabel Uses

func (v *FileChooserNativeDialog) SetCancelLabel(cancel_label string)

SetCancelLabel is a wrapper around gtk_file_chooser_native_set_cancel_label().

type FileChooserWidget Uses

type FileChooserWidget struct {
    Box

    // Interfaces
    FileChooser
}

FileChooserWidget is a representation of GTK's GtkFileChooserWidget.

func FileChooserWidgetNew Uses

func FileChooserWidgetNew(action FileChooserAction) (*FileChooserWidget, error)

FileChooserWidgetNew is a wrapper around gtk_file_chooser_widget_new().

type FileFilter Uses

type FileFilter struct {
    *glib.Object
}

FileChoser is a representation of GTK's GtkFileFilter GInterface.

func FileFilterNew Uses

func FileFilterNew() (*FileFilter, error)

FileFilterNew is a wrapper around gtk_file_filter_new().

func (*FileFilter) AddPattern Uses

func (v *FileFilter) AddPattern(pattern string)

AddPattern is a wrapper around gtk_file_filter_add_pattern().

func (*FileFilter) AddPixbufFormats Uses

func (v *FileFilter) AddPixbufFormats()

AddPixbufFormats is a wrapper around gtk_file_filter_add_pixbuf_formats().

func (*FileFilter) SetName Uses

func (v *FileFilter) SetName(name string)

SetName is a wrapper around gtk_file_filter_set_name().

type Fixed Uses

type Fixed struct {
    Container
}

Fixed is a representation of GTK's GtkFixed.

func FixedNew Uses

func FixedNew() (*Fixed, error)

FixedNew is a wrapper around gtk_fixed_new().

func (*Fixed) Move Uses

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

Move is a wrapper around gtk_fixed_move().

func (*Fixed) Put Uses

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

Put is a wrapper around gtk_fixed_put().

type FlowBox Uses

type FlowBox struct {
    Container
}

* FlowBox

func FlowBoxNew Uses

func FlowBoxNew() (*FlowBox, error)

FlowBoxNew is a wrapper around gtk_flow_box_new()

func (*FlowBox) GetActivateOnSingleClick Uses

func (fb *FlowBox) GetActivateOnSingleClick() bool

GetActivateOnSingleClick gtk_flow_box_get_activate_on_single_click()

func (*FlowBox) GetChildAtIndex Uses

func (fb *FlowBox) GetChildAtIndex(idx int) *FlowBoxChild

GetChildAtIndex is a wrapper around gtk_flow_box_get_child_at_index()

func (*FlowBox) GetColumnSpacing Uses

func (fb *FlowBox) GetColumnSpacing() uint

GetColumnSpacing is a wrapper around gtk_flow_box_get_column_spacing()

func (*FlowBox) GetHomogeneous Uses

func (fb *FlowBox) GetHomogeneous() bool

GetHomogeneous is a wrapper around gtk_flow_box_get_homogeneous()

func (*FlowBox) GetMaxChildrenPerLine Uses

func (fb *FlowBox) GetMaxChildrenPerLine() uint

GetMaxChildrenPerLine is a wrapper around gtk_flow_box_get_max_children_per_line()

func (*FlowBox) GetMinChildrenPerLine Uses

func (fb *FlowBox) GetMinChildrenPerLine() uint

GetMinChildrenPerLine is a wrapper around gtk_flow_box_get_min_children_per_line()

func (*FlowBox) GetRowSpacing Uses

func (fb *FlowBox) GetRowSpacing() uint

GetRowSpacing is a wrapper around gtk_flow_box_get_row_spacing()

func (*FlowBox) GetSelectedChildren Uses

func (fb *FlowBox) GetSelectedChildren() (rv []*FlowBoxChild)

GetSelectedChildren is a wrapper around gtk_flow_box_get_selected_children()

func (*FlowBox) GetSelectionMode Uses

func (fb *FlowBox) GetSelectionMode() SelectionMode

GetSelectionMode is a wrapper around gtk_flow_box_get_selection_mode()

func (*FlowBox) Insert Uses

func (fb *FlowBox) Insert(widget IWidget, position int)

Insert is a wrapper around gtk_flow_box_insert()

func (*FlowBox) SelectAll Uses

func (fb *FlowBox) SelectAll()

SelectAll is a wrapper around gtk_flow_box_select_all()

func (*FlowBox) SelectChild Uses

func (fb *FlowBox) SelectChild(child *FlowBoxChild)

SelectChild is a wrapper around gtk_flow_box_select_child()

func (*FlowBox) SetActivateOnSingleClick Uses

func (fb *FlowBox) SetActivateOnSingleClick(single bool)

SetActivateOnSingleClick is a wrapper around gtk_flow_box_set_activate_on_single_click()

func (*FlowBox) SetColumnSpacing Uses

func (fb *FlowBox) SetColumnSpacing(spacing uint)

SetColumnSpacing is a wrapper around gtk_flow_box_set_column_spacing()

func (*FlowBox) SetHAdjustment Uses

func (fb *FlowBox) SetHAdjustment(adjustment *Adjustment)

SetHAdjustment is a wrapper around gtk_flow_box_set_hadjustment()

func (*FlowBox) SetHomogeneous Uses

func (fb *FlowBox) SetHomogeneous(homogeneous bool)

SetHomogeneous is a wrapper around gtk_flow_box_set_homogeneous()

func (*FlowBox) SetMaxChildrenPerLine Uses

func (fb *FlowBox) SetMaxChildrenPerLine(n_children uint)

SetMaxChildrenPerLine is a wrapper around gtk_flow_box_set_max_children_per_line()

func (*FlowBox) SetMinChildrenPerLine Uses

func (fb *FlowBox) SetMinChildrenPerLine(n_children uint)

SetMinChildrenPerLine is a wrapper around gtk_flow_box_set_min_children_per_line()

func (*FlowBox) SetRowSpacing Uses

func (fb *FlowBox) SetRowSpacing(spacing uint)

SetRowSpacing is a wrapper around gtk_flow_box_set_row_spacing()

func (*FlowBox) SetSelectionMode Uses

func (fb *FlowBox) SetSelectionMode(mode SelectionMode)

SetSelectionMode is a wrapper around gtk_flow_box_set_selection_mode()

func (*FlowBox) SetVAdjustment Uses

func (fb *FlowBox) SetVAdjustment(adjustment *Adjustment)

SetVAdjustment is a wrapper around gtk_flow_box_set_vadjustment()

func (*FlowBox) UnselectAll Uses

func (fb *FlowBox) UnselectAll()

UnselectAll is a wrapper around gtk_flow_box_unselect_all()

func (*FlowBox) UnselectChild Uses

func (fb *FlowBox) UnselectChild(child *FlowBoxChild)

UnselectChild is a wrapper around gtk_flow_box_unselect_child()

type FlowBoxChild Uses

type FlowBoxChild struct {
    Bin
}

* FlowBoxChild

func FlowBoxChildNew Uses

func FlowBoxChildNew() (*FlowBoxChild, error)

FlowBoxChildNew is a wrapper around gtk_flow_box_child_new()

func (*FlowBoxChild) Changed Uses

func (fbc *FlowBoxChild) Changed()

Changed is a wrapper around gtk_flow_box_child_changed()

func (*FlowBoxChild) GetIndex Uses

func (fbc *FlowBoxChild) GetIndex() int

GetIndex is a wrapper around gtk_flow_box_child_get_index()

func (*FlowBoxChild) IsSelected Uses

func (fbc *FlowBoxChild) IsSelected() bool

IsSelected is a wrapper around gtk_flow_box_child_is_selected()

type FontButton Uses

type FontButton struct {
    Button

    // Interfaces
    FontChooser
}

FontButton is a representation of GTK's GtkFontButton.

func FontButtonNew Uses

func FontButtonNew() (*FontButton, error)

FontButtonNew is a wrapper around gtk_font_button_new().

func FontButtonNewWithFont Uses

func FontButtonNewWithFont(fontname string) (*FontButton, error)

FontButtonNewWithFont is a wrapper around gtk_font_button_new_with_font().

type FontChooser Uses

type FontChooser struct {
    *glib.Object
}

FontChooser is a representation of GTK's GtkFontChooser GInterface.

func (*FontChooser) GetFont Uses

func (v *FontChooser) GetFont() string

GetFont is a wrapper around gtk_font_chooser_get_font().

func (*FontChooser) SetFont Uses

func (v *FontChooser) SetFont(font string)

SetFont is a wrapper around gtk_font_chooser_set_font().

type Frame Uses

type Frame struct {
    Bin
}

Frame is a representation of GTK's GtkFrame.

func FrameNew Uses

func FrameNew(label string) (*Frame, error)

FrameNew is a wrapper around gtk_frame_new().

func (*Frame) GetLabel Uses

func (v *Frame) GetLabel() string

GetLabel is a wrapper around gtk_frame_get_label().

func (*Frame) GetLabelAlign Uses

func (v *Frame) GetLabelAlign() (xAlign, yAlign float32)

GetLabelAlign is a wrapper around gtk_frame_get_label_align().

func (*Frame) GetLabelWidget Uses

func (v *Frame) GetLabelWidget() (*Widget, error)

GetLabelWidget is a wrapper around gtk_frame_get_label_widget().

func (*Frame) GetShadowType Uses

func (v *Frame) GetShadowType() ShadowType

GetShadowType is a wrapper around gtk_frame_get_shadow_type().

func (*Frame) SetLabel Uses

func (v *Frame) SetLabel(label string)

SetLabel is a wrapper around gtk_frame_set_label().

func (*Frame) SetLabelAlign Uses

func (v *Frame) SetLabelAlign(xAlign, yAlign float32)

SetLabelAlign is a wrapper around gtk_frame_set_label_align().

func (*Frame) SetLabelWidget Uses

func (v *Frame) SetLabelWidget(labelWidget IWidget)

SetLabelWidget is a wrapper around gtk_frame_set_label_widget().

func (*Frame) SetShadowType Uses

func (v *Frame) SetShadowType(t ShadowType)

SetShadowType is a wrapper around gtk_frame_set_shadow_type().

type GLArea Uses

type GLArea struct {
    Widget
}

GLArea is a representation of GTK's GtkGLArea.

func GLAreaNew Uses

func GLAreaNew() (*GLArea, error)

GLAreaNew is a wrapper around gtk_gl_area_new().

func WidgetToGLArea Uses

func WidgetToGLArea(widget *Widget) (*GLArea, error)

func (*GLArea) AttachBuffers Uses

func (v *GLArea) AttachBuffers()

AttachBuffers is a wrapper around gtk_gl_area_attach_buffers().

func (*GLArea) GetAutoRender Uses

func (v *GLArea) GetAutoRender() bool

GetAutoRender is a wrapper around gtk_gl_area_get_auto_render().

func (*GLArea) GetContext Uses

func (v *GLArea) GetContext() (*gdk.GLContext, error)

GetContext is a wrapper around gtk_gl_area_get_context().

func (*GLArea) GetError Uses

func (v *GLArea) GetError() error

GError* gtk_gl_area_get_error (GtkGLArea *area);

func (*GLArea) GetRequiredVersion Uses

func (v *GLArea) GetRequiredVersion() (MajorVersion, MinorVersion)

GetRequiredVersion is a wrapper around gtk_gl_area_get_required_version().

func (*GLArea) GetUseES Uses

func (v *GLArea) GetUseES() bool

GetUseES is a wrapper around gtk_gl_area_get_use_es().

func (*GLArea) HasDepthBuffer Uses

func (v *GLArea) HasDepthBuffer() bool

HasDepthBuffer is a wrapper around gtk_gl_area_get_has_depth_buffer().

func (*GLArea) HasStencilBuffer Uses

func (v *GLArea) HasStencilBuffer() bool

HasStencilBuffer is a wrapper around gtk_gl_area_get_has_stencil_buffer().

func (*GLArea) MakeCurrent Uses

func (v *GLArea) MakeCurrent()

MakeCurrent is a wrapper around gtk_gl_area_make_current().

func (*GLArea) QueueRender Uses

func (v *GLArea) QueueRender()

QueueRender is a wrapper around gtk_gl_area_queue_render().

func (*GLArea) SetAutoRender Uses

func (v *GLArea) SetAutoRender(autoRender bool)

SetAutoRender is a wrapper around gtk_gl_area_set_has_stencil_buffer().

func (*GLArea) SetHasDepthBuffer Uses

func (v *GLArea) SetHasDepthBuffer(hasDepthBuffer bool)

SetHasDepthBuffer is a wrapper around gtk_gl_area_set_has_depth_buffer().

func (*GLArea) SetHasStencilBuffer Uses

func (v *GLArea) SetHasStencilBuffer(hasStencilBuffer bool)

SetHasStencilBuffer is a wrapper around gtk_gl_area_set_has_stencil_buffer().

func (*GLArea) SetRequiredVersion Uses

func (v *GLArea) SetRequiredVersion(major, minor int)

SetRequiredVersion is a wrapper around gtk_gl_area_set_required_version().

func (*GLArea) SetUseES Uses

func (v *GLArea) SetUseES(es bool)

SetUseES is a wrapper around gtk_gl_area_set_use_es().

type Grid Uses

type Grid struct {
    Container

    // Interfaces
    Orientable
}

Grid is a representation of GTK's GtkGrid.

func GridNew Uses

func GridNew() (*Grid, error)

GridNew() is a wrapper around gtk_grid_new().

func (*Grid) Attach Uses

func (v *Grid) Attach(child IWidget, left, top, width, height int)

Attach() is a wrapper around gtk_grid_attach().

func (*Grid) AttachNextTo Uses

func (v *Grid) AttachNextTo(child, sibling IWidget, side PositionType, width, height int)

AttachNextTo() is a wrapper around gtk_grid_attach_next_to().

func (*Grid) GetChildAt Uses

func (v *Grid) GetChildAt(left, top int) (*Widget, error)

GetChildAt() is a wrapper around gtk_grid_get_child_at().

func (*Grid) GetColumnHomogeneous Uses

func (v *Grid) GetColumnHomogeneous() bool

GetColumnHomogeneous() is a wrapper around gtk_grid_get_column_homogeneous().

func (*Grid) GetColumnSpacing Uses

func (v *Grid) GetColumnSpacing() uint

GetColumnSpacing() is a wrapper around gtk_grid_get_column_spacing().

func (*Grid) GetRowHomogeneous Uses

func (v *Grid) GetRowHomogeneous() bool

GetRowHomogeneous() is a wrapper around gtk_grid_get_row_homogeneous().

func (*Grid) GetRowSpacing Uses

func (v *Grid) GetRowSpacing() uint

GetRowSpacing() is a wrapper around gtk_grid_get_row_spacing().

func (*Grid) InsertColumn Uses

func (v *Grid) InsertColumn(position int)

InsertColumn() is a wrapper around gtk_grid_insert_column().

func (*Grid) InsertNextTo Uses

func (v *Grid) InsertNextTo(sibling IWidget, side PositionType)

InsertNextTo() is a wrapper around gtk_grid_insert_next_to()

func (*Grid) InsertRow Uses

func (v *Grid) InsertRow(position int)

InsertRow() is a wrapper around gtk_grid_insert_row().

func (*Grid) RemoveColumn Uses

func (v *Grid) RemoveColumn(position int)

RemoveColumn() is a wrapper around gtk_grid_remove_column().

func (*Grid) RemoveRow Uses

func (v *Grid) RemoveRow(position int)

RemoveRow() is a wrapper around gtk_grid_remove_row().

func (*Grid) SetColumnHomogeneous Uses

func (v *Grid) SetColumnHomogeneous(homogeneous bool)

SetColumnHomogeneous() is a wrapper around gtk_grid_set_column_homogeneous().

func (*Grid) SetColumnSpacing Uses

func (v *Grid) SetColumnSpacing(spacing uint)

SetColumnSpacing() is a wrapper around gtk_grid_set_column_spacing().

func (*Grid) SetRowHomogeneous Uses

func (v *Grid) SetRowHomogeneous(homogeneous bool)

SetRowHomogeneous() is a wrapper around gtk_grid_set_row_homogeneous().

func (*Grid) SetRowSpacing Uses

func (v *Grid) SetRowSpacing(spacing uint)

SetRowSpacing() is a wrapper around gtk_grid_set_row_spacing().

type HeaderBar Uses

type HeaderBar struct {
    Container
}

func HeaderBarNew Uses

func HeaderBarNew() (*HeaderBar, error)

HeaderBarNew is a wrapper around gtk_header_bar_new().

func (*HeaderBar) GetCustomTitle Uses

func (v *HeaderBar) GetCustomTitle() (*Widget, error)

GetCustomTitle is a wrapper around gtk_header_bar_get_custom_title().

func (*HeaderBar) GetDecorationLayout Uses

func (v *HeaderBar) GetDecorationLayout() string

GetDecorationLayout is a wrapper around gtk_header_bar_get_decoration_layout().

func (*HeaderBar) GetHasSubtitle Uses

func (v *HeaderBar) GetHasSubtitle() bool

GetHasSubtitle is a wrapper around gtk_header_bar_get_has_subtitle().

func (*HeaderBar) GetShowCloseButton Uses

func (v *HeaderBar) GetShowCloseButton() bool

GetShowCloseButton is a wrapper around gtk_header_bar_get_show_close_button().

func (*HeaderBar) GetSubtitle Uses

func (v *HeaderBar) GetSubtitle() string

GetSubtitle is a wrapper around gtk_header_bar_get_subtitle().

func (*HeaderBar) GetTitle Uses

func (v *HeaderBar) GetTitle() string

GetTitle is a wrapper around gtk_header_bar_get_title().

func (*HeaderBar) PackEnd Uses

func (v *HeaderBar) PackEnd(child IWidget)

PackEnd is a wrapper around gtk_header_bar_pack_end().

func (*HeaderBar) PackStart Uses

func (v *HeaderBar) PackStart(child IWidget)

PackStart is a wrapper around gtk_header_bar_pack_start().

func (*HeaderBar) SetCustomTitle Uses

func (v *HeaderBar) SetCustomTitle(titleWidget IWidget)

SetCustomTitle is a wrapper around gtk_header_bar_set_custom_title().

func (*HeaderBar) SetDecorationLayout Uses

func (v *HeaderBar) SetDecorationLayout(layout string)

SetDecorationLayout is a wrapper around gtk_header_bar_set_decoration_layout().

func (*HeaderBar) SetHasSubtitle Uses

func (v *HeaderBar) SetHasSubtitle(setting bool)

SetHasSubtitle is a wrapper around gtk_header_bar_set_has_subtitle().

func (*HeaderBar) SetShowCloseButton Uses

func (v *HeaderBar) SetShowCloseButton(setting bool)

SetShowCloseButton is a wrapper around gtk_header_bar_set_show_close_button().

func (*HeaderBar) SetSubtitle Uses

func (v *HeaderBar) SetSubtitle(subtitle string)

SetSubtitle is a wrapper around gtk_header_bar_set_subtitle().

func (*HeaderBar) SetTitle Uses

func (v *HeaderBar) SetTitle(title string)

SetTitle is a wrapper around gtk_header_bar_set_title().

type IActionable Uses

type IActionable interface {
    Native() uintptr

    SetActionName(name string)
    GetActionName() (string, error)
    // SetActionTargetValue(value *glib.Variant)
    // GetActionTargetValue() (*glib.Variant, error)
    // SetActionTarget(string, params...)
    SetDetailedActionName(name string)
    // contains filtered or unexported methods
}

IActionable is a representation of the GtkActionable GInterface, used to avoid duplication when embedding the type in a wrapper of another GObject-based type. The non-Interface version should only be used Actionable is used if the concrete type is not known.

type IAppChooser Uses

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

IAppChooser is an interface type implemented by all structs embedding an AppChooser. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkAppChooser.

type ICellLayout Uses

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

ICellLayout is an interface type implemented by all structs embedding a CellLayout. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkCellLayout.

type ICellRenderer Uses

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

ICellRenderer is an interface type implemented by all structs embedding a CellRenderer. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkCellRenderer.

type IColorChooser Uses

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

IColorChooser is an interface type implemented by all structs embedding an ColorChooser. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkColorChooser.

type IEditable Uses

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

IEditable is an interface type implemented by all structs embedding an Editable. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkEditable.

type IEntry Uses

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

type IFontChooser Uses

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

IFontChooser is an interface type implemented by all structs embedding an FontChooser. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkFontChooser.

type IMenu Uses

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

IMenu is an interface type implemented by all structs embedding a Menu. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkMenu.

type IMenuItem Uses

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

IMenuItem is an interface type implemented by all structs embedding a MenuItem. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkMenuItem.

type IOrientable Uses

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

IOrientable is an interface type implemented by all structs embedding an Orientable. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkOrientable.

type IPrintOperationPreview Uses

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

IPrintOperationPreview is an interface type implemented by all structs embedding a PrintOperationPreview. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkPrintOperationPreview.

type IRecentChooser Uses

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

IRecentChooser is an interface type implemented by all structs embedding a RecentChooser. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkWidget.

type IScrollable Uses

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

IScrollable is an interface type implemented by all structs embedding a Scrollable. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkScrollable.

type IStyleProvider Uses

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

type IToolItem Uses

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

IToolItem is an interface type implemented by all structs embedding a ToolItem. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkToolItem.

type ITreeModel Uses

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

ITreeModel is an interface type implemented by all structs embedding a TreeModel. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkTreeModel.

type IViewport Uses

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

IViewport is an interface type implemented by all structs embedding a Viewport. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkViewport.

type IWidget Uses

type IWidget interface {
    Set(string, interface{}) error
    // contains filtered or unexported methods
}

IWidget is an interface type implemented by all structs embedding a Widget. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkWidget.

type IWidgetable Uses

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

type IWindow Uses

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

IWindow is an interface type implemented by all structs embedding a Window. It is meant to be used as an argument type for wrapper functions that wrap around a C GTK function taking a GtkWindow.

type IconLookupFlags Uses

type IconLookupFlags int

IconLookupFlags is a representation of GTK's GtkIconLookupFlags.

type IconSize Uses

type IconSize int

IconSize is a representation of GTK's GtkIconSize.

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

type IconTheme Uses

type IconTheme struct {
    Theme *C.GtkIconTheme
}

IconTheme is a representation of GTK's GtkIconTheme

func IconThemeGetDefault Uses

func IconThemeGetDefault() (*IconTheme, error)

IconThemeGetDefault is a wrapper around gtk_icon_theme_get_default().

func IconThemeGetForScreen Uses

func IconThemeGetForScreen(screen gdk.Screen) (*IconTheme, error)

IconThemeGetForScreen is a wrapper around gtk_icon_theme_get_for_screen().

func (*IconTheme) LoadIcon Uses

func (v *IconTheme) LoadIcon(iconName string, size int, flags IconLookupFlags) (*gdk.Pixbuf, error)

LoadIcon is a wrapper around gtk_icon_theme_load_icon().

type IconView Uses

type IconView struct {
    Container
}

IconView is a representation of GTK's GtkIconView.

func IconViewNew Uses

func IconViewNew() (*IconView, error)

IconViewNew is a wrapper around gtk_icon_view_new().

func IconViewNewWithModel Uses

func IconViewNewWithModel(model ITreeModel) (*IconView, error)

IconViewNewWithModel is a wrapper around gtk_icon_view_new_with_model().

func (*IconView) ActivateOnSingleClick Uses

func (v *IconView) ActivateOnSingleClick() bool

ActivateOnSingleClick is a wrapper around gtk_icon_view_get_activate_on_single_click().

func (*IconView) ConvertWidgetToBinWindowCoords Uses

func (v *IconView) ConvertWidgetToBinWindowCoords(x, y int) (int, int)

ConvertWidgetToBinWindowCoords is a wrapper around gtk_icon_view_convert_widget_to_bin_window_coords().

func (*IconView) GetCellRect Uses

func (v *IconView) GetCellRect(path *TreePath, cell *CellRenderer) *gdk.Rectangle

GetCellRect is a wrapper around gtk_icon_view_get_cell_rect().

func (*IconView) GetColumnSpacing Uses

func (v *IconView) GetColumnSpacing() int

GetColumnSpacing is a wrapper around gtk_icon_view_get_column_spacing().

func (*IconView) GetColumns Uses

func (v *IconView) GetColumns() int

GetColumns is a wrapper around gtk_icon_view_get_columns().

func (*IconView) GetCursor Uses

func (v *IconView) GetCursor() (*TreePath, *CellRenderer)

GetCursor is a wrapper around gtk_icon_view_get_cursor().

func (*IconView) GetItemAtPos Uses

func (v *IconView) GetItemAtPos(x, y int) (*TreePath, *CellRenderer)

GetItemAtPos is a wrapper around gtk_icon_view_get_item_at_pos().

func (*IconView) GetItemOrientation Uses

func (v *IconView) GetItemOrientation() Orientation

GetItemOrientation is a wrapper around gtk_icon_view_get_item_orientation().

func (*IconView) GetItemPadding Uses

func (v *IconView) GetItemPadding() int

GetItemPadding is a wrapper around gtk_icon_view_get_item_padding().

func (*IconView) GetItemRow Uses

func (v *IconView) GetItemRow(path *TreePath) int

GetItemRow is a wrapper around gtk_icon_view_get_item_row().

func (*IconView) GetItemWidth Uses

func (v *IconView) GetItemWidth() int

GetItemWidth is a wrapper around gtk_icon_view_get_item_width().

func (*IconView) GetMargin Uses

func (v *IconView) GetMargin() int

GetMargin is a wrapper around gtk_icon_view_get_margin().

func (*IconView) GetMarkupColumn Uses

func (v *IconView) GetMarkupColumn() int

GetMarkupColumn is a wrapper around gtk_icon_view_get_markup_column().

func (*IconView) GetModel Uses

func (v *IconView) GetModel() (*TreeModel, error)

GetModel is a wrapper around gtk_icon_view_get_model().

func (*IconView) GetPathAtPos Uses

func (v *IconView) GetPathAtPos(x, y int) *TreePath

GetPathAtPos is a wrapper around gtk_icon_view_get_path_at_pos().

func (*IconView) GetPixbufColumn Uses

func (v *IconView) GetPixbufColumn() int

GetPixbufColumn is a wrapper around gtk_icon_view_get_pixbuf_column().

func (*IconView) GetReorderable Uses

func (v *IconView) GetReorderable() bool

GetReorderable is a wrapper around gtk_icon_view_get_reorderable().

func (*IconView) GetRowSpacing Uses

func (v *IconView) GetRowSpacing() int

GetRowSpacing is a wrapper around gtk_icon_view_get_row_spacing().

func (*IconView) GetSelectedItems Uses

func (v *IconView) GetSelectedItems() *glib.List

GetSelectedItems is a wrapper around gtk_icon_view_unselect_path().

func (*IconView) GetSelectionMode Uses

func (v *IconView) GetSelectionMode() SelectionMode

GetSelectionMode is a wrapper around gtk_icon_view_get_selection_mode().

func (*IconView) GetSpacing Uses

func (v *IconView) GetSpacing() int

GetSpacing is a wrapper around gtk_icon_view_get_spacing().

func (*IconView) GetTextColumn Uses

func (v *IconView) GetTextColumn() int

GetTextColumn is a wrapper around gtk_icon_view_get_text_column().

func (*IconView) GetTooltipColumn Uses

func (v *IconView) GetTooltipColumn() int

GetTooltipColumn is a wrapper around gtk_icon_view_get_tooltip_column().

func (*IconView) GetTooltipContext Uses

func (v *IconView) GetTooltipContext(x, y int, keyboardTip bool) (*TreeModel, *TreePath, *TreeIter)

GetTooltipContext is a wrapper around gtk_icon_view_get_tooltip_context().

func (*IconView) GetVisibleRange Uses

func (v *IconView) GetVisibleRange() (*TreePath, *TreePath)

GetVisibleRange is a wrapper around gtk_icon_view_get_visible_range().

func (*IconView) ItemActivated Uses

func (v *IconView) ItemActivated(path *TreePath)

ItemActivated is a wrapper around gtk_icon_view_item_activated().

func (*IconView) PathIsSelected Uses

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

PathIsSelected is a wrapper around gtk_icon_view_path_is_selected().

func (*IconView) ScrollToPath Uses

func (v *IconView) ScrollToPath(path *TreePath, useAlign bool, rowAlign, colAlign float64)

ScrollToPath is a wrapper around gtk_icon_view_scroll_to_path().

func (*IconView) SelectAll Uses

func (v *IconView) SelectAll()

SelectAll is a wrapper around gtk_icon_view_select_all().

func (*IconView) SelectPath Uses

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

SelectPath is a wrapper around gtk_icon_view_select_path().

func (*IconView) SetActivateOnSingleClick Uses

func (v *IconView) SetActivateOnSingleClick(single bool)

SetActivateOnSingleClick is a wrapper around gtk_icon_view_set_activate_on_single_click().

func (*IconView) SetColumnSpacing Uses

func (v *IconView) SetColumnSpacing(columnSpacing int)

SetColumnSpacing is a wrapper around gtk_icon_view_set_column_spacing().

func (*IconView) SetColumns Uses

func (v *IconView) SetColumns(columns int)

SetColumns is a wrapper around gtk_icon_view_set_columns().

func (*IconView) SetCursor Uses

func (v *IconView) SetCursor(path *TreePath, cell *CellRenderer, startEditing bool)

SetCursor is a wrapper around gtk_icon_view_set_selection_mode().

func (*IconView) SetItemOrientation Uses

func (v *IconView) SetItemOrientation(orientation Orientation)

SetItemOrientation is a wrapper around gtk_icon_view_set_item_orientation().

func (*IconView) SetItemPadding Uses

func (v *IconView) SetItemPadding(itemPadding int)

SetItemPadding is a wrapper around gtk_icon_view_set_item_padding().

func (*IconView) SetItemWidth Uses

func (v *IconView) SetItemWidth(width int)

SetItemWidth is a wrapper around gtk_icon_view_set_item_width().

func (*IconView) SetMargin Uses

func (v *IconView) SetMargin(margin int)

SetMargin is a wrapper around gtk_icon_view_set_margin().

func (*IconView) SetMarkupColumn Uses

func (v *IconView) SetMarkupColumn(column int)

SetMarkupColumn is a wrapper around gtk_icon_view_set_markup_column().

func (*IconView) SetModel Uses

func (v *IconView) SetModel(model ITreeModel)

SetModel is a wrapper around gtk_icon_view_set_model().

func (*IconView) SetPixbufColumn Uses

func (v *IconView) SetPixbufColumn(column int)

SetPixbufColumn is a wrapper around gtk_icon_view_set_pixbuf_column().

func (*IconView) SetReorderable Uses

func (v *IconView) SetReorderable(reorderable bool)

SetReorderable is a wrapper around gtk_icon_view_set_reorderable().

func (*IconView) SetRowSpacing Uses

func (v *IconView) SetRowSpacing(rowSpacing int)

SetRowSpacing is a wrapper around gtk_icon_view_set_row_spacing().

func (*IconView) SetSelectionMode Uses

func (v *IconView) SetSelectionMode(mode SelectionMode)

SetSelectionMode is a wrapper around gtk_icon_view_set_selection_mode().

func (*IconView) SetSpacing Uses

func (v *IconView) SetSpacing(spacing int)

SetSpacing is a wrapper around gtk_icon_view_set_spacing().

func (*IconView) SetTextColumn Uses

func (v *IconView) SetTextColumn(column int)

SetTextColumn is a wrapper around gtk_icon_view_set_text_column().

func (*IconView) SetTooltipCell Uses

func (v *IconView) SetTooltipCell(tooltip *Tooltip, path *TreePath, cell *CellRenderer)

SetTooltipCell is a wrapper around gtk_icon_view_set_tooltip_cell().

func (*IconView) SetTooltipColumn Uses

func (v *IconView) SetTooltipColumn(column int)

SetTooltipColumn is a wrapper around gtk_icon_view_set_tooltip_column().

func (*IconView) SetTooltipItem Uses

func (v *IconView) SetTooltipItem(tooltip *Tooltip, path *TreePath)

SetTooltipItem is a wrapper around gtk_icon_view_set_tooltip_item().

func (*IconView) UnselectAll Uses

func (v *IconView) UnselectAll()

UnselectAll is a wrapper around gtk_icon_view_unselect_all().

func (*IconView) UnselectPath Uses

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

UnselectPath is a wrapper around gtk_icon_view_unselect_path().

type Image Uses

type Image struct {
    Widget
}

Image is a representation of GTK's GtkImage.

func ImageNew Uses

func ImageNew() (*Image, error)

ImageNew() is a wrapper around gtk_image_new().

func ImageNewFromAnimation Uses

func ImageNewFromAnimation(animation *gdk.PixbufAnimation) (*Image, error)

ImageNewFromAnimation() is a wrapper around gtk_image_new_from_animation()

func ImageNewFromFile Uses

func ImageNewFromFile(filename string) (*Image, error)

ImageNewFromFile() is a wrapper around gtk_image_new_from_file().

func ImageNewFromIconName Uses

func ImageNewFromIconName(iconName string, size IconSize) (*Image, error)

ImageNewFromIconName() is a wrapper around gtk_image_new_from_icon_name().

func ImageNewFromPixbuf Uses

func ImageNewFromPixbuf(pixbuf *gdk.Pixbuf) (*Image, error)

ImageNewFromPixbuf is a wrapper around gtk_image_new_from_pixbuf().

func ImageNewFromResource Uses

func ImageNewFromResource(resourcePath string) (*Image, error)

ImageNewFromResource() is a wrapper around gtk_image_new_from_resource().

func (*Image) Clear Uses

func (v *Image) Clear()

Clear() is a wrapper around gtk_image_clear().

func (*Image) GetAnimation Uses

func (v *Image) GetAnimation() *gdk.PixbufAnimation

GetAnimation() is a wrapper around gtk_image_get_animation()

func (*Image) GetIconName Uses

func (v *Image) GetIconName() (string, IconSize)

GetIconName() is a wrapper around gtk_image_get_icon_name().

func (*Image) GetPixbuf Uses

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

GetPixbuf() is a wrapper around gtk_image_get_pixbuf().

func (*Image) GetPixelSize Uses

func (v *Image) GetPixelSize() int

GetPixelSize() is a wrapper around gtk_image_get_pixel_size().

func (*Image) GetStorageType Uses

func (v *Image) GetStorageType() ImageType

GetStorageType() is a wrapper around gtk_image_get_storage_type().

func (*Image) SetFromAnimation Uses

func (v *Image) SetFromAnimation(animation *gdk.PixbufAnimation)

SetFromAnimation is a wrapper around gtk_image_set_from_animation().

func (*Image) SetFromFile Uses

func (v *Image) SetFromFile(filename string)

SetFromFile() is a wrapper around gtk_image_set_from_file().

func (*Image) SetFromIconName Uses

func (v *Image) SetFromIconName(iconName string, size IconSize)

SetFromIconName() is a wrapper around gtk_image_set_from_icon_name().

func (*Image) SetFromPixbuf Uses

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

SetFromFixbuf is a wrapper around gtk_image_set_from_pixbuf().

func (*Image) SetFromResource Uses

func (v *Image) SetFromResource(resourcePath string)

SetFromResource() is a wrapper around gtk_image_set_from_resource().

func (*Image) SetPixelSize Uses

func (v *Image) SetPixelSize(pixelSize int)

SetPixelSize() is a wrapper around gtk_image_set_pixel_size().

type ImageType Uses

type ImageType int

ImageType is a representation of GTK's GtkImageType.

const (
    IMAGE_EMPTY     ImageType = C.GTK_IMAGE_EMPTY
    IMAGE_PIXBUF    ImageType = C.GTK_IMAGE_PIXBUF
    IMAGE_STOCK     ImageType = C.GTK_IMAGE_STOCK
    IMAGE_ICON_SET  ImageType = C.GTK_IMAGE_ICON_SET
    IMAGE_ANIMATION ImageType = C.GTK_IMAGE_ANIMATION
    IMAGE_ICON_NAME ImageType = C.GTK_IMAGE_ICON_NAME
    IMAGE_GICON     ImageType = C.GTK_IMAGE_GICON
)

type InfoBar Uses

type InfoBar struct {
    Box
}

func InfoBarNew Uses

func InfoBarNew() (*InfoBar, error)

func (*InfoBar) AddActionWidget Uses

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

func (*InfoBar) AddButton Uses

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

func (*InfoBar) GetActionArea Uses

func (v *InfoBar) GetActionArea() (*Widget, error)

func (*InfoBar) GetContentArea Uses

func (v *InfoBar) GetContentArea() (*Box, error)

func (*InfoBar) GetMessageType Uses

func (v *InfoBar) GetMessageType() MessageType

func (*InfoBar) GetShowCloseButton Uses

func (v *InfoBar) GetShowCloseButton() bool

func (*InfoBar) SetDefaultResponse Uses

func (v *InfoBar) SetDefaultResponse(responseId ResponseType)

func (*InfoBar) SetMessageType Uses

func (v *InfoBar) SetMessageType(messageType MessageType)

func (*InfoBar) SetResponseSensitive Uses

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

func (*InfoBar) SetShowCloseButton Uses

func (v *InfoBar) SetShowCloseButton(setting bool)

type InputHints Uses

type InputHints int

InputHints is a representation of GTK's GtkInputHints.

const (
    INPUT_HINT_NONE                InputHints = C.GTK_INPUT_HINT_NONE
    INPUT_HINT_SPELLCHECK          InputHints = C.GTK_INPUT_HINT_SPELLCHECK
    INPUT_HINT_NO_SPELLCHECK       InputHints = C.GTK_INPUT_HINT_NO_SPELLCHECK
    INPUT_HINT_WORD_COMPLETION     InputHints = C.GTK_INPUT_HINT_WORD_COMPLETION
    INPUT_HINT_LOWERCASE           InputHints = C.GTK_INPUT_HINT_LOWERCASE
    INPUT_HINT_UPPERCASE_CHARS     InputHints = C.GTK_INPUT_HINT_UPPERCASE_CHARS
    INPUT_HINT_UPPERCASE_WORDS     InputHints = C.GTK_INPUT_HINT_UPPERCASE_WORDS
    INPUT_HINT_UPPERCASE_SENTENCES InputHints = C.GTK_INPUT_HINT_UPPERCASE_SENTENCES
    INPUT_HINT_INHIBIT_OSK         InputHints = C.GTK_INPUT_HINT_INHIBIT_OSK
)

type InputPurpose Uses

type InputPurpose int

InputPurpose is a representation of GTK's GtkInputPurpose.

const (
    INPUT_PURPOSE_FREE_FORM InputPurpose = C.GTK_INPUT_PURPOSE_FREE_FORM
    INPUT_PURPOSE_ALPHA     InputPurpose = C.GTK_INPUT_PURPOSE_ALPHA
    INPUT_PURPOSE_DIGITS    InputPurpose = C.GTK_INPUT_PURPOSE_DIGITS
    INPUT_PURPOSE_NUMBER    InputPurpose = C.GTK_INPUT_PURPOSE_NUMBER
    INPUT_PURPOSE_PHONE     InputPurpose = C.GTK_INPUT_PURPOSE_PHONE
    INPUT_PURPOSE_URL       InputPurpose = C.GTK_INPUT_PURPOSE_URL
    INPUT_PURPOSE_EMAIL     InputPurpose = C.GTK_INPUT_PURPOSE_EMAIL
    INPUT_PURPOSE_NAME      InputPurpose = C.GTK_INPUT_PURPOSE_NAME
    INPUT_PURPOSE_PASSWORD  InputPurpose = C.GTK_INPUT_PURPOSE_PASSWORD
    INPUT_PURPOSE_PIN       InputPurpose = C.GTK_INPUT_PURPOSE_PIN
)

type Justification Uses

type Justification int

Justify is a representation of GTK's GtkJustification.

const (
    JUSTIFY_LEFT   Justification = C.GTK_JUSTIFY_LEFT
    JUSTIFY_RIGHT  Justification = C.GTK_JUSTIFY_RIGHT
    JUSTIFY_CENTER Justification = C.GTK_JUSTIFY_CENTER
    JUSTIFY_FILL   Justification = C.GTK_JUSTIFY_FILL
)

type Label Uses

type Label struct {
    Widget
}

Label is a representation of GTK's GtkLabel.

func LabelNew Uses

func LabelNew(str string) (*Label, error)

LabelNew is a wrapper around gtk_label_new().

func LabelNewWithMnemonic Uses

func LabelNewWithMnemonic(str string) (*Label, error)

LabelNewWithMnemonic is a wrapper around gtk_label_new_with_mnemonic().

func (*Label) GetAngle Uses

func (v *Label) GetAngle() float64

GetAngle is a wrapper around gtk_label_get_angle().

func (*Label) GetCurrentUri Uses

func (v *Label) GetCurrentUri() string

GetCurrentUri is a wrapper around gtk_label_get_current_uri().

func (*Label) GetEllipsize Uses

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

GetEllipsize is a wrapper around gtk_label_get_ellipsize().

func (*Label) GetJustify Uses

func (v *Label) GetJustify() Justification

GetJustify is a wrapper around gtk_label_get_justify().

func (*Label) GetLabel Uses

func (v *Label) GetLabel() string

GetLabel is a wrapper around gtk_label_get_label().

func (*Label) GetLineWrap Uses

func (v *Label) GetLineWrap() bool

GetLineWrap is a wrapper around gtk_label_get_line_wrap().

func (*Label) GetLines Uses

func (v *Label) GetLines() int

GetLines() is a wrapper around gtk_label_get_lines().

func (*Label) GetMaxWidthChars Uses

func (v *Label) GetMaxWidthChars() int

GetMaxWidthChars is a wrapper around gtk_label_get_max_width_chars().

func (*Label) GetMnemonicKeyval Uses

func (v *Label) GetMnemonicKeyval() uint

GetMnemonicKeyval is a wrapper around gtk_label_get_mnemonic_keyval().

func (*Label) GetSelectable Uses

func (v *Label) GetSelectable() bool

GetSelectable is a wrapper around gtk_label_get_selectable().

func (*Label) GetSelectionBounds Uses

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

GetSelectionBounds is a wrapper around gtk_label_get_selection_bounds().

func (*Label) GetSingleLineMode Uses

func (v *Label) GetSingleLineMode() bool

GetSingleLineMode is a wrapper around gtk_label_get_single_line_mode().

func (*Label) GetText Uses

func (v *Label) GetText() (string, error)

GetText is a wrapper around gtk_label_get_text().

func (v *Label) GetTrackVisitedLinks() bool

GetTrackVisitedLinks is a wrapper around gtk_label_get_track_visited_links().

func (*Label) GetUseMarkup Uses

func (v *Label) GetUseMarkup() bool

GetUseMarkup is a wrapper around gtk_label_get_use_markup().

func (*Label) GetUseUnderline Uses

func (v *Label) GetUseUnderline() bool

GetUseUnderline is a wrapper around gtk_label_get_use_underline().

func (*Label) GetWidthChars Uses

func (v *Label) GetWidthChars() int

GetWidthChars is a wrapper around gtk_label_get_width_chars().

func (*Label) GetXAlign Uses

func (v *Label) GetXAlign() float64

GetXAlign is a wrapper around gtk_label_get_xalign().

func (*Label) GetYAlign Uses

func (v *Label) GetYAlign() float64

GetYAlign is a wrapper around gtk_label_get_yalign().

func (*Label) SelectRegion Uses

func (v *Label) SelectRegion(startOffset, endOffset int)

SelectRegion is a wrapper around gtk_label_select_region().

func (*Label) SetAngle Uses

func (v *Label) SetAngle(angle float64)

SetAngle is a wrapper around gtk_label_set_angle().

func (*Label) SetEllipsize Uses

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

SetEllipsize is a wrapper around gtk_label_set_ellipsize().

func (*Label) SetJustify Uses

func (v *Label) SetJustify(jtype Justification)

SetJustify is a wrapper around gtk_label_set_justify().

func (*Label) SetLabel Uses

func (v *Label) SetLabel(str string)

SetLabel is a wrapper around gtk_label_set_label().

func (*Label) SetLineWrap Uses

func (v *Label) SetLineWrap(wrap bool)

SetLineWrap is a wrapper around gtk_label_set_line_wrap().

func (*Label) SetLineWrapMode Uses

func (v *Label) SetLineWrapMode(wrapMode pango.WrapMode)

SetLineWrapMode is a wrapper around gtk_label_set_line_wrap_mode().

func (*Label) SetLines Uses

func (v *Label) SetLines(lines int)

SetLines() is a wrapper around gtk_label_set_lines().

func (*Label) SetMarkup Uses

func (v *Label) SetMarkup(str string)

SetMarkup is a wrapper around gtk_label_set_markup().

func (*Label) SetMarkupWithMnemonic Uses

func (v *Label) SetMarkupWithMnemonic(str string)

SetMarkupWithMnemonic is a wrapper around gtk_label_set_markup_with_mnemonic().

func (*Label) SetMaxWidthChars Uses

func (v *Label) SetMaxWidthChars(nChars int)

SetMaxWidthChars is a wrapper around gtk_label_set_max_width_chars().

func (*Label) SetMnemonicWidget Uses

func (v *Label) SetMnemonicWidget(widget IWidget)

SetMnemonicWidget is a wrapper around gtk_label_set_mnemonic_widget().

func (*Label) SetPattern Uses

func (v *Label) SetPattern(patern string)

SetPattern is a wrapper around gtk_label_set_pattern().

func (*Label) SetSelectable Uses

func (v *Label) SetSelectable(setting bool)

SetSelectable is a wrapper around gtk_label_set_selectable().

func (*Label) SetSingleLineMode Uses

func (v *Label) SetSingleLineMode(mode bool)

SetSingleLineMode is a wrapper around gtk_label_set_single_line_mode().

func (*Label) SetText Uses

func (v *Label) SetText(str string)

SetText is a wrapper around gtk_label_set_text().

func (v *Label) SetTrackVisitedLinks(trackLinks bool)

SetTrackVisitedLinks is a wrapper around gtk_label_set_track_visited_links().

func (*Label) SetUseMarkup Uses

func (v *Label) SetUseMarkup(use bool)

SetUseMarkup is a wrapper around gtk_label_set_use_markup().

func (*Label) SetUseUnderline Uses

func (v *Label) SetUseUnderline(use bool)

SetUseUnderline is a wrapper around gtk_label_set_use_underline().

func (*Label) SetWidthChars Uses

func (v *Label) SetWidthChars(nChars int)

SetWidthChars is a wrapper around gtk_label_set_width_chars().

func (*Label) SetXAlign Uses

func (v *Label) SetXAlign(n float64)

SetXAlign is a wrapper around gtk_label_set_xalign().

func (*Label) SetYAlign Uses

func (v *Label) SetYAlign(n float64)

SetYAlign is a wrapper around gtk_label_set_yalign().

type Layout Uses

type Layout struct {
    Container
}

Layout is a representation of GTK's GtkLayout.

func LayoutNew Uses

func LayoutNew(hadjustment, vadjustment *Adjustment) (*Layout, error)

LayoutNew is a wrapper around gtk_layout_new().

func (*Layout) GetSize Uses

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

Layout.GetSize is a wrapper around gtk_layout_get_size

func (*Layout) Move Uses

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

Layout.Move is a wrapper around gtk_layout_move().

func (*Layout) Put Uses

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

Layout.Put is a wrapper around gtk_layout_put().

func (*Layout) SetSize Uses

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

Layout.SetSize is a wrapper around gtk_layout_set_size

type LevelBar Uses

type LevelBar struct {
    Widget
}

func LevelBarNew Uses

func LevelBarNew() (*LevelBar, error)

LevelBarNew() is a wrapper around gtk_level_bar_new().

func LevelBarNewForInterval Uses

func LevelBarNewForInterval(min_value, max_value float64) (*LevelBar, error)

LevelBarNewForInterval() is a wrapper around gtk_level_bar_new_for_interval().

func (*LevelBar) AddOffsetValue Uses

func (v *LevelBar) AddOffsetValue(name string, value float64)

AddOffsetValue() is a wrapper around gtk_level_bar_add_offset_value().

func (*LevelBar) GetInverted Uses

func (v *LevelBar) GetInverted() bool

GetInverted() is a wrapper around gtk_level_bar_get_inverted().

func (*LevelBar) GetMaxValue Uses

func (v *LevelBar) GetMaxValue() float64

GetMaxValue() is a wrapper around gtk_level_bar_get_max_value().

func (*LevelBar) GetMinValue Uses

func (v *LevelBar) GetMinValue() float64

GetMinValue() is a wrapper around gtk_level_bar_get_min_value().

func (*LevelBar) GetMode Uses

func (v *LevelBar) GetMode() LevelBarMode

GetMode() is a wrapper around gtk_level_bar_get_mode().

func (*LevelBar) GetOffsetValue Uses

func (v *LevelBar) GetOffsetValue(name string) (float64, bool)

GetOffsetValue() is a wrapper around gtk_level_bar_get_offset_value().

func (*LevelBar) GetValue Uses

func (v *LevelBar) GetValue() float64

GetValue() is a wrapper around gtk_level_bar_get_value().

func (*LevelBar) RemoveOffsetValue Uses

func (v *LevelBar) RemoveOffsetValue(name string)

RemoveOffsetValue() is a wrapper around gtk_level_bar_remove_offset_value().

func (*LevelBar) SetInverted Uses

func (v *LevelBar) SetInverted(inverted bool)

SetInverted() is a wrapper around gtk_level_bar_set_inverted().

func (*LevelBar) SetMaxValue Uses

func (v *LevelBar) SetMaxValue(value float64)

SetMaxValue() is a wrapper around gtk_level_bar_set_max_value().

func (*LevelBar) SetMinValue Uses

func (v *LevelBar) SetMinValue(value float64)

SetMinValue() is a wrapper around gtk_level_bar_set_min_value().

func (*LevelBar) SetMode Uses

func (v *LevelBar) SetMode(m LevelBarMode)

SetMode() is a wrapper around gtk_level_bar_set_mode().

func (*LevelBar) SetValue Uses

func (v *LevelBar) SetValue(value float64)

SetValue() is a wrapper around gtk_level_bar_set_value().

type LevelBarMode Uses

type LevelBarMode int

LevelBarMode is a representation of GTK's GtkLevelBarMode.

const (
    LEVEL_BAR_MODE_CONTINUOUS LevelBarMode = C.GTK_LEVEL_BAR_MODE_CONTINUOUS
    LEVEL_BAR_MODE_DISCRETE   LevelBarMode = C.GTK_LEVEL_BAR_MODE_DISCRETE
)

type License Uses

type License int

License is a representation of GTK's GtkLicense.

const (
    LICENSE_UNKNOWN      License = C.GTK_LICENSE_UNKNOWN
    LICENSE_CUSTOM       License = C.GTK_LICENSE_CUSTOM
    LICENSE_GPL_2_0      License = C.GTK_LICENSE_GPL_2_0
    LICENSE_GPL_3_0      License = C.GTK_LICENSE_GPL_3_0
    LICENSE_LGPL_2_1     License = C.GTK_LICENSE_LGPL_2_1
    LICENSE_LGPL_3_0     License = C.GTK_LICENSE_LGPL_3_0
    LICENSE_BSD          License = C.GTK_LICENSE_BSD
    LICENSE_MIT_X11      License = C.GTK_LICENSE_MIT_X11
    LICENSE_GTK_ARTISTIC License = C.GTK_LICENSE_ARTISTIC
)

type LinkButton Uses

type LinkButton struct {
    Button
}

LinkButton is a representation of GTK's GtkLinkButton.

func LinkButtonNew Uses

func LinkButtonNew(label string) (*LinkButton, error)

LinkButtonNew is a wrapper around gtk_link_button_new().

func LinkButtonNewWithLabel Uses

func LinkButtonNewWithLabel(uri, label string) (*LinkButton, error)

LinkButtonNewWithLabel is a wrapper around gtk_link_button_new_with_label().

func (*LinkButton) GetUri Uses

func (v *LinkButton) GetUri() string

GetUri is a wrapper around gtk_link_button_get_uri().

func (*LinkButton) SetUri Uses

func (v *LinkButton) SetUri(uri string)

SetUri is a wrapper around gtk_link_button_set_uri().

type ListBox Uses

type ListBox struct {
    Container
}

ListBox is a representation of GTK's GtkListBox.

func ListBoxNew Uses

func ListBoxNew() (*ListBox, error)

ListBoxNew is a wrapper around gtk_list_box_new().

func (*ListBox) DragHighlightRow Uses

func (v *ListBox) DragHighlightRow(row *ListBoxRow)

DragHighlightRow is a wrapper around gtk_list_box_drag_highlight_row()

func (*ListBox) GetActivateOnSingleClick Uses

func (v *ListBox) GetActivateOnSingleClick() bool

GetActivateOnSingleClick is a wrapper around gtk_list_box_get_activate_on_single_click().

func (*ListBox) GetAdjustment Uses

func (v *ListBox) GetAdjustment() *Adjustment

GetAdjustment is a wrapper around gtk_list_box_get_adjustment().

func (*ListBox) GetRowAtIndex Uses

func (v *ListBox) GetRowAtIndex(index int) *ListBoxRow

GetRowAtIndex is a wrapper around gtk_list_box_get_row_at_index().

func (*ListBox) GetRowAtY Uses

func (v *ListBox) GetRowAtY(y int) *ListBoxRow

GetRowAtY is a wrapper around gtk_list_box_get_row_at_y().

func (*ListBox) GetSelectedRow Uses

func (v *ListBox) GetSelectedRow() *ListBoxRow

GetSelectedRow is a wrapper around gtk_list_box_get_selected_row().

func (*ListBox) GetSelectedRows Uses

func (v *ListBox) GetSelectedRows() *glib.List

GetSelectedRows is a wrapper around gtk_list_box_get_selected_rows().

func (*ListBox) GetSelectionMode Uses

func (v *ListBox) GetSelectionMode() SelectionMode

GetSelectionMode is a wrapper around gtk_list_box_get_selection_mode()

func (*ListBox) Insert Uses

func (v *ListBox) Insert(child IWidget, position int)

Insert is a wrapper around gtk_list_box_insert().

func (*ListBox) InvalidateFilter Uses

func (v *ListBox) InvalidateFilter()

InvalidateFilter is a wrapper around gtk_list_box_invalidate_filter().

func (*ListBox) InvalidateHeaders Uses

func (v *ListBox) InvalidateHeaders()

InvalidateHeaders is a wrapper around gtk_list_box_invalidate_headers().

func (*ListBox) InvalidateSort Uses

func (v *ListBox) InvalidateSort()

InvalidateSort is a wrapper around gtk_list_box_invalidate_sort().

func (*ListBox) Prepend Uses

func (v *ListBox) Prepend(child IWidget)

Prepend is a wrapper around gtk_list_box_prepend().

func (*ListBox) SelectAll Uses

func (v *ListBox) SelectAll()

SelectAll is a wrapper around gtk_list_box_select_all().

func (*ListBox) SelectRow Uses

func (v *ListBox) SelectRow(row *ListBoxRow)

SelectRow is a wrapper around gtk_list_box_select_row().

func (*ListBox) SetActivateOnSingleClick Uses

func (v *ListBox) SetActivateOnSingleClick(single bool)

SetActivateOnSingleClick is a wrapper around gtk_list_box_set_activate_on_single_click().

func (*ListBox) SetAdjustment Uses

func (v *ListBox) SetAdjustment(adjustment *Adjustment)

SetAdjustment is a wrapper around gtk_list_box_set_adjustment().

func (*ListBox) SetFilterFunc Uses

func (v *ListBox) SetFilterFunc(fn ListBoxFilterFunc, userData uintptr)

func (*ListBox) SetHeaderFunc Uses

func (v *ListBox) SetHeaderFunc(fn ListBoxHeaderFunc, userData uintptr)

func (*ListBox) SetPlaceholder Uses

func (v *ListBox) SetPlaceholder(placeholder IWidget)

SetPlaceholder is a wrapper around gtk_list_box_set_placeholder().

func (*ListBox) SetSelectionMode Uses

func (v *ListBox) SetSelectionMode(mode SelectionMode)

SetSelectionMode is a wrapper around gtk_list_box_set_selection_mode().

func (*ListBox) SetSortFunc Uses

func (v *ListBox) SetSortFunc(fn ListBoxSortFunc, userData uintptr)

func (*ListBox) UnselectAll Uses

func (v *ListBox) UnselectAll()

UnselectAll is a wrapper around gtk_list_box_unselect_all().

func (*ListBox) UnselectRow Uses

func (v *ListBox) UnselectRow(row *ListBoxRow)

UnselectRow is a wrapper around gtk_list_box_unselect_row().

type ListBoxFilterFunc Uses

type ListBoxFilterFunc func(row *ListBoxRow, userData uintptr) bool

type ListBoxHeaderFunc Uses

type ListBoxHeaderFunc func(row *ListBoxRow, before *ListBoxRow, userData uintptr)

type ListBoxRow Uses

type ListBoxRow struct {
    Bin
}

ListBoxRow is a representation of GTK's GtkListBoxRow.

func ListBoxRowNew Uses

func ListBoxRowNew() (*ListBoxRow, error)

func (*ListBoxRow) Changed Uses

func (v *ListBoxRow) Changed()

Changed is a wrapper around gtk_list_box_row_changed().

func (*ListBoxRow) GetActivatable Uses

func (v *ListBoxRow) GetActivatable() bool

GetActivatable is a wrapper around gtk_list_box_row_get_activatable().

func (*ListBoxRow) GetHeader Uses

func (v *ListBoxRow) GetHeader() *Widget

GetHeader is a wrapper around gtk_list_box_row_get_header().

func (*ListBoxRow) GetIndex Uses

func (v *ListBoxRow) GetIndex() int

GetIndex is a wrapper around gtk_list_box_row_get_index()

func (*ListBoxRow) GetSelectable Uses

func (v *ListBoxRow) GetSelectable() bool

GetSelectable is a wrapper around gtk_list_box_row_get_selectable().

func (*ListBoxRow) IsSelected Uses

func (v *ListBoxRow) IsSelected() bool

IsSelected is a wrapper around gtk_list_box_row_is_selected().

func (*ListBoxRow) SetActivatable Uses

func (v *ListBoxRow) SetActivatable(activatable bool)

SetActivatable is a wrapper around gtk_list_box_row_set_activatable().

func (*ListBoxRow) SetHeader Uses

func (v *ListBoxRow) SetHeader(header IWidget)

SetHeader is a wrapper around gtk_list_box_row_get_header().

func (*ListBoxRow) SetSelectable Uses

func (v *ListBoxRow) SetSelectable(selectable bool)

SetSelectable is a wrapper around gtk_list_box_row_set_selectable().

type ListBoxSortFunc Uses

type ListBoxSortFunc func(row1 *ListBoxRow, row2 *ListBoxRow, userData uintptr) int

type ListStore Uses

type ListStore struct {
    *glib.Object

    // Interfaces
    TreeModel
}

ListStore is a representation of GTK's GtkListStore.

func ListStoreNew Uses

func ListStoreNew(types ...glib.Type) (*ListStore, error)

ListStoreNew is a wrapper around gtk_list_store_newv().

func (*ListStore) Append Uses

func (v *ListStore) Append() *TreeIter

Append() is a wrapper around gtk_list_store_append().

func (*ListStore) Clear Uses

func (v *ListStore) Clear()

Clear() is a wrapper around gtk_list_store_clear().

func (*ListStore) InsertAfter Uses

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

InsertAfter() is a wrapper around gtk_list_store_insert_after().

func (*ListStore) InsertBefore Uses

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

InsertBefore() is a wrapper around gtk_list_store_insert_before().

func (*ListStore) InsertWithValues Uses

func (v *ListStore) InsertWithValues(iter *TreeIter, position int, inColumns []int, inValues []interface{}) error

InsertWithValues() is a wrapper around gtk_list_store_insert_with_valuesv().

func (*ListStore) IterIsValid Uses

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

IterIsValid() is a wrapper around gtk_list_store_iter_is_valid().

func (*ListStore) MoveAfter Uses

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

MoveAfter() is a wrapper around gtk_list_store_move_after().

func (*ListStore) MoveBefore Uses

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

MoveBefore() is a wrapper around gtk_list_store_move_before().

func (*ListStore) Prepend Uses

func (v *ListStore) Prepend() *TreeIter

Prepend() is a wrapper around gtk_list_store_prepend().

func (*ListStore) Remove Uses

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

Remove is a wrapper around gtk_list_store_remove().

func (*ListStore) Set Uses

func (v *ListStore) Set(iter *TreeIter, columns []int, values []interface{}) error

Set() is a wrapper around gtk_list_store_set_value() but provides a function similar to gtk_list_store_set() in that multiple columns may be set by one call. The length of columns and values slices must match, or Set() will return a non-nil error.

As an example, a call to:

store.Set(iter, []int{0, 1}, []interface{}{"Foo", "Bar"})

is functionally equivalent to calling the native C GTK function:

gtk_list_store_set(store, iter, 0, "Foo", 1, "Bar", -1);

func (*ListStore) SetCols Uses

func (v *ListStore) SetCols(iter *TreeIter, cols Cols) error

func (*ListStore) SetSortColumnId Uses

func (v *ListStore) SetSortColumnId(column int, order SortType)

SetSortColumnId() is a wrapper around gtk_tree_sortable_set_sort_column_id().

func (*ListStore) SetSortFunc Uses

func (v *ListStore) SetSortFunc(sortColumn int, f TreeIterCompareFunc, data ...interface{}) error

SetSortFunc() is a wrapper around gtk_tree_sortable_set_sort_func().

func (*ListStore) SetValue Uses

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

SetValue is a wrapper around gtk_list_store_set_value().

func (*ListStore) Swap Uses

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

Swap() is a wrapper around gtk_list_store_swap().

type MajorVersion Uses

type MajorVersion int

MajorVersion is a representation of OpenGL major version.

type Menu struct {
    MenuShell
}

Menu is a representation of GTK's GtkMenu.

func MenuNew() (*Menu, error)

MenuNew() is a wrapper around gtk_menu_new().

func (v *Menu) GetAccelGroup() *AccelGroup

GetAccelGroup is a wrapper around gtk_menu_get_accel_group().

func (v *Menu) GetAccelPath() string

GetAccelPath is a wrapper around gtk_menu_get_accel_path().

func (v *Menu) Popdown()

Popdown() is a wrapper around gtk_menu_popdown().

func (v *Menu) PopupAtPointer(triggerEvent *gdk.Event)

PopupAtPointer() is a wrapper for gtk_menu_popup_at_pointer(), on older versions it uses PopupAtMouseCursor

func (v *Menu) PopupAtWidget(widget IWidget, widgetAnchor gdk.GdkGravity, menuAnchor gdk.GdkGravity, triggerEvent *gdk.Event)

PopupAtWidget() is a wrapper for gtk_menu_popup_at_widget()

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

ReorderChild() is a wrapper around gtk_menu_reorder_child().

func (v *Menu) SetAccelGroup(accelGroup *AccelGroup)

SetAccelGroup is a wrapper around gtk_menu_set_accel_group().

func (v *Menu) SetAccelPath(path string)

SetAccelPath is a wrapper around gtk_menu_set_accel_path().

type MenuBar struct {
    MenuShell
}

MenuBar is a representation of GTK's GtkMenuBar.

func MenuBarNew() (*MenuBar, error)

MenuBarNew() is a wrapper around gtk_menu_bar_new().

type MenuButton struct {
    ToggleButton
}

MenuButton is a representation of GTK's GtkMenuButton.

func MenuButtonNew() (*MenuButton, error)

MenuButtonNew is a wrapper around gtk_menu_button_new().

func (v *MenuButton) GetAlignWidget() *Widget

GetAlignWidget is a wrapper around gtk_menu_button_get_align_widget().

func (v *MenuButton) GetDirection() ArrowType

GetDirection is a wrapper around gtk_menu_button_get_direction().

func (v *MenuButton) GetMenuModel() *glib.MenuModel

GetMenuModel is a wrapper around gtk_menu_button_get_menu_model().

func (v *MenuButton) GetPopover() *Popover

GetPopover is a wrapper around gtk_menu_button_get_popover().

func (v *MenuButton) GetPopup() *Menu

GetPopup is a wrapper around gtk_menu_button_get_popup().

func (v *MenuButton) GetUsePopover() bool

GetUsePopover is a wrapper around gtk_menu_button_get_use_popover().

func (v *MenuButton) SetAlignWidget(alignWidget IWidget)

SetAlignWidget is a wrapper around gtk_menu_button_set_align_widget().

func (v *MenuButton) SetDirection(direction ArrowType)

SetDirection is a wrapper around gtk_menu_button_set_direction().

func (v *MenuButton) SetMenuModel(menuModel *glib.MenuModel)

SetMenuModel is a wrapper around gtk_menu_button_set_menu_model().

func (v *MenuButton) SetPopover(popover *Popover)

SetPopover is a wrapper around gtk_menu_button_set_popover().

func (v *MenuButton) SetPopup(menu IMenu)

SetPopup is a wrapper around gtk_menu_button_set_popup().

func (v *MenuButton) SetUsePopover(setting bool)

SetUsePopover is a wrapper around gtk_menu_button_set_use_popover().