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 additonal error is returned in the Go binding.

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

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

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

Index

Package Files

aboutdialog.go accel.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 color_chooser.go combo_box.go font_chooser.go gdk.go gtk.go gtk_export.go gtk_since_3_10.go gtk_since_3_12.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 popover_since_3_12.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_iter.go text_mark.go text_view.go tooltip.go tree_view.go tree_view_column.go version.go widget.go widget_since_3_12.go widget_since_3_14.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,
    "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,
    "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 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 *Window) *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 *Window, 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 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 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 *Window, 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 *Window)

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 *Window, 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 *Window)

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
}

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) SetColor Uses

func (v *Button) SetColor(color string)

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 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 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_text_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 arround 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 *Window) (*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) GetModel Uses

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

GetModel is a wrapper around gtk_combo_box_get_model().

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) 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) GetFocusChain Uses

func (v *Container) GetFocusChain() ([]*Widget, bool)

GetFocusChain is a wrapper around gtk_container_get_focus_chain().

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) SetFocusChain Uses

func (v *Container) SetFocusChain(focusableWidgets []IWidget)

SetFocusChain is a wrapper around gtk_container_set_focus_chain().

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 CssProvider Uses

type CssProvider struct {
    *glib.Object
}

CssProvider is a representation of GTK's GtkCssProvider.

func CssProviderGetDefault Uses

func CssProviderGetDefault() (*CssProvider, error)

CssProviderGetDefault is a wrapper around gtk_css_provider_get_default().

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 (*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) 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) 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.

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) 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 *Window,
    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 *Window,
    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 *Window,
    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 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 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 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 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) 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) 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) SetFont Uses

func (v *Label) SetFont(font string)

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) 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) 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) 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().

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) 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) SetHeader Uses

func (v *ListBoxRow) SetHeader(header IWidget)

SetHeader is a wrapper around gtk_list_box_row_get_header().

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) 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 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().

type MenuItem struct {
    Bin
}

MenuItem is a representation of GTK's GtkMenuItem.

func MenuItemNew() (*MenuItem, error)

MenuItemNew() is a wrapper around gtk_menu_item_new().

func MenuItemNewWithLabel(label string) (*MenuItem, error)

MenuItemNewWithLabel() is a wrapper around gtk_menu_item_new_with_label().

func MenuItemNewWithMnemonic(label string) (*MenuItem, error)

MenuItemNewWithMnemonic() is a wrapper around gtk_menu_item_new_with_mnemonic().

func (v *MenuItem) GetAccelPath() string

GetAccelPath is a wrapper around gtk_menu_item_get_accel_path().

func (v *MenuItem) GetLabel() string

Gets text on the menu_item label

func (v *MenuItem) SetAccelPath(path string)

SetAccelPath is a wrapper around gtk_menu_item_set_accel_path().

func (v *MenuItem) SetLabel(label string)

Sets text on the menu_item label

func (v *MenuItem) SetSubmenu(submenu IWidget)

SetSubmenu() is a wrapper around gtk_menu_item_set_submenu().

type MenuShell struct {
    Container
}

MenuShell is a representation of GTK's GtkMenuShell.

func (v *MenuShell) ActivateItem(child IMenuItem, forceDeactivate bool)

ActivateItem is a wrapper around gtk_menu_shell_activate_item().

func (v *MenuShell) Append(child IMenuItem)

Append is a wrapper around gtk_menu_shell_append().

func (v *MenuShell) Cancel()

Cancel is a wrapper around gtk_menu_shell_cancel().

func (v *MenuShell) Deactivate()

Deactivate is a wrapper around gtk_menu_shell_deactivate().

func (v *MenuShell) Deselect()

Deselect is a wrapper around gtk_menu_shell_deselect().

func (v *MenuShell) Insert(child IMenuItem, position int)

Insert is a wrapper around gtk_menu_shell_insert().

func (v *MenuShell) Prepend(child IMenuItem)

Prepend is a wrapper around gtk_menu_shell_prepend().

func (v *MenuShell) SelectFirst(searchSensitive bool)

SelectFirst is a wrapper around gtk_menu_shell_select_first().

func (v *MenuShell) SelectItem(child IMenuItem)

SelectItem is a wrapper around gtk_menu_shell_select_item().

func (v *MenuShell) SetTakeFocus(takeFocus bool)

SetTakeFocus is a wrapper around gtk_menu_shell_set_take_focus().

type MessageDialog Uses

type MessageDialog struct {
    Dialog
}

MessageDialog is a representation of GTK's GtkMessageDialog.

func MessageDialogNew Uses

func MessageDialogNew(parent IWindow, flags DialogFlags, mType MessageType, buttons ButtonsType, format string, a ...interface{}) *MessageDialog

MessageDialogNew() is a wrapper around gtk_message_dialog_new(). The text is created and formatted by the format specifier and any additional arguments.

func MessageDialogNewWithMarkup Uses

func MessageDialogNewWithMarkup(parent IWindow, flags DialogFlags, mType MessageType, buttons ButtonsType, format string, a ...interface{}) *MessageDialog

MessageDialogNewWithMarkup is a wrapper around gtk_message_dialog_new_with_markup().

func (*MessageDialog) FormatSecondaryMarkup Uses

func (v *MessageDialog) FormatSecondaryMarkup(format string, a ...interface{})

FormatSecondaryMarkup is a wrapper around gtk_message_dialog_format_secondary_text().

func (*MessageDialog) FormatSecondaryText Uses

func (v *MessageDialog) FormatSecondaryText(format string, a ...interface{})

FormatSecondaryText is a wrapper around gtk_message_dialog_format_secondary_text().

func (*MessageDialog) SetMarkup Uses

func (v *MessageDialog) SetMarkup(str string)

SetMarkup is a wrapper around gtk_message_dialog_set_markup().

type MessageType Uses

type MessageType int

MessageType is a representation of GTK's GtkMessageType.

const (
    MESSAGE_INFO     MessageType = C.GTK_MESSAGE_INFO
    MESSAGE_WARNING  MessageType = C.GTK_MESSAGE_WARNING
    MESSAGE_QUESTION MessageType = C.GTK_MESSAGE_QUESTION
    MESSAGE_ERROR    MessageType = C.GTK_MESSAGE_ERROR
    MESSAGE_OTHER    MessageType = C.GTK_MESSAGE_OTHER
)

type NativeDialog Uses

type NativeDialog struct {
    glib.InitiallyUnowned
}

NativeDialog is a representation of GTK's GtkNativeDialog.

func (*NativeDialog) Destroy Uses

func (v *NativeDialog) Destroy()

Destroy() is a wrapper around gtk_native_dialog_destroy().

func (*NativeDialog) GetModal Uses

func (v *NativeDialog) GetModal() bool

GetModal() is a wrapper around gtk_native_dialog_get_modal().

func (*NativeDialog) GetTitle Uses

func (v *NativeDialog) GetTitle() (string, error)

GetTitle() is a wrapper around gtk_native_dialog_get_title().

func (*NativeDialog) GetTransientFor Uses

func (v *NativeDialog) GetTransientFor() (*Window, error)

GetTransientFor() is a wrapper around gtk_native_dialog_get_transient_for().

func (*NativeDialog) GetVisible Uses

func (v *NativeDialog) GetVisible() bool

GetVisible() is a wrapper around gtk_native_dialog_get_visible().

func (*NativeDialog) Hide Uses

func (v *NativeDialog) Hide()

Hide() is a wrapper around gtk_native_dialog_hide().

func (*NativeDialog) Run Uses

func (v *NativeDialog) Run() int

Run() is a wrapper around gtk_native_dialog_run().

func (*NativeDialog) SetModal Uses

func (v *NativeDialog) SetModal(modal bool)

SetModal is a wrapper around gtk_native_dialog_set_modal().

func (*NativeDialog) SetTitle Uses

func (v *NativeDialog) SetTitle(title string)

SetTitle is a wrapper around gtk_native_dialog_set_title().

func (*NativeDialog) SetTransientFor Uses

func (v *NativeDialog) SetTransientFor(parent IWindow)

SetTransientFor() is a wrapper around gtk_native_dialog_set_transient_for().

func (*NativeDialog) Show Uses

func (v *NativeDialog) Show()

Show() is a wrapper around gtk_native_dialog_show().

type Notebook Uses

type Notebook struct {
    Container
}

Notebook is a representation of GTK's GtkNotebook.

func NotebookNew Uses

func NotebookNew() (*Notebook, error)

NotebookNew() is a wrapper around gtk_notebook_new().

func (*Notebook) AppendPage Uses

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

AppendPage() is a wrapper around gtk_notebook_append_page().

func (*Notebook) AppendPageMenu Uses

func (v *Notebook) AppendPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget) int

AppendPageMenu() is a wrapper around gtk_notebook_append_page_menu().

func (*Notebook) GetActionWidget Uses

func (v *Notebook) GetActionWidget(packType PackType) (*Widget, error)

GetActionWidget() is a wrapper around gtk_notebook_get_action_widget().

func (*Notebook) GetCurrentPage Uses

func (v *Notebook) GetCurrentPage() int

GetCurrentPage() is a wrapper around gtk_notebook_get_current_page().

func (*Notebook) GetGroupName Uses

func (v *Notebook) GetGroupName() (string, error)

GetGroupName() is a wrapper around gtk_notebook_get_group_name().

func (*Notebook) GetMenuLabel Uses

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

GetMenuLabel() is a wrapper around gtk_notebook_get_menu_label().

func (*Notebook) GetMenuLabelText Uses

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

GetMenuLabelText() is a wrapper around gtk_notebook_get_menu_label_text().

func (*Notebook) GetNPages Uses

func (v *Notebook) GetNPages() int

GetNPages() is a wrapper around gtk_notebook_get_n_pages().

func (*Notebook) GetNthPage Uses

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

GetNthPage() is a wrapper around gtk_notebook_get_nth_page().

func (*Notebook) GetScrollable Uses

func (v *Notebook) GetScrollable() bool

GetScrollable() is a wrapper around gtk_notebook_get_scrollable().

func (*Notebook) GetShowBorder Uses

func (v *Notebook) GetShowBorder() bool

GetShowBorder() is a wrapper around gtk_notebook_get_show_border().

func (*Notebook) GetShowTabs Uses

func (v *Notebook) GetShowTabs() bool

GetShowTabs() is a wrapper around gtk_notebook_get_show_tabs().

func (*Notebook) GetTabDetachable Uses

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

GetTabDetachable() is a wrapper around gtk_notebook_get_tab_detachable().

func (*Notebook) GetTabLabel Uses

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

GetTabLabel() is a wrapper around gtk_notebook_get_tab_label().

func (*Notebook) GetTabLabelText Uses

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

GetTabLabelText() is a wrapper around gtk_notebook_get_tab_label_text().

func (*Notebook) GetTabPos Uses

func (v *Notebook) GetTabPos() PositionType

GetTabPos() is a wrapper around gtk_notebook_get_tab_pos().

func (*Notebook) GetTabReorderable Uses

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

GetTabReorderable() is a wrapper around gtk_notebook_get_tab_reorderable().

func (*Notebook) InsertPage Uses

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

InsertPage() is a wrapper around gtk_notebook_insert_page().

func (*Notebook) InsertPageMenu Uses

func (v *Notebook) InsertPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget, position int) int

InsertPageMenu() is a wrapper around gtk_notebook_insert_page_menu().

func (*Notebook) NextPage Uses

func (v *Notebook) NextPage()

NextPage() is a wrapper around gtk_notebook_next_page().

func (*Notebook) PageNum Uses

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

PageNum() is a wrapper around gtk_notebook_page_num().

func (*Notebook) PopupDisable Uses

func (v *Notebook) PopupDisable()

PopupDisable() is a wrapper around gtk_notebook_popup_disable().

func (*Notebook) PopupEnable Uses

func (v *Notebook) PopupEnable()

PopupEnable() is a wrapper around gtk_notebook_popup_enable().

func (*Notebook) PrependPage Uses

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

PrependPage() is a wrapper around gtk_notebook_prepend_page().

func (*Notebook) PrependPageMenu Uses

func (v *Notebook) PrependPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget) int

PrependPageMenu() is a wrapper around gtk_notebook_prepend_page_menu().

func (*Notebook) PrevPage Uses

func (v *Notebook) PrevPage()

PrevPage() is a wrapper around gtk_notebook_prev_page().

func (*Notebook) RemovePage Uses

func (v *Notebook) RemovePage(pageNum int)

RemovePage() is a wrapper around gtk_notebook_remove_page().

func (*Notebook) ReorderChild Uses

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

ReorderChild() is a wrapper around gtk_notebook_reorder_child().

func (*Notebook) SetActionWidget Uses

func (v *Notebook) SetActionWidget(widget IWidget, packType PackType)

SetActionWidget() is a wrapper around gtk_notebook_set_action_widget().

func (*Notebook) SetCurrentPage Uses

func (v *Notebook) SetCurrentPage(pageNum int)

SetCurrentPage() is a wrapper around gtk_notebook_set_current_page().

func (*Notebook) SetGroupName Uses

func (v *Notebook) SetGroupName(groupName string)

SetGroupName() is a wrapper around gtk_notebook_set_group_name().

func (*Notebook) SetMenuLabel Uses

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

SetMenuLabel() is a wrapper around gtk_notebook_set_menu_label().

func (*Notebook) SetMenuLabelText Uses

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

SetMenuLabelText() is a wrapper around gtk_notebook_set_menu_label_text().

func (*Notebook) SetScrollable Uses

func (v *Notebook) SetScrollable(scrollable bool)

SetScrollable() is a wrapper around gtk_notebook_set_scrollable().

func (*Notebook) SetShowBorder Uses

func (v *Notebook) SetShowBorder(showBorder bool)

SetShowBorder() is a wrapper around gtk_notebook_set_show_border().

func (*Notebook) SetShowTabs Uses

func (v *Notebook) SetShowTabs(showTabs bool)

SetShowTabs() is a wrapper around gtk_notebook_set_show_tabs().

func (*Notebook) SetTabDetachable Uses

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

SetTabDetachable() is a wrapper around gtk_notebook_set_tab_detachable().

func (*Notebook) SetTabLabel Uses

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

SetTabLabel() is a wrapper around gtk_notebook_set_tab_label().

func (*Notebook) SetTabLabelText Uses

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

SetTabLabelText() is a wrapper around gtk_notebook_set_tab_label_text().

func (*Notebook) SetTabPos Uses

func (v *Notebook) SetTabPos(pos PositionType)

SetTabPos() is a wrapper around gtk_notebook_set_tab_pos().

func (*Notebook) SetTabReorderable Uses

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

SetTabReorderable() is a wrapper around gtk_notebook_set_tab_reorderable().

type NumberUpLayout Uses

type NumberUpLayout int

NumberUpLayout is a representation of GTK's GtkNumberUpLayout.

const (
    NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM
    NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP
    NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM
    NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP
    NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT
    NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT
    NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT
    NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT NumberUpLayout = C.GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT
)

type OffscreenWindow Uses

type OffscreenWindow struct {
    Window
}

OffscreenWindow is a representation of GTK's GtkOffscreenWindow.

func OffscreenWindowNew Uses

func OffscreenWindowNew() (*OffscreenWindow, error)

OffscreenWindowNew is a wrapper around gtk_offscreen_window_new().

func (*OffscreenWindow) GetPixbuf Uses

func (v *OffscreenWindow) GetPixbuf() (*gdk.Pixbuf, error)

GetPixbuf is a wrapper around gtk_offscreen_window_get_pixbuf().

func (*OffscreenWindow) GetSurface Uses

func (v *OffscreenWindow) GetSurface() (*cairo.Surface, error)

GetSurface is a wrapper around gtk_offscreen_window_get_surface(). The returned surface is safe to use over window resizes.

type Orientable Uses

type Orientable struct {
    *glib.Object
}

Orientable is a representation of GTK's GtkOrientable GInterface.

func (*Orientable) GetOrientation Uses

func (v *Orientable) GetOrientation() Orientation

GetOrientation() is a wrapper around gtk_orientable_get_orientation().

func (*Orientable) SetOrientation Uses

func (v *Orientable) SetOrientation(orientation Orientation)

SetOrientation() is a wrapper around gtk_orientable_set_orientation().

type Orientation Uses

type Orientation int

Orientation is a representation of GTK's GtkOrientation.

const (
    ORIENTATION_HORIZONTAL Orientation = C.GTK_ORIENTATION_HORIZONTAL
    ORIENTATION_VERTICAL   Orientation = C.GTK_ORIENTATION_VERTICAL
)

type Overlay Uses

type Overlay struct {
    Bin
}

Overlay is a representation of GTK's GtkOverlay.

func OverlayNew Uses

func OverlayNew() (*Overlay, error)

OverlayNew() is a wrapper around gtk_overlay_new().

func (*Overlay) AddOverlay Uses

func (v *Overlay) AddOverlay(widget IWidget)

AddOverlay() is a wrapper around gtk_overlay_add_overlay().

type PackType Uses

type PackType int

PackType is a representation of GTK's GtkPackType.

const (
    PACK_START PackType = C.GTK_PACK_START
    PACK_END   PackType = C.GTK_PACK_END
)

type PageOrientation Uses

type PageOrientation int

PageOrientation is a representation of GTK's GtkPageOrientation.

const (
    PAGE_ORIENTATION_PORTRAIT          PageOrientation = C.GTK_PAGE_ORIENTATION_PORTRAIT
    PAGE_ORIENTATION_LANDSCAPE         PageOrientation = C.GTK_PAGE_ORIENTATION_LANDSCAPE
    PAGE_ORIENTATION_REVERSE_PORTRAIT  PageOrientation = C.GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT
    PAGE_ORIENTATION_REVERSE_LANDSCAPE PageOrientation = C.GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
)

type PageSet Uses

type PageSet int

PageSet is a representation of GTK's GtkPageSet.

const (
    PAGE_SET_ALL  PageSet = C.GTK_PAGE_SET_ALL
    PAGE_SET_EVEN PageSet = C.GTK_PAGE_SET_EVEN
    PAGE_SET_ODD  PageSet = C.GTK_PAGE_SET_ODD
)

type PageSetup Uses

type PageSetup struct {
    *glib.Object
}

* GtkPageSetup

func PageSetupNew Uses

func PageSetupNew() (*PageSetup, error)

PageSetupNew() is a wrapper around gtk_page_setup_new().

func PageSetupNewFromFile Uses

func PageSetupNewFromFile(fileName string) (*PageSetup, error)

PageSetupNewFromFile() is a wrapper around gtk_page_setup_new_from_file().

func PrintRunPageSetupDialog Uses

func PrintRunPageSetupDialog(parent *Window, pageSetup *PageSetup, settings *PrintSettings) *PageSetup

PrintRunPageSetupDialog() is a wrapper around gtk_print_run_page_setup_dialog().

func (*PageSetup) Copy Uses

func (ps *PageSetup) Copy() (*PageSetup, error)

Copy() is a wrapper around gtk_page_setup_copy().

func (*PageSetup) GetBottomMargin Uses

func (ps *PageSetup) GetBottomMargin(unit Unit) float64

GetBottomMargin() is a wrapper around gtk_page_setup_get_bottom_margin().

func (*PageSetup) GetLeftMargin Uses

func (ps *PageSetup) GetLeftMargin(unit Unit) float64

GetLeftMargin() is a wrapper around gtk_page_setup_get_left_margin().

func (*PageSetup) GetOrientation Uses

func (ps *PageSetup) GetOrientation() PageOrientation

GetOrientation() is a wrapper around gtk_page_setup_get_orientation().

func (*PageSetup) GetPageHeight Uses

func (ps *PageSetup) GetPageHeight(unit Unit) float64

GetPageHeight() is a wrapper around gtk_page_setup_get_page_height().

func (*PageSetup) GetPageWidth Uses

func (ps *PageSetup) GetPageWidth(unit Unit) float64

GetPageWidth() is a wrapper around gtk_page_setup_get_page_width().

func (*PageSetup) GetPaperHeight Uses

func (ps *PageSetup) GetPaperHeight(unit Unit) float64

GetPaperHeight() is a wrapper around gtk_page_setup_get_paper_height().

func (*PageSetup) GetPaperSize Uses

func (ps *PageSetup) GetPaperSize() *PaperSize

GetPaperSize() is a wrapper around gtk_page_setup_get_paper_size().

func (*PageSetup) GetPaperWidth Uses

func (ps *PageSetup) GetPaperWidth(unit Unit) float64

GetPaperWidth() is a wrapper around gtk_page_setup_get_paper_width().

func (*PageSetup) GetRightMargin Uses

func (ps *PageSetup) GetRightMargin(unit Unit) float64

GetRightMargin() is a wrapper around gtk_page_setup_get_right_margin().

func (*PageSetup) GetTopMargin Uses

func (ps *PageSetup) GetTopMargin(unit Unit) float64

GetTopMargin() is a wrapper around gtk_page_setup_get_top_margin().

func (*PageSetup) PageSetupLoadFile Uses

func (ps *PageSetup) PageSetupLoadFile(name string) error

PageSetupLoadFile() is a wrapper around gtk_page_setup_load_file().

func (*PageSetup) PageSetupToFile Uses

func (ps *PageSetup) PageSetupToFile(name string) error

PageSetupToFile() is a wrapper around gtk_page_setup_to_file().

func (*PageSetup) SetBottomMargin Uses

func (ps *PageSetup) SetBottomMargin(margin float64, unit Unit)

SetBottomMargin() is a wrapper around gtk_page_setup_set_bottom_margin().

func (*PageSetup) SetLeftMargin Uses

func (ps *PageSetup) SetLeftMargin(margin float64, unit Unit)

SetLeftMargin() is a wrapper around gtk_page_setup_set_left_margin().

func (*PageSetup) SetOrientation Uses

func (ps *PageSetup) SetOrientation(orientation PageOrientation)

SetOrientation() is a wrapper around gtk_page_setup_set_orientation().

func (*PageSetup) SetPaperSize Uses

func (ps *PageSetup) SetPaperSize(size *PaperSize)

SetPaperSize() is a wrapper around gtk_page_setup_set_paper_size().

func (*PageSetup) SetPaperSizeAndDefaultMargins Uses

func (ps *PageSetup) SetPaperSizeAndDefaultMargins(size *PaperSize)

SetPaperSizeAndDefaultMargins() is a wrapper around gtk_page_setup_set_paper_size_and_default_margins().

func (*PageSetup) SetRightMargin Uses

func (ps *PageSetup) SetRightMargin(margin float64, unit Unit)

SetRightMargin() is a wrapper around gtk_page_setup_set_right_margin().

func (*PageSetup) SetTopMargin Uses

func (ps *PageSetup) SetTopMargin(margin float64, unit Unit)

SetTopMargin() is a wrapper around gtk_page_setup_set_top_margin().

type PageSetupDoneCallback Uses

type PageSetupDoneCallback func(setup *PageSetup, userData uintptr)

type Paned Uses

type Paned struct {
    Bin
}

Paned is a representation of GTK's GtkPaned.

func PanedNew Uses

func PanedNew(orientation Orientation) (*Paned, error)

PanedNew() is a wrapper around gtk_paned_new().

func (*Paned) Add1 Uses

func (v *Paned) Add1(child IWidget)

Add1() is a wrapper around gtk_paned_add1().

func (*Paned) Add2 Uses

func (v *Paned) Add2(child IWidget)

Add2() is a wrapper around gtk_paned_add2().

func (*Paned) GetChild1 Uses

func (v *Paned) GetChild1() (*Widget, error)

GetChild1() is a wrapper around gtk_paned_get_child1().

func (*Paned) GetChild2 Uses

func (v *Paned) GetChild2() (*Widget, error)

GetChild2() is a wrapper around gtk_paned_get_child2().

func (*Paned) GetHandleWindow Uses

func (v *Paned) GetHandleWindow() (*Window, error)

GetHandleWindow() is a wrapper around gtk_paned_get_handle_window().

func (*Paned) GetPosition Uses

func (v *Paned) GetPosition() int

GetPosition() is a wrapper around gtk_paned_get_position().

func (*Paned) GetWideHandle Uses

func (v *Paned) GetWideHandle() bool

GetWideHandle is a wrapper around gtk_paned_get_wide_handle().

func (*Paned) Pack1 Uses

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

Pack1() is a wrapper around gtk_paned_pack1().

func (*Paned) Pack2 Uses

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

Pack2() is a wrapper around gtk_paned_pack2().

func (*Paned) SetPosition Uses

func (v *Paned) SetPosition(position int)

SetPosition() is a wrapper around gtk_paned_set_position().

func (*Paned) SetWideHandle Uses

func (v *Paned) SetWideHandle(wide bool)

SetWideHandle is a wrapper around gtk_paned_set_wide_handle().

type PaperSize Uses

type PaperSize struct {
    GtkPaperSize *C.GtkPaperSize
}

PaperSize is a representation of GTK's GtkPaperSize

func PaperSizeNew Uses

func PaperSizeNew(name string) (*PaperSize, error)

PaperSizeNew() is a wrapper around gtk_paper_size_new().

func PaperSizeNewCustom Uses

func PaperSizeNewCustom(name, displayName string, width, height float64, unit Unit) (*PaperSize, error)

PaperSizeNewCustom() is a wrapper around gtk_paper_size_new_custom().

func PaperSizeNewFromIPP Uses

func PaperSizeNewFromIPP(name string, width, height float64) (*PaperSize, error)

PaperSizeNewFromIpp is a wrapper around gtk_paper_size_new_from_ipp().

func PaperSizeNewFromPPD Uses

func PaperSizeNewFromPPD(name, displayName string, width, height float64) (*PaperSize, error)

PaperSizeNewFromPPD() is a wrapper around gtk_paper_size_new_from_ppd().

func (*PaperSize) Copy Uses

func (ps *PaperSize) Copy() (*PaperSize, error)

Copy() is a wrapper around gtk_paper_size_copy().

func (*PaperSize) GetDefaultBottomMargin Uses

func (ps *PaperSize) GetDefaultBottomMargin(unit Unit) float64

GetDefaultBottomMargin() is a wrapper around gtk_paper_size_get_default_bottom_margin().

func (*PaperSize) GetDefaultLeftMargin Uses

func (ps *PaperSize) GetDefaultLeftMargin(unit Unit) float64

GetDefaultLeftMargin() is a wrapper around gtk_paper_size_get_default_left_margin().

func (*PaperSize) GetDefaultRightMargin Uses

func (ps *PaperSize) GetDefaultRightMargin(unit Unit) float64

GetDefaultRightMargin() is a wrapper around gtk_paper_size_get_default_right_margin().

func (*PaperSize) GetDefaultTopMargin Uses

func (ps *PaperSize) GetDefaultTopMargin(unit Unit) float64

GetDefaultTopMargin() is a wrapper around gtk_paper_size_get_default_top_margin().

func (*PaperSize) GetDisplayName Uses

func (ps *PaperSize) GetDisplayName() string

GetDisplayName() is a wrapper around gtk_paper_size_get_display_name().

func (*PaperSize) GetHeight Uses

func (ps *PaperSize) GetHeight(unit Unit) float64

GetHeight() is a wrapper around gtk_paper_size_get_height().

func (*PaperSize) GetName Uses

func (ps *PaperSize) GetName() string

GetName() is a wrapper around gtk_paper_size_get_name().

func (*PaperSize) GetPPDName Uses

func (ps *PaperSize) GetPPDName() (string, error)

GetPPDName() is a wrapper around gtk_paper_size_get_ppd_name().

func (*PaperSize) GetWidth Uses

func (ps *PaperSize) GetWidth(unit Unit) float64

GetWidth() is a wrapper around gtk_paper_size_get_width().

func (*PaperSize) IsCustom Uses

func (ps *PaperSize) IsCustom() bool

IsCustom() is a wrapper around gtk_paper_size_is_custom().

func (*PaperSize) IsEqual Uses

func (ps *PaperSize) IsEqual(other *PaperSize) bool

IsEqual() is a wrapper around gtk_paper_size_is_equal().

func (*PaperSize) IsIPP Uses

func (ps *PaperSize) IsIPP() bool

IsIPP() is a wrapper around gtk_paper_size_is_ipp().

func (*PaperSize) SetSize Uses

func (ps *PaperSize) SetSize(width, height float64, unit Unit)

SetSize() is a wrapper around gtk_paper_size_set_size().

type PathType Uses

type PathType int

PathType is a representation of GTK's GtkPathType.

const (
    PATH_WIDGET       PathType = C.GTK_PATH_WIDGET
    PATH_WIDGET_CLASS PathType = C.GTK_PATH_WIDGET_CLASS
    PATH_CLASS        PathType = C.GTK_PATH_CLASS
)

type PolicyType Uses

type PolicyType int

PolicyType is a representation of GTK's GtkPolicyType.

const (
    POLICY_ALWAYS    PolicyType = C.GTK_POLICY_ALWAYS
    POLICY_AUTOMATIC PolicyType = C.GTK_POLICY_AUTOMATIC
    POLICY_NEVER     PolicyType = C.GTK_POLICY_NEVER
)

type Popover Uses

type Popover struct {
    Bin
}

TODO(sjon): Implement GtkPopover GtkPopover

func PopoverNew Uses

func PopoverNew(relative IWidget) (*Popover, error)

gtk_popover_new()

type PositionType Uses

type PositionType int

PositionType is a representation of GTK's GtkPositionType.

const (
    POS_LEFT   PositionType = C.GTK_POS_LEFT
    POS_RIGHT  PositionType = C.GTK_POS_RIGHT
    POS_TOP    PositionType = C.GTK_POS_TOP
    POS_BOTTOM PositionType = C.GTK_POS_BOTTOM
)

type PrintContext Uses

type PrintContext struct {
    *glib.Object
}

PrintContext is a representation of GTK's GtkPrintContext.

func (*PrintContext) CreatePangoContext Uses

func (pc *PrintContext) CreatePangoContext() *pango.Context

CreatePangoContext() is a wrapper around gtk_print_context_create_pango_context().

func (*PrintContext) CreatePangoLayout Uses

func (pc *PrintContext) CreatePangoLayout() *pango.Layout

CreatePangoLayout() is a wrapper around gtk_print_context_create_pango_layout().

func (*PrintContext) GetCairoContext Uses

func (pc *PrintContext) GetCairoContext() *cairo.Context

GetCairoContext() is a wrapper around gtk_print_context_get_cairo_context().

func (*PrintContext) GetDpiX Uses

func (pc *PrintContext) GetDpiX() float64

GetDpiX() is a wrapper around gtk_print_context_get_dpi_x().

func (*PrintContext) GetDpiY Uses

func (pc *PrintContext) GetDpiY() float64

GetDpiY() is a wrapper around gtk_print_context_get_dpi_y().

func (*PrintContext) GetHardMargins Uses

func (pc *PrintContext) GetHardMargins() (float64, float64, float64, float64, error)

GetHardMargins() is a wrapper around gtk_print_context_get_hard_margins().

func (*PrintContext) GetHeight Uses

func (pc *PrintContext) GetHeight() float64

GetHeight() is a wrapper around gtk_print_context_get_height().

func (*PrintContext) GetPageSetup Uses

func (pc *PrintContext) GetPageSetup() *PageSetup

GetPageSetup() is a wrapper around gtk_print_context_get_page_setup().

func (*PrintContext) GetPangoFontMap Uses

func (pc *PrintContext) GetPangoFontMap() *pango.FontMap

GetPangoFontMap() is a wrapper around gtk_print_context_get_pango_fontmap().

func (*PrintContext) GetWidth Uses

func (pc *PrintContext) GetWidth() float64

GetWidth() is a wrapper around gtk_print_context_get_width().

func (*PrintContext) SetCairoContext Uses

func (pc *PrintContext) SetCairoContext(cr *cairo.Context, dpiX, dpiY float64)

SetCairoContext() is a wrapper around gtk_print_context_set_cairo_context().

type PrintDuplex Uses

type PrintDuplex int

PrintDuplex is a representation of GTK's GtkPrintDuplex.

const (
    PRINT_DUPLEX_SIMPLEX    PrintDuplex = C.GTK_PRINT_DUPLEX_SIMPLEX
    PRINT_DUPLEX_HORIZONTAL PrintDuplex = C.GTK_PRINT_DUPLEX_HORIZONTAL
    PRINT_DUPLEX_VERTICAL   PrintDuplex = C.GTK_PRINT_DUPLEX_VERTICAL
)

type PrintError Uses

type PrintError int

PrintOperationAction is a representation of GTK's GtkPrintError.

const (
    PRINT_ERROR_GENERAL        PrintError = C.GTK_PRINT_ERROR_GENERAL
    PRINT_ERROR_INTERNAL_ERROR PrintError = C.GTK_PRINT_ERROR_INTERNAL_ERROR
    PRINT_ERROR_NOMEM          PrintError = C.GTK_PRINT_ERROR_NOMEM
    PRINT_ERROR_INVALID_FILE   PrintError = C.GTK_PRINT_ERROR_INVALID_FILE
)

type PrintOperation Uses

type PrintOperation struct {
    *glib.Object

    // Interfaces
    PrintOperationPreview
}

* GtkPrintOperation

func PrintOperationNew Uses

func PrintOperationNew() (*PrintOperation, error)

PrintOperationNew() is a wrapper around gtk_print_operation_new().

func (*PrintOperation) Cancel Uses

func (po *PrintOperation) Cancel()

Cancel() is a wrapper around gtk_print_operation_cancel().

func (*PrintOperation) DrawPageFinish Uses

func (po *PrintOperation) DrawPageFinish()

DrawPageFinish() is a wrapper around gtk_print_operation_draw_page_finish().

func (*PrintOperation) GetDefaultPageSetup Uses

func (po *PrintOperation) GetDefaultPageSetup() (*PageSetup, error)

GetDefaultPageSetup() is a wrapper around gtk_print_operation_get_default_page_setup().

func (*PrintOperation) GetEmbedPageSetup Uses

func (po *PrintOperation) GetEmbedPageSetup() bool

GetEmbedPageSetup() is a wrapper around gtk_print_operation_get_embed_page_setup().

func (*PrintOperation) GetHasSelection Uses

func (po *PrintOperation) GetHasSelection() bool

GetHasSelection() is a wrapper around gtk_print_operation_get_has_selection().

func (*PrintOperation) GetNPagesToPrint Uses

func (po *PrintOperation) GetNPagesToPrint() int

GetNPagesToPrint() is a wrapper around gtk_print_operation_get_n_pages_to_print().

func (*PrintOperation) GetPrintSettings Uses

func (po *PrintOperation) GetPrintSettings(ps *PageSetup) (*PrintSettings, error)

GetPrintSettings() is a wrapper around gtk_print_operation_get_print_settings().

func (*PrintOperation) GetStatus Uses

func (po *PrintOperation) GetStatus() PrintStatus

GetStatus() is a wrapper around gtk_print_operation_get_status().

func (*PrintOperation) GetStatusString Uses

func (po *PrintOperation) GetStatusString() string

GetStatusString() is a wrapper around gtk_print_operation_get_status_string().

func (*PrintOperation) GetSupportSelection Uses

func (po *PrintOperation) GetSupportSelection() bool

GetSupportSelection() is a wrapper around gtk_print_operation_get_support_selection().

func (*PrintOperation) IsFinished Uses

func (po *PrintOperation) IsFinished() bool

IsFinished() is a wrapper around gtk_print_operation_is_finished().

func (*PrintOperation) PrintOperationGetError Uses

func (po *PrintOperation) PrintOperationGetError() error

GetError() is a wrapper around gtk_print_operation_get_error().

func (*PrintOperation) PrintOperationSetAllowAsync Uses

func (po *PrintOperation) PrintOperationSetAllowAsync(allowSync bool)

SetAllowAsync() is a wrapper around gtk_print_operation_set_allow_async().

func (*PrintOperation) Run Uses

func (po *PrintOperation) Run(action PrintOperationAction, parent *Window) (PrintOperationResult, error)

Run() is a wrapper around gtk_print_operation_run().

func (*PrintOperation) SetCurrentPage Uses

func (po *PrintOperation) SetCurrentPage(page int)

SetCurrentPage() is a wrapper around gtk_print_operation_set_current_page().

func (*PrintOperation) SetCustomTabLabel Uses

func (po *PrintOperation) SetCustomTabLabel(label string)

SetCustomTabLabel() is a wrapper around gtk_print_operation_set_custom_tab_label().

func (*PrintOperation) SetDefaultPageSetup Uses

func (po *PrintOperation) SetDefaultPageSetup(ps *PageSetup)

SetDefaultPageSetup() is a wrapper around gtk_print_operation_set_default_page_setup().

func (*PrintOperation) SetDeferDrawing Uses

func (po *PrintOperation) SetDeferDrawing()

SetDeferDrawing() is a wrapper around gtk_print_operation_set_defer_drawing().

func (*PrintOperation) SetEmbedPageSetup Uses

func (po *PrintOperation) SetEmbedPageSetup(embed bool)

SetEmbedPageSetup() is a wrapper around gtk_print_operation_set_embed_page_setup().

func (*PrintOperation) SetExportFilename Uses

func (po *PrintOperation) SetExportFilename(name string)

SetExportFilename() is a wrapper around gtk_print_operation_set_export_filename().

func (*PrintOperation) SetHasSelection Uses

func (po *PrintOperation) SetHasSelection(selection bool)

SetHasSelection() is a wrapper around gtk_print_operation_set_has_selection().

func (*PrintOperation) SetJobName Uses

func (po *PrintOperation) SetJobName(name string)

SetJobName() is a wrapper around gtk_print_operation_set_job_name().

func (*PrintOperation) SetNPages Uses

func (po *PrintOperation) SetNPages(pages int)

SetNPages() is a wrapper around gtk_print_operation_set_n_pages().

func (*PrintOperation) SetPrintSettings Uses

func (po *PrintOperation) SetPrintSettings(ps *PrintSettings)

SetPrintSettings() is a wrapper around gtk_print_operation_set_print_settings().

func (*PrintOperation) SetShowProgress Uses

func (po *PrintOperation) SetShowProgress(show bool)

SetShowProgress() is a wrapper around gtk_print_operation_set_show_progress().

func (*PrintOperation) SetSupportSelection Uses

func (po *PrintOperation) SetSupportSelection(selection bool)

SetSupportSelection() is a wrapper around gtk_print_operation_set_support_selection().

func (*PrintOperation) SetTrackPrintStatus Uses

func (po *PrintOperation) SetTrackPrintStatus(progress bool)

SetTrackPrintStatus() is a wrapper around gtk_print_operation_set_track_print_status().

func (*PrintOperation) SetUnit Uses

func (po *PrintOperation) SetUnit(unit Unit)

SetUnit() is a wrapper around gtk_print_operation_set_unit().

func (*PrintOperation) SetUseFullPage Uses

func (po *PrintOperation) SetUseFullPage(full bool)

SetUseFullPage() is a wrapper around gtk_print_operation_set_use_full_page().

type PrintOperationAction Uses

type PrintOperationAction int

PrintOperationAction is a representation of GTK's GtkPrintOperationAction.

const (
    PRINT_OPERATION_ACTION_PRINT_DIALOG PrintOperationAction = C.GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG
    PRINT_OPERATION_ACTION_PRINT        PrintOperationAction = C.GTK_PRINT_OPERATION_ACTION_PRINT
    PRINT_OPERATION_ACTION_PREVIEW      PrintOperationAction = C.GTK_PRINT_OPERATION_ACTION_PREVIEW
    PRINT_OPERATION_ACTION_EXPORT       PrintOperationAction = C.GTK_PRINT_OPERATION_ACTION_EXPORT
)

type PrintOperationPreview Uses

type PrintOperationPreview struct {
    *glib.Object
}

PrintOperationPreview is a representation of GTK's GtkPrintOperationPreview GInterface.

func (*PrintOperationPreview) EndPreview Uses

func (pop *PrintOperationPreview) EndPreview()

EndPreview()() is a wrapper around gtk_print_operation_preview_end_preview().

func (*PrintOperationPreview) IsSelected Uses

func (pop *PrintOperationPreview) IsSelected(page int) bool

IsSelected()() is a wrapper around gtk_print_operation_preview_is_selected().

func (*PrintOperationPreview) RenderPage Uses

func (pop *PrintOperationPreview) RenderPage(page int)

RenderPage()() is a wrapper around gtk_print_operation_preview_render_page().

type PrintOperationResult Uses

type PrintOperationResult int

PrintOperationResult is a representation of GTK's GtkPrintOperationResult.

const (
    PRINT_OPERATION_RESULT_ERROR       PrintOperationResult = C.GTK_PRINT_OPERATION_RESULT_ERROR
    PRINT_OPERATION_RESULT_APPLY       PrintOperationResult = C.GTK_PRINT_OPERATION_RESULT_APPLY
    PRINT_OPERATION_RESULT_CANCEL      PrintOperationResult = C.GTK_PRINT_OPERATION_RESULT_CANCEL
    PRINT_OPERATION_RESULT_IN_PROGRESS PrintOperationResult = C.GTK_PRINT_OPERATION_RESULT_IN_PROGRESS
)

type PrintPages Uses

type PrintPages int

PrintPages is a representation of GTK's GtkPrintPages.

const (
    PRINT_PAGES_ALL       PrintPages = C.GTK_PRINT_PAGES_ALL
    PRINT_PAGES_CURRENT   PrintPages = C.GTK_PRINT_PAGES_CURRENT
    PRINT_PAGES_RANGES    PrintPages = C.GTK_PRINT_PAGES_RANGES
    PRINT_PAGES_SELECTION PrintPages = C.GTK_PRINT_PAGES_SELECTION
)

type PrintQuality Uses

type PrintQuality int

PrintQuality is a representation of GTK's GtkPrintQuality.

const (
    PRINT_QUALITY_LOW    PrintQuality = C.GTK_PRINT_QUALITY_LOW
    PRINT_QUALITY_NORMAL PrintQuality = C.GTK_PRINT_QUALITY_NORMAL
    PRINT_QUALITY_HIGH   PrintQuality = C.GTK_PRINT_QUALITY_HIGH
    PRINT_QUALITY_DRAFT  PrintQuality = C.GTK_PRINT_QUALITY_DRAFT
)

type PrintSettings Uses

type PrintSettings struct {
    *glib.Object
}

func PrintSettingsNew Uses

func PrintSettingsNew() (*PrintSettings, error)

PrintSettingsNew() is a wrapper around gtk_print_settings_new().

func PrintSettingsNewFromFile Uses

func PrintSettingsNewFromFile(name string) (*PrintSettings, error)

PrintSettingsNewFromFile() is a wrapper around gtk_print_settings_new_from_file().

func (*PrintSettings) Copy Uses

func (ps *PrintSettings) Copy() (*PrintSettings, error)

Copy() is a wrapper around gtk_print_settings_copy().

func (*PrintSettings) ForEach Uses

func (ps *PrintSettings) ForEach(cb PrintSettingsCallback, userData uintptr)

Foreach() is a wrapper around gtk_print_settings_foreach().

func (*PrintSettings) Get Uses

func (ps *PrintSettings) Get(key string) string

Get() is a wrapper around gtk_print_settings_get().

func (*PrintSettings) GetBool Uses

func (ps *PrintSettings) GetBool(key string) bool

GetBool() is a wrapper around gtk_print_settings_get_bool().

func (*PrintSettings) GetCollate Uses

func (ps *PrintSettings) GetCollate() bool

GetCollate() is a wrapper around gtk_print_settings_get_collate().

func (*PrintSettings) GetDefaultSource Uses

func (ps *PrintSettings) GetDefaultSource() string

GetDefaultSource() is a wrapper around gtk_print_settings_get_default_source().

func (*PrintSettings) GetDither Uses

func (ps *PrintSettings) GetDither() string

GetDither() is a wrapper around gtk_print_settings_get_dither().

func (*PrintSettings) GetDouble Uses

func (ps *PrintSettings) GetDouble(key string) float64

GetDouble() is a wrapper around gtk_print_settings_get_double().

func (*PrintSettings) GetDoubleWithDefault Uses

func (ps *PrintSettings) GetDoubleWithDefault(key string, def float64) float64

GetDoubleWithDefault() is a wrapper around gtk_print_settings_get_double_with_default().

func (*PrintSettings) GetDuplex Uses

func (ps *PrintSettings) GetDuplex() PrintDuplex

GetDuplex() is a wrapper around gtk_print_settings_get_duplex().

func (*PrintSettings) GetFinishings Uses

func (ps *PrintSettings) GetFinishings() string

GetFinishings() is a wrapper around gtk_print_settings_get_finishings().

func (*PrintSettings) GetInt Uses

func (ps *PrintSettings) GetInt(key string) int

GetInt() is a wrapper around gtk_print_settings_get_int().

func (*PrintSettings) GetIntWithDefault Uses

func (ps *PrintSettings) GetIntWithDefault(key string, def int) int

GetIntWithDefault() is a wrapper around gtk_print_settings_get_int_with_default().

func (*PrintSettings) GetLength Uses

func (ps *PrintSettings) GetLength(key string, unit Unit) float64

GetLength() is a wrapper around gtk_print_settings_get_length().

func (*PrintSettings) GetMediaType Uses

func (ps *PrintSettings) GetMediaType() string

GetMediaType() is a wrapper around gtk_print_settings_get_media_type().

func (*PrintSettings) GetNCopies Uses

func (ps *PrintSettings) GetNCopies() int

GetNCopies() is a wrapper around gtk_print_settings_get_n_copies().

func (*PrintSettings) GetNmberUp Uses

func (ps *PrintSettings) GetNmberUp() int

GetNmberUp() is a wrapper around gtk_print_settings_get_number_up().

func (*PrintSettings) GetNumberUpLayout Uses

func (ps *PrintSettings) GetNumberUpLayout() NumberUpLayout

GetNumberUpLayout() is a wrapper around gtk_print_settings_get_number_up_layout().

func (*PrintSettings) GetOrientation Uses

func (ps *PrintSettings) GetOrientation() PageOrientation

GetOrientation() is a wrapper around gtk_print_settings_get_orientation().

func (*PrintSettings) GetOutputBin Uses

func (ps *PrintSettings) GetOutputBin() string

GetOutputBin() is a wrapper around gtk_print_settings_get_output_bin().

func (*PrintSettings) GetPageSet Uses

func (ps *PrintSettings) GetPageSet(pages PrintPages) PageSet

GetPageSet() is a wrapper around gtk_print_settings_get_page_set().

func (*PrintSettings) GetPaperHeight Uses

func (ps *PrintSettings) GetPaperHeight(unit Unit) float64

GetPaperHeight() is a wrapper around gtk_print_settings_get_paper_height().

func (*PrintSettings) GetPaperSize Uses

func (ps *PrintSettings) GetPaperSize() (*PaperSize, error)

GetPaperSize() is a wrapper around gtk_print_settings_get_paper_size().

func (*PrintSettings) GetPaperWidth Uses

func (ps *PrintSettings) GetPaperWidth(unit Unit) float64

GetPaperWidth() is a wrapper around gtk_print_settings_get_paper_width().

func (*PrintSettings) GetPrintPages Uses

func (ps *PrintSettings) GetPrintPages() PrintPages

GetPrintPages() is a wrapper around gtk_print_settings_get_print_pages().

func (*PrintSettings) GetPrinter Uses

func (ps *PrintSettings) GetPrinter() string

GetPrinter() is a wrapper around gtk_print_settings_get_printer().

func (*PrintSettings) GetPrinterLpi Uses

func (ps *PrintSettings) GetPrinterLpi() float64

GetPrinterLpi() is a wrapper around gtk_print_settings_get_printer_lpi().

func (*PrintSettings) GetQuality Uses

func (ps *PrintSettings) GetQuality() PrintQuality

GetQuality() is a wrapper around gtk_print_settings_get_quality().

func (*PrintSettings) GetResolution Uses

func (ps *PrintSettings) GetResolution() int

GetResolution() is a wrapper around gtk_print_settings_get_resolution().

func (*PrintSettings) GetResolutionX Uses

func (ps *PrintSettings) GetResolutionX() int

GetResolutionX() is a wrapper around gtk_print_settings_get_resolution_x().

func (*PrintSettings) GetResolutionY Uses

func (ps *PrintSettings) GetResolutionY() int

GetResolutionY() is a wrapper around gtk_print_settings_get_resolution_y().

func (*PrintSettings) GetReverse Uses

func (ps *PrintSettings) GetReverse() bool

GetReverse() is a wrapper around gtk_print_settings_get_reverse().

func (*PrintSettings) GetScale Uses

func (ps *PrintSettings) GetScale() float64

GetScale() is a wrapper around gtk_print_settings_get_scale().

func (*PrintSettings) GetUseColor Uses

func (ps *PrintSettings) GetUseColor() bool

GetUseColor() is a wrapper around gtk_print_settings_get_use_color().

func (*PrintSettings) HasKey Uses

func (ps *PrintSettings) HasKey(key string) bool

HasKey() is a wrapper around gtk_print_settings_has_key().

func (*PrintSettings) LoadFile Uses

func (ps *PrintSettings) LoadFile(name string) error

LoadFile() is a wrapper around gtk_print_settings_load_file().

func (*PrintSettings) Set Uses

func (ps *PrintSettings) Set(key, value string)

Set() is a wrapper around gtk_print_settings_set(). TODO: Since value can't be nil, we can't unset values here.

func (*PrintSettings) SetBool Uses

func (ps *PrintSettings) SetBool(key string, value bool)

SetBool() is a wrapper around gtk_print_settings_set_bool().

func (*PrintSettings) SetCollate Uses

func (ps *PrintSettings) SetCollate(collate bool)

SetCollate() is a wrapper around gtk_print_settings_set_collate().

func (*PrintSettings) SetDither Uses

func (ps *PrintSettings) SetDither(dither string)

SetDither() is a wrapper around gtk_print_settings_set_dither().

func (*PrintSettings) SetDouble Uses

func (ps *PrintSettings) SetDouble(key string, value float64)

SetDouble() is a wrapper around gtk_print_settings_set_double().

func (*PrintSettings) SetDuplex Uses

func (ps *PrintSettings) SetDuplex(duplex PrintDuplex)

SetDuplex() is a wrapper around gtk_print_settings_set_duplex().

func (*PrintSettings) SetFinishings Uses

func (ps *PrintSettings) SetFinishings(dither string)

SetFinishings() is a wrapper around gtk_print_settings_set_finishings().

func (*PrintSettings) SetInt Uses

func (ps *PrintSettings) SetInt(key string, value int)

SetInt() is a wrapper around gtk_print_settings_set_int().

func (*PrintSettings) SetLength Uses

func (ps *PrintSettings) SetLength(key string, value float64, unit Unit)

SetLength() is a wrapper around gtk_print_settings_set_length().

func (*PrintSettings) SetMediaType Uses

func (ps *PrintSettings) SetMediaType(mediaType string)

SetMediaType() is a wrapper around gtk_print_settings_set_media_type().

func (*PrintSettings) SetNCopies Uses

func (ps *PrintSettings) SetNCopies(copies int)

SetNCopies() is a wrapper around gtk_print_settings_set_n_copies().

func (*PrintSettings) SetNumberUp Uses

func (ps *PrintSettings) SetNumberUp(numberUp int)

SetNumberUp() is a wrapper around gtk_print_settings_set_number_up().

func (*PrintSettings) SetNumberUpLayout Uses

func (ps *PrintSettings) SetNumberUpLayout(numberUpLayout NumberUpLayout)

SetNumberUpLayout() is a wrapper around gtk_print_settings_set_number_up_layout().

func (*PrintSettings) SetOrientation Uses

func (ps *PrintSettings) SetOrientation(orientation PageOrientation)

SetOrientation() is a wrapper around gtk_print_settings_set_orientation().

func (*PrintSettings) SetOutputBin Uses

func (ps *PrintSettings) SetOutputBin(bin string)

SetOutputBin() is a wrapper around gtk_print_settings_set_output_bin().

func (*PrintSettings) SetPageSet Uses

func (ps *PrintSettings) SetPageSet(pageSet PageSet)

SetPageSet() is a wrapper around gtk_print_settings_set_page_set().

func (*PrintSettings) SetPaperHeight Uses

func (ps *PrintSettings) SetPaperHeight(width float64, unit Unit)

SetPaperHeight() is a wrapper around gtk_print_settings_set_paper_height().

func (*PrintSettings) SetPaperSize Uses

func (ps *PrintSettings) SetPaperSize(size *PaperSize)

SetPaperSize() is a wrapper around gtk_print_settings_set_paper_size().

func (*PrintSettings) SetPaperWidth Uses

func (ps *PrintSettings) SetPaperWidth(width float64, unit Unit)

SetPaperWidth() is a wrapper around gtk_print_settings_set_paper_width().

func (*PrintSettings) SetPrintPages Uses

func (ps *PrintSettings) SetPrintPages(pages PrintPages)

SetPrintPages() is a wrapper around gtk_print_settings_set_print_pages().

func (*PrintSettings) SetPrinter Uses

func (ps *PrintSettings) SetPrinter(printer string)

SetPrinter() is a wrapper around gtk_print_settings_set_printer().

func (*PrintSettings) SetPrinterLpi Uses

func (ps *PrintSettings) SetPrinterLpi(lpi float64)

SetPrinterLpi() is a wrapper around gtk_print_settings_set_printer_lpi().

func (*PrintSettings) SetQuality Uses

func (ps *PrintSettings) SetQuality(quality PrintQuality)

SetQuality() is a wrapper around gtk_print_settings_set_quality().

func (*PrintSettings) SetResolution Uses

func (ps *PrintSettings) SetResolution(resolution int)

SetResolution() is a wrapper around gtk_print_settings_set_resolution().

func (*PrintSettings) SetResolutionXY Uses

func (ps *PrintSettings) SetResolutionXY(resolutionX, resolutionY int)

SetResolutionXY() is a wrapper around gtk_print_settings_set_resolution_xy().

func (*PrintSettings) SetReverse Uses

func (ps *PrintSettings) SetReverse(reverse bool)

SetReverse() is a wrapper around gtk_print_settings_set_reverse().

func (*PrintSettings) SetScale Uses

func (ps *PrintSettings) SetScale(scale float64)

SetScale() is a wrapper around gtk_print_settings_set_scale().

func (*PrintSettings) SetSefaultSource Uses

func (ps *PrintSettings) SetSefaultSource(defaultSource string)

SetSefaultSource() is a wrapper around gtk_print_settings_set_default_source().

func (*PrintSettings) SetUseColor Uses

func (ps *PrintSettings) SetUseColor(color bool)

SetUseColor() is a wrapper around gtk_print_settings_set_use_color().

func (*PrintSettings) ToFile Uses

func (ps *PrintSettings) ToFile(name string) error

ToFile() is a wrapper around gtk_print_settings_to_file().

func (*PrintSettings) Unset Uses

func (ps *PrintSettings) Unset(key string)

Unset() is a wrapper around gtk_print_settings_unset().

type PrintSettingsCallback Uses

type PrintSettingsCallback func(key, value string, userData uintptr)

type PrintStatus Uses

type PrintStatus int

PrintStatus is a representation of GTK's GtkPrintStatus.

const (
    PRINT_STATUS_INITIAL          PrintStatus = C.GTK_PRINT_STATUS_INITIAL
    PRINT_STATUS_PREPARING        PrintStatus = C.GTK_PRINT_STATUS_PREPARING
    PRINT_STATUS_GENERATING_DATA  PrintStatus = C.GTK_PRINT_STATUS_GENERATING_DATA
    PRINT_STATUS_SENDING_DATA     PrintStatus = C.GTK_PRINT_STATUS_SENDING_DATA
    PRINT_STATUS_PENDING          PrintStatus = C.GTK_PRINT_STATUS_PENDING
    PRINT_STATUS_PENDING_ISSUE    PrintStatus = C.GTK_PRINT_STATUS_PENDING_ISSUE
    PRINT_STATUS_PRINTING         PrintStatus = C.GTK_PRINT_STATUS_PRINTING
    PRINT_STATUS_FINISHED         PrintStatus = C.GTK_PRINT_STATUS_FINISHED
    PRINT_STATUS_FINISHED_ABORTED PrintStatus = C.GTK_PRINT_STATUS_FINISHED_ABORTED
)

type ProgressBar Uses

type ProgressBar struct {
    Widget
    // Interfaces
    Orientable
}

ProgressBar is a representation of GTK's GtkProgressBar.

func ProgressBarNew Uses

func ProgressBarNew() (*ProgressBar, error)

ProgressBarNew() is a wrapper around gtk_progress_bar_new().

func (*ProgressBar) GetFraction Uses

func (v *ProgressBar) GetFraction() float64

GetFraction() is a wrapper around gtk_progress_bar_get_fraction().

func (*ProgressBar) GetInverted Uses

func (v *ProgressBar) GetInverted() bool

GetInverted is a wrapper around gtk_progress_bar_get_inverted().

func (*ProgressBar) GetPulseStep Uses

func (v *ProgressBar) GetPulseStep() float64

GetPulseStep is a wrapper around gtk_progress_bar_get_pulse_step().

func (*ProgressBar) GetShowText Uses

func (v *ProgressBar) GetShowText() bool

GetShowText is a wrapper around gtk_progress_bar_get_show_text().

func (*ProgressBar) Pulse Uses

func (v *ProgressBar) Pulse()

Pulse is a wrapper arountd gtk_progress_bar_pulse().

func (*ProgressBar) SetFraction Uses

func (v *ProgressBar) SetFraction(fraction float64)

SetFraction() is a wrapper around gtk_progress_bar_set_fraction().

func (*ProgressBar) SetInverted Uses

func (v *ProgressBar) SetInverted(inverted bool)

SetInverted is a wrapper around gtk_progress_bar_set_inverted().

func (*ProgressBar) SetPulseStep Uses

func (v *ProgressBar) SetPulseStep(fraction float64)

SetPulseStep is a wrapper around gtk_progress_bar_set_pulse_step().

func (*ProgressBar) SetShowText Uses

func (v *ProgressBar) SetShowText(showText bool)

SetShowText is a wrapper around gtk_progress_bar_set_show_text().

func (*ProgressBar) SetText Uses

func (v *ProgressBar) SetText(text string)

SetText() is a wrapper around gtk_progress_bar_set_text().

type RadioButton Uses

type RadioButton struct {
    CheckButton
}

RadioButton is a representation of GTK's GtkRadioButton.

func RadioButtonNew Uses

func RadioButtonNew(group *glib.SList) (*RadioButton, error)

RadioButtonNew is a wrapper around gtk_radio_button_new().

func RadioButtonNewFromWidget Uses

func RadioButtonNewFromWidget(radioGroupMember *RadioButton) (*RadioButton, error)

RadioButtonNewFromWidget is a wrapper around gtk_radio_button_new_from_widget().

func RadioButtonNewWithLabel Uses

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

RadioButtonNewWithLabel is a wrapper around gtk_radio_button_new_with_label().

func RadioButtonNewWithLabelFromWidget Uses

func RadioButtonNewWithLabelFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)

RadioButtonNewWithLabelFromWidget is a wrapper around gtk_radio_button_new_with_label_from_widget().

func RadioButtonNewWithMnemonic Uses

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

RadioButtonNewWithMnemonic is a wrapper around gtk_radio_button_new_with_mnemonic()

func RadioButtonNewWithMnemonicFromWidget Uses

func RadioButtonNewWithMnemonicFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)

RadioButtonNewWithMnemonicFromWidget is a wrapper around gtk_radio_button_new_with_mnemonic_from_widget().

func (*RadioButton) GetGroup Uses

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

GetGroup is a wrapper around gtk_radio_button_get_group().

func (*RadioButton) JoinGroup Uses

func (v *RadioButton) JoinGroup(groupSource *RadioButton)

JoinGroup is a wrapper around gtk_radio_button_join_group().

func (*RadioButton) SetGroup Uses

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

SetGroup is a wrapper around gtk_radio_button_set_group().

type RadioMenuItem Uses

type RadioMenuItem struct {
    CheckMenuItem
}

RadioMenuItem is a representation of GTK's GtkRadioMenuItem.

func RadioMenuItemNew Uses

func RadioMenuItemNew(group *glib.SList) (*RadioMenuItem, error)

RadioMenuItemNew is a wrapper around gtk_radio_menu_item_new().

func RadioMenuItemNewFromWidget Uses

func RadioMenuItemNewFromWidget(group *RadioMenuItem) (*RadioMenuItem, error)

RadioMenuItemNewFromWidget is a wrapper around gtk_radio_menu_item_new_from_widget().

func RadioMenuItemNewWithLabel Uses

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

RadioMenuItemNewWithLabel is a wrapper around gtk_radio_menu_item_new_with_label().

func RadioMenuItemNewWithLabelFromWidget Uses

func RadioMenuItemNewWithLabelFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)

RadioMenuItemNewWithLabelFromWidget is a wrapper around gtk_radio_menu_item_new_with_label_from_widget().

func RadioMenuItemNewWithMnemonic Uses

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

RadioMenuItemNewWithMnemonic is a wrapper around gtk_radio_menu_item_new_with_mnemonic().

func RadioMenuItemNewWithMnemonicFromWidget Uses

func RadioMenuItemNewWithMnemonicFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)

RadioMenuItemNewWithMnemonicFromWidget is a wrapper around gtk_radio_menu_item_new_with_mnemonic_from_widget().

func (*RadioMenuItem) GetGroup Uses

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

GetGroup is a wrapper around gtk_radio_menu_item_get_group().

func (*RadioMenuItem) SetGroup Uses

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

SetGroup is a wrapper around gtk_radio_menu_item_set_group().

type Range Uses

type Range struct {
    Widget
}

Range is a representation of GTK's GtkRange.

func (*Range) GetValue Uses

func (v *Range) GetValue() float64

GetValue is a wrapper around gtk_range_get_value().

func (*Range) SetIncrements Uses

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

SetIncrements() is a wrapper around gtk_range_set_increments().

func (*Range) SetRange Uses

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

SetRange() is a wrapper around gtk_range_set_range().

func (*Range) SetValue Uses

func (v *Range) SetValue(value float64)

SetValue is a wrapper around gtk_range_set_value().

type RecentChooser Uses

type RecentChooser struct {
    *glib.Object
}

RecentChooser is a representation of GTK's GtkRecentChooser.

func (*RecentChooser) AddFilter Uses

func (v *RecentChooser) AddFilter(filter *RecentFilter)

func (*RecentChooser) GetCurrentUri Uses

func (v *RecentChooser) GetCurrentUri() string

func (*RecentChooser) RemoveFilter Uses

func (v *RecentChooser) RemoveFilter(filter *RecentFilter)

type RecentChooserMenu Uses

type RecentChooserMenu struct {
    Menu
    RecentChooser
}

RecentChooserMenu is a representation of GTK's GtkRecentChooserMenu.

type RecentFilter Uses

type RecentFilter struct {
    glib.InitiallyUnowned
}

RecentFilter is a representation of GTK's GtkRecentFilter.

func RecentFilterNew Uses

func RecentFilterNew() (*RecentFilter, error)

RecentFilterNew is a wrapper around gtk_recent_filter_new().

type RecentManager Uses

type RecentManager struct {
    *glib.Object
}

RecentManager is a representation of GTK's GtkRecentManager.

func RecentManagerGetDefault Uses

func RecentManagerGetDefault() (*RecentManager, error)

RecentManagerGetDefault is a wrapper around gtk_recent_manager_get_default().

func (*RecentManager) AddItem Uses

func (v *RecentManager) AddItem(fileURI string) bool

AddItem is a wrapper around gtk_recent_manager_add_item().

type ReliefStyle Uses

type ReliefStyle int

ReliefStyle is a representation of GTK's GtkReliefStyle.

const (
    RELIEF_NORMAL ReliefStyle = C.GTK_RELIEF_NORMAL
    RELIEF_HALF   ReliefStyle = C.GTK_RELIEF_HALF
    RELIEF_NONE   ReliefStyle = C.GTK_RELIEF_NONE
)

type ResponseType Uses

type ResponseType int

ResponseType is a representation of GTK's GtkResponseType.

const (
    RESPONSE_NONE         ResponseType = C.GTK_RESPONSE_NONE
    RESPONSE_REJECT       ResponseType = C.GTK_RESPONSE_REJECT
    RESPONSE_ACCEPT       ResponseType = C.GTK_RESPONSE_ACCEPT
    RESPONSE_DELETE_EVENT ResponseType = C.GTK_RESPONSE_DELETE_EVENT
    RESPONSE_OK           ResponseType = C.GTK_RESPONSE_OK
    RESPONSE_CANCEL       ResponseType = C.GTK_RESPONSE_CANCEL
    RESPONSE_CLOSE        ResponseType = C.GTK_RESPONSE_CLOSE
    RESPONSE_YES          ResponseType = C.GTK_RESPONSE_YES
    RESPONSE_NO           ResponseType = C.GTK_RESPONSE_NO
    RESPONSE_APPLY        ResponseType = C.GTK_RESPONSE_APPLY
    RESPONSE_HELP         ResponseType = C.GTK_RESPONSE_HELP
)

type Revealer Uses

type Revealer struct {
    Bin
}

Revealer is a representation of GTK's GtkRevealer

func RevealerNew Uses

func RevealerNew() (*Revealer, error)

RevealerNew is a wrapper around gtk_revealer_new()

func (*Revealer) GetChildRevealed Uses

func (v *Revealer) GetChildRevealed() bool

GetChildRevealed is a wrapper around gtk_revealer_get_child_revealed().

func (*Revealer) GetRevealChild Uses

func (v *Revealer) GetRevealChild() bool

GetRevealChild is a wrapper around gtk_revealer_get_reveal_child().

func (*Revealer) GetTransitionDuration Uses

func (v *Revealer) GetTransitionDuration() uint

GetTransitionDuration is a wrapper around gtk_revealer_get_transition_duration()

func (*Revealer) GetTransitionType Uses

func (v *Revealer) GetTransitionType() RevealerTransitionType

GetTransitionType is a wrapper around gtk_revealer_get_transition_type()

func (*Revealer) SetRevealChild Uses

func (v *Revealer) SetRevealChild(revealChild bool)

SetRevealChild is a wrapper around gtk_revealer_set_reveal_child().

func (*Revealer) SetTransitionDuration Uses

func (v *Revealer) SetTransitionDuration(duration uint)

SetTransitionDuration is a wrapper around gtk_revealer_set_transition_duration().

func (*Revealer) SetTransitionType Uses

func (v *Revealer) SetTransitionType(transition RevealerTransitionType)

SetTransitionType is a wrapper around gtk_revealer_set_transition_type()

type RevealerTransitionType Uses

type RevealerTransitionType int

RevealerTransitionType is a representation of GTK's GtkRevealerTransitionType.

const (
    REVEALER_TRANSITION_TYPE_NONE        RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_NONE
    REVEALER_TRANSITION_TYPE_CROSSFADE   RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_CROSSFADE
    REVEALER_TRANSITION_TYPE_SLIDE_RIGHT RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT
    REVEALER_TRANSITION_TYPE_SLIDE_LEFT  RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT
    REVEALER_TRANSITION_TYPE_SLIDE_UP    RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP
    REVEALER_TRANSITION_TYPE_SLIDE_DOWN  RevealerTransitionType = C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN
)

type Scale Uses

type Scale struct {
    Range
}

Scale is a representation of GTK's GtkScale.

func ScaleNew Uses

func ScaleNew(orientation Orientation, adjustment *Adjustment) (*Scale, error)

ScaleNew is a wrapper around gtk_scale_new().

func ScaleNewWithRange Uses

func ScaleNewWithRange(orientation Orientation, min, max, step float64) (*Scale, error)

ScaleNewWithRange is a wrapper around gtk_scale_new_with_range().

func (*Scale) SetDrawValue Uses

func (v *Scale) SetDrawValue(drawValue bool)

SetDrawValue() is a wrapper around gtk_scale_set_draw_value().

type ScaleButton Uses

type ScaleButton struct {
    Button
}

ScaleButton is a representation of GTK's GtkScaleButton.

func ScaleButtonNew Uses

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

ScaleButtonNew() is a wrapper around gtk_scale_button_new().

func (*ScaleButton) GetAdjustment Uses

func (v *ScaleButton) GetAdjustment() *Adjustment

GetAdjustment() is a wrapper around gtk_scale_button_get_adjustment().

func (*ScaleButton) GetPopup Uses

func (v *ScaleButton) GetPopup() (*Widget, error)

GetPopup() is a wrapper around gtk_scale_button_get_popup().

func (*ScaleButton) GetValue Uses

func (v *ScaleButton) GetValue() float64

GetValue() is a wrapper around gtk_scale_button_get_value().

func (*ScaleButton) SetAdjustment Uses

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

SetAdjustment() is a wrapper around gtk_scale_button_set_adjustment().

func (*ScaleButton) SetValue Uses

func (v *ScaleButton) SetValue(value float64)

SetValue() is a wrapper around gtk_scale_button_set_value().

type Scrollable Uses

type Scrollable struct {
    *glib.Object
}

Scrollable is a representation of GTK's GtkScrollable GInterface.

func (*Scrollable) GetHAdjustment Uses

func (v *Scrollable) GetHAdjustment() (*Adjustment, error)

GetHAdjustment is a wrapper around gtk_scrollable_get_hadjustment().

func (*Scrollable) GetVAdjustment Uses

func (v *Scrollable) GetVAdjustment() (*Adjustment, error)

GetVAdjustment is a wrapper around gtk_scrollable_get_vadjustment().

func (*Scrollable) SetHAdjustment Uses

func (v *Scrollable) SetHAdjustment(adjustment *Adjustment)

SetHAdjustment is a wrapper around gtk_scrollable_set_hadjustment().

func (*Scrollable) SetVAdjustment Uses

func (v *Scrollable) SetVAdjustment(adjustment *Adjustment)

SetVAdjustment is a wrapper around gtk_scrollable_set_vadjustment().

type Scrollbar Uses

type Scrollbar struct {
    Range
}

Scrollbar is a representation of GTK's GtkScrollbar.

func ScrollbarNew Uses

func ScrollbarNew(orientation Orientation, adjustment *Adjustment) (*Scrollbar, error)

ScrollbarNew is a wrapper around gtk_scrollbar_new().

type ScrolledWindow Uses

type ScrolledWindow struct {
    Bin
}

ScrolledWindow is a representation of GTK's GtkScrolledWindow.

func ScrolledWindowNew Uses

func ScrolledWindowNew(hadjustment, vadjustment *Adjustment) (*ScrolledWindow, error)

ScrolledWindowNew() is a wrapper around gtk_scrolled_window_new().

func (*ScrolledWindow) GetHAdjustment Uses

func (v *ScrolledWindow) GetHAdjustment() *Adjustment

GetHAdjustment() is a wrapper around gtk_scrolled_window_get_hadjustment().

func (*ScrolledWindow) GetOverlayScrolling Uses

func (v *ScrolledWindow) GetOverlayScrolling() bool

GetOverlayScrolling is a wrapper around gtk_scrolled_window_get_overlay_scrolling().

func (*ScrolledWindow) GetShadowType Uses

func (v *ScrolledWindow) GetShadowType() ShadowType

GetShadowType is a wrapper around gtk_scrolled_window_get_shadow_type().

func (*ScrolledWindow) GetVAdjustment Uses

func (v *ScrolledWindow) GetVAdjustment() *Adjustment

GetVAdjustment() is a wrapper around gtk_scrolled_window_get_vadjustment().

func (*ScrolledWindow) SetHAdjustment Uses

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

SetHAdjustment is a wrapper around gtk_scrolled_window_set_hadjustment().

func (*ScrolledWindow) SetOverlayScrolling Uses

func (v *ScrolledWindow) SetOverlayScrolling(scrolling bool)

SetOverlayScrolling is a wrapper around gtk_scrolled_window_set_overlay_scrolling().

func (*ScrolledWindow) SetPolicy Uses

func (v *ScrolledWindow) SetPolicy(hScrollbarPolicy, vScrollbarPolicy PolicyType)

SetPolicy() is a wrapper around gtk_scrolled_window_set_policy().

func (*ScrolledWindow) SetShadowType Uses

func (v *ScrolledWindow) SetShadowType(t ShadowType)

SetShadowType is a wrapper around gtk_scrolled_window_set_shadow_type().

func (*ScrolledWindow) SetVAdjustment Uses

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

SetVAdjustment is a wrapper around gtk_scrolled_window_set_vadjustment().

type SearchBar struct {
    Bin
}

SearchBar is a representation of GTK's GtkSearchBar.

func SearchBarNew Uses

func SearchBarNew() (*SearchBar, error)

SearchBarNew is a wrapper around gtk_search_bar_new()

func (*SearchBar) ConnectEntry Uses

func (v *SearchBar) ConnectEntry(entry IEntry)

ConnectEntry is a wrapper around gtk_search_bar_connect_entry().

func (*SearchBar) GetSearchMode Uses

func (v *SearchBar) GetSearchMode() bool

GetSearchMode is a wrapper around gtk_search_bar_get_search_mode().

func (*SearchBar) GetShowCloseButton Uses

func (v *SearchBar) GetShowCloseButton() bool

GetShowCloseButton is a wrapper arounb gtk_search_bar_get_show_close_button().

func (*SearchBar) HandleEvent Uses

func (v *SearchBar) HandleEvent(event *gdk.Event)

HandleEvent is a wrapper around gtk_search_bar_handle_event()

func (*SearchBar) SetSearchMode Uses

func (v *SearchBar) SetSearchMode(searchMode bool)

SetSearchMode is a wrapper around gtk_search_bar_set_search_mode().

func (*SearchBar) SetShowCloseButton Uses

func (v *SearchBar) SetShowCloseButton(visible bool)

SetShowCloseButton is a wrapper around gtk_search_bar_set_show_close_button()

type SearchEntry Uses

type SearchEntry struct {
    Entry
}

SearchEntry is a reprensentation of GTK's GtkSearchEntry.

func SearchEntryNew Uses

func SearchEntryNew() (*SearchEntry, error)

SearchEntryNew is a wrapper around gtk_search_entry_new().

type SelectionData Uses

type SelectionData struct {
    GtkSelectionData *C.GtkSelectionData
}

* GtkSelectionData

func (*SelectionData) GetData Uses

func (v *SelectionData) GetData() (data []byte)

GetData is a wrapper around gtk_selection_data_get_data_with_length. It returns a slice of the correct size with the selection's data.

func (*SelectionData) GetLength Uses

func (v *SelectionData) GetLength() int

GetLength is a wrapper around gtk_selection_data_get_length

type SelectionMode Uses

type SelectionMode int

SelectionMode is a representation of GTK's GtkSelectionMode.

const (
    SELECTION_NONE     SelectionMode = C.GTK_SELECTION_NONE
    SELECTION_SINGLE   SelectionMode = C.GTK_SELECTION_SINGLE
    SELECTION_BROWSE   SelectionMode = C.GTK_SELECTION_BROWSE
    SELECTION_MULTIPLE SelectionMode = C.GTK_SELECTION_MULTIPLE
)

type Separator Uses

type Separator struct {
    Widget
}

Separator is a representation of GTK's GtkSeparator.

func SeparatorNew Uses

func SeparatorNew(orientation Orientation) (*Separator, error)

SeparatorNew is a wrapper around gtk_separator_new().

type SeparatorMenuItem Uses

type SeparatorMenuItem struct {
    MenuItem
}

SeparatorMenuItem is a representation of GTK's GtkSeparatorMenuItem.

func SeparatorMenuItemNew Uses

func SeparatorMenuItemNew() (*SeparatorMenuItem, error)

SeparatorMenuItemNew is a wrapper around gtk_separator_menu_item_new().

type SeparatorToolItem Uses

type SeparatorToolItem struct {
    ToolItem
}

SeparatorToolItem is a representation of GTK's GtkSeparatorToolItem.

func SeparatorToolItemNew Uses

func SeparatorToolItemNew() (*SeparatorToolItem, error)

SeparatorToolItemNew is a wrapper around gtk_separator_tool_item_new().

func (*SeparatorToolItem) GetDraw Uses

func (v *SeparatorToolItem) GetDraw() bool

GetDraw is a wrapper around gtk_separator_tool_item_get_draw().

func (*SeparatorToolItem) SetDraw Uses

func (v *SeparatorToolItem) SetDraw(draw bool)

SetDraw is a wrapper around gtk_separator_tool_item_set_draw().

type Settings Uses

type Settings struct {
    *glib.Object
}

GtkSettings

func SettingsGetDefault Uses

func SettingsGetDefault() (*Settings, error)

Get the global non window specific settings

type ShadowType Uses

type ShadowType int

ShadowType is a representation of GTK's GtkShadowType.

const (
    SHADOW_NONE       ShadowType = C.GTK_SHADOW_NONE
    SHADOW_IN         ShadowType = C.GTK_SHADOW_IN
    SHADOW_OUT        ShadowType = C.GTK_SHADOW_OUT
    SHADOW_ETCHED_IN  ShadowType = C.GTK_SHADOW_ETCHED_IN
    SHADOW_ETCHED_OUT ShadowType = C.GTK_SHADOW_ETCHED_OUT
)

type ShortcutsWindow Uses

type ShortcutsWindow struct {
    Window
}

ShortcutsWindow is a representation of GTK's GtkShortcutsWindow.

type SizeGroup Uses

type SizeGroup struct {
    *glib.Object
}

SizeGroup is a representation of GTK's GtkSizeGroup

func SizeGroupNew Uses

func SizeGroupNew(mode SizeGroupMode) (*SizeGroup, error)

SizeGroupNew is a wrapper around gtk_size_group_new().

func (*SizeGroup) AddWidget Uses

func (v *SizeGroup) AddWidget(widget IWidget)

func (*SizeGroup) GetMode Uses

func (v *SizeGroup) GetMode() SizeGroupMode

func (*SizeGroup) GetWidgets Uses

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

func (*SizeGroup) RemoveWidget Uses

func (v *SizeGroup) RemoveWidget(widget IWidget)

func (*SizeGroup) SetMode Uses

func (v *SizeGroup) SetMode(mode SizeGroupMode)

type SizeGroupMode Uses

type SizeGroupMode int

SizeGroupMode is a representation of GTK's GtkSizeGroupMode

const (
    SIZE_GROUP_NONE       SizeGroupMode = C.GTK_SIZE_GROUP_NONE
    SIZE_GROUP_HORIZONTAL SizeGroupMode = C.GTK_SIZE_GROUP_HORIZONTAL
    SIZE_GROUP_VERTICAL   SizeGroupMode = C.GTK_SIZE_GROUP_VERTICAL
    SIZE_GROUP_BOTH       SizeGroupMode = C.GTK_SIZE_GROUP_BOTH
)

type SortType Uses

type SortType int

SortType is a representation of GTK's GtkSortType.

const (
    SORT_ASCENDING  SortType = C.GTK_SORT_ASCENDING
    SORT_DESCENDING          = C.GTK_SORT_DESCENDING
)

type SpinButton Uses

type SpinButton struct {
    Entry
}

SpinButton is a representation of GTK's GtkSpinButton.

func SpinButtonNew Uses

func SpinButtonNew(adjustment *Adjustment, climbRate float64, digits uint) (*SpinButton, error)

SpinButtonNew() is a wrapper around gtk_spin_button_new().

func SpinButtonNewWithRange Uses

func SpinButtonNewWithRange(min, max, step float64) (*SpinButton, error)

SpinButtonNewWithRange() is a wrapper around gtk_spin_button_new_with_range().

func (*SpinButton) Configure Uses

func (v *SpinButton) Configure(adjustment *Adjustment, climbRate float64, digits uint)

Configure() is a wrapper around gtk_spin_button_configure().

func (*SpinButton) GetAdjustment Uses

func (v *SpinButton) GetAdjustment() *Adjustment

GetAdjustment() is a wrapper around gtk_spin_button_get_adjustment

func (*SpinButton) GetValue Uses

func (v *SpinButton) GetValue() float64

GetValue() is a wrapper around gtk_spin_button_get_value().

func (*SpinButton) GetValueAsInt Uses

func (v *SpinButton) GetValueAsInt() int

GetValueAsInt() is a wrapper around gtk_spin_button_get_value_as_int().

func (*SpinButton) SetIncrements Uses

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

SetIncrements() is a wrapper around gtk_spin_button_set_increments().

func (*SpinButton) SetRange Uses

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

SetRange is a wrapper around gtk_spin_button_set_range().

func (*SpinButton) SetValue Uses

func (v *SpinButton) SetValue(value float64)

SetValue() is a wrapper around gtk_spin_button_set_value().

type Spinner Uses

type Spinner struct {
    Widget
}

Spinner is a representation of GTK's GtkSpinner.

func SpinnerNew Uses

func SpinnerNew() (*Spinner, error)

SpinnerNew is a wrapper around gtk_spinner_new().

func (*Spinner) Start Uses

func (v *Spinner) Start()

Start is a wrapper around gtk_spinner_start().

func (*Spinner) Stop Uses

func (v *Spinner) Stop()

Stop is a wrapper around gtk_spinner_stop().

type Stack Uses

type Stack struct {
    Container
}

Stack is a representation of GTK's GtkStack.

func StackNew Uses

func StackNew() (*Stack, error)

StackNew is a wrapper around gtk_stack_new().

func (*Stack) AddNamed Uses

func (v *Stack) AddNamed(child IWidget, name string)

AddNamed is a wrapper around gtk_stack_add_named().

func (*Stack) AddTitled Uses

func (v *Stack) AddTitled(child IWidget, name, title string)

AddTitled is a wrapper around gtk_stack_add_titled().

func (*Stack) GetChildByName Uses

func (v *Stack) GetChildByName(name string) *Widget

GetChildByName is a wrapper around gtk_stack_get_child_by_name().

func (*Stack) GetHomogeneous Uses

func (v *Stack) GetHomogeneous() bool

GetHomogeneous is a wrapper around gtk_stack_get_homogeneous().

func (*Stack) GetTransitionDuration Uses

func (v *Stack) GetTransitionDuration() uint

GetTransitionDuration is a wrapper around gtk_stack_get_transition_duration().

func (*Stack) GetTransitionRunning Uses

func (v *Stack) GetTransitionRunning() bool

GetTransitionRunning is a wrapper around gtk_stack_get_transition_running().

func (*Stack) GetTransitionType Uses

func (v *Stack) GetTransitionType() StackTransitionType

GetTransitionType is a wrapper around gtk_stack_get_transition_type().

func (*Stack) GetVisibleChild Uses

func (v *Stack) GetVisibleChild() *Widget

GetVisibleChild is a wrapper around gtk_stack_get_visible_child().

func (*Stack) GetVisibleChildName Uses

func (v *Stack) GetVisibleChildName() string

GetVisibleChildName is a wrapper around gtk_stack_get_visible_child_name().

func (*Stack) SetHomogeneous Uses

func (v *Stack) SetHomogeneous(homogeneous bool)

SetHomogeneous is a wrapper around gtk_stack_set_homogeneous().

func (*Stack) SetTransitionDuration Uses

func (v *Stack) SetTransitionDuration(duration uint)

SetTransitionDuration is a wrapper around gtk_stack_set_transition_duration().

func (*Stack) SetTransitionType Uses

func (v *Stack) SetTransitionType(transition StackTransitionType)

SetTransitionType is a wrapper around gtk_stack_set_transition_type().

func (*Stack) SetVisibleChild Uses

func (v *Stack) SetVisibleChild(child IWidget)

SetVisibleChild is a wrapper around gtk_stack_set_visible_child().

func (*Stack) SetVisibleChildFull Uses

func (v *Stack) SetVisibleChildFull(name string, transaction StackTransitionType)

SetVisibleChildFull is a wrapper around gtk_stack_set_visible_child_full().

func (*Stack) SetVisibleChildName Uses

func (v *Stack) SetVisibleChildName(name string)

SetVisibleChildName is a wrapper around gtk_stack_set_visible_child_name().

type StackSidebar Uses

type StackSidebar struct {
    Bin
}

StackSidebar is a representation of GTK's GtkStackSidebar.

func StackSidebarNew Uses

func StackSidebarNew() (*StackSidebar, error)

StackSidebarNew is a wrapper around gtk_stack_sidebar_new().

func (*StackSidebar) GetStack Uses

func (v *StackSidebar) GetStack() *Stack

func (*StackSidebar) SetStack Uses

func (v *StackSidebar) SetStack(stack *Stack)

type StackSwitcher Uses

type StackSwitcher struct {
    Box
}

StackSwitcher is a representation of GTK's GtkStackSwitcher

func StackSwitcherNew Uses

func StackSwitcherNew() (*StackSwitcher, error)

StackSwitcherNew is a wrapper around gtk_stack_switcher_new().

func (*StackSwitcher) GetStack Uses

func (v *StackSwitcher) GetStack() *Stack

GetStack is a wrapper around gtk_stack_switcher_get_stack().

func (*StackSwitcher) SetStack Uses

func (v *StackSwitcher) SetStack(stack *Stack)

SetStack is a wrapper around gtk_stack_switcher_set_stack().

type StackTransitionType Uses

type StackTransitionType int

StackTransitionType is a representation of GTK's GtkStackTransitionType.

const (
    STACK_TRANSITION_TYPE_NONE             StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_NONE
    STACK_TRANSITION_TYPE_CROSSFADE        StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_CROSSFADE
    STACK_TRANSITION_TYPE_SLIDE_RIGHT      StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT
    STACK_TRANSITION_TYPE_SLIDE_LEFT       StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT
    STACK_TRANSITION_TYPE_SLIDE_UP         StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_UP
    STACK_TRANSITION_TYPE_SLIDE_DOWN       StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_DOWN
    STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT
    STACK_TRANSITION_TYPE_SLIDE_UP_DOWN    StackTransitionType = C.GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN
)

type StateFlags Uses

type StateFlags int

StateFlags is a representation of GTK's GtkStateFlags.

const (
    STATE_FLAG_NORMAL       StateFlags = C.GTK_STATE_FLAG_NORMAL
    STATE_FLAG_ACTIVE       StateFlags = C.GTK_STATE_FLAG_ACTIVE
    STATE_FLAG_PRELIGHT     StateFlags = C.GTK_STATE_FLAG_PRELIGHT
    STATE_FLAG_SELECTED     StateFlags = C.GTK_STATE_FLAG_SELECTED
    STATE_FLAG_INSENSITIVE  StateFlags = C.GTK_STATE_FLAG_INSENSITIVE
    STATE_FLAG_INCONSISTENT StateFlags = C.GTK_STATE_FLAG_INCONSISTENT
    STATE_FLAG_FOCUSED      StateFlags = C.GTK_STATE_FLAG_FOCUSED
    STATE_FLAG_BACKDROP     StateFlags = C.GTK_STATE_FLAG_BACKDROP
)
const (
    STATE_FLAG_DIR_LTR StateFlags = C.GTK_STATE_FLAG_DIR_LTR
    STATE_FLAG_DIR_RTL StateFlags = C.GTK_STATE_FLAG_DIR_RTL
)

type Statusbar Uses

type Statusbar struct {
    Box
}

Statusbar is a representation of GTK's GtkStatusbar

func StatusbarNew Uses

func StatusbarNew() (*Statusbar, error)

StatusbarNew() is a wrapper around gtk_statusbar_new().

func (*Statusbar) GetContextId Uses

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

GetContextId() is a wrapper around gtk_statusbar_get_context_id().

func (*Statusbar) GetMessageArea Uses

func (v *Statusbar) GetMessageArea() (*Box, error)

GetMessageArea() is a wrapper around gtk_statusbar_get_message_area().

func (*Statusbar) Pop Uses

func (v *Statusbar) Pop(contextID uint)

Pop() is a wrapper around gtk_statusbar_pop().

func (*Statusbar) Push Uses

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

Push() is a wrapper around gtk_statusbar_push().

type StyleContext Uses

type StyleContext struct {
    *glib.Object
}

StyleContext is a representation of GTK's GtkStyleContext.

func (*StyleContext) AddClass Uses

func (v *StyleContext) AddClass(class_name string)

func (*StyleContext) AddProvider Uses

func (v *StyleContext) AddProvider(provider IStyleProvider, prio uint)

AddProvider is a wrapper around gtk_style_context_add_provider().

func (*StyleContext) GetColor Uses

func (v *StyleContext) GetColor(state StateFlags) *gdk.RGBA

GetColor is a wrapper around gtk_style_context_get_color().

func (*StyleContext) GetParent Uses

func (v *StyleContext) GetParent() (*StyleContext, error)

GetParent is a wrapper around gtk_style_context_get_parent().

func (*StyleContext) GetProperty Uses

func (v *StyleContext) GetProperty(property string, state StateFlags) (interface{}, error)

GetProperty is a wrapper around gtk_style_context_get_property().

func (*StyleContext) GetScreen Uses

func (v *StyleContext) GetScreen() (*gdk.Screen, error)

GetScreen is a wrapper around gtk_style_context_get_screen().

func (*StyleContext) GetState Uses

func (v *StyleContext) GetState() StateFlags

GetState is a wrapper around gtk_style_context_get_state().

func (*StyleContext) GetStyleProperty Uses

func (v *StyleContext) GetStyleProperty(property string) (interface{}, error)

GetStyleProperty is a wrapper around gtk_style_context_get_style_property().

func (*StyleContext) HasClass Uses

func (v *StyleContext) HasClass(className string) bool

HasClass is a wrapper around gtk_style_context_has_class().

func (*StyleContext) LookupColor Uses

func (v *StyleContext) LookupColor(colorName string) (*gdk.RGBA, bool)

LookupColor is a wrapper around gtk_style_context_lookup_color().

func (*StyleContext) RemoveClass Uses

func (v *StyleContext) RemoveClass(class_name string)

func (*StyleContext) RemoveProvider Uses

func (v *StyleContext) RemoveProvider(provider IStyleProvider)

RemoveProvider is a wrapper around gtk_style_context_remove_provider().

func (*StyleContext) Restore Uses

func (v *StyleContext) Restore()

Restore is a wrapper around gtk_style_context_restore().

func (*StyleContext) Save Uses

func (v *StyleContext) Save()

Save is a wrapper around gtk_style_context_save().

func (*StyleContext) SetParent Uses

func (v *StyleContext) SetParent(p *StyleContext)

SetParent is a wrapper around gtk_style_context_set_parent().

func (*StyleContext) SetScreen Uses

func (v *StyleContext) SetScreen(s *gdk.Screen)

SetScreen is a wrapper around gtk_style_context_set_screen().

func (*StyleContext) SetState Uses

func (v *StyleContext) SetState(state StateFlags)

SetState is a wrapper around gtk_style_context_set_state().

type StyleProviderPriority Uses

type StyleProviderPriority int

type Switch Uses

type Switch struct {
    Widget
}

Switch is a representation of GTK's GtkSwitch.

func SwitchNew Uses

func SwitchNew() (*Switch, error)

SwitchNew is a wrapper around gtk_switch_new().

func (*Switch) GetActive Uses

func (v *Switch) GetActive() bool

GetActive is a wrapper around gtk_switch_get_active().

func (*Switch) SetActive Uses

func (v *Switch) SetActive(isActive bool)

SetActive is a wrapper around gtk_switch_set_active().

type TargetEntry Uses

type TargetEntry C.GtkTargetEntry

TargetEntry is a representation of GTK's GtkTargetEntry

func TargetEntryNew Uses

func TargetEntryNew(target string, flags TargetFlags, info uint) (*TargetEntry, error)

TargetEntryNew is a wrapper aroud gtk_target_entry_new().

type TargetFlags Uses

type TargetFlags int

TargetFlags is a representation of GTK's GtkTargetFlags.

const (
    TARGET_SAME_APP     TargetFlags = C.GTK_TARGET_SAME_APP
    TARGET_SAME_WIDGET  TargetFlags = C.GTK_TARGET_SAME_WIDGET
    TARGET_OTHER_APP    TargetFlags = C.GTK_TARGET_OTHER_APP
    TARGET_OTHER_WIDGET TargetFlags = C.GTK_TARGET_OTHER_WIDGET
)

type TextBuffer Uses

type TextBuffer struct {
    *glib.Object
}

TextBuffer is a representation of GTK's GtkTextBuffer.

func TextBufferNew Uses

func TextBufferNew(table *TextTagTable) (*TextBuffer, error)

TextBufferNew() is a wrapper around gtk_text_buffer_new().

func (*TextBuffer) ApplyTag Uses

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

ApplyTag() is a wrapper around gtk_text_buffer_apply_tag().

func (*TextBuffer) ApplyTagByName Uses

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

ApplyTagByName() is a wrapper around gtk_text_buffer_apply_tag_by_name().

func (*TextBuffer) CreateMark Uses

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

CreateMark() is a wrapper around gtk_text_buffer_create_mark().

func (*TextBuffer) Delete Uses

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

Delete() is a wrapper around gtk_text_buffer_delete().

func (*TextBuffer) GetBounds Uses

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

func (*TextBuffer) GetCharCount Uses

func (v *TextBuffer) GetCharCount() int

GetCharCount() is a wrapper around gtk_text_buffer_get_char_count().

func (*TextBuffer) GetEndIter Uses

func (v *TextBuffer) GetEndIter() *TextIter

GetEndIter() is a wrapper around gtk_text_buffer_get_end_iter().

func (*TextBuffer) GetIterAtMark Uses

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

GetIterAtMark() is a wrapper around gtk_text_buffer_get_iter_at_mark().

func (*TextBuffer) GetIterAtOffset Uses

func (v *TextBuffer) GetIterAtOffset(charOffset int) *TextIter

GetIterAtOffset() is a wrapper around gtk_text_buffer_get_iter_at_offset().

func (*TextBuffer) GetLineCount Uses

func (v *TextBuffer) GetLineCount() int

GetLineCount() is a wrapper around gtk_text_buffer_get_line_count().

func (*TextBuffer) GetModified Uses

func (v *TextBuffer) GetModified() bool

GetModified() is a wrapper around gtk_text_buffer_get_modified().

func (*TextBuffer) GetStartIter Uses

func (v *TextBuffer) GetStartIter() *TextIter

GetStartIter() is a wrapper around gtk_text_buffer_get_start_iter().

func (*TextBuffer) GetTagTable Uses

func (v *TextBuffer) GetTagTable() (*TextTagTable, error)

GetTagTable() is a wrapper around gtk_text_buffer_get_tag_table().

func (*TextBuffer) GetText Uses

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

func (*TextBuffer) Insert Uses

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

Insert() is a wrapper around gtk_text_buffer_insert().

func (*TextBuffer) InsertAtCursor Uses

func (v *TextBuffer) InsertAtCursor(text string)

InsertAtCursor() is a wrapper around gtk_text_buffer_insert_at_cursor().

func (*TextBuffer) RemoveTag Uses

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

RemoveTag() is a wrapper around gtk_text_buffer_remove_tag().

func (*TextBuffer) SetModified Uses

func (v *TextBuffer) SetModified(setting bool)

SetModified() is a wrapper around gtk_text_buffer_set_modified().

func (*TextBuffer) SetText Uses

func (v *TextBuffer) SetText(text string)

type TextDirection Uses

type TextDirection int

TextDirection is a representation of GTK's GtkTextDirection.

const (
    TEXT_DIR_NONE TextDirection = C.GTK_TEXT_DIR_NONE
    TEXT_DIR_LTR  TextDirection = C.GTK_TEXT_DIR_LTR
    TEXT_DIR_RTL  TextDirection = C.GTK_TEXT_DIR_RTL
)

func GetLocaleDirection Uses

func GetLocaleDirection() TextDirection

GetLocaleDirection() is a wrapper around gtk_get_locale_direction().

type TextIter Uses

type TextIter C.GtkTextIter

TextIter is a representation of GTK's GtkTextIter

func (*TextIter) BackwardChar Uses

func (v *TextIter) BackwardChar() bool

BackwardChar is a wrapper around gtk_text_iter_backward_char().

func (*TextIter) BackwardChars Uses

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

BackwardChars is a wrapper around gtk_text_iter_backward_chars().

func (*TextIter) BackwardCursorPosition Uses

func (v *TextIter) BackwardCursorPosition() bool

BackwardCursorPosition is a wrapper around gtk_text_iter_backward_cursor_position().

func (*TextIter) BackwardCursorPositions Uses

func (v *TextIter) BackwardCursorPositions(v1 int) bool

BackwardCursorPositions is a wrapper around gtk_text_iter_backward_cursor_positions().

func (*TextIter) BackwardLine Uses

func (v *TextIter) BackwardLine() bool

BackwardLine is a wrapper around gtk_text_iter_backward_line().

func (*TextIter) BackwardLines Uses

func (v *TextIter) BackwardLines(v1 int) bool

BackwardLines is a wrapper around gtk_text_iter_backward_lines().

func (*TextIter) BackwardToTagToggle Uses

func (v *TextIter) BackwardToTagToggle(v1 *TextTag) bool

BackwardToTagToggle is a wrapper around gtk_text_iter_backward_to_tag_toggle().

func (*TextIter) BackwardVisibleCursorPosition Uses

func (v *TextIter) BackwardVisibleCursorPosition() bool

BackwardVisibleCursorPosition is a wrapper around gtk_text_iter_backward_visible_cursor_position().

func (*TextIter) BackwardVisibleCursorPositions Uses

func (v *TextIter) BackwardVisibleCursorPositions(v1 int) bool

BackwardVisibleCursorPositions is a wrapper around gtk_text_iter_backward_visible_cursor_positions().

func (*TextIter) BackwardVisibleLine Uses

func (v *TextIter) BackwardVisibleLine() bool

BackwardVisibleLine is a wrapper around gtk_text_iter_backward_visible_line().

func (*TextIter) BackwardVisibleLines Uses

func (v *TextIter) BackwardVisibleLines(v1 int) bool

BackwardVisibleLines is a wrapper around gtk_text_iter_backward_visible_lines().

func (*TextIter) CanInsert Uses

func (v *TextIter) CanInsert(v1 bool) bool

CanInsert is a wrapper around gtk_text_iter_can_insert().

func (*TextIter) Compare Uses

func (v *TextIter) Compare(v1 *TextIter) int

Compare is a wrapper around gtk_text_iter_compare().

func (*TextIter) Editable Uses

func (v *TextIter) Editable(v1 bool) bool

Editable is a wrapper around gtk_text_iter_editable().

func (*TextIter) EndsLine Uses

func (v *TextIter) EndsLine() bool

EndsLine is a wrapper around gtk_text_iter_ends_line().

func (*TextIter) EndsSentence Uses

func (v *TextIter) EndsSentence() bool

EndsSentence is a wrapper around gtk_text_iter_ends_sentence().

func (*TextIter) EndsTag Uses

func (v *TextIter) EndsTag(v1 *TextTag) bool

EndsTag is a wrapper around gtk_text_iter_ends_tag().

func (*TextIter) EndsWord Uses

func (v *TextIter) EndsWord() bool

EndsWord is a wrapper around gtk_text_iter_ends_word().

func (*TextIter) Equal Uses

func (v *TextIter) Equal(v1 *TextIter) bool

Equal is a wrapper around gtk_text_iter_equal().

func (*TextIter) ForwardChar Uses

func (v *TextIter) ForwardChar() bool

ForwardChar is a wrapper around gtk_text_iter_forward_char().

func (*TextIter) ForwardChars Uses

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

ForwardChars is a wrapper around gtk_text_iter_forward_chars().

func (*TextIter) ForwardCursorPosition Uses

func (v *TextIter) ForwardCursorPosition() bool

ForwardCursorPosition is a wrapper around gtk_text_iter_forward_cursor_position().

func (*TextIter) ForwardCursorPositions Uses

func (v *TextIter) ForwardCursorPositions(v1 int) bool

ForwardCursorPositions is a wrapper around gtk_text_iter_forward_cursor_positions().

func (*TextIter) ForwardLine Uses

func (v *TextIter) ForwardLine() bool

ForwardLine is a wrapper around gtk_text_iter_forward_line().

func (*TextIter) ForwardLines Uses

func (v *TextIter) ForwardLines(v1 int) bool

ForwardLines is a wrapper around gtk_text_iter_forward_lines().

func (*TextIter) ForwardSentenceEnd Uses

func (v *TextIter) ForwardSentenceEnd() bool

ForwardSentenceEnd is a wrapper around gtk_text_iter_forward_sentence_end().

func (*TextIter) ForwardSentenceEnds Uses

func (v *TextIter) ForwardSentenceEnds(v1 int) bool

ForwardSentenceEnds is a wrapper around gtk_text_iter_forward_sentence_ends().

func (*TextIter) ForwardToEnd Uses

func (v *TextIter) ForwardToEnd()

ForwardToEnd is a wrapper around gtk_text_iter_forward_to_end().

func (*TextIter) ForwardToLineEnd Uses

func (v *TextIter) ForwardToLineEnd() bool

ForwardToLineEnd is a wrapper around gtk_text_iter_forward_to_line_end().

func (*TextIter) ForwardToTagToggle Uses

func (v *TextIter) ForwardToTagToggle(v1 *TextTag) bool

ForwardToTagToggle is a wrapper around gtk_text_iter_forward_to_tag_toggle().

func (*TextIter) ForwardVisibleCursorPosition Uses

func (v *TextIter) ForwardVisibleCursorPosition() bool

ForwardVisibleCursorPosition is a wrapper around gtk_text_iter_forward_visible_cursor_position().

func (*TextIter) ForwardVisibleCursorPositions Uses

func (v *TextIter) ForwardVisibleCursorPositions(v1 int) bool

ForwardVisibleCursorPositions is a wrapper around gtk_text_iter_forward_visible_cursor_positions().

func (*TextIter) ForwardVisibleLine Uses

func (v *TextIter) ForwardVisibleLine() bool

ForwardVisibleLine is a wrapper around gtk_text_iter_forward_visible_line().

func (*TextIter) ForwardVisibleLines Uses

func (v *TextIter) ForwardVisibleLines(v1 int) bool

ForwardVisibleLines is a wrapper around gtk_text_iter_forward_visible_lines().

func (*TextIter) ForwardVisibleWordEnd Uses

func (v *TextIter) ForwardVisibleWordEnd() bool

ForwardVisibleWordEnd is a wrapper around gtk_text_iter_forward_visible_word_end().

func (*TextIter) ForwardVisibleWordEnds Uses

func (v *TextIter) ForwardVisibleWordEnds(v1 int) bool

ForwardVisibleWordEnds is a wrapper around gtk_text_iter_forward_word_ends().

func (*TextIter) ForwardWordEnd Uses

func (v *TextIter) ForwardWordEnd() bool

ForwardWordEnd is a wrapper around gtk_text_iter_forward_word_end().

func (*TextIter) ForwardWordEnds Uses

func (v *TextIter) ForwardWordEnds(v1 int) bool

ForwardWordEnds is a wrapper around gtk_text_iter_forward_word_ends().

func (*TextIter) GetBuffer Uses

func (v *TextIter) GetBuffer() *TextBuffer

GetBuffer is a wrapper around gtk_text_iter_get_buffer().

func (*TextIter) GetBytesInLine Uses

func (v *TextIter) GetBytesInLine() int

GetBytesInLine is a wrapper around gtk_text_iter_get_bytes_in_line().

func (*TextIter) GetChar Uses

func (v *TextIter) GetChar() rune

GetChar is a wrapper around gtk_text_iter_get_char().

func (*TextIter) GetCharsInLine Uses

func (v *TextIter) GetCharsInLine() int

GetCharsInLine is a wrapper around gtk_text_iter_get_chars_in_line().

func (*TextIter) GetLine Uses

func (v *TextIter) GetLine() int

GetLine is a wrapper around gtk_text_iter_get_line().

func (*TextIter) GetLineIndex Uses

func (v *TextIter) GetLineIndex() int

GetLineIndex is a wrapper around gtk_text_iter_get_line_index().

func (*TextIter) GetLineOffset Uses

func (v *TextIter) GetLineOffset() int

GetLineOffset is a wrapper around gtk_text_iter_get_line_offset().

func (*TextIter) GetOffset Uses

func (v *TextIter) GetOffset() int

GetOffset is a wrapper around gtk_text_iter_get_offset().

func (*TextIter) GetSlice Uses

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

GetSlice is a wrapper around gtk_text_iter_get_slice().

func (*TextIter) GetText Uses

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

GetText is a wrapper around gtk_text_iter_get_text().

func (*TextIter) GetVisibleLineIndex Uses

func (v *TextIter) GetVisibleLineIndex() int

GetVisibleLineIndex is a wrapper around gtk_text_iter_get_visible_line_index().

func (*TextIter) GetVisibleLineOffset Uses

func (v *TextIter) GetVisibleLineOffset() int

GetVisibleLineOffset is a wrapper around gtk_text_iter_get_visible_line_offset().

func (*TextIter) GetVisibleSlice Uses

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

GetVisibleSlice is a wrapper around gtk_text_iter_get_visible_slice().

func (*TextIter) GetVisibleText Uses

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

GetVisibleText is a wrapper around gtk_text_iter_get_visible_text().

func (*TextIter) HasTag Uses

func (v *TextIter) HasTag(v1 *TextTag) bool

HasTag is a wrapper around gtk_text_iter_has_tag().

func (*TextIter) InRange Uses

func (v *TextIter) InRange(v1 *TextIter, v2 *TextIter) bool

InRange is a wrapper around gtk_text_iter_in_range().

func (*TextIter) InsideSentence Uses

func (v *TextIter) InsideSentence() bool

InsideSentence is a wrapper around gtk_text_iter_inside_sentence().

func (*TextIter) InsideWord Uses

func (v *TextIter) InsideWord() bool

InsideWord is a wrapper around gtk_text_iter_inside_word().

func (*TextIter) IsCursorPosition Uses

func (v *TextIter) IsCursorPosition() bool

IsCursorPosition is a wrapper around gtk_text_iter_is_cursor_position().

func (*TextIter) IsEnd Uses

func (v *TextIter) IsEnd() bool

IsEnd is a wrapper around gtk_text_iter_is_end().

func (*TextIter) IsStart Uses

func (v *TextIter) IsStart() bool

IsStart is a wrapper around gtk_text_iter_is_start().

func (*TextIter) SetLine Uses

func (v *TextIter) SetLine(v1 int)

SetLine is a wrapper around gtk_text_iter_set_line().

func (*TextIter) SetLineIndex Uses

func (v *TextIter) SetLineIndex(v1 int)

SetLineIndex is a wrapper around gtk_text_iter_set_line_index().

func (*TextIter) SetLineOffset Uses

func (v *TextIter) SetLineOffset(v1 int)

SetLineOffset is a wrapper around gtk_text_iter_set_line_offset().

func (*TextIter) SetOffset Uses

func (v *TextIter) SetOffset(v1 int)

SetOffset is a wrapper around gtk_text_iter_set_offset().

func (*TextIter) SetVisibleLineIndex Uses

func (v *TextIter) SetVisibleLineIndex(v1 int)

SetVisibleLineIndex is a wrapper around gtk_text_iter_set_visible_line_index().

func (*TextIter) SetVisibleLineOffset Uses

func (v *TextIter) SetVisibleLineOffset(v1 int)

SetVisibleLineOffset is a wrapper around gtk_text_iter_set_visible_line_offset().

func (*TextIter) StartsLine Uses

func (v *TextIter) StartsLine() bool

StartsLine is a wrapper around gtk_text_iter_starts_line().

func (*TextIter) StartsSentence Uses

func (v *TextIter) StartsSentence() bool

StartsSentence is a wrapper around gtk_text_iter_starts_sentence().

func (*TextIter) StartsWord Uses

func (v *TextIter) StartsWord() bool

StartsWord is a wrapper around gtk_text_iter_starts_word().

func (*TextIter) TogglesTag Uses

func (v *TextIter) TogglesTag(v1 *TextTag) bool

TogglesTag is a wrapper around gtk_text_iter_toggles_tag().

type TextMark Uses

type TextMark C.GtkTextMark

TextMark is a representation of GTK's GtkTextMark

type TextTag Uses

type TextTag struct {
    *glib.Object
}

func TextTagNew Uses

func TextTagNew(name string) (*TextTag, error)

func (*TextTag) Event Uses

func (v *TextTag) Event(eventObject *glib.Object, event *gdk.Event, iter *TextIter) bool

Event() is a wrapper around gtk_text_tag_event().

func (*TextTag) GetPriority Uses

func (v *TextTag) GetPriority() int

GetPriority() is a wrapper around gtk_text_tag_get_priority().

func (*TextTag) SetPriority Uses

func (v *TextTag) SetPriority(priority int)

SetPriority() is a wrapper around gtk_text_tag_set_priority().

type TextTagTable Uses

type TextTagTable struct {
    *glib.Object
}

func TextTagTableNew Uses

func TextTagTableNew() (*TextTagTable, error)

func (*TextTagTable) Add Uses

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

Add() is a wrapper around gtk_text_tag_table_add().

func (*TextTagTable) Lookup Uses

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

Lookup() is a wrapper around gtk_text_tag_table_lookup().

func (*TextTagTable) Remove Uses

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

Remove() is a wrapper around gtk_text_tag_table_remove().

type TextView Uses

type TextView struct {
    Container
}

TextView is a representation of GTK's GtkTextView

func TextViewNew Uses

func TextViewNew() (*TextView, error)

TextViewNew is a wrapper around gtk_text_view_new().

func TextViewNewWithBuffer Uses

func TextViewNewWithBuffer(buf *TextBuffer) (*TextView, error)

TextViewNewWithBuffer is a wrapper around gtk_text_view_new_with_buffer().

func (*TextView) AddChildInWindow Uses

func (v *TextView) AddChildInWindow(child IWidget, tp TextWindowType, xpos, ypos int)

AddChildInWindow is a wrapper around gtk_text_view_add_child_in_window().

func (*TextView) BackwardDisplayLine Uses

func (v *TextView) BackwardDisplayLine(iter *TextIter) bool

BackwardDisplayLine is a wrapper around gtk_text_view_backward_display_line().

func (*TextView) BackwardDisplayLineStart Uses

func (v *TextView) BackwardDisplayLineStart(iter *TextIter) bool

BackwardDisplayLineStart is a wrapper around gtk_text_view_backward_display_line_start().

func (*TextView) BufferToWindowCoords Uses

func (v *TextView) BufferToWindowCoords(win TextWindowType, buffer_x, buffer_y int) (window_x, window_y int)

BufferToWindowCoords is a wrapper around gtk_text_view_buffer_to_window_coords().

func (*TextView) ForwardDisplayLine Uses

func (v *TextView) ForwardDisplayLine(iter *TextIter) bool

ForwardDisplayLine is a wrapper around gtk_text_view_forward_display_line().

func (*TextView) ForwardDisplayLineEnd Uses

func (v *TextView) ForwardDisplayLineEnd(iter *TextIter) bool

ForwardDisplayLineEnd is a wrapper around gtk_text_view_forward_display_line_end().

func (*TextView) GetAcceptsTab Uses

func (v *TextView) GetAcceptsTab() bool

GetAcceptsTab is a wrapper around gtk_text_view_get_accepts_tab().

func (*TextView) GetBorderWindowSize Uses

func (v *TextView) GetBorderWindowSize(tp TextWindowType) int

GetBorderWindowSize is a wrapper around gtk_text_view_get_border_window_size().

func (*TextView) GetBuffer Uses

func (v *TextView) GetBuffer() (*TextBuffer, error)

GetBuffer is a wrapper around gtk_text_view_get_buffer().

func (*TextView) GetCursorLocations Uses

func (v *TextView) GetCursorLocations(iter *TextIter) (strong, weak *gdk.Rectangle)

GetCursorLocations is a wrapper around gtk_text_view_get_cursor_locations().

func (*TextView) GetCursorVisible Uses

func (v *TextView) GetCursorVisible() bool

GetCursorVisible is a wrapper around gtk_text_view_get_cursor_visible().

func (*TextView) GetEditable Uses

func (v *TextView) GetEditable() bool

GetEditable is a wrapper around gtk_text_view_get_editable().

func (*TextView) GetIndent Uses

func (v *TextView) GetIndent() int

GetIndent is a wrapper around gtk_text_view_get_indent().

func (*TextView) GetInputHints Uses

func (v *TextView) GetInputHints() InputHints

GetInputHints is a wrapper around gtk_text_view_get_input_hints().

func (*TextView) GetInputPurpose Uses

func (v *TextView) GetInputPurpose() InputPurpose

GetInputPurpose is a wrapper around gtk_text_view_get_input_purpose().

func (*TextView) GetIterAtLocation Uses

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

GetIterAtLocation is a wrapper around gtk_text_view_get_iter_at_location().

func (*TextView) GetIterAtPosition Uses

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

GetIterAtPosition is a wrapper around gtk_text_view_get_iter_at_position().

func (*TextView) GetIterLocation Uses

func (v *TextView) GetIterLocation(iter *TextIter) *gdk.Rectangle

GetIterLocation is a wrapper around gtk_text_view_get_iter_location().

func (*TextView) GetJustification Uses

func (v *TextView) GetJustification() Justification

GetJustification is a wrapper around gtk_text_view_get_justification().

func (*TextView) GetLeftMargin Uses

func (v *TextView) GetLeftMargin() int

GetLeftMargin is a wrapper around gtk_text_view_get_left_margin().

func (*TextView) GetLineAtY Uses

func (v *TextView) GetLineAtY(y int) (*TextIter, int)

GetLineAtY is a wrapper around gtk_text_view_get_line_at_y().

func (*TextView) GetLineYrange Uses

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

GetLineYrange is a wrapper around gtk_text_view_get_line_yrange().

func (*TextView) GetOverwrite Uses

func (v *TextView) GetOverwrite() bool

GetOverwrite is a wrapper around gtk_text_view_get_overwrite().

func (*TextView) GetPixelsAboveLines Uses

func (v *TextView) GetPixelsAboveLines() int

GetPixelsAboveLines is a wrapper around gtk_text_view_get_pixels_above_lines().

func (*TextView) GetPixelsBelowLines Uses

func (v *TextView) GetPixelsBelowLines() int

GetPixelsBelowLines is a wrapper around gtk_text_view_get_pixels_below_lines().

func (*TextView) GetPixelsInsideWrap Uses

func (v *TextView) GetPixelsInsideWrap() int

GetPixelsInsideWrap is a wrapper around gtk_text_view_get_pixels_inside_wrap().

func (*TextView) GetRightMargin Uses

func (v *TextView) GetRightMargin() int

GetRightMargin is a wrapper around gtk_text_view_get_right_margin().

func (*TextView) GetVisibleRect Uses

func (v *TextView) GetVisibleRect() *gdk.Rectangle

GetVisibleRect is a wrapper around gtk_text_view_get_visible_rect().

func (*TextView) GetWindow Uses

func (v *TextView) GetWindow(win TextWindowType) *gdk.Window

GetWindow is a wrapper around gtk_text_view_get_window().

func (*TextView) GetWindowType Uses

func (v *TextView) GetWindowType(w *gdk.Window) TextWindowType

GetWindowType is a wrapper around gtk_text_view_get_window_type().

func (*TextView) GetWrapMode Uses

func (v *TextView) GetWrapMode() WrapMode

GetWrapMode is a wrapper around gtk_text_view_get_wrap_mode().

func (*TextView) ImContextFilterKeypress Uses

func (v *TextView) ImContextFilterKeypress(event *gdk.EventKey) bool

ImContextFilterKeypress is a wrapper around gtk_text_view_im_context_filter_keypress().

func (*TextView) MoveChild Uses

func (v *TextView) MoveChild(child IWidget, xpos, ypos int)

MoveChild is a wrapper around gtk_text_view_move_child().

func (*TextView) MoveMarkOnscreen Uses

func (v *TextView) MoveMarkOnscreen(mark *TextMark) bool

MoveMarkOnscreen is a wrapper around gtk_text_view_move_mark_onscreen().

func (*TextView) MoveVisually Uses

func (v *TextView) MoveVisually(iter *TextIter, count int) bool

MoveVisually is a wrapper around gtk_text_view_move_visually().

func (*TextView) PlaceCursorOnscreen Uses

func (v *TextView) PlaceCursorOnscreen() bool

PlaceCursorOnscreen is a wrapper around gtk_text_view_place_cursor_onscreen().

func (*TextView) ResetImContext Uses

func (v *TextView) ResetImContext()

ResetImContext is a wrapper around gtk_text_view_reset_im_context().

func (*TextView) ScrollMarkOnscreen Uses

func (v *TextView) ScrollMarkOnscreen(mark *TextMark)

ScrollMarkOnscreen is a wrapper around gtk_text_view_scroll_mark_onscreen().

func (*TextView) ScrollToIter Uses

func (v *TextView) ScrollToIter(iter *TextIter, within_margin float64, use_align bool, xalign, yalign float64) bool

ScrollToIter is a wrapper around gtk_text_view_scroll_to_iter().

func (*TextView) ScrollToMark Uses

func (v *TextView) ScrollToMark(mark *TextMark, within_margin float64, use_align bool, xalign, yalign float64)

ScrollToMark is a wrapper around gtk_text_view_scroll_to_mark().

func (*TextView) SetAcceptsTab Uses

func (v *TextView) SetAcceptsTab(acceptsTab bool)

SetAcceptsTab is a wrapper around gtk_text_view_set_accepts_tab().

func (*TextView) SetBorderWindowSize Uses

func (v *TextView) SetBorderWindowSize(tp TextWindowType, size int)

SetBorderWindowSize is a wrapper around gtk_text_view_set_border_window_size().

func (*TextView) SetBuffer Uses

func (v *TextView) SetBuffer(buffer *TextBuffer)

SetBuffer is a wrapper around gtk_text_view_set_buffer().

func (*TextView) SetCursorVisible Uses

func (v *TextView) SetCursorVisible(visible bool)

SetCursorVisible is a wrapper around gtk_text_view_set_cursor_visible().

func (*TextView) SetEditable Uses

func (v *TextView) SetEditable(editable bool)

SetEditable is a wrapper around gtk_text_view_set_editable().

func (*TextView) SetIndent Uses

func (v *TextView) SetIndent(indent int)

SetIndent is a wrapper around gtk_text_view_set_indent().

func (*TextView) SetInputHints Uses

func (v *TextView) SetInputHints(hints InputHints)

SetInputHints is a wrapper around gtk_text_view_set_input_hints().

func (*TextView) SetInputPurpose Uses

func (v *TextView) SetInputPurpose(purpose InputPurpose)

SetInputPurpose is a wrapper around gtk_text_view_set_input_purpose().

func (*TextView) SetJustification Uses

func (v *TextView) SetJustification(justify Justification)

SetJustification is a wrapper around gtk_text_view_set_justification().

func (*TextView) SetLeftMargin Uses

func (v *TextView) SetLeftMargin(margin int)

SetLeftMargin is a wrapper around gtk_text_view_set_left_margin().

func (*TextView) SetOverwrite Uses

func (v *TextView) SetOverwrite(overwrite bool)

SetOverwrite is a wrapper around gtk_text_view_set_overwrite().

func (*TextView) SetPixelsAboveLines Uses

func (v *TextView) SetPixelsAboveLines(px int)

SetPixelsAboveLines is a wrapper around gtk_text_view_set_pixels_above_lines().

func (*TextView) SetPixelsBelowLines Uses

func (v *TextView) SetPixelsBelowLines(px int)

SetPixelsBelowLines is a wrapper around gtk_text_view_set_pixels_below_lines().

func (*TextView) SetPixelsInsideWrap Uses

func (v *TextView) SetPixelsInsideWrap(px int)

SetPixelsInsideWrap is a wrapper around gtk_text_view_set_pixels_inside_wrap().

func (*TextView) SetRightMargin Uses

func (v *TextView) SetRightMargin(margin int)

SetRightMargin is a wrapper around gtk_text_view_set_right_margin().

func (*TextView) SetWrapMode Uses

func (v *TextView) SetWrapMode(wrapMode WrapMode)

SetWrapMode is a wrapper around gtk_text_view_set_wrap_mode().

func (*TextView) StartsDisplayLine Uses

func (v *TextView) StartsDisplayLine(iter *TextIter) bool

StartsDisplayLine is a wrapper around gtk_text_view_starts_display_line().

func (*TextView) WindowToBufferCoords Uses

func (v *TextView) WindowToBufferCoords(win TextWindowType, window_x, window_y int) (buffer_x, buffer_y int)

WindowToBufferCoords is a wrapper around gtk_text_view_window_to_buffer_coords().

type TextWindowType Uses

type TextWindowType int

TextWindowType is a representation of GTK's GtkTextWindowType.

const (
    TEXT_WINDOW_WIDGET TextWindowType = C.GTK_TEXT_WINDOW_WIDGET
    TEXT_WINDOW_TEXT   TextWindowType = C.GTK_TEXT_WINDOW_TEXT
    TEXT_WINDOW_LEFT   TextWindowType = C.GTK_TEXT_WINDOW_LEFT
    TEXT_WINDOW_RIGHT  TextWindowType = C.GTK_TEXT_WINDOW_RIGHT
    TEXT_WINDOW_TOP    TextWindowType = C.GTK_TEXT_WINDOW_TOP
    TEXT_WINDOW_BOTTOM TextWindowType = C.GTK_TEXT_WINDOW_BOTTOM
)

type ToggleButton Uses

type ToggleButton struct {
    Button
}

ToggleButton is a representation of GTK's GtkToggleButton.

func ToggleButtonNew Uses

func ToggleButtonNew() (*ToggleButton, error)

ToggleButtonNew is a wrapper around gtk_toggle_button_new().

func ToggleButtonNewWithLabel Uses

func ToggleButtonNewWithLabel(label string) (*ToggleButton, error)

ToggleButtonNewWithLabel is a wrapper around gtk_toggle_button_new_with_label().

func ToggleButtonNewWithMnemonic Uses

func ToggleButtonNewWithMnemonic(label string) (*ToggleButton, error)

ToggleButtonNewWithMnemonic is a wrapper around gtk_toggle_button_new_with_mnemonic().

func (*ToggleButton) GetActive Uses

func (v *ToggleButton) GetActive() bool

GetActive is a wrapper around gtk_toggle_button_get_active().

func (*ToggleButton) GetMode Uses

func (v *ToggleButton) GetMode() bool

GetMode is a wrapper around gtk_toggle_button_get_mode().

func (*ToggleButton) SetActive Uses

func (v *ToggleButton) SetActive(isActive bool)

SetActive is a wrapper around gtk_toggle_button_set_active().

func (*ToggleButton) SetMode Uses

func (v *ToggleButton) SetMode(drawIndicator bool)

SetMode is a wrapper around gtk_toggle_button_set_mode().

type ToolButton Uses

type ToolButton struct {
    ToolItem
}

ToolButton is a representation of GTK's GtkToolButton.

func ToolButtonNew Uses

func ToolButtonNew(iconWidget IWidget, label string) (*ToolButton, error)

ToolButtonNew is a wrapper around gtk_tool_button_new().

func (*ToolButton) GetIconName Uses

func (v *ToolButton) GetIconName() string

GetIconName is a wrapper around gtk_tool_button_get_icon_name().

func (*ToolButton) GetIconWidget Uses

func (v *ToolButton) GetIconWidget() *Widget

GetIconWidget is a wrapper around gtk_tool_button_get_icon_widget().

func (*ToolButton) GetLabel Uses

func (v *ToolButton) GetLabel() string

GetLabel is a wrapper aroud gtk_tool_button_get_label().

func (*ToolButton) GetLabelWidget Uses

func (v *ToolButton) GetLabelWidget() *Widget

GetLabelWidget is a wrapper around gtk_tool_button_get_label_widget().

func (*ToolButton) GetuseUnderline Uses

func (v *ToolButton) GetuseUnderline() bool

GetUseUnderline is a wrapper around gtk_tool_button_get_use_underline().

func (*ToolButton) SetGetUnderline Uses

func (v *ToolButton) SetGetUnderline(useUnderline bool)

SetUseUnderline is a wrapper around gtk_tool_button_set_use_underline().

func (*ToolButton) SetIconName Uses

func (v *ToolButton) SetIconName(iconName string)

SetIconName is a wrapper around gtk_tool_button_set_icon_name().

func (*ToolButton) SetIconWidget Uses

func (v *ToolButton) SetIconWidget(iconWidget IWidget)

SetIconWidget is a wrapper around gtk_tool_button_set_icon_widget().

func (*ToolButton) SetLabel Uses

func (v *ToolButton) SetLabel(label string)

SetLabel is a wrapper around gtk_tool_button_set_label().

func (*ToolButton) SetLabelWidget Uses

func (v *ToolButton) SetLabelWidget(labelWidget IWidget)

SetLabelWidget is a wrapper around gtk_tool_button_set_label_widget().

type ToolItem Uses

type ToolItem struct {
    Bin
}

ToolItem is a representation of GTK's GtkToolItem.

func ToolItemNew Uses

func ToolItemNew() (*ToolItem, error)

ToolItemNew is a wrapper around gtk_tool_item_new().

func (*ToolItem) GetExpand Uses

func (v *ToolItem) GetExpand() bool

GetExpand is a wrapper around gtk_tool_item_get_expand().

func (*ToolItem) GetHomogeneous Uses

func (v *ToolItem) GetHomogeneous() bool

GetHomogeneous is a wrapper around gtk_tool_item_get_homogeneous().

func (*ToolItem) GetIconSize Uses

func (v *ToolItem) GetIconSize() IconSize

GetIconSize is a wrapper around gtk_tool_item_get_icon_size().

func (*ToolItem) GetIsImportant Uses

func (v *ToolItem) GetIsImportant() bool

GetIsImportant is a wrapper around gtk_tool_item_get_is_important().

func (*ToolItem) GetOrientation Uses

func (v *ToolItem) GetOrientation() Orientation

GetOrientation is a wrapper around gtk_tool_item_get_orientation().

func (*ToolItem) GetReliefStyle Uses

func (v *ToolItem) GetReliefStyle() ReliefStyle

GetReliefStyle is a wrapper around gtk_tool_item_get_relief_style().

func (*ToolItem) GetTextAlignment Uses

func (v *ToolItem) GetTextAlignment() float32

GetTextAlignment is a wrapper around gtk_tool_item_get_text_alignment().

func (*ToolItem) GetTextOrientation Uses

func (v *ToolItem) GetTextOrientation() Orientation

GetTextOrientation is a wrapper around gtk_tool_item_get_text_orientation().

func (*ToolItem) GetUseDragWindow Uses

func (v *ToolItem) GetUseDragWindow() bool

GetUseDragWindow is a wrapper around gtk_tool_item_get_use_drag_window().

func (*ToolItem) GetVisibleHorizontal Uses

func (v *ToolItem) GetVisibleHorizontal() bool

GetVisibleHorizontal is a wrapper around gtk_tool_item_get_visible_horizontal().

func (*ToolItem) GetVisibleVertical Uses

func (v *ToolItem) GetVisibleVertical() bool

GetVisibleVertical is a wrapper around gtk_tool_item_get_visible_vertical().

func (*ToolItem) RebuildMenu Uses

func (v *ToolItem) RebuildMenu()

RebuildMenu is a wrapper around gtk_tool_item_rebuild_menu().

func (*ToolItem) RetrieveProxyMenuItem Uses

func (v *ToolItem) RetrieveProxyMenuItem() *MenuItem

RetrieveProxyMenuItem is a wrapper around gtk_tool_item_retrieve_proxy_menu_item()

func (*ToolItem) SetExpand Uses

func (v *ToolItem) SetExpand(expand bool)

SetExpand is a wrapper around gtk_tool_item_set_expand().

func (*ToolItem) SetHomogeneous Uses

func (v *ToolItem) SetHomogeneous(homogeneous bool)

SetHomogeneous is a wrapper around gtk_tool_item_set_homogeneous().

func (*ToolItem) SetIsImportant Uses

func (v *ToolItem) SetIsImportant(isImportant bool)

SetIsImportant is a wrapper around gtk_tool_item_set_is_important().

func (*ToolItem) SetProxyMenuItem Uses

func (v *ToolItem) SetProxyMenuItem(menuItemId string, menuItem IMenuItem)

SetProxyMenuItem is a wrapper around gtk_tool_item_set_proxy_menu_item().

func (*ToolItem) SetTooltipMarkup Uses

func (v *ToolItem) SetTooltipMarkup(text string)

SetTooltipMarkup is a wrapper around gtk_tool_item_set_tooltip_markup().

func (*ToolItem) SetTooltipText Uses

func (v *ToolItem) SetTooltipText(text string)

SetTooltipText is a wrapper around gtk_tool_item_set_tooltip_text().

func (*ToolItem) SetUseDragWindow Uses

func (v *ToolItem) SetUseDragWindow(useDragWindow bool)

SetUseDragWindow is a wrapper around gtk_tool_item_set_use_drag_window().

func (*ToolItem) SetVisibleHorizontal Uses

func (v *ToolItem) SetVisibleHorizontal(visibleHorizontal bool)

SetVisibleHorizontal is a wrapper around gtk_tool_item_set_visible_horizontal().

func (*ToolItem) SetVisibleVertical Uses

func (v *ToolItem) SetVisibleVertical(visibleVertical bool)

SetVisibleVertical is a wrapper around gtk_tool_item_set_visible_vertical().

func (*ToolItem) ToolbarReconfigured Uses

func (v *ToolItem) ToolbarReconfigured()

ToolbarReconfigured is a wrapper around gtk_tool_item_toolbar_reconfigured().

type Toolbar Uses

type Toolbar struct {
    Container
}

Toolbar is a representation of GTK's GtkToolbar.

func ToolbarNew Uses

func ToolbarNew() (*Toolbar, error)

ToolbarNew is a wrapper around gtk_toolbar_new().

func (*Toolbar) GetDropIndex Uses

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

GetDropIndex is a wrapper around gtk_toolbar_get_drop_index().

func (*Toolbar) GetIconSize Uses

func (v *Toolbar) GetIconSize() IconSize

GetIconSize is a wrapper around gtk_toolbar_get_icon_size().

func (*Toolbar) GetItemIndex Uses

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

GetItemIndex is a wrapper around gtk_toolbar_get_item_index().

func (*Toolbar) GetNItems Uses

func (v *Toolbar) GetNItems() int

GetNItems is a wrapper around gtk_toolbar_get_n_items().

func (*Toolbar) GetNthItem Uses

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

GetNthItem is a wrapper around gtk_toolbar_get_nth_item().

func (*Toolbar) GetReliefStyle Uses

func (v *Toolbar) GetReliefStyle() ReliefStyle

GetReliefStyle is a wrapper around gtk_toolbar_get_relief_style().

func (*Toolbar) GetShowArrow Uses

func (v *Toolbar) GetShowArrow() bool

GetShowArrow is a wrapper around gtk_toolbar_get_show_arrow().

func (*Toolbar) GetStyle Uses

func (v *Toolbar) GetStyle() ToolbarStyle

GetStyle is a wrapper around gtk_toolbar_get_style().

func (*Toolbar) Insert Uses

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

Insert is a wrapper around gtk_toolbar_insert().

func (*Toolbar) SetDropHighlightItem Uses

func (v *Toolbar) SetDropHighlightItem(toolItem IToolItem, index int)

SetDropHighlightItem is a wrapper around gtk_toolbar_set_drop_highlight_item().

func (*Toolbar) SetIconSize Uses

func (v *Toolbar) SetIconSize(iconSize IconSize)

SetIconSize is a wrapper around gtk_toolbar_set_icon_size().

func (*Toolbar) SetShowArrow Uses

func (v *Toolbar) SetShowArrow(showArrow bool)

SetShowArrow is a wrapper around gtk_toolbar_set_show_arrow().

func (*Toolbar) SetStyle Uses

func (v *Toolbar) SetStyle(style ToolbarStyle)

SetStyle is a wrapper around gtk_toolbar_set_style().

func (*Toolbar) UnsetIconSize Uses

func (v *Toolbar) UnsetIconSize()

UnsetIconSize is a wrapper around gtk_toolbar_unset_icon_size().

func (*Toolbar) UnsetStyle Uses

func (v *Toolbar) UnsetStyle()

UnsetStyle is a wrapper around gtk_toolbar_unset_style().

type ToolbarStyle Uses

type ToolbarStyle int

ToolbarStyle is a representation of GTK's GtkToolbarStyle.

const (
    TOOLBAR_ICONS      ToolbarStyle = C.GTK_TOOLBAR_ICONS
    TOOLBAR_TEXT       ToolbarStyle = C.GTK_TOOLBAR_TEXT
    TOOLBAR_BOTH       ToolbarStyle = C.GTK_TOOLBAR_BOTH
    TOOLBAR_BOTH_HORIZ ToolbarStyle = C.GTK_TOOLBAR_BOTH_HORIZ
)

type Tooltip Uses

type Tooltip struct {
    Widget
}

func (*Tooltip) SetCustom Uses

func (t *Tooltip) SetCustom(w *Widget)

SetCustom is a wrapper around gtk_tooltip_set_custom().

func (*Tooltip) SetIcon Uses

func (t *Tooltip) SetIcon(pixbuf *gdk.Pixbuf)

SetIcon is a wrapper around gtk_tooltip_set_icon().

func (*Tooltip) SetIconFromIconName Uses

func (t *Tooltip) SetIconFromIconName(iconName string, size IconSize)

SetIconFromIconName is a wrapper around gtk_tooltip_set_icon_from_icon_name().

func (*Tooltip) SetMarkup Uses

func (t *Tooltip) SetMarkup(str string)

SetMarkup is a wrapper around gtk_tooltip_set_markup().

func (*Tooltip) SetText Uses

func (t *Tooltip) SetText(str string)

SetText is a wrapper around gtk_tooltip_set_text().

func (*Tooltip) SetTipArea Uses

func (t *Tooltip) SetTipArea(rect gdk.Rectangle)

SetTipArea is a wrapper around gtk_tooltip_set_tip_area().

type TreeIter Uses

type TreeIter struct {
    GtkTreeIter C.GtkTreeIter
}

TreeIter is a representation of GTK's GtkTreeIter.

func (*TreeIter) Copy Uses

func (v *TreeIter) Copy() (*TreeIter, error)

Copy() is a wrapper around gtk_tree_iter_copy().

type TreeModel Uses

type TreeModel struct {
    *glib.Object
}

TreeModel is a representation of GTK's GtkTreeModel GInterface.

func (*TreeModel) FilterNew Uses

func (v *TreeModel) FilterNew(root *TreePath) (*TreeModelFilter, error)

FilterNew is a wrapper around gtk_tree_model_filter_new().

func (*TreeModel) GetColumnType Uses

func (v *TreeModel) GetColumnType(index int) glib.Type

GetColumnType() is a wrapper around gtk_tree_model_get_column_type().

func (*TreeModel) GetFlags Uses

func (v *TreeModel) GetFlags() TreeModelFlags

GetFlags() is a wrapper around gtk_tree_model_get_flags().

func (*TreeModel) GetIter Uses

func (v *TreeModel) GetIter(path *TreePath) (*TreeIter, error)

GetIter() is a wrapper around gtk_tree_model_get_iter().

func (*TreeModel) GetIterFirst Uses

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

GetIterFirst() is a wrapper around gtk_tree_model_get_iter_first().

func (*TreeModel) GetIterFromString Uses

func (v *TreeModel) GetIterFromString(path string) (*TreeIter, error)

GetIterFromString() is a wrapper around gtk_tree_model_get_iter_from_string().

func (*TreeModel) GetNColumns Uses

func (v *TreeModel) GetNColumns() int

GetNColumns() is a wrapper around gtk_tree_model_get_n_columns().

func (*TreeModel) GetPath Uses

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

GetPath() is a wrapper around gtk_tree_model_get_path().

func (*TreeModel) GetValue Uses

func (v *TreeModel) GetValue(iter *TreeIter, column int) (*glib.Value, error)

GetValue() is a wrapper around gtk_tree_model_get_value().

func (*TreeModel) IterChildren Uses

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

IterChildren is a wrapper around gtk_tree_model_iter_children().

func (*TreeModel) IterHasChild Uses

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

IterHasChild() is a wrapper around gtk_tree_model_iter_has_child().

func (*TreeModel) IterNChildren Uses

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

IterNChildren is a wrapper around gtk_tree_model_iter_n_children().

func (*TreeModel) IterNext Uses

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

IterNext() is a wrapper around gtk_tree_model_iter_next().

func (*TreeModel) IterNthChild Uses

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

IterNthChild is a wrapper around gtk_tree_model_iter_nth_child().

func (*TreeModel) IterParent Uses

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

IterParent is a wrapper around gtk_tree_model_iter_parent().

func (*TreeModel) IterPrevious Uses

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

IterPrevious is a wrapper around gtk_tree_model_iter_previous().

type TreeModelFilter Uses

type TreeModelFilter struct {
    *glib.Object

    // Interfaces
    TreeModel
}

TreeModelFilter is a representation of GTK's GtkTreeModelFilter.

func (*TreeModelFilter) SetVisibleColumn Uses

func (v *TreeModelFilter) SetVisibleColumn(column int)

SetVisibleColumn is a wrapper around gtk_tree_model_filter_set_visible_column().

type TreeModelFlags Uses

type TreeModelFlags int

TreeModelFlags is a representation of GTK's GtkTreeModelFlags.

const (
    TREE_MODEL_ITERS_PERSIST TreeModelFlags = C.GTK_TREE_MODEL_ITERS_PERSIST
    TREE_MODEL_LIST_ONLY     TreeModelFlags = C.GTK_TREE_MODEL_LIST_ONLY
)

type TreePath Uses

type TreePath struct {
    GtkTreePath *C.GtkTreePath
}

TreePath is a representation of GTK's GtkTreePath.

func TreePathFromList Uses

func TreePathFromList(list *glib.List) *TreePath

Return a TreePath from the GList

func TreePathNewFromString Uses

func TreePathNewFromString(path string) (*TreePath, error)

TreePathNewFromString is a wrapper around gtk_tree_path_new_from_string().

func (*TreePath) GetIndices Uses

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

GetIndices is a wrapper around gtk_tree_path_get_indices_with_depth

func (*TreePath) String Uses

func (v *TreePath) String() string

String is a wrapper around gtk_tree_path_to_string().

type TreeSelection Uses

type TreeSelection struct {
    *glib.Object
}

TreeSelection is a representation of GTK's GtkTreeSelection.

func (*TreeSelection) CountSelectedRows Uses

func (v *TreeSelection) CountSelectedRows() int

CountSelectedRows() is a wrapper around gtk_tree_selection_count_selected_rows().

func (*TreeSelection) GetMode Uses

func (v *TreeSelection) GetMode() SelectionMode

GetMode() is a wrapper around gtk_tree_selection_get_mode().

func (*TreeSelection) GetSelected Uses

func (v *TreeSelection) GetSelected() (model ITreeModel, iter *TreeIter, ok bool)

GetSelected() is a wrapper around gtk_tree_selection_get_selected().

func (*TreeSelection) GetSelectedRows Uses

func (v *TreeSelection) GetSelectedRows(model ITreeModel) *glib.List

GetSelectedRows is a wrapper around gtk_tree_selection_get_selected_rows(). All the elements of returned list are wrapped into (*gtk.TreePath) values.

Please note that a runtime finalizer is only set on the head of the linked list, and must be kept live while accessing any item in the list, or the Go garbage collector will free the whole list.

func (*TreeSelection) SelectIter Uses

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

SelectIter is a wrapper around gtk_tree_selection_select_iter().

func (*TreeSelection) SelectPath Uses

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

SelectPath is a wrapper around gtk_tree_selection_select_path().

func (*TreeSelection) SetMode Uses

func (v *TreeSelection) SetMode(m SelectionMode)

SetMode() is a wrapper around gtk_tree_selection_set_mode().

func (*TreeSelection) UnselectPath Uses

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

UnselectPath is a wrapper around gtk_tree_selection_unselect_path().

type TreeStore Uses

type TreeStore struct {
    *glib.Object

    // Interfaces
    TreeModel
}

TreeStore is a representation of GTK's GtkTreeStore.

func TreeStoreNew Uses

func TreeStoreNew(types ...glib.Type) (*TreeStore, error)

TreeStoreNew is a wrapper around gtk_tree_store_newv().

func (*TreeStore) Append Uses

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

Append is a wrapper around gtk_tree_store_append().

func (*TreeStore) Clear Uses

func (v *TreeStore) Clear()

Clear is a wrapper around gtk_tree_store_clear().

func (*TreeStore) Insert Uses

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

Insert is a wrapper around gtk_tree_store_insert

func (*TreeStore) Remove Uses

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

Remove is a wrapper around gtk_tree_store_remove().

func (*TreeStore) SetValue Uses

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

SetValue is a wrapper around gtk_tree_store_set_value()

type TreeView Uses

type TreeView struct {
    Container
}

TreeView is a representation of GTK's GtkTreeView.

func TreeViewNew Uses

func TreeViewNew() (*TreeView, error)

TreeViewNew is a wrapper around gtk_tree_view_new().

func TreeViewNewWithModel Uses

func TreeViewNewWithModel(model ITreeModel) (*TreeView, error)

TreeViewNewWithModel is a wrapper around gtk_tree_view_new_with_model().

func (*TreeView) AppendColumn Uses

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

AppendColumn is a wrapper around gtk_tree_view_append_column().

func (*TreeView) CollapseAll Uses

func (v *TreeView) CollapseAll()

CollapseAll is a wrapper around gtk_tree_view_collapse_all().

func (*TreeView) CollapseRow Uses

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

CollapseRow is a wrapper around gtk_tree_view_collapse_row().

func (*TreeView) ColumnsAutosize Uses

func (v *TreeView) ColumnsAutosize()

ColumnsAutosize is a wrapper around gtk_tree_view_columns_autosize().

func (*TreeView) ExpandAll Uses

func (v *TreeView) ExpandAll()

ExpandAll is a wrapper around gtk_tree_view_expand_all().

func (*TreeView) ExpandRow Uses

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

ExpandRow is a wrapper around gtk_tree_view_expand_row().

func (*TreeView) ExpandToPath Uses

func (v *TreeView) ExpandToPath(path *TreePath)

ExpandToPath is a wrapper around gtk_tree_view_expand_to_path().

func (*TreeView) GetActivateOnSingleClick Uses

func (v *TreeView) GetActivateOnSingleClick() bool

GetActivateOnSingleClick is a wrapper around gtk_tree_view_get_activate_on_single_click().

func (*TreeView) GetBinWindow Uses

func (v *TreeView) GetBinWindow() *gdk.Window

GetBinWindow is a wrapper around gtk_tree_view_get_bin_window().

func (*TreeView) GetColumn Uses

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

GetColumn is a wrapper around gtk_tree_view_get_column().

func (*TreeView) GetCursor Uses

func (v *TreeView) GetCursor() (p *TreePath, c *TreeViewColumn)

GetCursor is a wrapper around gtk_tree_view_get_cursor().

func (*TreeView) GetEnableSearch Uses

func (v *TreeView) GetEnableSearch() bool

GetEnableSearch is a wrapper around gtk_tree_view_get_enable_search().

func (*TreeView) GetEnableTreeLines Uses

func (v *TreeView) GetEnableTreeLines() bool

GetEnableTreeLines is a wrapper around gtk_tree_view_get_enable_tree_lines().

func (*TreeView) GetExpanderColumn Uses

func (v *TreeView) GetExpanderColumn() *TreeViewColumn

GetExpanderColumn is a wrapper around gtk_tree_view_get_expander_column().

func (*TreeView) GetFixedHeightMode Uses

func (v *TreeView) GetFixedHeightMode() bool

GetFixedHeightMode is a wrapper around gtk_tree_view_get_fixed_height_mode().

func (*TreeView) GetHeadersClickable Uses

func (v *TreeView) GetHeadersClickable() bool

GetHeadersClickable is a wrapper around gtk_tree_view_get_headers_clickable().

func (*TreeView) GetHeadersVisible Uses

func (v *TreeView) GetHeadersVisible() bool

GetHeadersVisible is a wrapper around gtk_tree_view_get_headers_visible().

func (*TreeView) GetHoverExpand Uses

func (v *TreeView) GetHoverExpand() bool

GetHoverExpand is a wrapper around gtk_tree_view_get_hover_expand().

func (*TreeView) GetHoverSelection Uses

func (v *TreeView) GetHoverSelection() bool

GetHoverSelection is a wrapper around gtk_tree_view_get_hover_selection().

func (*TreeView) GetLevelIndentation Uses

func (v *TreeView) GetLevelIndentation() int

GetLevelIndentation is a wrapper around gtk_tree_view_get_level_indentation().

func (*TreeView) GetModel Uses

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

GetModel is a wrapper around gtk_tree_view_get_model().

func (*TreeView) GetNColumns Uses

func (v *TreeView) GetNColumns() uint

GetNColumns is a wrapper around gtk_tree_view_get_n_columns().

func (*TreeView) GetPathAtPos Uses

func (v *TreeView) GetPathAtPos(x, y int, path *TreePath, column *TreeViewColumn, cellX, cellY *int) bool

GetPathAtPos is a wrapper around gtk_tree_view_get_path_at_pos().

func (*TreeView) GetReorderable Uses

func (v *TreeView) GetReorderable() bool

GetReorderable is a wrapper around gtk_tree_view_get_reorderable().

func (*TreeView) GetRubberBanding Uses

func (v *TreeView) GetRubberBanding() bool

GetRubberBanding is a wrapper around gtk_tree_view_get_rubber_banding().

func (*TreeView) GetSearchColumn Uses

func (v *TreeView) GetSearchColumn() int

GetSearchColumn is a wrapper around gtk_tree_view_get_search_column().

func (*TreeView) GetSearchEntry Uses

func (v *TreeView) GetSearchEntry() *Entry

GetSearchEntry is a wrapper around gtk_tree_view_get_search_entry().

func (*TreeView) GetSelection Uses

func (v *TreeView) GetSelection() (*TreeSelection, error)

GetSelection is a wrapper around gtk_tree_view_get_selection().

func (*TreeView) GetShowExpanders Uses

func (v *TreeView) GetShowExpanders() bool

GetShowExpanders is a wrapper around gtk_tree_view_get_show_expanders().

func (*TreeView) GetTooltipColumn Uses

func (v *TreeView) GetTooltipColumn() int

GetTooltipColumn is a wrapper around gtk_tree_view_get_tooltip_column().

func (*TreeView) InsertColumn Uses

func (v *TreeView) InsertColumn(column *TreeViewColumn, pos int) int

InsertColumn is a wrapper around gtk_tree_view_insert_column().

func (*TreeView) IsRubberBandingActive Uses

func (v *TreeView) IsRubberBandingActive() bool

IsRubberBandingActive is a wrapper around gtk_tree_view_is_rubber_banding_active().

func (*TreeView) MoveColumnAfter Uses

func (v *TreeView) MoveColumnAfter(column *TreeViewColumn, baseColumn *TreeViewColumn)

MoveColumnAfter is a wrapper around gtk_tree_view_move_column_after().

func (*TreeView) RemoveColumn Uses

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

RemoveColumn is a wrapper around gtk_tree_view_remove_column().

func (*TreeView) RowActivated Uses

func (v *TreeView) RowActivated(path *TreePath, column *TreeViewColumn)

RowActivated is a wrapper around gtk_tree_view_row_activated().

func (*TreeView) RowExpanded Uses

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

RowExpanded is a wrapper around gtk_tree_view_row_expanded().

func (*TreeView) ScrollToPoint Uses

func (v *TreeView) ScrollToPoint(treeX, treeY int)

ScrollToPoint is a wrapper around gtk_tree_view_scroll_to_point().

func (*TreeView) SetActivateOnSingleClick Uses

func (v *TreeView) SetActivateOnSingleClick(show bool)

SetActivateOnSingleClick is a wrapper around gtk_tree_view_set_activate_on_single_click().

func (*TreeView) SetCursor Uses

func (v *TreeView) SetCursor(path *TreePath, focusColumn *TreeViewColumn, startEditing bool)

SetCursor is a wrapper around gtk_tree_view_set_cursor().

func (*TreeView) SetCursorOnCell Uses

func (v *TreeView) SetCursorOnCell(path *TreePath, focusColumn *TreeViewColumn, focusCell *CellRenderer, startEditing bool)

SetCursorOnCell is a wrapper around gtk_tree_view_set_cursor_on_cell().

func (*TreeView) SetEnableSearch Uses

func (v *TreeView) SetEnableSearch(b bool)

SetEnableSearch is a wrapper around gtk_tree_view_set_enable_search().

func (*TreeView) SetEnableTreeLines Uses

func (v *TreeView) SetEnableTreeLines(b bool)

SetEnableTreeLines is a wrapper around gtk_tree_view_set_enable_tree_lines().

func (*TreeView) SetExpanderColumn Uses

func (v *TreeView) SetExpanderColumn(column *TreeViewColumn)

SetExpanderColumn is a wrapper around gtk_tree_view_set_expander_column().

func (*TreeView) SetFixedHeightMode Uses

func (v *TreeView) SetFixedHeightMode(b bool)

SetFixedHeightMode is a wrapper around gtk_tree_view_set_fixed_height_mode().

func (*TreeView) SetHeadersClickable Uses

func (v *TreeView) SetHeadersClickable(show bool)

SetHeadersClickable is a wrapper around gtk_tree_view_set_headers_clickable().

func (*TreeView) SetHeadersVisible Uses

func (v *TreeView) SetHeadersVisible(show bool)

SetHeadersVisible is a wrapper around gtk_tree_view_set_headers_visible().

func (*TreeView) SetHoverExpand Uses

func (v *TreeView) SetHoverExpand(b bool)

SetHoverExpand is a wrapper around gtk_tree_view_set_hover_expand().

func (*TreeView) SetHoverSelection Uses

func (v *TreeView) SetHoverSelection(b bool)

SetHoverSelection is a wrapper around gtk_tree_view_set_hover_selection().

func (*TreeView) SetLevelIndentation Uses

func (v *TreeView) SetLevelIndentation(indent int)

SetLevelIndentation is a wrapper around gtk_tree_view_set_level_indentation().

func (*TreeView) SetModel Uses

func (v *TreeView) SetModel(model ITreeModel)

SetModel is a wrapper around gtk_tree_view_set_model().

func (*TreeView) SetReorderable Uses

func (v *TreeView) SetReorderable(b bool)

SetReorderable is a wrapper around gtk_tree_view_set_reorderable().

func (*TreeView) SetRubberBanding Uses

func (v *TreeView) SetRubberBanding(b bool)

SetRubberBanding is a wrapper around gtk_tree_view_set_rubber_banding().

func (*TreeView) SetSearchColumn Uses

func (v *TreeView) SetSearchColumn(c int)

SetSearchColumn is a wrapper around gtk_tree_view_set_search_column().

func (*TreeView) SetSearchEntry Uses

func (v *TreeView) SetSearchEntry(e *Entry)

SetSearchEntry is a wrapper around gtk_tree_view_set_search_entry().

func (*TreeView) SetSearchEqualSubstringMatch Uses

func (v *TreeView) SetSearchEqualSubstringMatch()

SetSearchEqualSubstringMatch sets TreeView to search by substring match.

func (*TreeView) SetShowExpanders Uses

func (v *TreeView) SetShowExpanders(show bool)

SetShowExpanders is a wrapper around gtk_tree_view_set_show_expanders().

func (*TreeView) SetTooltipColumn Uses

func (v *TreeView) SetTooltipColumn(c int)

SetTooltipColumn is a wrapper around gtk_tree_view_set_tooltip_column().

type TreeViewColumn Uses

type TreeViewColumn struct {
    glib.InitiallyUnowned
}

TreeViewColumns is a representation of GTK's GtkTreeViewColumn.

func TreeViewColumnNew Uses

func TreeViewColumnNew() (*TreeViewColumn, error)

TreeViewColumnNew() is a wrapper around gtk_tree_view_column_new().

func TreeViewColumnNewWithAttribute Uses

func TreeViewColumnNewWithAttribute(title string, renderer ICellRenderer, attribute string, column int) (*TreeViewColumn, error)

TreeViewColumnNewWithAttribute() is a wrapper around gtk_tree_view_column_new_with_attributes() that only sets one attribute for one column.

func (*TreeViewColumn) AddAttribute Uses

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

AddAttribute() is a wrapper around gtk_tree_view_column_add_attribute().

func (*TreeViewColumn) CellIsVisible Uses

func (v *TreeViewColumn) CellIsVisible() bool

CellIsVisible() is a wrapper around gtk_tree_view_column_cell_is_visible().

func (*TreeViewColumn) Clear Uses

func (v *TreeViewColumn) Clear()

Clear() is a wrapper around gtk_tree_view_column_clear().

func (*TreeViewColumn) ClearAttributes Uses

func (v *TreeViewColumn) ClearAttributes(cell *CellRenderer)

ClearAttributes() is a wrapper around gtk_tree_view_column_clear_attributes().

func (*TreeViewColumn) Clicked Uses

func (v *TreeViewColumn) Clicked()

Clicked() is a wrapper around gtk_tree_view_column_clicked().

func (*TreeViewColumn) FocusCell Uses

func (v *TreeViewColumn) FocusCell(cell *CellRenderer)

FocusCell() is a wrapper around gtk_tree_view_column_focus_cell().

func (*TreeViewColumn) GetClickable Uses

func (v *TreeViewColumn) GetClickable() bool

GetClickable() is a wrapper around gtk_tree_view_column_get_clickable().

func (*TreeViewColumn) GetExpand Uses

func (v *TreeViewColumn) GetExpand() bool

GetExpand() is a wrapper around gtk_tree_view_column_get_expand().

func (*TreeViewColumn) GetFixedWidth Uses

func (v *TreeViewColumn) GetFixedWidth() int

GetFixedWidth() is a wrapper around gtk_tree_view_column_get_fixed_width().

func (*TreeViewColumn) GetMaxWidth Uses

func (v *TreeViewColumn) GetMaxWidth() int

GetMaxWidth() is a wrapper around gtk_tree_view_column_get_max_width().

func (*TreeViewColumn) GetMinWidth Uses

func (v *TreeViewColumn) GetMinWidth() int

GetMinWidth() is a wrapper around gtk_tree_view_column_get_min_width().

func (*TreeViewColumn) GetReorderable Uses

func (v *TreeViewColumn) GetReorderable() bool

GetReorderable() is a wrapper around gtk_tree_view_column_get_reorderable().

func (*TreeViewColumn) GetResizable Uses

func (v *TreeViewColumn) GetResizable() bool

GetResizable() is a wrapper around gtk_tree_view_column_get_resizable().

func (*TreeViewColumn) GetSizing Uses

func (v *TreeViewColumn) GetSizing() TreeViewColumnSizing

GtkTreeViewColumnSizing gtk_tree_view_column_get_sizing ()

func (*TreeViewColumn) GetSortColumnID Uses

func (v *TreeViewColumn) GetSortColumnID() int

GetSortColumnID() is a wrapper around gtk_tree_view_column_get_sort_column_id().

func (*TreeViewColumn) GetSortIndicator Uses

func (v *TreeViewColumn) GetSortIndicator() bool

GetSortIndicator() is a wrapper around gtk_tree_view_column_get_sort_indicator().

func (*TreeViewColumn) GetSortOrder Uses

func (v *TreeViewColumn) GetSortOrder() SortType

GtkSortType gtk_tree_view_column_get_sort_order ()

func (*TreeViewColumn) GetSpacing Uses

func (v *TreeViewColumn) GetSpacing() int

GetSpacing() is a wrapper around gtk_tree_view_column_get_spacing().

func (*TreeViewColumn) GetTitle Uses

func (v *TreeViewColumn) GetTitle() string

GetTitle() is a wrapper around gtk_tree_view_column_get_title().

func (*TreeViewColumn) GetVisible Uses

func (v *TreeViewColumn) GetVisible() bool

GetVisible() is a wrapper around gtk_tree_view_column_get_visible().

func (*TreeViewColumn) GetWidth Uses

func (v *TreeViewColumn) GetWidth() int

GetWidth() is a wrapper around gtk_tree_view_column_get_width().

func (*TreeViewColumn) GetXOffset Uses

func (v *TreeViewColumn) GetXOffset() int

GetXOffset() is a wrapper around gtk_tree_view_column_get_x_offset().

func (*TreeViewColumn) PackEnd Uses

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

PackEnd() is a wrapper around gtk_tree_view_column_pack_end().

func (*TreeViewColumn) PackStart Uses

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

PackStart() is a wrapper around gtk_tree_view_column_pack_start().

func (*TreeViewColumn) QueueResize Uses

func (v *TreeViewColumn) QueueResize()

QueueResize() is a wrapper around gtk_tree_view_column_queue_resize().

func (*TreeViewColumn) SetClickable Uses

func (v *TreeViewColumn) SetClickable(clickable bool)

SetClickable() is a wrapper around gtk_tree_view_column_set_clickable().

func (*TreeViewColumn) SetExpand Uses

func (v *TreeViewColumn) SetExpand(expand bool)

SetExpand() is a wrapper around gtk_tree_view_column_set_expand().

func (*TreeViewColumn) SetFixedWidth Uses

func (v *TreeViewColumn) SetFixedWidth(w int)

SetFixedWidth() is a wrapper around gtk_tree_view_column_set_fixed_width().

func (*TreeViewColumn) SetMaxWidth Uses

func (v *TreeViewColumn) SetMaxWidth(w int)

SetMaxWidth() is a wrapper around gtk_tree_view_column_set_max_width().

func (*TreeViewColumn) SetMinWidth Uses

func (v *TreeViewColumn) SetMinWidth(minWidth int)

SetMinWidth() is a wrapper around gtk_tree_view_column_set_min_width().

func (*TreeViewColumn) SetReorderable Uses

func (v *TreeViewColumn) SetReorderable(reorderable bool)

SetReorderable() is a wrapper around gtk_tree_view_column_set_reorderable().

func (*TreeViewColumn) SetResizable Uses

func (v *TreeViewColumn) SetResizable(resizable bool)

SetResizable() is a wrapper around gtk_tree_view_column_set_resizable().

func (*TreeViewColumn) SetSizing Uses

func (v *TreeViewColumn) SetSizing(sizing TreeViewColumnSizing)

void gtk_tree_view_column_set_sizing ()

func (*TreeViewColumn) SetSortColumnID Uses

func (v *TreeViewColumn) SetSortColumnID(w int)

SetSortColumnID() is a wrapper around gtk_tree_view_column_set_sort_column_id().

func (*TreeViewColumn) SetSortIndicator Uses

func (v *TreeViewColumn) SetSortIndicator(reorderable bool)

SetSortIndicator() is a wrapper around gtk_tree_view_column_set_sort_indicator().

func (*TreeViewColumn) SetSortOrder Uses

func (v *TreeViewColumn) SetSortOrder(order SortType)

void gtk_tree_view_column_set_sort_order ()

func (*TreeViewColumn) SetSpacing Uses

func (v *TreeViewColumn) SetSpacing(spacing int)

SetSpacing() is a wrapper around gtk_tree_view_column_set_spacing().

func (*TreeViewColumn) SetTitle Uses

func (v *TreeViewColumn) SetTitle(t string)

SetTitle() is a wrapper around gtk_tree_view_column_set_title().

func (*TreeViewColumn) SetVisible Uses

func (v *TreeViewColumn) SetVisible(visible bool)

SetVisible() is a wrapper around gtk_tree_view_column_set_visible().

type TreeViewColumnSizing Uses

type TreeViewColumnSizing int

type Unit Uses

type Unit int

Unit is a representation of GTK's GtkUnit.

const (
    GTK_UNIT_NONE   Unit = C.GTK_UNIT_NONE
    GTK_UNIT_POINTS Unit = C.GTK_UNIT_POINTS
    GTK_UNIT_INCH   Unit = C.GTK_UNIT_INCH
    GTK_UNIT_MM     Unit = C.GTK_UNIT_MM
)

type Viewport Uses

type Viewport struct {
    Bin

    // Interfaces
    Scrollable
}

Viewport is a representation of GTK's GtkViewport GInterface.

func ViewportNew Uses

func ViewportNew(hadjustment, vadjustment *Adjustment) (*Viewport, error)

ViewportNew() is a wrapper around gtk_viewport_new().

func (*Viewport) GetHAdjustment Uses

func (v *Viewport) GetHAdjustment() (*Adjustment, error)

func (*Viewport) GetVAdjustment Uses

func (v *Viewport) GetVAdjustment() (*Adjustment, error)

func (*Viewport) SetHAdjustment Uses

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

func (*Viewport) SetVAdjustment Uses

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

type VolumeButton Uses

type VolumeButton struct {
    ScaleButton
}

VolumeButton is a representation of GTK's GtkVolumeButton.

func VolumeButtonNew Uses

func VolumeButtonNew() (*VolumeButton, error)

VolumeButtonNew() is a wrapper around gtk_button_new().

type Widget Uses

type Widget struct {
    glib.InitiallyUnowned
}

Widget is a representation of GTK's GtkWidget.

func (*Widget) Activate Uses

func (v *Widget) Activate() bool

Activate() is a wrapper around gtk_widget_activate().

func (*Widget) AddAccelerator Uses

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

AddAccelerator is a wrapper around gtk_widget_add_accelerator().

func (*Widget) AddEvents Uses

func (v *Widget) AddEvents(events int)

AddEvents is a wrapper around gtk_widget_add_events().

func (*Widget) CanActivateAccel Uses

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

CanActivateAccel is a wrapper around gtk_widget_can_activate_accel().

func (*Widget) Destroy Uses

func (v *Widget) Destroy()

Destroy is a wrapper around gtk_widget_destroy().

func (*Widget) DragDestSet Uses

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

func (*Widget) Event Uses

func (v *Widget) Event(event *gdk.Event) bool

Event() is a wrapper around gtk_widget_event().

func (*Widget) GetAllocatedHeight Uses

func (v *Widget) GetAllocatedHeight() int

GetAllocatedHeight() is a wrapper around gtk_widget_get_allocated_height().

func (*Widget) GetAllocatedWidth Uses

func (v *Widget) GetAllocatedWidth() int

GetAllocatedWidth() is a wrapper around gtk_widget_get_allocated_width().

func (*Widget) GetAllocation Uses

func (v *Widget) GetAllocation() *Allocation

GetAllocation is a wrapper around gtk_widget_get_allocation().

func (*Widget) GetAppPaintable Uses

func (v *Widget) GetAppPaintable() bool

GetAppPaintable is a wrapper around gtk_widget_get_app_paintable().

func (*Widget) GetCanDefault Uses

func (v *Widget) GetCanDefault() bool

GetCanDefault is a wrapper around gtk_widget_get_can_default().

func (*Widget) GetCanFocus Uses

func (v *Widget) GetCanFocus() bool

GetCanFocus is a wrapper around gtk_widget_get_can_focus().

func (*Widget) GetClip Uses

func (v *Widget) GetClip() *Allocation

GetClip is a wrapper around gtk_widget_get_clip().

func (*Widget) GetDeviceEnabled Uses

func (v *Widget) GetDeviceEnabled(device *gdk.Device) bool

GetDeviceEnabled is a wrapper around gtk_widget_get_device_enabled().

func (*Widget) GetEvents Uses

func (v *Widget) GetEvents() int

GetEvents is a wrapper around gtk_widget_get_events().

func (*Widget) GetHAlign Uses

func (v *Widget) GetHAlign() Align

GetHAlign is a wrapper around gtk_widget_get_halign().

func (*Widget) GetHExpand Uses

func (v *Widget) GetHExpand() bool

GetHExpand is a wrapper around gtk_widget_get_hexpand().

func (*Widget) GetHasWindow Uses

func (v *Widget) GetHasWindow() bool

GetHasWindow is a wrapper around gtk_widget_get_has_window().

func (*Widget) GetMapped Uses

func (v *Widget) GetMapped() bool

GetMapped is a wrapper around gtk_widget_get_mapped().

func (*Widget) GetMarginBottom Uses

func (v *Widget) GetMarginBottom() int

GetMarginBottom is a wrapper around gtk_widget_get_margin_bottom().

func (*Widget) GetMarginEnd Uses

func (v *Widget) GetMarginEnd() int

func (*Widget) GetMarginStart Uses

func (v *Widget) GetMarginStart() int

func (*Widget) GetMarginTop Uses

func (v *Widget) GetMarginTop() int

GetMarginTop is a wrapper around gtk_widget_get_margin_top().

func (*Widget) GetName Uses

func (v *Widget) GetName() (string, error)

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

func (*Widget) GetNoShowAll Uses

func (v *Widget) GetNoShowAll() bool

GetNoShowAll is a wrapper around gtk_widget_get_no_show_all().

func (*Widget) GetOpacity Uses

func (v *Widget) GetOpacity() float64

GetOpacity is a wrapper around gtk_widget_get_opacity()

func (*Widget) GetParent Uses

func (v *Widget) GetParent() (*Widget, error)

GetParent is a wrapper around gtk_widget_get_parent().

func (*Widget) GetParentWindow Uses

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

GetParentWindow is a wrapper around gtk_widget_get_parent_window().

func (*Widget) GetPreferredHeight Uses

func (v *Widget) GetPreferredHeight() (int, int)

GetPreferredHeight is a wrapper around gtk_widget_get_preferred_height().

func (*Widget) GetPreferredWidth Uses

func (v *Widget) GetPreferredWidth() (int, int)

GetPreferredWidth is a wrapper around gtk_widget_get_preferred_width().

func (*Widget) GetRealized Uses

func (v *Widget) GetRealized() bool

GetRealized is a wrapper around gtk_widget_get_realized().

func (*Widget) GetSensitive Uses

func (v *Widget) GetSensitive() bool

GetSensitive is a wrapper around gtk_widget_get_sensitive().

func (*Widget) GetSizeRequest Uses

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

GetSizeRequest is a wrapper around gtk_widget_get_size_request().

func (*Widget) GetStyleContext Uses

func (v *Widget) GetStyleContext() (*StyleContext, error)

GetStyleContext is a wrapper around gtk_widget_get_style_context().

func (*Widget) GetTooltipText Uses

func (v *Widget) GetTooltipText() (string, error)

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

func (*Widget) GetToplevel Uses

func (v *Widget) GetToplevel() (*Widget, error)

GetToplevel is a wrapper around gtk_widget_get_toplevel().

func (*Widget) GetVAlign Uses

func (v *Widget) GetVAlign() Align

GetVAlign is a wrapper around gtk_widget_get_valign().

func (*Widget) GetVExpand Uses

func (v *Widget) GetVExpand() bool

GetVExpand is a wrapper around gtk_widget_get_vexpand().

func (*Widget) GetVisible Uses

func (v *Widget) GetVisible() bool

GetVisible is a wrapper around gtk_widget_get_visible().

func (*Widget) GetWindow Uses

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

GetWindow is a wrapper around gtk_widget_get_window().

func (*Widget) GrabDefault Uses

func (v *Widget) GrabDefault()

GrabDefault() is a wrapper around gtk_widget_grab_default().

func (*Widget) GrabFocus Uses

func (v *Widget) GrabFocus()

GrabFocus() is a wrapper around gtk_widget_grab_focus().

func (*Widget) HasDefault Uses

func (v *Widget) HasDefault() bool

HasDefault is a wrapper around gtk_widget_has_default().

func (*Widget) HasFocus Uses

func (v *Widget) HasFocus() bool

HasFocus is a wrapper around gtk_widget_has_focus().

func (*Widget) HasGrab Uses

func (v *Widget) HasGrab() bool

HasGrab is a wrapper around gtk_widget_has_grab().

func (*Widget) HasVisibleFocus Uses

func (v *Widget) HasVisibleFocus() bool

HasVisibleFocus is a wrapper around gtk_widget_has_visible_focus().

func (*Widget) Hide Uses

func (v *Widget) Hide()

Hide is a wrapper around gtk_widget_hide().

func (*Widget) HideOnDelete Uses

func (v *Widget) HideOnDelete()

func (*Widget) InDestruction Uses

func (v *Widget) InDestruction() bool

InDestruction is a wrapper around gtk_widget_in_destruction().

func (*Widget) InsertActionGroup Uses

func (v *Widget) InsertActionGroup(name string, group glib.IActionGroup)

func (*Widget) IsDrawable Uses

func (v *Widget) IsDrawable() bool

IsDrawable is a wrapper around gtk_widget_is_drawable().

func (*Widget) IsFocus Uses

func (v *Widget) IsFocus() bool

IsFocus() is a wrapper around gtk_widget_is_focus().

func (*Widget) IsSensitive Uses

func (v *Widget) IsSensitive() bool

IsSensitive is a wrapper around gtk_widget_is_sensitive().

func (*Widget) IsToplevel Uses

func (v *Widget) IsToplevel() bool

IsToplevel is a wrapper around gtk_widget_is_toplevel().

func (*Widget) IsVisible Uses

func (v *Widget) IsVisible() bool

IsVisible is a wrapper around gtk_widget_is_visible().

func (*Widget) Map Uses

func (v *Widget) Map()

Map is a wrapper around gtk_widget_map().

func (*Widget) QueueDraw Uses

func (v *Widget) QueueDraw()

QueueDraw is a wrapper around gtk_widget_queue_draw().

func (*Widget) QueueDrawArea Uses

func (v *Widget) QueueDrawArea(x, y, w, h int)

QueueDrawArea is a wrapper aroung gtk_widget_queue_draw_area().

func (*Widget) RemoveAccelerator Uses

func (v *Widget) RemoveAccelerator(group *AccelGroup, key uint, mods gdk.ModifierType) bool

RemoveAccelerator is a wrapper around gtk_widget_remove_accelerator().

func (*Widget) ResetStyle Uses

func (v *Widget) ResetStyle()

ResetStyle is a wrapper around gtk_widget_reset_style().

func (*Widget) SetAccelPath Uses

func (v *Widget) SetAccelPath(path string, group *AccelGroup)

SetAccelPath is a wrapper around gtk_widget_set_accel_path().

func (*Widget) SetAllocation Uses

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

SetAllocation is a wrapper around gtk_widget_set_allocation().

func (*Widget) SetAppPaintable Uses

func (v *Widget) SetAppPaintable(paintable bool)

SetAppPaintable is a wrapper around gtk_widget_set_app_paintable().

func (*Widget) SetCanDefault Uses

func (v *Widget) SetCanDefault(canDefault bool)

SetCanDefault is a wrapper around gtk_widget_set_can_default().

func (*Widget) SetCanFocus Uses

func (v *Widget) SetCanFocus(canFocus bool)

SetCanFocus is a wrapper around gtk_widget_set_can_focus().

func (*Widget) SetClip Uses

func (v *Widget) SetClip(clip *Allocation)

SetClip is a wrapper around gtk_widget_set_clip().

func (*Widget) SetDeviceEnabled Uses

func (v *Widget) SetDeviceEnabled(device *gdk.Device, enabled bool)

SetDeviceEnabled is a wrapper around gtk_widget_set_device_enabled().

func (*Widget) SetEvents Uses

func (v *Widget) SetEvents(events int)

SetEvents is a wrapper around gtk_widget_set_events().

func (*Widget) SetHAlign Uses

func (v *Widget) SetHAlign(align Align)

SetHAlign is a wrapper around gtk_widget_set_halign().

func (*Widget) SetHExpand Uses

func (v *Widget) SetHExpand(expand bool)

SetHExpand is a wrapper around gtk_widget_set_hexpand().

func (*Widget) SetHasWindow Uses

func (v *Widget) SetHasWindow(hasWindow bool)

SetHasWindow is a wrapper around gtk_widget_set_has_window().

func (*Widget) SetMapped Uses

func (v *Widget) SetMapped(mapped bool)

SetMapped is a wrapper around gtk_widget_set_mapped().

func (*Widget) SetMarginBottom Uses

func (v *Widget) SetMarginBottom(margin int)

SetMarginBottom is a wrapper around gtk_widget_set_margin_bottom().

func (*Widget) SetMarginEnd Uses

func (v *Widget) SetMarginEnd(margin int)

func (*Widget) SetMarginStart Uses

func (v *Widget) SetMarginStart(margin int)

func (*Widget) SetMarginTop Uses

func (v *Widget) SetMarginTop(margin int)

SetMarginTop is a wrapper around gtk_widget_set_margin_top().

func (*Widget) SetName Uses

func (v *Widget) SetName(name string)

SetName() is a wrapper around gtk_widget_set_name().

func (*Widget) SetNoShowAll Uses

func (v *Widget) SetNoShowAll(noShowAll bool)

SetNoShowAll is a wrapper around gtk_widget_set_no_show_all().

func (*Widget) SetOpacity Uses

func (v *Widget) SetOpacity(opacity float64)

SetOpacity is a wrapper around gtk_widget_set_opacity()

func (*Widget) SetParent Uses

func (v *Widget) SetParent(parent IWidget)

SetParent is a wrapper around gtk_widget_set_parent().

func (*Widget) SetParentWindow Uses

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

SetParentWindow is a wrapper around gtk_widget_set_parent_window().

func (*Widget) SetRealized Uses

func (v *Widget) SetRealized(realized bool)

SetRealized is a wrapper around gtk_widget_set_realized().

func (*Widget) SetSensitive Uses

func (v *Widget) SetSensitive(sensitive bool)

SetSensitive is a wrapper around gtk_widget_set_sensitive().

func (*Widget) SetSizeRequest Uses

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

SetSizeRequest is a wrapper around gtk_widget_set_size_request().

func (*Widget) SetStateFlags Uses

func (v *Widget) SetStateFlags(stateFlags StateFlags, clear bool)

SetStateFlags is a wrapper around gtk_widget_set_state_flags().

func (*Widget) SetTooltipText Uses

func (v *Widget) SetTooltipText(text string)

SetTooltipText is a wrapper around gtk_widget_set_tooltip_text().

func (*Widget) SetVAlign Uses

func (v *Widget) SetVAlign(align Align)

SetVAlign is a wrapper around gtk_widget_set_valign().

func (*Widget) SetVExpand Uses

func (v *Widget) SetVExpand(expand bool)

SetVExpand is a wrapper around gtk_widget_set_vexpand().

func (*Widget) SetVisible Uses

func (v *Widget) SetVisible(visible bool)

SetVisible is a wrapper around gtk_widget_set_visible().

func (*Widget) SetVisual Uses

func (v *Widget) SetVisual(visual *gdk.Visual)

SetVisual is a wrapper around gtk_widget_set_visual().

func (*Widget) Show Uses

func (v *Widget) Show()

Show is a wrapper around gtk_widget_show().

func (*Widget) ShowAll Uses

func (v *Widget) ShowAll()

ShowAll is a wrapper around gtk_widget_show_all().

func (*Widget) ShowNow Uses

func (v *Widget) ShowNow()

ShowNow is a wrapper around gtk_widget_show_now().

func (*Widget) SizeAllocate Uses

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

SizeAllocate is a wrapper around gtk_widget_size_allocate().

func (*Widget) TranslateCoordinates Uses

func (v *Widget) TranslateCoordinates(dest IWidget, srcX, srcY int) (destX, destY int, e error)

TranslateCoordinates is a wrapper around gtk_widget_translate_coordinates().

func (*Widget) Unmap Uses

func (v *Widget) Unmap()

Unmap is a wrapper around gtk_widget_unmap().

func (*Widget) Unparent Uses

func (v *Widget) Unparent()

Unparent is a wrapper around gtk_widget_unparent().

type Window Uses

type Window struct {
    Bin
}

Window is a representation of GTK's GtkWindow.

func WindowNew Uses

func WindowNew(t WindowType) (*Window, error)

WindowNew is a wrapper around gtk_window_new().

func (*Window) ActivateDefault Uses

func (v *Window) ActivateDefault() bool

ActivateDefault is a wrapper around gtk_window_activate_default().

func (*Window) ActivateFocus Uses

func (v *Window) ActivateFocus() bool

ActivateFocus is a wrapper around gtk_window_activate_focus().

func (*Window) ActivateKey Uses

func (v *Window) ActivateKey(event *gdk.EventKey) bool

ActivateKey is a wrapper around gtk_window_activate_key().

func (*Window) ActivateMnemonic Uses

func (v *Window) ActivateMnemonic(keyval uint, mods gdk.ModifierType) bool

ActivateMnemonic is a wrapper around gtk_window_mnemonic_activate().

func (*Window) AddAccelGroup Uses

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

AddAccelGroup() is a wrapper around gtk_window_add_accel_group().

func (*Window) AddMnemonic Uses

func (v *Window) AddMnemonic(keyval uint, target *Widget)

AddMnemonic is a wrapper around gtk_window_add_mnemonic().

func (*Window) Close Uses

func (v *Window) Close()

Close is a wrapper around gtk_window_close().

func (*Window) Deiconify Uses

func (v *Window) Deiconify()

Deiconify is a wrapper around gtk_window_deiconify().

func (*Window) Fullscreen Uses

func (v *Window) Fullscreen()

Fullscreen is a wrapper around gtk_window_fullscreen().

func (*Window) GetAcceptFocus Uses

func (v *Window) GetAcceptFocus() bool

GetAcceptFocus is a wrapper around gtk_window_get_accept_focus().

func (*Window) GetApplication Uses

func (v *Window) GetApplication() (*Application, error)

GetApplication is a wrapper around gtk_window_get_application().

func (*Window) GetAttachedTo Uses

func (v *Window) GetAttachedTo() (*Widget, error)

GetAttachedTo is a wrapper around gtk_window_get_attached_to().

func (*Window) GetDecorated Uses

func (v *Window) GetDecorated() bool

GetDecorated is a wrapper around gtk_window_get_decorated().

func (*Window) GetDefaultSize Uses

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

GetDefaultSize is a wrapper around gtk_window_get_default_size().

func (*Window) GetDefaultWidget Uses

func (v *Window) GetDefaultWidget() *Widget

GetDefaultWidget is a wrapper arround gtk_window_get_default_widget().

func (*Window) GetDeletable Uses

func (v *Window) GetDeletable() bool

GetDeletable is a wrapper around gtk_window_get_deletable().

func (*Window) GetDestroyWithParent Uses

func (v *Window) GetDestroyWithParent() bool

GetDestroyWithParent is a wrapper around gtk_window_get_destroy_with_parent().

func (*Window) GetFocus Uses

func (v *Window) GetFocus() (*Widget, error)

GetFocus is a wrapper around gtk_window_get_focus().

func (*Window) GetFocusOnMap Uses

func (v *Window) GetFocusOnMap() bool

GetFocusOnMap is a wrapper around gtk_window_get_focus_on_map().

func (*Window) GetFocusVisible Uses

func (v *Window) GetFocusVisible() bool

GetFocusVisible is a wrapper around gtk_window_get_focus_visible().

func (*Window) GetHideTitlebarWhenMaximized Uses

func (v *Window) GetHideTitlebarWhenMaximized() bool

GetHideTitlebarWhenMaximized is a wrapper around gtk_window_get_hide_titlebar_when_maximized().

func (*Window) GetIcon Uses

func (v *Window) GetIcon() (*gdk.Pixbuf, error)

GetIcon is a wrapper around gtk_window_get_icon().

func (*Window) GetIconName Uses

func (v *Window) GetIconName() (string, error)

GetIconName is a wrapper around gtk_window_get_icon_name().

func (*Window) GetMnemonicModifier Uses

func (v *Window) GetMnemonicModifier() gdk.ModifierType

GetMnemonicModifier is a wrapper around gtk_window_get_mnemonic_modifier().

func (*Window) GetMnemonicsVisible Uses

func (v *Window) GetMnemonicsVisible() bool

GetMnemonicsVisible is a wrapper around gtk_window_get_mnemonics_visible().

func (*Window) GetModal Uses

func (v *Window) GetModal() bool

GetModal is a wrapper around gtk_window_get_modal().

func (*Window) GetPosition Uses

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

GetPosition is a wrapper around gtk_window_get_position().

func (*Window) GetResizable Uses

func (v *Window) GetResizable() bool

GetResizable is a wrapper around gtk_window_get_resizable().

func (*Window) GetRole Uses

func (v *Window) GetRole() (string, error)

GetRole is a wrapper around gtk_window_get_role().

func (*Window) GetScreen Uses

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

GetScreen is a wrapper around gtk_window_get_screen().

func (*Window) GetSize Uses

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

GetSize is a wrapper around gtk_window_get_size().

func (*Window) GetSkipPagerHint Uses

func (v *Window) GetSkipPagerHint() bool

GetSkipPagerHint is a wrapper around gtk_window_get_skip_pager_hint().

func (*Window) GetSkipTaskbarHint Uses

func (v *Window) GetSkipTaskbarHint() bool

GetSkipTaskbarHint is a wrapper around gtk_window_get_skip_taskbar_hint().

func (*Window) GetTitle Uses

func (v *Window) GetTitle() (string, error)

GetTitle is a wrapper around gtk_window_get_title().

func (*Window) GetTransientFor Uses

func (v *Window) GetTransientFor() (*Window, error)

GetTransientFor is a wrapper around gtk_window_get_transient_for().

func (*Window) GetTypeHint Uses

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

GetTypeHint is a wrapper around gtk_window_get_type_hint().

func (*Window) GetUrgencyHint Uses

func (v *Window) GetUrgencyHint() bool

GetUrgencyHint is a wrapper around gtk_window_get_urgency_hint().

func (*Window) HasGroup Uses

func (v *Window) HasGroup() bool

HasGroup is a wrapper around gtk_window_has_group().

func (*Window) HasToplevelFocus Uses

func (v *Window) HasToplevelFocus() bool

HasToplevelFocus is a wrapper around gtk_window_has_toplevel_focus().

func (*Window) Iconify Uses

func (v *Window) Iconify()

Iconify is a wrapper around gtk_window_iconify().

func (*Window) IsActive Uses

func (v *Window) IsActive() bool

IsActive is a wrapper around gtk_window_is_active().

func (*Window) IsMaximized Uses

func (v *Window) IsMaximized() bool

IsMaximized is a wrapper around gtk_window_is_maximized().

func (*Window) Maximize Uses

func (v *Window) Maximize()

Maximize is a wrapper around gtk_window_maximize().

func (*Window) Move Uses

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

Move is a wrapper around gtk_window_move().

func (*Window) Present Uses

func (v *Window) Present()

Present is a wrapper around gtk_window_present().

func (*Window) PresentWithTime Uses

func (v *Window) PresentWithTime(ts uint32)

PresentWithTime is a wrapper around gtk_window_present_with_time().

func (*Window) RemoveAccelGroup Uses

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

RemoveAccelGroup() is a wrapper around gtk_window_add_accel_group().

func (*Window) RemoveMnemonic Uses

func (v *Window) RemoveMnemonic(keyval uint, target *Widget)

RemoveMnemonic is a wrapper around gtk_window_remove_mnemonic().

func (*Window) Resize Uses

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

Resize is a wrapper around gtk_window_resize().

func (*Window) SetAcceptFocus Uses

func (v *Window) SetAcceptFocus(setting bool)

SetAcceptFocus is a wrapper around gtk_window_set_accept_focus().

func (*Window) SetApplication Uses

func (v *Window) SetApplication(a *Application)

SetApplication is a wrapper around gtk_window_set_application().

func (*Window) SetDecorated Uses

func (v *Window) SetDecorated(setting bool)

SetDecorated is a wrapper around gtk_window_set_decorated().

func (*Window) SetDefault Uses

func (v *Window) SetDefault(widget IWidget)

SetDefault is a wrapper arround gtk_window_set_default().

func (*Window) SetDefaultSize Uses

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

SetDefaultSize is a wrapper around gtk_window_set_default_size().

func (*Window) SetDeletable Uses

func (v *Window) SetDeletable(setting bool)

SetDeletable is a wrapper around gtk_window_set_deletable().

func (*Window) SetDestroyWithParent Uses

func (v *Window) SetDestroyWithParent(setting bool)

SetDestroyWithParent is a wrapper around gtk_window_set_destroy_with_parent().

func (*Window) SetFocus Uses

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

SetFocus is a wrapper around gtk_window_set_focus().

func (*Window) SetFocusOnMap Uses

func (v *Window) SetFocusOnMap(setting bool)

SetFocusOnMap is a wrapper around gtk_window_set_focus_on_map().

func (*Window) SetFocusVisible Uses

func (v *Window) SetFocusVisible(setting bool)

SetFocusVisible is a wrapper around gtk_window_set_focus_visible().

func (*Window) SetGravity Uses

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

SetGravity is a wrapper around gtk_window_set_gravity().

func (*Window) SetHideTitlebarWhenMaximized Uses

func (v *Window) SetHideTitlebarWhenMaximized(setting bool)

SetHideTitlebarWhenMaximized is a wrapper around gtk_window_set_hide_titlebar_when_maximized().

func (*Window) SetIcon Uses

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

SetIcon is a wrapper around gtk_window_set_icon().

func (*Window) SetIconFromFile Uses

func (v *Window) SetIconFromFile(file string) error

SetIconFromFile is a wrapper around gtk_window_set_icon_from_file().

func (*Window) SetIconName Uses

func (v *Window) SetIconName(name string)

SetIconName is a wrapper around gtk_window_set_icon_name().

func (*Window) SetKeepAbove Uses

func (v *Window) SetKeepAbove(setting bool)

SetKeepAbove is a wrapper around gtk_window_set_keep_above().

func (*Window) SetKeepBelow Uses

func (v *Window) SetKeepBelow(setting bool)

SetKeepBelow is a wrapper around gtk_window_set_keep_below().

func (*Window) SetMnemonicModifier Uses

func (v *Window) SetMnemonicModifier(mods gdk.ModifierType)

SetMnemonicModifier is a wrapper around gtk_window_set_mnemonic_modifier().

func (*Window) SetMnemonicsVisible Uses

func (v *Window) SetMnemonicsVisible(setting bool)

SetMnemonicsVisible is a wrapper around gtk_window_get_mnemonics_visible().

func (*Window) SetModal Uses

func (v *Window) SetModal(modal bool)

SetModal is a wrapper around gtk_window_set_modal().

func (*Window) SetPosition Uses

func (v *Window) SetPosition(position WindowPosition)

SetPosition is a wrapper around gtk_window_set_position().

func (*Window) SetResizable Uses

func (v *Window) SetResizable(resizable bool)

SetResizable is a wrapper around gtk_window_set_resizable().

func (*Window) SetRole Uses

func (v *Window) SetRole(s string)

SetRole is a wrapper around gtk_window_set_role().

func (*Window) SetSkipPagerHint Uses

func (v *Window) SetSkipPagerHint(setting bool)

SetSkipPagerHint is a wrapper around gtk_window_set_skip_pager_hint().

func (*Window) SetSkipTaskbarHint Uses

func (v *Window) SetSkipTaskbarHint(setting bool)

SetSkipTaskbarHint is a wrapper around gtk_window_set_skip_taskbar_hint().

func (*Window) SetStartupID Uses

func (v *Window) SetStartupID(sid string)

SetStartupID is a wrapper around gtk_window_set_startup_id().

func (*Window) SetTitle Uses

func (v *Window) SetTitle(title string)

SetTitle is a wrapper around gtk_window_set_title().

func (*Window) SetTitlebar Uses

func (v *Window) SetTitlebar(titlebar IWidget)

SetTitlebar is a wrapper around gtk_window_set_titlebar().

func (*Window) SetTransientFor Uses

func (v *Window) SetTransientFor(parent IWindow)

SetTransientFor is a wrapper around gtk_window_set_transient_for().

func (*Window) SetTypeHint Uses

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

SetTypeHint is a wrapper around gtk_window_set_type_hint().

func (*Window) SetUrgencyHint Uses

func (v *Window) SetUrgencyHint(setting bool)

SetUrgencyHint is a wrapper around gtk_window_set_urgency_hint().

func (*Window) Stick Uses

func (v *Window) Stick()

Stick is a wrapper around gtk_window_stick().

func (*Window) Unfullscreen Uses

func (v *Window) Unfullscreen()

Unfullscreen is a wrapper around gtk_window_unfullscreen().

func (*Window) Unmaximize Uses

func (v *Window) Unmaximize()

Unmaximize is a wrapper around gtk_window_unmaximize().

func (*Window) Unstick Uses

func (v *Window) Unstick()

Unstick is a wrapper around gtk_window_unstick().

type WindowPosition Uses

type WindowPosition int

WindowPosition is a representation of GTK's GtkWindowPosition.

const (
    WIN_POS_NONE             WindowPosition = C.GTK_WIN_POS_NONE
    WIN_POS_CENTER           WindowPosition = C.GTK_WIN_POS_CENTER
    WIN_POS_MOUSE            WindowPosition = C.GTK_WIN_POS_MOUSE
    WIN_POS_CENTER_ALWAYS    WindowPosition = C.GTK_WIN_POS_CENTER_ALWAYS
    WIN_POS_CENTER_ON_PARENT WindowPosition = C.GTK_WIN_POS_CENTER_ON_PARENT
)

type WindowType Uses

type WindowType int

WindowType is a representation of GTK's GtkWindowType.

const (
    WINDOW_TOPLEVEL WindowType = C.GTK_WINDOW_TOPLEVEL
    WINDOW_POPUP    WindowType = C.GTK_WINDOW_POPUP
)

type WrapFn Uses

type WrapFn interface{}

type WrapMode Uses

type WrapMode int

WrapMode is a representation of GTK's GtkWrapMode.

const (
    WRAP_NONE      WrapMode = C.GTK_WRAP_NONE
    WRAP_CHAR      WrapMode = C.GTK_WRAP_CHAR
    WRAP_WORD      WrapMode = C.GTK_WRAP_WORD
    WRAP_WORD_CHAR WrapMode = C.GTK_WRAP_WORD_CHAR
)

Package gtk imports 12 packages (graph) and is imported by 122 packages. Updated 2018-09-14. Refresh now. Tools for package owners.