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.
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
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
)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
)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, }
AccelGroupsActivate is a wrapper around gtk_accel_groups_activate().
AccelGroupsFromObject is a wrapper around gtk_accel_groups_from_object().
func AccelMapAddEntry(path string, key uint, mods gdk.ModifierType)
AccelMapAddEntry is a wrapper around gtk_accel_map_add_entry().
AccelMapAddFilter is a wrapper around gtk_accel_map_add_filter().
AccelMapChangeEntry is a wrapper around gtk_accel_map_change_entry().
AccelMapLoad is a wrapper around gtk_accel_map_load().
AccelMapLoadFD is a wrapper around gtk_accel_map_load_fd().
AccelMapLockPath is a wrapper around gtk_accel_map_lock_path().
AccelMapSave is a wrapper around gtk_accel_map_save().
AccelMapSaveFD is a wrapper around gtk_accel_map_save_fd().
AccelMapUnlockPath is a wrapper around gtk_accel_map_unlock_path().
func AcceleratorGetDefaultModMask() gdk.ModifierType
AcceleratorGetDefaultModMask is a wrapper around gtk_accelerator_get_default_mod_mask().
func AcceleratorGetLabel(key uint, mods gdk.ModifierType) string
AcceleratorGetLabel is a wrapper around gtk_accelerator_get_label().
func AcceleratorName(key uint, mods gdk.ModifierType) string
AcceleratorName is a wrapper around gtk_accelerator_name().
func AcceleratorParse(acc string) (key uint, mods gdk.ModifierType)
AcceleratorParse is a wrapper around gtk_accelerator_parse().
func AcceleratorSetDefaultModMask(mods gdk.ModifierType)
AcceleratorSetDefaultModMask is a wrapper around gtk_accelerator_set_default_mod_mask().
func AcceleratorValid(key uint, mods gdk.ModifierType) bool
AcceleratorValid is a wrapper around gtk_accelerator_valid().
func AddProviderForScreen(s *gdk.Screen, provider IStyleProvider, prio uint)
AddProviderForScreen is a wrapper around gtk_style_context_add_provider_for_screen().
EventsPending is a wrapper around gtk_events_pending.
GdkCairoSetSourcePixBuf() is a wrapper around gdk_cairo_set_source_pixbuf().
fixed GetData directly from ptr
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.
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()
Main() is a wrapper around gtk_main() and runs the GTK main loop, blocking until MainQuit() is called.
MainIteration is a wrapper around gtk_main_iteration.
MainIterationDo is a wrapper around gtk_main_iteration_do.
func MainQuit()
MainQuit() is a wrapper around gtk_main_quit() is used to terminate the GTK main loop (started by Main()).
* FileChooserNative
PaperSizeGetDefault() is a wrapper around gtk_paper_size_get_default().
PaperSizeGetPaperSizes() is a wrapper around gtk_paper_size_get_paper_sizes().
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(s *gdk.Screen, provider IStyleProvider)
RemoveProviderForScreen is a wrapper around gtk_style_context_remove_provider_for_screen().
StyleContextResetWidgets is a wrapper around gtk_style_context_reset_widgets().
WindowGetDefaultIconName is a wrapper around gtk_window_get_default_icon_name().
WindowSetDefaultIcon is a wrapper around gtk_window_set_default_icon().
WindowSetDefaultIconFromFile is a wrapper around gtk_window_set_default_icon_from_file().
WindowSetDefaultIconName is a wrapper around gtk_window_set_default_icon_name().
AboutDialog is a representation of GTK's GtkAboutDialog.
func AboutDialogNew() (*AboutDialog, error)
AboutDialogNew is a wrapper around gtk_about_dialog_new().
func (v *AboutDialog) AddCreditSection(sectionName string, people []string)
AddCreditSection is a wrapper around gtk_about_dialog_add_credit_section().
func (v *AboutDialog) GetArtists() []string
GetArtists is a wrapper around gtk_about_dialog_get_artists().
func (v *AboutDialog) GetAuthors() []string
GetAuthors is a wrapper around gtk_about_dialog_get_authors().
func (v *AboutDialog) GetComments() string
GetComments is a wrapper around gtk_about_dialog_get_comments().
func (v *AboutDialog) GetCopyright() string
GetCopyright is a wrapper around gtk_about_dialog_get_copyright().
func (v *AboutDialog) GetDocumenters() []string
GetDocumenters is a wrapper around gtk_about_dialog_get_documenters().
func (v *AboutDialog) GetLicense() string
GetLicense is a wrapper around gtk_about_dialog_get_license().
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 (v *AboutDialog) GetLogoIconName() string
GetLogoIconName is a wrapper around gtk_about_dialog_get_logo_icon_name().
func (v *AboutDialog) GetProgramName() string
GetProgramName is a wrapper around gtk_about_dialog_get_program_name().
func (v *AboutDialog) GetTranslatorCredits() string
GetTranslatorCredits is a wrapper around gtk_about_dialog_get_translator_credits().
func (v *AboutDialog) GetVersion() string
GetVersion is a wrapper around gtk_about_dialog_get_version().
func (v *AboutDialog) GetWebsite() string
GetWebsite is a wrapper around gtk_about_dialog_get_website().
func (v *AboutDialog) GetWebsiteLabel() string
GetWebsiteLabel is a wrapper around gtk_about_dialog_get_website_label().
func (v *AboutDialog) GetWrapLicense() bool
GetWrapLicense is a wrapper around gtk_about_dialog_get_wrap_license().
func (v *AboutDialog) SetArtists(artists []string)
SetArtists is a wrapper around gtk_about_dialog_set_artists().
func (v *AboutDialog) SetAuthors(authors []string)
SetAuthors is a wrapper around gtk_about_dialog_set_authors().
func (v *AboutDialog) SetComments(comments string)
SetComments is a wrapper around gtk_about_dialog_set_comments().
func (v *AboutDialog) SetCopyright(copyright string)
SetCopyright is a wrapper around gtk_about_dialog_set_copyright().
func (v *AboutDialog) SetDocumenters(documenters []string)
SetDocumenters is a wrapper around gtk_about_dialog_set_documenters().
func (v *AboutDialog) SetLicense(license string)
SetLicense is a wrapper around gtk_about_dialog_set_license().
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 (v *AboutDialog) SetLogoIconName(name string)
SetLogoIconName is a wrapper around gtk_about_dialog_set_logo_icon_name().
func (v *AboutDialog) SetProgramName(name string)
SetProgramName is a wrapper around gtk_about_dialog_set_program_name().
func (v *AboutDialog) SetTranslatorCredits(translatorCredits string)
SetTranslatorCredits is a wrapper around gtk_about_dialog_set_translator_credits().
func (v *AboutDialog) SetVersion(version string)
SetVersion is a wrapper around gtk_about_dialog_set_version().
func (v *AboutDialog) SetWebsite(website string)
SetWebsite is a wrapper around gtk_about_dialog_set_website().
func (v *AboutDialog) SetWebsiteLabel(websiteLabel string)
SetWebsiteLabel is a wrapper around gtk_about_dialog_set_website_label().
func (v *AboutDialog) SetWrapLicense(wrapLicense bool)
SetWrapLicense is a wrapper around gtk_about_dialog_set_wrap_license().
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
)AccelGroup is a representation of GTK's GtkAccelGroup.
func AccelGroupFromClosure(f interface{}) *AccelGroupAccelGroupFromClosure is a wrapper around gtk_accel_group_from_accel_closure().
func AccelGroupNew() (*AccelGroup, error)
AccelGroup is a wrapper around gtk_accel_group_new().
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 (v *AccelGroup) Connect(key uint, mods gdk.ModifierType, flags AccelFlags, f interface{})
Connect is a wrapper around gtk_accel_group_connect().
func (v *AccelGroup) ConnectByPath(path string, f interface{})
ConnectByPath is a wrapper around gtk_accel_group_connect_by_path().
func (v *AccelGroup) Disconnect(f interface{})
Disconnect is a wrapper around gtk_accel_group_disconnect().
func (v *AccelGroup) DisconnectKey(key uint, mods gdk.ModifierType)
DisconnectKey is a wrapper around gtk_accel_group_disconnect_key().
func (v *AccelGroup) GetModifierMask() gdk.ModifierType
GetModifierMask is a wrapper around gtk_accel_group_get_modifier_mask().
func (v *AccelGroup) IsLocked() bool
IsLocked is a wrapper around gtk_accel_group_get_is_locked().
func (v *AccelGroup) Lock()
Lock is a wrapper around gtk_accel_group_lock().
func (v *AccelGroup) Unlock()
Unlock is a wrapper around gtk_accel_group_unlock().
type AccelKey struct {
// contains filtered or unexported fields
}AccelMapLookupEntry is a wrapper around gtk_accel_map_lookup_entry().
AccelMap is a representation of GTK's GtkAccelMap.
AccelMapGet is a wrapper around gtk_accel_map_get().
GtkActionBar
gtk_action_bar_new()
gtk_action_bar_get_center_widget(GtkActionBar *action_bar)
gtk_action_bar_pack_end(GtkActionBar *action_bar,GtkWidget *child)
gtk_action_bar_pack_start(GtkActionBar *action_bar,GtkWidget *child)
gtk_action_bar_set_center_widget(GtkActionBar *action_bar,GtkWidget *center_widget)
type Adjustment struct {
glib.InitiallyUnowned
}Adjustment is a representation of GTK's GtkAdjustment.
func AdjustmentNew(value, lower, upper, stepIncrement, pageIncrement, pageSize float64) (*Adjustment, error)
AdjustmentNew is a wrapper around gtk_adjustment_new().
func (v *Adjustment) Configure(value, lower, upper, stepIncrement, pageIncrement, pageSize float64)
Configure is a wrapper around gtk_adjustment_configure().
func (v *Adjustment) GetLower() float64
GetLower is a wrapper around gtk_adjustment_get_lower().
func (v *Adjustment) GetMinimumIncrement() float64
GetMinimumIncrement is a wrapper around gtk_adjustment_get_minimum_increment().
func (v *Adjustment) GetPageIncrement() float64
GetPageIncrement is a wrapper around gtk_adjustment_get_page_increment().
func (v *Adjustment) GetPageSize() float64
GetPageSize is a wrapper around gtk_adjustment_get_page_size().
func (v *Adjustment) GetStepIncrement() float64
GetStepIncrement is a wrapper around gtk_adjustment_get_step_increment().
func (v *Adjustment) GetUpper() float64
GetUpper is a wrapper around gtk_adjustment_get_upper().
func (v *Adjustment) GetValue() float64
GetValue is a wrapper around gtk_adjustment_get_value().
func (v *Adjustment) SetLower(value float64)
SetLower is a wrapper around gtk_adjustment_set_lower().
func (v *Adjustment) SetPageIncrement(value float64)
SetPageIncrement is a wrapper around gtk_adjustment_set_page_increment().
func (v *Adjustment) SetPageSize(value float64)
SetPageSize is a wrapper around gtk_adjustment_set_page_size().
func (v *Adjustment) SetStepIncrement(value float64)
SetStepIncrement is a wrapper around gtk_adjustment_set_step_increment().
func (v *Adjustment) SetUpper(value float64)
SetUpper is a wrapper around gtk_adjustment_set_upper().
func (v *Adjustment) SetValue(value float64)
SetValue is a wrapper around gtk_adjustment_set_value().
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
)Allocation is a representation of GTK's GtkAllocation type.
AppChooser is a representation of GTK's GtkAppChooser GInterface.
func (v *AppChooser) GetContentType() string
GetContentType is a wrapper around gtk_app_chooser_get_content_type().
func (v *AppChooser) Refresh()
Refresh is a wrapper around gtk_app_chooser_refresh().
type AppChooserButton struct {
ComboBox
// Interfaces
AppChooser
}AppChooserButton is a representation of GTK's GtkAppChooserButton.
func AppChooserButtonNew(content_type string) (*AppChooserButton, error)
AppChooserButtonNew() is a wrapper around gtk_app_chooser_button_new().
func (v *AppChooserButton) AppendSeparator()
AppendSeparator() is a wrapper around gtk_app_chooser_button_append_separator().
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 (v *AppChooserButton) GetShowDefaultItem() bool
GetShowDefaultItem() is a wrapper around gtk_app_chooser_button_get_show_default_item().
func (v *AppChooserButton) GetShowDialogItem() bool
GetShowDialogItem() is a wrapper around gtk_app_chooser_button_get_show_dialog_item().
func (v *AppChooserButton) SetActiveCustomItem(name string)
SetActiveCustomItem() is a wrapper around gtk_app_chooser_button_set_active_custom_item().
func (v *AppChooserButton) SetHeading(heading string)
SetHeading() is a wrapper around gtk_app_chooser_button_set_heading().
func (v *AppChooserButton) SetShowDefaultItem(setting bool)
SetShowDefaultItem() is a wrapper around gtk_app_chooser_button_set_show_default_item().
func (v *AppChooserButton) SetShowDialogItem(setting bool)
SetShowDialogItem() is a wrapper around gtk_app_chooser_button_set_show_dialog_item().
type AppChooserDialog struct {
Dialog
// Interfaces
AppChooser
}AppChooserDialog is a representation of GTK's GtkAppChooserDialog.
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 (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 (v *AppChooserDialog) GetWidget() *AppChooserWidget
GetWidget() is a wrapper around gtk_app_chooser_dialog_get_widget().
func (v *AppChooserDialog) SetHeading(heading string)
SetHeading() is a wrapper around gtk_app_chooser_dialog_set_heading().
type AppChooserWidget struct {
Box
// Interfaces
AppChooser
}AppChooserWidget is a representation of GTK's GtkAppChooserWidget.
func AppChooserWidgetNew(content_type string) (*AppChooserWidget, error)
AppChooserWidgetNew() is a wrapper around gtk_app_chooser_widget_new().
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 (v *AppChooserWidget) GetShowAll() bool
GetShowAll() is a wrapper around gtk_app_chooser_widget_get_show_all().
func (v *AppChooserWidget) GetShowDefault() bool
GetShowDefault() is a wrapper around gtk_app_chooser_widget_get_show_default().
func (v *AppChooserWidget) GetShowFallback() bool
GetShowFallback() is a wrapper around gtk_app_chooser_widget_get_show_fallback().
func (v *AppChooserWidget) GetShowOther() bool
GetShowOther() is a wrapper around gtk_app_chooser_widget_get_show_other().
func (v *AppChooserWidget) GetShowRecommended() bool
GetShowRecommended() is a wrapper around gtk_app_chooser_widget_get_show_recommended().
func (v *AppChooserWidget) SetDefaultText(text string)
SetDefaultText() is a wrapper around gtk_app_chooser_widget_set_default_text().
func (v *AppChooserWidget) SetShowAll(setting bool)
SetShowAll() is a wrapper around gtk_app_chooser_widget_set_show_all().
func (v *AppChooserWidget) SetShowDefault(setting bool)
SetShowDefault() is a wrapper around gtk_app_chooser_widget_set_show_default().
func (v *AppChooserWidget) SetShowFallback(setting bool)
SetShowFallback() is a wrapper around gtk_app_chooser_widget_set_show_fallback().
func (v *AppChooserWidget) SetShowOther(setting bool)
SetShowOther() is a wrapper around gtk_app_chooser_widget_set_show_other().
func (v *AppChooserWidget) SetShowRecommended(setting bool)
SetShowRecommended() is a wrapper around gtk_app_chooser_widget_set_show_recommended().
type Application struct {
glib.Application
}Application is a representation of GTK's GtkApplication.
func ApplicationNew(appId string, flags glib.ApplicationFlags) (*Application, error)
ApplicationNew is a wrapper around gtk_application_new().
func (v *Application) AddWindow(w *Window)
AddWindow is a wrapper around gtk_application_add_window().
func (v *Application) GetAccelsForAction(act string) []string
GetAccelsForAction is a wrapper around gtk_application_get_accels_for_action().
func (v *Application) GetActionsForAccel(acc string) []string
GetActionsForAccel is a wrapper around gtk_application_get_actions_for_accel().
func (v *Application) GetActiveWindow() *Window
GetActiveWindow is a wrapper around gtk_application_get_active_window().
func (v *Application) GetAppMenu() *glib.MenuModel
GetAppMenu is a wrapper around gtk_application_get_app_menu().
func (v *Application) GetMenuByID(id string) *glib.Menu
GetMenuByID is a wrapper around gtk_application_get_menu_by_id().
func (v *Application) GetMenubar() *glib.MenuModel
GetMenubar is a wrapper around gtk_application_get_menubar().
func (v *Application) GetWindowByID(id uint) *Window
GetWindowByID is a wrapper around gtk_application_get_window_by_id().
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 (v *Application) Inhibited(w *Window, flags ApplicationInhibitFlags, reason string) uint
Inhibited is a wrapper around gtk_application_inhibit().
func (v *Application) IsInhibited(flags ApplicationInhibitFlags) bool
IsInhibited is a wrapper around gtk_application_is_inhibited().
func (v *Application) ListActionDescriptions() []string
ListActionDescriptions is a wrapper around gtk_application_list_action_descriptions().
func (v *Application) PrefersAppMenu() bool
PrefersAppMenu is a wrapper around gtk_application_prefers_app_menu().
func (v *Application) RemoveWindow(w *Window)
RemoveWindow is a wrapper around gtk_application_remove_window().
func (v *Application) SetAccelsForAction(act string, accels []string)
SetAccelsForAction is a wrapper around gtk_application_set_accels_for_action().
func (v *Application) SetAppMenu(m *glib.MenuModel)
SetAppMenu is a wrapper around gtk_application_set_app_menu().
func (v *Application) SetMenubar(m *glib.MenuModel)
SetMenubar is a wrapper around gtk_application_set_menubar().
func (v *Application) Uninhibit(cookie uint)
Uninhibit is a wrapper around gtk_application_uninhibit().
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 struct {
Window
// Interfaces
glib.IActionMap
glib.IActionGroup
}ApplicationWindow is a representation of GTK's GtkApplicationWindow.
func ApplicationWindowNew(app *Application) (*ApplicationWindow, error)
ApplicationWindowNew is a wrapper around gtk_application_window_new().
func (v *ApplicationWindow) GetID() uint
GetID is a wrapper around gtk_application_window_get_id().
func (v *ApplicationWindow) GetShowMenubar() bool
GetShowMenubar is a wrapper around gtk_application_window_get_show_menubar().
func (v *ApplicationWindow) SetShowMenubar(b bool)
SetShowMenubar is a wrapper around gtk_application_window_set_show_menubar().
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
)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
)AspectFrame is a representation of GTK's GtkAspectFrame.
func AspectFrameNew(label string, xalign, yalign, ratio float32, obeyChild bool) (*AspectFrame, error)
Assistant is a representation of GTK's GtkAssistant.
AssistantNew is a wrapper around gtk_assistant_new().
AddActionWidget is a wrapper around gtk_assistant_add_action_widget().
AppendPage is a wrapper around gtk_assistant_append_page().
Commit is a wrapper around gtk_assistant_commit().
GetCurrentPage is a wrapper around gtk_assistant_get_current_page().
GetNPages is a wrapper around gtk_assistant_get_n_pages().
GetNthPage is a wrapper around gtk_assistant_get_nth_page().
GetPageComplete is a wrapper around gtk_assistant_get_page_complete().
GetPageTitle is a wrapper around gtk_assistant_get_page_title().
func (v *Assistant) GetPageType(page IWidget) AssistantPageType
GetPageType is a wrapper around gtk_assistant_get_page_type().
InsertPage is a wrapper around gtk_assistant_insert_page().
NextPage is a wrapper around gtk_assistant_next_page().
PrependPage is a wrapper around gtk_assistant_prepend_page().
PreviousPage is a wrapper around gtk_assistant_previous_page().
RemoveActionWidget is a wrapper around gtk_assistant_remove_action_widget().
RemovePage is a wrapper around gtk_assistant_remove_page().
SetCurrentPage is a wrapper around gtk_assistant_set_current_page().
SetPageComplete is a wrapper around gtk_assistant_set_page_complete().
SetPageTitle is a wrapper around gtk_assistant_set_page_title().
func (v *Assistant) SetPageType(page IWidget, ptype AssistantPageType)
SetPageType is a wrapper around gtk_assistant_set_page_type().
UpdateButtonsState is a wrapper around gtk_assistant_update_buttons_state().
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
)Bin is a representation of GTK's GtkBin.
GetChild is a wrapper around gtk_bin_get_child().
Box is a representation of GTK's GtkBox.
func BoxNew(orientation Orientation, spacing int) (*Box, error)
BoxNew() is a wrapper around gtk_box_new().
gtk_box_bar_get_center_widget(GtkBox *box)
GetHomogeneous() is a wrapper around gtk_box_get_homogeneous().
func (v *Box) GetOrientation() Orientation
GetOrientation() is a wrapper around C.gtk_orientable_get_orientation() for a GtkBox
GetSpacing() is a wrapper around gtk_box_get_spacing().
PackEnd() is a wrapper around gtk_box_pack_end().
PackStart() is a wrapper around gtk_box_pack_start().
func (v *Box) QueryChildPacking(child IWidget) (expand, fill bool, padding uint, packType PackType)
QueryChildPacking() is a wrapper around gtk_box_query_child_packing().
ReorderChild() is a wrapper around gtk_box_reorder_child().
gtk_box_bar_set_center_widget(GtkBox *box,GtkWidget *center_widget)
SetChildPacking() is a wrapper around gtk_box_set_child_packing().
SetHomogeneous() is a wrapper around gtk_box_set_homogeneous().
func (v *Box) SetOrientation(o Orientation)
SetOrientation() is a wrapper around C.gtk_orientable_set_orientation() for a GtkBox
SetSpacing() is a wrapper around gtk_box_set_spacing()
Builder is a representation of GTK's GtkBuilder.
BuilderNew is a wrapper around gtk_builder_new().
BuilderNewFromFile is a wrapper around gtk_builder_new_from_file().
BuilderNewFromResource is a wrapper around gtk_builder_new_from_resource().
AddFromFile is a wrapper around gtk_builder_add_from_file().
AddFromResource is a wrapper around gtk_builder_add_from_resource().
AddFromString is a wrapper around gtk_builder_add_from_string().
ConnectSignals is a wrapper around gtk_builder_connect_signals_full().
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
}
Button is a representation of GTK's GtkButton.
ButtonNew() is a wrapper around gtk_button_new().
ButtonNewFromIconName is a wrapper around gtk_button_new_from_icon_name().
ButtonNewWithLabel() is a wrapper around gtk_button_new_with_label().
ButtonNewWithMnemonic() is a wrapper around gtk_button_new_with_mnemonic().
Clicked() is a wrapper around gtk_button_clicked().
GetAlwaysShowImage() is a wrapper around gtk_button_get_always_show_image().
GetEventWindow() is a wrapper around gtk_button_get_event_window().
GetImage() is a wrapper around gtk_button_get_image().
func (v *Button) GetImagePosition() PositionType
GetImagePosition() is a wrapper around gtk_button_get_image_position().
GetLabel() is a wrapper around gtk_button_get_label().
func (v *Button) GetRelief() ReliefStyle
GetRelief() is a wrapper around gtk_button_get_relief().
GetUseUnderline() is a wrapper around gtk_button_get_use_underline().
SetAlwaysShowImage() is a wrapper around gtk_button_set_always_show_image().
SetImage() is a wrapper around gtk_button_set_image().
func (v *Button) SetImagePosition(position PositionType)
SetImagePosition() is a wrapper around gtk_button_set_image_position().
SetLabel() is a wrapper around gtk_button_set_label().
func (v *Button) SetRelief(newStyle ReliefStyle)
SetRelief() is a wrapper around gtk_button_set_relief().
SetUseUnderline() is a wrapper around gtk_button_set_use_underline().
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
)Calendar is a representation of GTK's GtkCalendar.
CalendarNew is a wrapper around gtk_calendar_new().
ClearMarks is a wrapper around gtk_calendar_clear_marks().
GetDate is a wrapper around gtk_calendar_get_date().
GetDayIsMarked is a wrapper around gtk_calendar_get_day_is_marked().
GetDetailHeightRows is a wrapper around gtk_calendar_get_detail_height_rows().
GetDetailWidthChars is a wrapper around gtk_calendar_get_detail_width_chars().
func (v *Calendar) GetDisplayOptions() CalendarDisplayOptions
GetDisplayOptions is a wrapper around gtk_calendar_get_display_options().
MarkDay is a wrapper around gtk_calendar_mark_day().
SelectDay is a wrapper around gtk_calendar_select_day().
SelectMonth is a wrapper around gtk_calendar_select_month().
SetDetailHeightRows is a wrapper around gtk_calendar_set_detail_height_rows().
SetDetailWidthChars is a wrapper around gtk_calendar_set_detail_width_chars().
func (v *Calendar) SetDisplayOptions(flags CalendarDisplayOptions)
SetDisplayOptions is a wrapper around gtk_calendar_set_display_options().
UnmarkDay is a wrapper around gtk_calendar_unmark_day().
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
)CellLayout is a representation of GTK's GtkCellLayout GInterface.
func (v *CellLayout) AddAttribute(cell ICellRenderer, attribute string, column int)
AddAttribute() is a wrapper around gtk_cell_layout_add_attribute().
func (v *CellLayout) PackStart(cell ICellRenderer, expand bool)
PackStart() is a wrapper around gtk_cell_layout_pack_start().
type CellRenderer struct {
glib.InitiallyUnowned
}CellRenderer is a representation of GTK's GtkCellRenderer.
type CellRendererPixbuf struct {
CellRenderer
}CellRendererPixbuf is a representation of GTK's GtkCellRendererPixbuf.
func CellRendererPixbufNew() (*CellRendererPixbuf, error)
CellRendererPixbufNew is a wrapper around gtk_cell_renderer_pixbuf_new().
type CellRendererSpinner struct {
CellRenderer
}CellRendererSpinner is a representation of GTK's GtkCellRendererSpinner.
func CellRendererSpinnerNew() (*CellRendererSpinner, error)
CellRendererSpinnerNew is a wrapper around gtk_cell_renderer_text_new().
type CellRendererText struct {
CellRenderer
}CellRendererText is a representation of GTK's GtkCellRendererText.
func CellRendererTextNew() (*CellRendererText, error)
CellRendererTextNew is a wrapper around gtk_cell_renderer_text_new().
type CellRendererToggle struct {
CellRenderer
}CellRendererToggle is a representation of GTK's GtkCellRendererToggle.
func CellRendererToggleNew() (*CellRendererToggle, error)
CellRendererToggleNew is a wrapper around gtk_cell_renderer_toggle_new().
func (v *CellRendererToggle) GetActivatable() bool
GetActivatable is a wrapper around gtk_cell_renderer_toggle_get_activatable().
func (v *CellRendererToggle) GetActive() bool
GetActive is a wrapper around gtk_cell_renderer_toggle_get_active().
func (v *CellRendererToggle) GetRadio() bool
GetRadio is a wrapper around gtk_cell_renderer_toggle_get_radio().
func (v *CellRendererToggle) SetActivatable(activatable bool)
SetActivatable is a wrapper around gtk_cell_renderer_toggle_set_activatable().
func (v *CellRendererToggle) SetActive(active bool)
SetActive is a wrapper arround gtk_cell_renderer_toggle_set_active().
func (v *CellRendererToggle) SetRadio(set bool)
SetRadio is a wrapper around gtk_cell_renderer_toggle_set_radio().
type CheckButton struct {
ToggleButton
}CheckButton is a wrapper around GTK's GtkCheckButton.
func CheckButtonNew() (*CheckButton, error)
CheckButtonNew is a wrapper around gtk_check_button_new().
func CheckButtonNewWithLabel(label string) (*CheckButton, error)
CheckButtonNewWithLabel is a wrapper around gtk_check_button_new_with_label().
func CheckButtonNewWithMnemonic(label string) (*CheckButton, error)
CheckButtonNewWithMnemonic is a wrapper around gtk_check_button_new_with_mnemonic().
func CheckMenuItemNew() (*CheckMenuItem, error)
CheckMenuItemNew is a wrapper around gtk_check_menu_item_new().
func CheckMenuItemNewWithLabel(label string) (*CheckMenuItem, error)
CheckMenuItemNewWithLabel is a wrapper around gtk_check_menu_item_new_with_label().
func CheckMenuItemNewWithMnemonic(label string) (*CheckMenuItem, error)
CheckMenuItemNewWithMnemonic is a wrapper around gtk_check_menu_item_new_with_mnemonic().
func (v *CheckMenuItem) GetActive() bool
GetActive is a wrapper around gtk_check_menu_item_get_active().
func (v *CheckMenuItem) GetDrawAsRadio() bool
GetDrawAsRadio is a wrapper around gtk_check_menu_item_get_draw_as_radio().
func (v *CheckMenuItem) GetInconsistent() bool
GetInconsistent is a wrapper around gtk_check_menu_item_get_inconsistent().
func (v *CheckMenuItem) SetActive(isActive bool)
SetActive is a wrapper around gtk_check_menu_item_set_active().
func (v *CheckMenuItem) SetDrawAsRadio(drawAsRadio bool)
SetDrawAsRadio is a wrapper around gtk_check_menu_item_set_draw_as_radio().
func (v *CheckMenuItem) SetInconsistent(setting bool)
SetInconsistent is a wrapper around gtk_check_menu_item_set_inconsistent().
func (v *CheckMenuItem) Toggled()
Toggled is a wrapper around gtk_check_menu_item_toggled().
Clipboard is a wrapper around GTK's GtkClipboard.
ClipboardGet() is a wrapper around gtk_clipboard_get().
ClipboardGetForDisplay() is a wrapper around gtk_clipboard_get_for_display().
SetImage is a wrapper around gtk_clipboard_set_image
SetText() is a wrapper around gtk_clipboard_set_text().
Store is a wrapper around gtk_clipboard_store
WaitForContents is a wrapper around gtk_clipboard_wait_for_contents
WaitForImage is a wrapper around gtk_clipboard_wait_for_image
WaitForText is a wrapper around gtk_clipboard_wait_for_text
WaitIsImageAvailable is a wrapper around gtk_clipboard_wait_is_image_available
func (v *Clipboard) WaitIsRichTextAvailable(buf *TextBuffer) bool
WaitIsRichTextAvailable is a wrapper around gtk_clipboard_wait_is_rich_text_available
WaitIsTargetAvailable is a wrapper around gtk_clipboard_wait_is_target_available
WaitIsTextAvailable is a wrapper around gtk_clipboard_wait_is_text_available
WaitIsUrisAvailable is a wrapper around gtk_clipboard_wait_is_uris_available
type ColorButton struct {
Button
// Interfaces
ColorChooser
}ColorButton is a representation of GTK's GtkColorButton.
func ColorButtonNew() (*ColorButton, error)
ColorButtonNew is a wrapper around gtk_color_button_new().
func ColorButtonNewWithRGBA(gdkColor *gdk.RGBA) (*ColorButton, error)
ColorButtonNewWithRGBA is a wrapper around gtk_color_button_new_with_rgba().
ColorChooser is a representation of GTK's GtkColorChooser GInterface.
func (v *ColorChooser) AddPalette(orientation Orientation, colors_per_line int, colors []*gdk.RGBA)
AddPalette() is a wrapper around gtk_color_chooser_add_palette().
func (v *ColorChooser) GetRGBA() *gdk.RGBA
GetRGBA() is a wrapper around gtk_color_chooser_get_rgba().
func (v *ColorChooser) GetUseAlpha() bool
GetUseAlpha() is a wrapper around gtk_color_chooser_get_use_alpha().
func (v *ColorChooser) SetRGBA(gdkColor *gdk.RGBA)
SetRGBA() is a wrapper around gtk_color_chooser_set_rgba().
func (v *ColorChooser) SetUseAlpha(use_alpha bool)
SetUseAlpha() is a wrapper around gtk_color_chooser_set_use_alpha().
type ColorChooserDialog struct {
Dialog
// Interfaces
ColorChooser
}ColorChooserDialog is a representation of GTK's GtkColorChooserDialog.
func ColorChooserDialogNew(title string, parent *Window) (*ColorChooserDialog, error)
ColorChooserDialogNew() is a wrapper around gtk_color_chooser_dialog_new().
Convenient map for Columns and values (See ListStore, TreeStore)
type ComboBox struct {
Bin
// Interfaces
CellLayout
}ComboBox is a representation of GTK's GtkComboBox.
ComboBoxNew() is a wrapper around gtk_combo_box_new().
ComboBoxNewWithEntry() is a wrapper around gtk_combo_box_new_with_entry().
func ComboBoxNewWithModel(model ITreeModel) (*ComboBox, error)
ComboBoxNewWithModel() is a wrapper around gtk_combo_box_new_with_model().
GetActive() is a wrapper around gtk_combo_box_get_active().
GetActiveID is a wrapper around gtk_combo_box_get_active_id().
GetActiveIter is a wrapper around gtk_combo_box_get_active_iter().
GetModel is a wrapper around gtk_combo_box_get_model().
SetActive() is a wrapper around gtk_combo_box_set_active().
SetActiveID is a wrapper around gtk_combo_box_set_active_id().
SetActiveIter is a wrapper around gtk_combo_box_set_active_iter().
func (v *ComboBox) SetModel(model ITreeModel)
SetModel is a wrapper around gtk_combo_box_set_model().
ComboBoxText is a representation of GTK's GtkComboBoxText.
func ComboBoxTextNew() (*ComboBoxText, error)
ComboBoxTextNew is a wrapper around gtk_combo_box_text_new().
func ComboBoxTextNewWithEntry() (*ComboBoxText, error)
ComboBoxTextNewWithEntry is a wrapper around gtk_combo_box_text_new_with_entry().
func (v *ComboBoxText) Append(id, text string)
Append is a wrapper around gtk_combo_box_text_append().
func (v *ComboBoxText) AppendText(text string)
AppendText is a wrapper around gtk_combo_box_text_append_text().
func (v *ComboBoxText) GetActiveText() string
GetActiveText is a wrapper around gtk_combo_box_text_get_active_text().
func (v *ComboBoxText) Insert(position int, id, text string)
Insert is a wrapper around gtk_combo_box_text_insert().
func (v *ComboBoxText) InsertText(position int, text string)
InsertText is a wrapper around gtk_combo_box_text_insert_text().
func (v *ComboBoxText) Prepend(id, text string)
Prepend is a wrapper around gtk_combo_box_text_prepend().
func (v *ComboBoxText) PrependText(text string)
PrependText is a wrapper around gtk_combo_box_text_prepend_text().
func (v *ComboBoxText) Remove(position int)
Remove is a wrapper around gtk_combo_box_text_remove().
func (v *ComboBoxText) RemoveAll()
RemoveAll is a wrapper around gtk_combo_box_text_remove_all().
Container is a representation of GTK's GtkContainer.
Add is a wrapper around gtk_container_add().
CheckResize is a wrapper around gtk_container_check_resize().
func (v *Container) ChildGetProperty(child IWidget, name string, valueType glib.Type) (interface{}, error)
ChildGetProperty is a wrapper around gtk_container_child_get_property().
ChildNotify is a wrapper around gtk_container_child_notify().
ChildSetProperty is a wrapper around gtk_container_child_set_property().
ChildType is a wrapper around gtk_container_child_type().
GetBorderWidth is a wrapper around gtk_container_get_border_width().
GetChildren is a wrapper around gtk_container_get_children().
GetFocusChain is a wrapper around gtk_container_get_focus_chain().
GetFocusChild is a wrapper around gtk_container_get_focus_child().
func (v *Container) GetFocusHAdjustment() *Adjustment
GetFocusHAdjustment is a wrapper around gtk_container_get_focus_hadjustment().
func (v *Container) GetFocusVAdjustment() *Adjustment
GetFocusVAdjustment is a wrapper around gtk_container_get_focus_vadjustment().
PropagateDraw is a wrapper around gtk_container_propagate_draw().
Remove is a wrapper around gtk_container_remove().
SetBorderWidth is a wrapper around gtk_container_set_border_width().
SetFocusChain is a wrapper around gtk_container_set_focus_chain().
SetFocusChild is a wrapper around gtk_container_set_focus_child().
func (v *Container) SetFocusHAdjustment(adjustment *Adjustment)
SetFocusHAdjustment is a wrapper around gtk_container_set_focus_hadjustment().
func (v *Container) SetFocusVAdjustment(adjustment *Adjustment)
SetFocusVAdjustment is a wrapper around gtk_container_set_focus_vadjustment().
CssProvider is a representation of GTK's GtkCssProvider.
func CssProviderGetDefault() (*CssProvider, error)
CssProviderGetDefault is a wrapper around gtk_css_provider_get_default().
func CssProviderGetNamed(name string, variant string) (*CssProvider, error)
GetNamed is a wrapper around gtk_css_provider_get_named().
func CssProviderNew() (*CssProvider, error)
CssProviderNew is a wrapper around gtk_css_provider_new().
func (v *CssProvider) LoadFromData(data string) error
LoadFromData is a wrapper around gtk_css_provider_load_from_data().
func (v *CssProvider) LoadFromPath(path string) error
LoadFromPath is a wrapper around gtk_css_provider_load_from_path().
func (v *CssProvider) ToString() (string, error)
ToString is a wrapper around gtk_css_provider_to_string().
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
)Dialog is a representation of GTK's GtkDialog.
DialogNew() is a wrapper around gtk_dialog_new().
func (v *Dialog) AddActionWidget(child IWidget, id ResponseType)
AddActionWidget() is a wrapper around gtk_dialog_add_action_widget().
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.
GetContentArea() is a wrapper around gtk_dialog_get_content_area().
GetHeaderBar is a wrapper around gtk_dialog_get_header_bar().
func (v *Dialog) GetResponseForWidget(widget IWidget) ResponseType
GetResponseForWidget() is a wrapper around gtk_dialog_get_response_for_widget().
func (v *Dialog) GetWidgetForResponse(id ResponseType) (*Widget, error)
GetWidgetForResponse() is a wrapper around gtk_dialog_get_widget_for_response().
func (v *Dialog) Response(response ResponseType)
Response() is a wrapper around gtk_dialog_response().
func (v *Dialog) Run() ResponseType
Run() is a wrapper around gtk_dialog_run().
func (v *Dialog) SetDefaultResponse(id ResponseType)
SetDefaultResponse() is a wrapper around gtk_dialog_set_default_response().
func (v *Dialog) SetResponseSensitive(id ResponseType, setting bool)
SetResponseSensitive() is a wrapper around gtk_dialog_set_response_sensitive().
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
)DrawingArea is a representation of GTK's GtkDrawingArea.
func DrawingAreaNew() (*DrawingArea, error)
DrawingAreaNew is a wrapper around gtk_drawing_area_new().
Editable is a representation of GTK's GtkEditable GInterface.
CopyClipboard is a wrapper around gtk_editable_copy_clipboard().
CutClipboard is a wrapper around gtk_editable_cut_clipboard().
DeleteSelection is a wrapper around gtk_editable_delete_selection().
DeleteText is a wrapper around gtk_editable_delete_text().
GetChars is a wrapper around gtk_editable_get_chars().
GetEditable is a wrapper around gtk_editable_get_editable().
GetPosition is a wrapper around gtk_editable_get_position().
GetSelectionBounds is a wrapper around gtk_editable_get_selection_bounds().
InsertText is a wrapper around gtk_editable_insert_text(). The returned int is the position after the inserted text.
PasteClipboard is a wrapper around gtk_editable_paste_clipboard().
SelectRegion is a wrapper around gtk_editable_select_region().
SetEditable is a wrapper around gtk_editable_set_editable().
SetPosition is a wrapper around gtk_editable_set_position().
Entry is a representation of GTK's GtkEntry.
EntryNew() is a wrapper around gtk_entry_new().
func EntryNewWithBuffer(buffer *EntryBuffer) (*Entry, error)
EntryNewWithBuffer() is a wrapper around gtk_entry_new_with_buffer().
GetActivatesDefault() is a wrapper around gtk_entry_get_activates_default().
GetAlignment() is a wrapper around gtk_entry_get_alignment().
func (v *Entry) GetBuffer() (*EntryBuffer, error)
GetBuffer() is a wrapper around gtk_entry_get_buffer().
func (v *Entry) GetCompletion() (*EntryCompletion, error)
GetCompletion() is a wrapper around gtk_entry_get_completion().
GetCurrentIconDragSource() is a wrapper around gtk_entry_get_current_icon_drag_source().
func (v *Entry) GetCursorHAdjustment() (*Adjustment, error)
GetCursorHAdjustment() is a wrapper around gtk_entry_get_cursor_hadjustment().
GetHasFrame() is a wrapper around gtk_entry_get_has_frame().
func (v *Entry) GetIconActivatable(iconPos EntryIconPosition) bool
GetIconActivatable() is a wrapper around gtk_entry_get_icon_activatable().
GetIconAtPos() is a wrapper around gtk_entry_get_icon_at_pos().
func (v *Entry) GetIconName(iconPos EntryIconPosition) (string, error)
GetIconName() is a wrapper around gtk_entry_get_icon_name().
func (v *Entry) GetIconSensitive(iconPos EntryIconPosition) bool
GetIconSensitive() is a wrapper around gtk_entry_get_icon_sensitive().
func (v *Entry) GetIconStorageType(iconPos EntryIconPosition) ImageType
GetIconStorageType() is a wrapper around gtk_entry_get_icon_storage_type().
func (v *Entry) GetIconTooltipMarkup(iconPos EntryIconPosition) (string, error)
GetIconTooltipMarkup() is a wrapper around gtk_entry_get_icon_tooltip_markup().
func (v *Entry) GetIconTooltipText(iconPos EntryIconPosition) (string, error)
GetIconTooltipText() is a wrapper around gtk_entry_get_icon_tooltip_text().
func (v *Entry) GetInputHints() InputHints
GetInputHints() is a wrapper around gtk_entry_get_input_hints().
func (v *Entry) GetInputPurpose() InputPurpose
GetInputPurpose() is a wrapper around gtk_entry_get_input_purpose().
GetInvisibleChar() is a wrapper around gtk_entry_get_invisible_char().
GetLayoutOffsets() is a wrapper around gtk_entry_get_layout_offsets().
GetMaxLength() is a wrapper around gtk_entry_get_max_length().
GetMaxWidthChars() is a wrapper around gtk_entry_get_max_width_chars().
GetOverwriteMode() is a wrapper around gtk_entry_get_overwrite_mode().
GetPlaceholderText() is a wrapper around gtk_entry_get_placeholder_text().
GetProgressFraction() is a wrapper around gtk_entry_get_progress_fraction().
GetProgressPulseStep() is a wrapper around gtk_entry_get_progress_pulse_step().
GetText() is a wrapper around gtk_entry_get_text().
GetTextLength() is a wrapper around gtk_entry_get_text_length().
GetVisibility() is a wrapper around gtk_entry_get_visibility().
GetWidthChars() is a wrapper around gtk_entry_get_width_chars().
LayoutIndexToTextIndex() is a wrapper around gtk_entry_layout_index_to_text_index().
ProgressPulse() is a wrapper around gtk_entry_progress_pulse().
ResetIMContext() is a wrapper around gtk_entry_reset_im_context().
SetActivatesDefault() is a wrapper around gtk_entry_set_activates_default().
SetAlignment() is a wrapper around gtk_entry_set_alignment().
func (v *Entry) SetBuffer(buffer *EntryBuffer)
SetBuffer() is a wrapper around gtk_entry_set_buffer().
func (v *Entry) SetCompletion(completion *EntryCompletion)
SetCompletion() is a wrapper around gtk_entry_set_completion().
func (v *Entry) SetCursorHAdjustment(adjustment *Adjustment)
SetCursorHAdjustment() is a wrapper around gtk_entry_set_cursor_hadjustment().
SetHasFrame() is a wrapper around gtk_entry_set_has_frame().
func (v *Entry) SetIconActivatable(iconPos EntryIconPosition, activatable bool)
SetIconActivatable() is a wrapper around gtk_entry_set_icon_activatable().
func (v *Entry) SetIconFromIconName(iconPos EntryIconPosition, name string)
SetIconFromIconName() is a wrapper around gtk_entry_set_icon_from_icon_name().
func (v *Entry) SetIconFromPixbuf(iconPos EntryIconPosition, pixbuf *gdk.Pixbuf)
SetIconFromPixbuf is a wrapper around gtk_entry_set_icon_from_pixbuf().
func (v *Entry) SetIconSensitive(iconPos EntryIconPosition, sensitive bool)
SetIconSensitive() is a wrapper around gtk_entry_set_icon_sensitive().
func (v *Entry) SetIconTooltipMarkup(iconPos EntryIconPosition, tooltip string)
SetIconTooltipMarkup() is a wrapper around gtk_entry_set_icon_tooltip_markup().
func (v *Entry) SetIconTooltipText(iconPos EntryIconPosition, tooltip string)
SetIconTooltipText() is a wrapper around gtk_entry_set_icon_tooltip_text().
func (v *Entry) SetInputHints(hints InputHints)
SetInputHints() is a wrapper around gtk_entry_set_input_hints().
func (v *Entry) SetInputPurpose(purpose InputPurpose)
SetInputPurpose() is a wrapper around gtk_entry_set_input_purpose().
SetInvisibleChar() is a wrapper around gtk_entry_set_invisible_char().
SetMaxLength() is a wrapper around gtk_entry_set_max_length().
SetMaxWidthChars() is a wrapper around gtk_entry_set_max_width_chars().
SetOverwriteMode() is a wrapper around gtk_entry_set_overwrite_mode().
SetPlaceholderText() is a wrapper around gtk_entry_set_placeholder_text().
SetProgressFraction() is a wrapper around gtk_entry_set_progress_fraction().
SetProgressPulseStep() is a wrapper around gtk_entry_set_progress_pulse_step().
SetText() is a wrapper around gtk_entry_set_text().
SetVisibility() is a wrapper around gtk_entry_set_visibility().
SetWidthChars() is a wrapper around gtk_entry_set_width_chars().
TextIndexToLayoutIndex() is a wrapper around gtk_entry_text_index_to_layout_index().
UnsetInvisibleChar() is a wrapper around gtk_entry_unset_invisible_char().
EntryBuffer is a representation of GTK's GtkEntryBuffer.
func EntryBufferNew(initialChars string, nInitialChars int) (*EntryBuffer, error)
EntryBufferNew() is a wrapper around gtk_entry_buffer_new().
func (v *EntryBuffer) DeleteText(position uint, nChars int) uint
DeleteText() is a wrapper around gtk_entry_buffer_delete_text().
func (v *EntryBuffer) EmitDeletedText(pos, nChars uint)
EmitDeletedText() is a wrapper around gtk_entry_buffer_emit_deleted_text().
func (v *EntryBuffer) EmitInsertedText(pos uint, text string)
EmitInsertedText() is a wrapper around gtk_entry_buffer_emit_inserted_text().
func (v *EntryBuffer) GetBytes() uint
GetBytes() is a wrapper around gtk_entry_buffer_get_bytes().
func (v *EntryBuffer) GetLength() uint
GetLength() is a wrapper around gtk_entry_buffer_get_length().
func (v *EntryBuffer) GetMaxLength() int
GetMaxLength() is a wrapper around gtk_entry_buffer_get_max_length().
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 (v *EntryBuffer) InsertText(position uint, text string) uint
InsertText() is a wrapper around gtk_entry_buffer_insert_text().
func (v *EntryBuffer) SetMaxLength(maxLength int)
SetMaxLength() is a wrapper around gtk_entry_buffer_set_max_length().
func (v *EntryBuffer) SetText(text string)
SetText() is a wrapper around gtk_entry_buffer_set_text().
EntryCompletion is a representation of GTK's GtkEntryCompletion.
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
)EventBox is a representation of GTK's GtkEventBox.
EventBoxNew is a wrapper around gtk_event_box_new().
GetAboveChild is a wrapper around gtk_event_box_get_above_child().
GetVisibleWindow is a wrapper around gtk_event_box_get_visible_window().
SetAboveChild is a wrapper around gtk_event_box_set_above_child().
SetVisibleWindow is a wrapper around gtk_event_box_set_visible_window().
Expander is a representation of GTK's GtkExpander.
ExpanderNew is a wrapper around gtk_expander_new().
GetExpanded is a wrapper around gtk_expander_get_expanded().
GetLabel is a wrapper around gtk_expander_get_label().
SetExpanded is a wrapper around gtk_expander_set_expanded().
SetLabel is a wrapper around gtk_expander_set_label().
SetLabelWidget is a wrapper around gtk_expander_set_label_widget().
FileChoser is a representation of GTK's GtkFileChooser GInterface.
func (v *FileChooser) AddFilter(filter *FileFilter)
AddFilter is a wrapper around gtk_file_chooser_add_filter().
func (v *FileChooser) AddShortcutFolder(folder string) bool
AddShortcutFolder is a wrapper around gtk_file_chooser_add_shortcut_folder().
func (v *FileChooser) GetCreateFolders() bool
GetCreateFolders is a wrapper around gtk_file_chooser_get_create_folders().
func (v *FileChooser) GetCurrentFolder() (string, error)
GetCurrentFolder is a wrapper around gtk_file_chooser_get_current_folder().
func (v *FileChooser) GetDoOverwriteConfirmation() bool
GetDoOverwriteConfirmation is a wrapper around gtk_file_chooser_get_do_overwrite_confirmation().
func (v *FileChooser) GetFilename() string
GetFilename is a wrapper around gtk_file_chooser_get_filename().
func (v *FileChooser) GetFilenames() (*glib.SList, error)
GetFilenames is a wrapper around gtk_file_chooser_get_filenames().
func (v *FileChooser) GetLocalOnly() bool
GetLocalOnly is a wrapper around gtk_file_chooser_get_local_only().
func (v *FileChooser) GetPreviewFilename() string
GetPreviewFilename is a wrapper around gtk_file_chooser_get_preview_filename().
func (v *FileChooser) GetSelectMultiple() bool
GetSelectMultiple is a wrapper around gtk_file_chooser_get_select_multiple().
func (v *FileChooser) GetURI() string
GetURI is a wrapper around gtk_file_chooser_get_uri().
func (v *FileChooser) RemoveFilter(filter *FileFilter)
RemoveFilter is a wrapper around gtk_file_chooser_remove_filter().
func (v *FileChooser) SetCreateFolders(value bool)
SetCreateFolders is a wrapper around gtk_file_chooser_set_create_folders().
func (v *FileChooser) SetCurrentFolder(folder string) bool
SetCurrentFolder is a wrapper around gtk_file_chooser_set_current_folder().
func (v *FileChooser) SetCurrentName(name string)
SetCurrentName is a wrapper around gtk_file_chooser_set_current_name().
func (v *FileChooser) SetDoOverwriteConfirmation(value bool)
SetDoOverwriteConfirmation is a wrapper around gtk_file_chooser_set_do_overwrite_confirmation().
func (v *FileChooser) SetFilename(filename string) bool
SetFilename is a wrapper around gtk_file_chooser_set_filename().
func (v *FileChooser) SetFilter(filter *FileFilter)
SetFilter is a wrapper around gtk_file_chooser_set_filter().
func (v *FileChooser) SetLocalOnly(value bool)
SetLocalOnly is a wrapper around gtk_file_chooser_set_local_only().
func (v *FileChooser) SetPreviewWidget(widget IWidget)
SetPreviewWidget is a wrapper around gtk_file_chooser_set_preview_widget().
func (v *FileChooser) SetPreviewWidgetActive(active bool)
SetPreviewWidgetActive is a wrapper around gtk_file_chooser_set_preview_widget_active().
func (v *FileChooser) SetSelectMultiple(value bool)
SetSelectMultiple is a wrapper around gtk_file_chooser_set_select_multiple().
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 struct {
Box
// Interfaces
FileChooser
}FileChooserButton is a representation of GTK's GtkFileChooserButton.
func FileChooserButtonNew(title string, action FileChooserAction) (*FileChooserButton, error)
FileChooserButtonNew is a wrapper around gtk_file_chooser_button_new().
type FileChooserDialog struct {
Dialog
// Interfaces
FileChooser
}FileChooserDialog is a representation of GTK's GtkFileChooserDialog.
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(
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 struct {
NativeDialog
// Interfaces
FileChooser
}FileChooserNativeDialog is a representation of GTK's GtkFileChooserNative.
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 (v *FileChooserNativeDialog) GetAcceptLabel() (string, error)
GetAcceptLabel() is a wrapper around gtk_file_chooser_native_get_accept_label().
func (v *FileChooserNativeDialog) GetCancelLabel() (string, error)
GetCancelLabel() is a wrapper around gtk_file_chooser_native_get_cancel_label().
func (v *FileChooserNativeDialog) SetAcceptLabel(accept_label string)
SetAcceptLabel is a wrapper around gtk_file_chooser_native_set_accept_label().
func (v *FileChooserNativeDialog) SetCancelLabel(cancel_label string)
SetCancelLabel is a wrapper around gtk_file_chooser_native_set_cancel_label().
type FileChooserWidget struct {
Box
// Interfaces
FileChooser
}FileChooserWidget is a representation of GTK's GtkFileChooserWidget.
func FileChooserWidgetNew(action FileChooserAction) (*FileChooserWidget, error)
FileChooserWidgetNew is a wrapper around gtk_file_chooser_widget_new().
FileChoser is a representation of GTK's GtkFileFilter GInterface.
func FileFilterNew() (*FileFilter, error)
FileFilterNew is a wrapper around gtk_file_filter_new().
func (v *FileFilter) AddPattern(pattern string)
AddPattern is a wrapper around gtk_file_filter_add_pattern().
func (v *FileFilter) AddPixbufFormats()
AddPixbufFormats is a wrapper around gtk_file_filter_add_pixbuf_formats().
func (v *FileFilter) SetName(name string)
SetName is a wrapper around gtk_file_filter_set_name().
* FlowBox
FlowBoxNew is a wrapper around gtk_flow_box_new()
GetActivateOnSingleClick gtk_flow_box_get_activate_on_single_click()
func (fb *FlowBox) GetChildAtIndex(idx int) *FlowBoxChild
GetChildAtIndex is a wrapper around gtk_flow_box_get_child_at_index()
GetColumnSpacing is a wrapper around gtk_flow_box_get_column_spacing()
GetHomogeneous is a wrapper around gtk_flow_box_get_homogeneous()
GetMaxChildrenPerLine is a wrapper around gtk_flow_box_get_max_children_per_line()
GetMinChildrenPerLine is a wrapper around gtk_flow_box_get_min_children_per_line()
GetRowSpacing is a wrapper around gtk_flow_box_get_row_spacing()
func (fb *FlowBox) GetSelectedChildren() (rv []*FlowBoxChild)
GetSelectedChildren is a wrapper around gtk_flow_box_get_selected_children()
func (fb *FlowBox) GetSelectionMode() SelectionMode
GetSelectionMode is a wrapper around gtk_flow_box_get_selection_mode()
Insert is a wrapper around gtk_flow_box_insert()
SelectAll is a wrapper around gtk_flow_box_select_all()
func (fb *FlowBox) SelectChild(child *FlowBoxChild)
SelectChild is a wrapper around gtk_flow_box_select_child()
SetActivateOnSingleClick is a wrapper around gtk_flow_box_set_activate_on_single_click()
SetColumnSpacing is a wrapper around gtk_flow_box_set_column_spacing()
func (fb *FlowBox) SetHAdjustment(adjustment *Adjustment)
SetHAdjustment is a wrapper around gtk_flow_box_set_hadjustment()
SetHomogeneous is a wrapper around gtk_flow_box_set_homogeneous()
SetMaxChildrenPerLine is a wrapper around gtk_flow_box_set_max_children_per_line()
SetMinChildrenPerLine is a wrapper around gtk_flow_box_set_min_children_per_line()
SetRowSpacing is a wrapper around gtk_flow_box_set_row_spacing()
func (fb *FlowBox) SetSelectionMode(mode SelectionMode)
SetSelectionMode is a wrapper around gtk_flow_box_set_selection_mode()
func (fb *FlowBox) SetVAdjustment(adjustment *Adjustment)
SetVAdjustment is a wrapper around gtk_flow_box_set_vadjustment()
UnselectAll is a wrapper around gtk_flow_box_unselect_all()
func (fb *FlowBox) UnselectChild(child *FlowBoxChild)
UnselectChild is a wrapper around gtk_flow_box_unselect_child()
* FlowBoxChild
func FlowBoxChildNew() (*FlowBoxChild, error)
FlowBoxChildNew is a wrapper around gtk_flow_box_child_new()
func (fbc *FlowBoxChild) Changed()
Changed is a wrapper around gtk_flow_box_child_changed()
func (fbc *FlowBoxChild) GetIndex() int
GetIndex is a wrapper around gtk_flow_box_child_get_index()
func (fbc *FlowBoxChild) IsSelected() bool
IsSelected is a wrapper around gtk_flow_box_child_is_selected()
type FontButton struct {
Button
// Interfaces
FontChooser
}FontButton is a representation of GTK's GtkFontButton.
func FontButtonNew() (*FontButton, error)
FontButtonNew is a wrapper around gtk_font_button_new().
func FontButtonNewWithFont(fontname string) (*FontButton, error)
FontButtonNewWithFont is a wrapper around gtk_font_button_new_with_font().
FontChooser is a representation of GTK's GtkFontChooser GInterface.
func (v *FontChooser) GetFont() string
GetFont is a wrapper around gtk_font_chooser_get_font().
func (v *FontChooser) SetFont(font string)
SetFont is a wrapper around gtk_font_chooser_set_font().
Frame is a representation of GTK's GtkFrame.
FrameNew is a wrapper around gtk_frame_new().
GetLabel is a wrapper around gtk_frame_get_label().
GetLabelAlign is a wrapper around gtk_frame_get_label_align().
GetLabelWidget is a wrapper around gtk_frame_get_label_widget().
func (v *Frame) GetShadowType() ShadowType
GetShadowType is a wrapper around gtk_frame_get_shadow_type().
SetLabel is a wrapper around gtk_frame_set_label().
SetLabelAlign is a wrapper around gtk_frame_set_label_align().
SetLabelWidget is a wrapper around gtk_frame_set_label_widget().
func (v *Frame) SetShadowType(t ShadowType)
SetShadowType is a wrapper around gtk_frame_set_shadow_type().
type Grid struct {
Container
// Interfaces
Orientable
}Grid is a representation of GTK's GtkGrid.
GridNew() is a wrapper around gtk_grid_new().
Attach() is a wrapper around gtk_grid_attach().
func (v *Grid) AttachNextTo(child, sibling IWidget, side PositionType, width, height int)
AttachNextTo() is a wrapper around gtk_grid_attach_next_to().
GetChildAt() is a wrapper around gtk_grid_get_child_at().
GetColumnHomogeneous() is a wrapper around gtk_grid_get_column_homogeneous().
GetColumnSpacing() is a wrapper around gtk_grid_get_column_spacing().
GetRowHomogeneous() is a wrapper around gtk_grid_get_row_homogeneous().
GetRowSpacing() is a wrapper around gtk_grid_get_row_spacing().
InsertColumn() is a wrapper around gtk_grid_insert_column().
func (v *Grid) InsertNextTo(sibling IWidget, side PositionType)
InsertNextTo() is a wrapper around gtk_grid_insert_next_to()
InsertRow() is a wrapper around gtk_grid_insert_row().
RemoveColumn() is a wrapper around gtk_grid_remove_column().
RemoveRow() is a wrapper around gtk_grid_remove_row().
SetColumnHomogeneous() is a wrapper around gtk_grid_set_column_homogeneous().
SetColumnSpacing() is a wrapper around gtk_grid_set_column_spacing().
SetRowHomogeneous() is a wrapper around gtk_grid_set_row_homogeneous().
SetRowSpacing() is a wrapper around gtk_grid_set_row_spacing().
HeaderBarNew is a wrapper around gtk_header_bar_new().
GetCustomTitle is a wrapper around gtk_header_bar_get_custom_title().
GetDecorationLayout is a wrapper around gtk_header_bar_get_decoration_layout().
GetHasSubtitle is a wrapper around gtk_header_bar_get_has_subtitle().
GetShowCloseButton is a wrapper around gtk_header_bar_get_show_close_button().
GetSubtitle is a wrapper around gtk_header_bar_get_subtitle().
GetTitle is a wrapper around gtk_header_bar_get_title().
PackEnd is a wrapper around gtk_header_bar_pack_end().
PackStart is a wrapper around gtk_header_bar_pack_start().
SetCustomTitle is a wrapper around gtk_header_bar_set_custom_title().
SetDecorationLayout is a wrapper around gtk_header_bar_set_decoration_layout().
SetHasSubtitle is a wrapper around gtk_header_bar_set_has_subtitle().
SetShowCloseButton is a wrapper around gtk_header_bar_set_show_close_button().
SetSubtitle is a wrapper around gtk_header_bar_set_subtitle().
SetTitle is a wrapper around gtk_header_bar_set_title().
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 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 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 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 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 interface {
// contains filtered or unexported methods
}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 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 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 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 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 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 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 interface {
// contains filtered or unexported methods
}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 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 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 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 interface {
// contains filtered or unexported methods
}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.
IconLookupFlags is a representation of GTK's GtkIconLookupFlags.
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
)IconTheme is a representation of GTK's GtkIconTheme
IconThemeGetDefault is a wrapper around gtk_icon_theme_get_default().
IconThemeGetForScreen is a wrapper around gtk_icon_theme_get_for_screen().
func (v *IconTheme) LoadIcon(iconName string, size int, flags IconLookupFlags) (*gdk.Pixbuf, error)
LoadIcon is a wrapper around gtk_icon_theme_load_icon().
IconView is a representation of GTK's GtkIconView.
IconViewNew is a wrapper around gtk_icon_view_new().
func IconViewNewWithModel(model ITreeModel) (*IconView, error)
IconViewNewWithModel is a wrapper around gtk_icon_view_new_with_model().
ActivateOnSingleClick is a wrapper around gtk_icon_view_get_activate_on_single_click().
ConvertWidgetToBinWindowCoords is a wrapper around gtk_icon_view_convert_widget_to_bin_window_coords().
GetCellRect is a wrapper around gtk_icon_view_get_cell_rect().
GetColumnSpacing is a wrapper around gtk_icon_view_get_column_spacing().
GetColumns is a wrapper around gtk_icon_view_get_columns().
func (v *IconView) GetCursor() (*TreePath, *CellRenderer)
GetCursor is a wrapper around gtk_icon_view_get_cursor().
func (v *IconView) GetItemAtPos(x, y int) (*TreePath, *CellRenderer)
GetItemAtPos is a wrapper around gtk_icon_view_get_item_at_pos().
func (v *IconView) GetItemOrientation() Orientation
GetItemOrientation is a wrapper around gtk_icon_view_get_item_orientation().
GetItemPadding is a wrapper around gtk_icon_view_get_item_padding().
GetItemRow is a wrapper around gtk_icon_view_get_item_row().
GetItemWidth is a wrapper around gtk_icon_view_get_item_width().
GetMargin is a wrapper around gtk_icon_view_get_margin().
GetMarkupColumn is a wrapper around gtk_icon_view_get_markup_column().
GetModel is a wrapper around gtk_icon_view_get_model().
GetPathAtPos is a wrapper around gtk_icon_view_get_path_at_pos().
GetPixbufColumn is a wrapper around gtk_icon_view_get_pixbuf_column().
GetReorderable is a wrapper around gtk_icon_view_get_reorderable().
GetRowSpacing is a wrapper around gtk_icon_view_get_row_spacing().
GetSelectedItems is a wrapper around gtk_icon_view_unselect_path().
func (v *IconView) GetSelectionMode() SelectionMode
GetSelectionMode is a wrapper around gtk_icon_view_get_selection_mode().
GetSpacing is a wrapper around gtk_icon_view_get_spacing().
GetTextColumn is a wrapper around gtk_icon_view_get_text_column().
GetTooltipColumn is a wrapper around gtk_icon_view_get_tooltip_column().
func (v *IconView) GetTooltipContext(x, y int, keyboardTip bool) (*TreeModel, *TreePath, *TreeIter)
GetTooltipContext is a wrapper around gtk_icon_view_get_tooltip_context().
GetVisibleRange is a wrapper around gtk_icon_view_get_visible_range().
ItemActivated is a wrapper around gtk_icon_view_item_activated().
PathIsSelected is a wrapper around gtk_icon_view_path_is_selected().
ScrollToPath is a wrapper around gtk_icon_view_scroll_to_path().
SelectAll is a wrapper around gtk_icon_view_select_all().
SelectPath is a wrapper around gtk_icon_view_select_path().
SetActivateOnSingleClick is a wrapper around gtk_icon_view_set_activate_on_single_click().
SetColumnSpacing is a wrapper around gtk_icon_view_set_column_spacing().
SetColumns is a wrapper around gtk_icon_view_set_columns().
func (v *IconView) SetCursor(path *TreePath, cell *CellRenderer, startEditing bool)
SetCursor is a wrapper around gtk_icon_view_set_selection_mode().
func (v *IconView) SetItemOrientation(orientation Orientation)
SetItemOrientation is a wrapper around gtk_icon_view_set_item_orientation().
SetItemPadding is a wrapper around gtk_icon_view_set_item_padding().
SetItemWidth is a wrapper around gtk_icon_view_set_item_width().
SetMargin is a wrapper around gtk_icon_view_set_margin().
SetMarkupColumn is a wrapper around gtk_icon_view_set_markup_column().
func (v *IconView) SetModel(model ITreeModel)
SetModel is a wrapper around gtk_icon_view_set_model().
SetPixbufColumn is a wrapper around gtk_icon_view_set_pixbuf_column().
SetReorderable is a wrapper around gtk_icon_view_set_reorderable().
SetRowSpacing is a wrapper around gtk_icon_view_set_row_spacing().
func (v *IconView) SetSelectionMode(mode SelectionMode)
SetSelectionMode is a wrapper around gtk_icon_view_set_selection_mode().
SetSpacing is a wrapper around gtk_icon_view_set_spacing().
SetTextColumn is a wrapper around gtk_icon_view_set_text_column().
func (v *IconView) SetTooltipCell(tooltip *Tooltip, path *TreePath, cell *CellRenderer)
SetTooltipCell is a wrapper around gtk_icon_view_set_tooltip_cell().
SetTooltipColumn is a wrapper around gtk_icon_view_set_tooltip_column().
SetTooltipItem is a wrapper around gtk_icon_view_set_tooltip_item().
UnselectAll is a wrapper around gtk_icon_view_unselect_all().
UnselectPath is a wrapper around gtk_icon_view_unselect_path().
Image is a representation of GTK's GtkImage.
ImageNew() is a wrapper around gtk_image_new().
ImageNewFromFile() is a wrapper around gtk_image_new_from_file().
ImageNewFromIconName() is a wrapper around gtk_image_new_from_icon_name().
ImageNewFromPixbuf is a wrapper around gtk_image_new_from_pixbuf().
ImageNewFromResource() is a wrapper around gtk_image_new_from_resource().
Clear() is a wrapper around gtk_image_clear().
GetIconName() is a wrapper around gtk_image_get_icon_name().
GetPixbuf() is a wrapper around gtk_image_get_pixbuf().
GetPixelSize() is a wrapper around gtk_image_get_pixel_size().
GetStorageType() is a wrapper around gtk_image_get_storage_type().
SetFromFile() is a wrapper around gtk_image_set_from_file().
SetFromIconName() is a wrapper around gtk_image_set_from_icon_name().
SetFromFixbuf is a wrapper around gtk_image_set_from_pixbuf().
SetFromResource() is a wrapper around gtk_image_set_from_resource().
SetPixelSize() is a wrapper around gtk_image_set_pixel_size().
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
)func (v *InfoBar) AddActionWidget(w IWidget, responseId ResponseType)
func (v *InfoBar) AddButton(buttonText string, responseId ResponseType)
func (v *InfoBar) GetMessageType() MessageType
func (v *InfoBar) SetDefaultResponse(responseId ResponseType)
func (v *InfoBar) SetMessageType(messageType MessageType)
func (v *InfoBar) SetResponseSensitive(responseId ResponseType, setting bool)
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
)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
)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
)Label is a representation of GTK's GtkLabel.
LabelNew is a wrapper around gtk_label_new().
LabelNewWithMnemonic is a wrapper around gtk_label_new_with_mnemonic().
GetAngle is a wrapper around gtk_label_get_angle().
GetCurrentUri is a wrapper around gtk_label_get_current_uri().
func (v *Label) GetEllipsize() pango.EllipsizeMode
GetEllipsize is a wrapper around gtk_label_get_ellipsize().
func (v *Label) GetJustify() Justification
GetJustify is a wrapper around gtk_label_get_justify().
GetLabel is a wrapper around gtk_label_get_label().
GetLineWrap is a wrapper around gtk_label_get_line_wrap().
GetLines() is a wrapper around gtk_label_get_lines().
GetMaxWidthChars is a wrapper around gtk_label_get_max_width_chars().
GetMnemonicKeyval is a wrapper around gtk_label_get_mnemonic_keyval().
GetSelectable is a wrapper around gtk_label_get_selectable().
GetSelectionBounds is a wrapper around gtk_label_get_selection_bounds().
GetSingleLineMode is a wrapper around gtk_label_get_single_line_mode().
GetText is a wrapper around gtk_label_get_text().
GetTrackVisitedLinks is a wrapper around gtk_label_get_track_visited_links().
GetUseMarkup is a wrapper around gtk_label_get_use_markup().
GetUseUnderline is a wrapper around gtk_label_get_use_underline().
GetWidthChars is a wrapper around gtk_label_get_width_chars().
GetXAlign is a wrapper around gtk_label_get_xalign().
GetYAlign is a wrapper around gtk_label_get_yalign().
SelectRegion is a wrapper around gtk_label_select_region().
SetAngle is a wrapper around gtk_label_set_angle().
func (v *Label) SetEllipsize(mode pango.EllipsizeMode)
SetEllipsize is a wrapper around gtk_label_set_ellipsize().
func (v *Label) SetJustify(jtype Justification)
SetJustify is a wrapper around gtk_label_set_justify().
SetLabel is a wrapper around gtk_label_set_label().
SetLineWrap is a wrapper around gtk_label_set_line_wrap().
SetLineWrapMode is a wrapper around gtk_label_set_line_wrap_mode().
SetLines() is a wrapper around gtk_label_set_lines().
SetMarkup is a wrapper around gtk_label_set_markup().
SetMarkupWithMnemonic is a wrapper around gtk_label_set_markup_with_mnemonic().
SetMaxWidthChars is a wrapper around gtk_label_set_max_width_chars().
SetMnemonicWidget is a wrapper around gtk_label_set_mnemonic_widget().
SetPattern is a wrapper around gtk_label_set_pattern().
SetSelectable is a wrapper around gtk_label_set_selectable().
SetSingleLineMode is a wrapper around gtk_label_set_single_line_mode().
SetText is a wrapper around gtk_label_set_text().
SetTrackVisitedLinks is a wrapper around gtk_label_set_track_visited_links().
SetUseMarkup is a wrapper around gtk_label_set_use_markup().
SetUseUnderline is a wrapper around gtk_label_set_use_underline().
SetWidthChars is a wrapper around gtk_label_set_width_chars().
SetXAlign is a wrapper around gtk_label_set_xalign().
SetYAlign is a wrapper around gtk_label_set_yalign().
Layout is a representation of GTK's GtkLayout.
func LayoutNew(hadjustment, vadjustment *Adjustment) (*Layout, error)
LayoutNew is a wrapper around gtk_layout_new().
Layout.GetSize is a wrapper around gtk_layout_get_size
Layout.Move is a wrapper around gtk_layout_move().
Layout.Put is a wrapper around gtk_layout_put().
Layout.SetSize is a wrapper around gtk_layout_set_size
LevelBarNew() is a wrapper around gtk_level_bar_new().
LevelBarNewForInterval() is a wrapper around gtk_level_bar_new_for_interval().
AddOffsetValue() is a wrapper around gtk_level_bar_add_offset_value().
GetInverted() is a wrapper around gtk_level_bar_get_inverted().
GetMaxValue() is a wrapper around gtk_level_bar_get_max_value().
GetMinValue() is a wrapper around gtk_level_bar_get_min_value().
func (v *LevelBar) GetMode() LevelBarMode
GetMode() is a wrapper around gtk_level_bar_get_mode().
GetOffsetValue() is a wrapper around gtk_level_bar_get_offset_value().
GetValue() is a wrapper around gtk_level_bar_get_value().
RemoveOffsetValue() is a wrapper around gtk_level_bar_remove_offset_value().
SetInverted() is a wrapper around gtk_level_bar_set_inverted().
SetMaxValue() is a wrapper around gtk_level_bar_set_max_value().
SetMinValue() is a wrapper around gtk_level_bar_set_min_value().
func (v *LevelBar) SetMode(m LevelBarMode)
SetMode() is a wrapper around gtk_level_bar_set_mode().
SetValue() is a wrapper around gtk_level_bar_set_value().
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
)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
)LinkButton is a representation of GTK's GtkLinkButton.
func LinkButtonNew(label string) (*LinkButton, error)
LinkButtonNew is a wrapper around gtk_link_button_new().
func LinkButtonNewWithLabel(uri, label string) (*LinkButton, error)
LinkButtonNewWithLabel is a wrapper around gtk_link_button_new_with_label().
func (v *LinkButton) GetUri() string
GetUri is a wrapper around gtk_link_button_get_uri().
func (v *LinkButton) SetUri(uri string)
SetUri is a wrapper around gtk_link_button_set_uri().
ListBox is a representation of GTK's GtkListBox.
ListBoxNew is a wrapper around gtk_list_box_new().
func (v *ListBox) DragHighlightRow(row *ListBoxRow)
DragHighlightRow is a wrapper around gtk_list_box_drag_highlight_row()
GetActivateOnSingleClick is a wrapper around gtk_list_box_get_activate_on_single_click().
func (v *ListBox) GetAdjustment() *Adjustment
GetAdjustment is a wrapper around gtk_list_box_get_adjustment().
func (v *ListBox) GetRowAtIndex(index int) *ListBoxRow
GetRowAtIndex is a wrapper around gtk_list_box_get_row_at_index().
func (v *ListBox) GetRowAtY(y int) *ListBoxRow
GetRowAtY is a wrapper around gtk_list_box_get_row_at_y().
func (v *ListBox) GetSelectedRow() *ListBoxRow
GetSelectedRow is a wrapper around gtk_list_box_get_selected_row().
func (v *ListBox) GetSelectionMode() SelectionMode
GetSelectionMode is a wrapper around gtk_list_box_get_selection_mode()
Insert is a wrapper around gtk_list_box_insert().
InvalidateFilter is a wrapper around gtk_list_box_invalidate_filter().
InvalidateHeaders is a wrapper around gtk_list_box_invalidate_headers().
InvalidateSort is a wrapper around gtk_list_box_invalidate_sort().
Prepend is a wrapper around gtk_list_box_prepend().
func (v *ListBox) SelectRow(row *ListBoxRow)
SelectRow is a wrapper around gtk_list_box_select_row().
SetActivateOnSingleClick is a wrapper around gtk_list_box_set_activate_on_single_click().
func (v *ListBox) SetAdjustment(adjustment *Adjustment)
SetAdjustment is a wrapper around gtk_list_box_set_adjustment().
SetPlaceholder is a wrapper around gtk_list_box_set_placeholder().
func (v *ListBox) SetSelectionMode(mode SelectionMode)
SetSelectionMode is a wrapper around gtk_list_box_set_selection_mode().
ListBoxRow is a representation of GTK's GtkListBoxRow.
func ListBoxRowNew() (*ListBoxRow, error)
func (v *ListBoxRow) Changed()
Changed is a wrapper around gtk_list_box_row_changed().
func (v *ListBoxRow) GetHeader() *Widget
GetHeader is a wrapper around gtk_list_box_row_get_header().
func (v *ListBoxRow) GetIndex() int
GetIndex is a wrapper around gtk_list_box_row_get_index()
func (v *ListBoxRow) SetHeader(header IWidget)
SetHeader is a wrapper around gtk_list_box_row_get_header().
ListStore is a representation of GTK's GtkListStore.
ListStoreNew is a wrapper around gtk_list_store_newv().
Append() is a wrapper around gtk_list_store_append().
Clear() is a wrapper around gtk_list_store_clear().
InsertAfter() is a wrapper around gtk_list_store_insert_after().
InsertBefore() is a wrapper around gtk_list_store_insert_before().
func (v *ListStore) InsertWithValues(iter *TreeIter, position int, inColumns []int, inValues []interface{}) error
InsertWithValues() is a wrapper around gtk_list_store_insert_with_valuesv().
IterIsValid() is a wrapper around gtk_list_store_iter_is_valid().
MoveAfter() is a wrapper around gtk_list_store_move_after().
MoveBefore() is a wrapper around gtk_list_store_move_before().
Prepend() is a wrapper around gtk_list_store_prepend().
Remove is a wrapper around gtk_list_store_remove().
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);
SetSortColumnId() is a wrapper around gtk_tree_sortable_set_sort_column_id().
SetValue is a wrapper around gtk_list_store_set_value().
Swap() is a wrapper around gtk_list_store_swap().
Menu is a representation of GTK's GtkMenu.
MenuNew() is a wrapper around gtk_menu_new().
func (v *Menu) GetAccelGroup() *AccelGroup
GetAccelGroup is a wrapper around gtk_menu_get_accel_group().
GetAccelPath is a wrapper around gtk_menu_get_accel_path().
Popdown() is a wrapper around gtk_menu_popdown().
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()
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().
SetAccelPath is a wrapper around gtk_menu_set_accel_path().
MenuBar is a representation of GTK's GtkMenuBar.
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().
MenuItem is a representation of GTK's GtkMenuItem.
MenuItemNew() is a wrapper around gtk_menu_item_new().
MenuItemNewWithLabel() is a wrapper around gtk_menu_item_new_with_label().
MenuItemNewWithMnemonic() is a wrapper around gtk_menu_item_new_with_mnemonic().
GetAccelPath is a wrapper around gtk_menu_item_get_accel_path().
Gets text on the menu_item label
SetAccelPath is a wrapper around gtk_menu_item_set_accel_path().
Sets text on the menu_item label
SetSubmenu() is a wrapper around gtk_menu_item_set_submenu().
MenuShell is a representation of GTK's GtkMenuShell.
ActivateItem is a wrapper around gtk_menu_shell_activate_item().
Append is a wrapper around gtk_menu_shell_append().
Cancel is a wrapper around gtk_menu_shell_cancel().
Deactivate is a wrapper around gtk_menu_shell_deactivate().
Deselect is a wrapper around gtk_menu_shell_deselect().
Insert is a wrapper around gtk_menu_shell_insert().
Prepend is a wrapper around gtk_menu_shell_prepend().
SelectFirst is a wrapper around gtk_menu_shell_select_first().
SelectItem is a wrapper around gtk_menu_shell_select_item().
SetTakeFocus is a wrapper around gtk_menu_shell_set_take_focus().
MessageDialog is a representation of GTK's GtkMessageDialog.
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(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 (v *MessageDialog) FormatSecondaryMarkup(format string, a ...interface{})
FormatSecondaryMarkup is a wrapper around gtk_message_dialog_format_secondary_text().
func (v *MessageDialog) FormatSecondaryText(format string, a ...interface{})
FormatSecondaryText is a wrapper around gtk_message_dialog_format_secondary_text().
func (v *MessageDialog) SetMarkup(str string)
SetMarkup is a wrapper around gtk_message_dialog_set_markup().
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 struct {
glib.InitiallyUnowned
}NativeDialog is a representation of GTK's GtkNativeDialog.
func (v *NativeDialog) Destroy()
Destroy() is a wrapper around gtk_native_dialog_destroy().
func (v *NativeDialog) GetModal() bool
GetModal() is a wrapper around gtk_native_dialog_get_modal().
func (v *NativeDialog) GetTitle() (string, error)
GetTitle() is a wrapper around gtk_native_dialog_get_title().
func (v *NativeDialog) GetTransientFor() (*Window, error)
GetTransientFor() is a wrapper around gtk_native_dialog_get_transient_for().
func (v *NativeDialog) GetVisible() bool
GetVisible() is a wrapper around gtk_native_dialog_get_visible().
func (v *NativeDialog) Hide()
Hide() is a wrapper around gtk_native_dialog_hide().
func (v *NativeDialog) Run() int
Run() is a wrapper around gtk_native_dialog_run().
func (v *NativeDialog) SetModal(modal bool)
SetModal is a wrapper around gtk_native_dialog_set_modal().
func (v *NativeDialog) SetTitle(title string)
SetTitle is a wrapper around gtk_native_dialog_set_title().
func (v *NativeDialog) SetTransientFor(parent IWindow)
SetTransientFor() is a wrapper around gtk_native_dialog_set_transient_for().
func (v *NativeDialog) Show()
Show() is a wrapper around gtk_native_dialog_show().
Notebook is a representation of GTK's GtkNotebook.
NotebookNew() is a wrapper around gtk_notebook_new().
AppendPage() is a wrapper around gtk_notebook_append_page().
AppendPageMenu() is a wrapper around gtk_notebook_append_page_menu().
GetActionWidget() is a wrapper around gtk_notebook_get_action_widget().
GetCurrentPage() is a wrapper around gtk_notebook_get_current_page().
GetGroupName() is a wrapper around gtk_notebook_get_group_name().
GetMenuLabel() is a wrapper around gtk_notebook_get_menu_label().
GetMenuLabelText() is a wrapper around gtk_notebook_get_menu_label_text().
GetNPages() is a wrapper around gtk_notebook_get_n_pages().
GetNthPage() is a wrapper around gtk_notebook_get_nth_page().
GetScrollable() is a wrapper around gtk_notebook_get_scrollable().
GetShowBorder() is a wrapper around gtk_notebook_get_show_border().
GetShowTabs() is a wrapper around gtk_notebook_get_show_tabs().
GetTabDetachable() is a wrapper around gtk_notebook_get_tab_detachable().
GetTabLabel() is a wrapper around gtk_notebook_get_tab_label().
GetTabLabelText() is a wrapper around gtk_notebook_get_tab_label_text().
func (v *Notebook) GetTabPos() PositionType
GetTabPos() is a wrapper around gtk_notebook_get_tab_pos().
GetTabReorderable() is a wrapper around gtk_notebook_get_tab_reorderable().
InsertPage() is a wrapper around gtk_notebook_insert_page().
func (v *Notebook) InsertPageMenu(child IWidget, tabLabel IWidget, menuLabel IWidget, position int) int
InsertPageMenu() is a wrapper around gtk_notebook_insert_page_menu().
NextPage() is a wrapper around gtk_notebook_next_page().
PageNum() is a wrapper around gtk_notebook_page_num().
PopupDisable() is a wrapper around gtk_notebook_popup_disable().
PopupEnable() is a wrapper around gtk_notebook_popup_enable().
PrependPage() is a wrapper around gtk_notebook_prepend_page().
PrependPageMenu() is a wrapper around gtk_notebook_prepend_page_menu().
PrevPage() is a wrapper around gtk_notebook_prev_page().
RemovePage() is a wrapper around gtk_notebook_remove_page().
ReorderChild() is a wrapper around gtk_notebook_reorder_child().
SetActionWidget() is a wrapper around gtk_notebook_set_action_widget().
SetCurrentPage() is a wrapper around gtk_notebook_set_current_page().
SetGroupName() is a wrapper around gtk_notebook_set_group_name().
SetMenuLabel() is a wrapper around gtk_notebook_set_menu_label().
SetMenuLabelText() is a wrapper around gtk_notebook_set_menu_label_text().
SetScrollable() is a wrapper around gtk_notebook_set_scrollable().
SetShowBorder() is a wrapper around gtk_notebook_set_show_border().
SetShowTabs() is a wrapper around gtk_notebook_set_show_tabs().
SetTabDetachable() is a wrapper around gtk_notebook_set_tab_detachable().
SetTabLabel() is a wrapper around gtk_notebook_set_tab_label().
SetTabLabelText() is a wrapper around gtk_notebook_set_tab_label_text().
func (v *Notebook) SetTabPos(pos PositionType)
SetTabPos() is a wrapper around gtk_notebook_set_tab_pos().
SetTabReorderable() is a wrapper around gtk_notebook_set_tab_reorderable().
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
)OffscreenWindow is a representation of GTK's GtkOffscreenWindow.
func OffscreenWindowNew() (*OffscreenWindow, error)
OffscreenWindowNew is a wrapper around gtk_offscreen_window_new().
func (v *OffscreenWindow) GetPixbuf() (*gdk.Pixbuf, error)
GetPixbuf is a wrapper around gtk_offscreen_window_get_pixbuf().
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.
Orientable is a representation of GTK's GtkOrientable GInterface.
func (v *Orientable) GetOrientation() Orientation
GetOrientation() is a wrapper around gtk_orientable_get_orientation().
func (v *Orientable) SetOrientation(orientation Orientation)
SetOrientation() is a wrapper around gtk_orientable_set_orientation().
Orientation is a representation of GTK's GtkOrientation.
const (
ORIENTATION_HORIZONTAL Orientation = C.GTK_ORIENTATION_HORIZONTAL
ORIENTATION_VERTICAL Orientation = C.GTK_ORIENTATION_VERTICAL
)Overlay is a representation of GTK's GtkOverlay.
OverlayNew() is a wrapper around gtk_overlay_new().
AddOverlay() is a wrapper around gtk_overlay_add_overlay().
PackType is a representation of GTK's GtkPackType.
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
)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
)* GtkPageSetup
PageSetupNew() is a wrapper around gtk_page_setup_new().
PageSetupNewFromFile() is a wrapper around gtk_page_setup_new_from_file().
func PrintRunPageSetupDialog(parent *Window, pageSetup *PageSetup, settings *PrintSettings) *PageSetup
PrintRunPageSetupDialog() is a wrapper around gtk_print_run_page_setup_dialog().
Copy() is a wrapper around gtk_page_setup_copy().
GetBottomMargin() is a wrapper around gtk_page_setup_get_bottom_margin().
GetLeftMargin() is a wrapper around gtk_page_setup_get_left_margin().
func (ps *PageSetup) GetOrientation() PageOrientation
GetOrientation() is a wrapper around gtk_page_setup_get_orientation().
GetPageHeight() is a wrapper around gtk_page_setup_get_page_height().
GetPageWidth() is a wrapper around gtk_page_setup_get_page_width().
GetPaperHeight() is a wrapper around gtk_page_setup_get_paper_height().
GetPaperSize() is a wrapper around gtk_page_setup_get_paper_size().
GetPaperWidth() is a wrapper around gtk_page_setup_get_paper_width().
GetRightMargin() is a wrapper around gtk_page_setup_get_right_margin().
GetTopMargin() is a wrapper around gtk_page_setup_get_top_margin().
PageSetupLoadFile() is a wrapper around gtk_page_setup_load_file().
PageSetupToFile() is a wrapper around gtk_page_setup_to_file().
SetBottomMargin() is a wrapper around gtk_page_setup_set_bottom_margin().
SetLeftMargin() is a wrapper around gtk_page_setup_set_left_margin().
func (ps *PageSetup) SetOrientation(orientation PageOrientation)
SetOrientation() is a wrapper around gtk_page_setup_set_orientation().
SetPaperSize() is a wrapper around gtk_page_setup_set_paper_size().
SetPaperSizeAndDefaultMargins() is a wrapper around gtk_page_setup_set_paper_size_and_default_margins().
SetRightMargin() is a wrapper around gtk_page_setup_set_right_margin().
SetTopMargin() is a wrapper around gtk_page_setup_set_top_margin().
Paned is a representation of GTK's GtkPaned.
func PanedNew(orientation Orientation) (*Paned, error)
PanedNew() is a wrapper around gtk_paned_new().
Add1() is a wrapper around gtk_paned_add1().
Add2() is a wrapper around gtk_paned_add2().
GetChild1() is a wrapper around gtk_paned_get_child1().
GetChild2() is a wrapper around gtk_paned_get_child2().
GetHandleWindow() is a wrapper around gtk_paned_get_handle_window().
GetPosition() is a wrapper around gtk_paned_get_position().
GetWideHandle is a wrapper around gtk_paned_get_wide_handle().
Pack1() is a wrapper around gtk_paned_pack1().
Pack2() is a wrapper around gtk_paned_pack2().
SetPosition() is a wrapper around gtk_paned_set_position().
SetWideHandle is a wrapper around gtk_paned_set_wide_handle().
PaperSize is a representation of GTK's GtkPaperSize
PaperSizeNew() is a wrapper around gtk_paper_size_new().
func PaperSizeNewCustom(name, displayName string, width, height float64, unit Unit) (*PaperSize, error)
PaperSizeNewCustom() is a wrapper around gtk_paper_size_new_custom().
PaperSizeNewFromIpp is a wrapper around gtk_paper_size_new_from_ipp().
PaperSizeNewFromPPD() is a wrapper around gtk_paper_size_new_from_ppd().
Copy() is a wrapper around gtk_paper_size_copy().
GetDefaultBottomMargin() is a wrapper around gtk_paper_size_get_default_bottom_margin().
GetDefaultLeftMargin() is a wrapper around gtk_paper_size_get_default_left_margin().
GetDefaultRightMargin() is a wrapper around gtk_paper_size_get_default_right_margin().
GetDefaultTopMargin() is a wrapper around gtk_paper_size_get_default_top_margin().
GetDisplayName() is a wrapper around gtk_paper_size_get_display_name().
GetHeight() is a wrapper around gtk_paper_size_get_height().
GetName() is a wrapper around gtk_paper_size_get_name().
GetPPDName() is a wrapper around gtk_paper_size_get_ppd_name().
GetWidth() is a wrapper around gtk_paper_size_get_width().
IsCustom() is a wrapper around gtk_paper_size_is_custom().
IsEqual() is a wrapper around gtk_paper_size_is_equal().
IsIPP() is a wrapper around gtk_paper_size_is_ipp().
SetSize() is a wrapper around gtk_paper_size_set_size().
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
)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
)TODO(sjon): Implement GtkPopover GtkPopover
gtk_popover_new()
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
)PrintContext is a representation of GTK's GtkPrintContext.
func (pc *PrintContext) CreatePangoContext() *pango.Context
CreatePangoContext() is a wrapper around gtk_print_context_create_pango_context().
func (pc *PrintContext) CreatePangoLayout() *pango.Layout
CreatePangoLayout() is a wrapper around gtk_print_context_create_pango_layout().
func (pc *PrintContext) GetCairoContext() *cairo.Context
GetCairoContext() is a wrapper around gtk_print_context_get_cairo_context().
func (pc *PrintContext) GetDpiX() float64
GetDpiX() is a wrapper around gtk_print_context_get_dpi_x().
func (pc *PrintContext) GetDpiY() float64
GetDpiY() is a wrapper around gtk_print_context_get_dpi_y().
GetHardMargins() is a wrapper around gtk_print_context_get_hard_margins().
func (pc *PrintContext) GetHeight() float64
GetHeight() is a wrapper around gtk_print_context_get_height().
func (pc *PrintContext) GetPageSetup() *PageSetup
GetPageSetup() is a wrapper around gtk_print_context_get_page_setup().
func (pc *PrintContext) GetPangoFontMap() *pango.FontMap
GetPangoFontMap() is a wrapper around gtk_print_context_get_pango_fontmap().
func (pc *PrintContext) GetWidth() float64
GetWidth() is a wrapper around gtk_print_context_get_width().
func (pc *PrintContext) SetCairoContext(cr *cairo.Context, dpiX, dpiY float64)
SetCairoContext() is a wrapper around gtk_print_context_set_cairo_context().
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
)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 struct {
*glib.Object
// Interfaces
PrintOperationPreview
}* GtkPrintOperation
func PrintOperationNew() (*PrintOperation, error)
PrintOperationNew() is a wrapper around gtk_print_operation_new().
func (po *PrintOperation) Cancel()
Cancel() is a wrapper around gtk_print_operation_cancel().
func (po *PrintOperation) DrawPageFinish()
DrawPageFinish() is a wrapper around gtk_print_operation_draw_page_finish().
func (po *PrintOperation) GetDefaultPageSetup() (*PageSetup, error)
GetDefaultPageSetup() is a wrapper around gtk_print_operation_get_default_page_setup().
func (po *PrintOperation) GetEmbedPageSetup() bool
GetEmbedPageSetup() is a wrapper around gtk_print_operation_get_embed_page_setup().
func (po *PrintOperation) GetHasSelection() bool
GetHasSelection() is a wrapper around gtk_print_operation_get_has_selection().
func (po *PrintOperation) GetNPagesToPrint() int
GetNPagesToPrint() is a wrapper around gtk_print_operation_get_n_pages_to_print().
func (po *PrintOperation) GetPrintSettings(ps *PageSetup) (*PrintSettings, error)
GetPrintSettings() is a wrapper around gtk_print_operation_get_print_settings().
func (po *PrintOperation) GetStatus() PrintStatus
GetStatus() is a wrapper around gtk_print_operation_get_status().
func (po *PrintOperation) GetStatusString() string
GetStatusString() is a wrapper around gtk_print_operation_get_status_string().
func (po *PrintOperation) GetSupportSelection() bool
GetSupportSelection() is a wrapper around gtk_print_operation_get_support_selection().
func (po *PrintOperation) IsFinished() bool
IsFinished() is a wrapper around gtk_print_operation_is_finished().
func (po *PrintOperation) PrintOperationGetError() error
GetError() is a wrapper around gtk_print_operation_get_error().
func (po *PrintOperation) PrintOperationSetAllowAsync(allowSync bool)
SetAllowAsync() is a wrapper around gtk_print_operation_set_allow_async().
func (po *PrintOperation) Run(action PrintOperationAction, parent *Window) (PrintOperationResult, error)
Run() is a wrapper around gtk_print_operation_run().
func (po *PrintOperation) SetCurrentPage(page int)
SetCurrentPage() is a wrapper around gtk_print_operation_set_current_page().
func (po *PrintOperation) SetCustomTabLabel(label string)
SetCustomTabLabel() is a wrapper around gtk_print_operation_set_custom_tab_label().
func (po *PrintOperation) SetDefaultPageSetup(ps *PageSetup)
SetDefaultPageSetup() is a wrapper around gtk_print_operation_set_default_page_setup().
func (po *PrintOperation) SetDeferDrawing()
SetDeferDrawing() is a wrapper around gtk_print_operation_set_defer_drawing().
func (po *PrintOperation) SetEmbedPageSetup(embed bool)
SetEmbedPageSetup() is a wrapper around gtk_print_operation_set_embed_page_setup().
func (po *PrintOperation) SetExportFilename(name string)
SetExportFilename() is a wrapper around gtk_print_operation_set_export_filename().
func (po *PrintOperation) SetHasSelection(selection bool)
SetHasSelection() is a wrapper around gtk_print_operation_set_has_selection().
func (po *PrintOperation) SetJobName(name string)
SetJobName() is a wrapper around gtk_print_operation_set_job_name().
func (po *PrintOperation) SetNPages(pages int)
SetNPages() is a wrapper around gtk_print_operation_set_n_pages().
func (po *PrintOperation) SetPrintSettings(ps *PrintSettings)
SetPrintSettings() is a wrapper around gtk_print_operation_set_print_settings().
func (po *PrintOperation) SetShowProgress(show bool)
SetShowProgress() is a wrapper around gtk_print_operation_set_show_progress().
func (po *PrintOperation) SetSupportSelection(selection bool)
SetSupportSelection() is a wrapper around gtk_print_operation_set_support_selection().
func (po *PrintOperation) SetTrackPrintStatus(progress bool)
SetTrackPrintStatus() is a wrapper around gtk_print_operation_set_track_print_status().
func (po *PrintOperation) SetUnit(unit Unit)
SetUnit() is a wrapper around gtk_print_operation_set_unit().
func (po *PrintOperation) SetUseFullPage(full bool)
SetUseFullPage() is a wrapper around gtk_print_operation_set_use_full_page().
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
)PrintOperationPreview is a representation of GTK's GtkPrintOperationPreview GInterface.
func (pop *PrintOperationPreview) EndPreview()
EndPreview()() is a wrapper around gtk_print_operation_preview_end_preview().
func (pop *PrintOperationPreview) IsSelected(page int) bool
IsSelected()() is a wrapper around gtk_print_operation_preview_is_selected().
func (pop *PrintOperationPreview) RenderPage(page int)
RenderPage()() is a wrapper around gtk_print_operation_preview_render_page().
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
)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
)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
)func PrintSettingsNew() (*PrintSettings, error)
PrintSettingsNew() is a wrapper around gtk_print_settings_new().
func PrintSettingsNewFromFile(name string) (*PrintSettings, error)
PrintSettingsNewFromFile() is a wrapper around gtk_print_settings_new_from_file().
func (ps *PrintSettings) Copy() (*PrintSettings, error)
Copy() is a wrapper around gtk_print_settings_copy().
func (ps *PrintSettings) ForEach(cb PrintSettingsCallback, userData uintptr)
Foreach() is a wrapper around gtk_print_settings_foreach().
func (ps *PrintSettings) Get(key string) string
Get() is a wrapper around gtk_print_settings_get().
func (ps *PrintSettings) GetBool(key string) bool
GetBool() is a wrapper around gtk_print_settings_get_bool().
func (ps *PrintSettings) GetCollate() bool
GetCollate() is a wrapper around gtk_print_settings_get_collate().
func (ps *PrintSettings) GetDefaultSource() string
GetDefaultSource() is a wrapper around gtk_print_settings_get_default_source().
func (ps *PrintSettings) GetDither() string
GetDither() is a wrapper around gtk_print_settings_get_dither().
func (ps *PrintSettings) GetDouble(key string) float64
GetDouble() is a wrapper around gtk_print_settings_get_double().
func (ps *PrintSettings) GetDoubleWithDefault(key string, def float64) float64
GetDoubleWithDefault() is a wrapper around gtk_print_settings_get_double_with_default().
func (ps *PrintSettings) GetDuplex() PrintDuplex
GetDuplex() is a wrapper around gtk_print_settings_get_duplex().
func (ps *PrintSettings) GetFinishings() string
GetFinishings() is a wrapper around gtk_print_settings_get_finishings().
func (ps *PrintSettings) GetInt(key string) int
GetInt() is a wrapper around gtk_print_settings_get_int().
func (ps *PrintSettings) GetIntWithDefault(key string, def int) int
GetIntWithDefault() is a wrapper around gtk_print_settings_get_int_with_default().
func (ps *PrintSettings) GetLength(key string, unit Unit) float64
GetLength() is a wrapper around gtk_print_settings_get_length().
func (ps *PrintSettings) GetMediaType() string
GetMediaType() is a wrapper around gtk_print_settings_get_media_type().
func (ps *PrintSettings) GetNCopies() int
GetNCopies() is a wrapper around gtk_print_settings_get_n_copies().
func (ps *PrintSettings) GetNmberUp() int
GetNmberUp() is a wrapper around gtk_print_settings_get_number_up().
func (ps *PrintSettings) GetNumberUpLayout() NumberUpLayout
GetNumberUpLayout() is a wrapper around gtk_print_settings_get_number_up_layout().
func (ps *PrintSettings) GetOrientation() PageOrientation
GetOrientation() is a wrapper around gtk_print_settings_get_orientation().
func (ps *PrintSettings) GetOutputBin() string
GetOutputBin() is a wrapper around gtk_print_settings_get_output_bin().
func (ps *PrintSettings) GetPageSet(pages PrintPages) PageSet
GetPageSet() is a wrapper around gtk_print_settings_get_page_set().
func (ps *PrintSettings) GetPaperHeight(unit Unit) float64
GetPaperHeight() is a wrapper around gtk_print_settings_get_paper_height().
func (ps *PrintSettings) GetPaperSize() (*PaperSize, error)
GetPaperSize() is a wrapper around gtk_print_settings_get_paper_size().
func (ps *PrintSettings) GetPaperWidth(unit Unit) float64
GetPaperWidth() is a wrapper around gtk_print_settings_get_paper_width().
func (ps *PrintSettings) GetPrintPages() PrintPages
GetPrintPages() is a wrapper around gtk_print_settings_get_print_pages().
func (ps *PrintSettings) GetPrinter() string
GetPrinter() is a wrapper around gtk_print_settings_get_printer().
func (ps *PrintSettings) GetPrinterLpi() float64
GetPrinterLpi() is a wrapper around gtk_print_settings_get_printer_lpi().
func (ps *PrintSettings) GetQuality() PrintQuality
GetQuality() is a wrapper around gtk_print_settings_get_quality().
func (ps *PrintSettings) GetResolution() int
GetResolution() is a wrapper around gtk_print_settings_get_resolution().
func (ps *PrintSettings) GetResolutionX() int
GetResolutionX() is a wrapper around gtk_print_settings_get_resolution_x().
func (ps *PrintSettings) GetResolutionY() int
GetResolutionY() is a wrapper around gtk_print_settings_get_resolution_y().
func (ps *PrintSettings) GetReverse() bool
GetReverse() is a wrapper around gtk_print_settings_get_reverse().
func (ps *PrintSettings) GetScale() float64
GetScale() is a wrapper around gtk_print_settings_get_scale().
func (ps *PrintSettings) GetUseColor() bool
GetUseColor() is a wrapper around gtk_print_settings_get_use_color().
func (ps *PrintSettings) HasKey(key string) bool
HasKey() is a wrapper around gtk_print_settings_has_key().
func (ps *PrintSettings) LoadFile(name string) error
LoadFile() is a wrapper around gtk_print_settings_load_file().
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 (ps *PrintSettings) SetBool(key string, value bool)
SetBool() is a wrapper around gtk_print_settings_set_bool().
func (ps *PrintSettings) SetCollate(collate bool)
SetCollate() is a wrapper around gtk_print_settings_set_collate().
func (ps *PrintSettings) SetDither(dither string)
SetDither() is a wrapper around gtk_print_settings_set_dither().
func (ps *PrintSettings) SetDouble(key string, value float64)
SetDouble() is a wrapper around gtk_print_settings_set_double().
func (ps *PrintSettings) SetDuplex(duplex PrintDuplex)
SetDuplex() is a wrapper around gtk_print_settings_set_duplex().
func (ps *PrintSettings) SetFinishings(dither string)
SetFinishings() is a wrapper around gtk_print_settings_set_finishings().
func (ps *PrintSettings) SetInt(key string, value int)
SetInt() is a wrapper around gtk_print_settings_set_int().
func (ps *PrintSettings) SetLength(key string, value float64, unit Unit)
SetLength() is a wrapper around gtk_print_settings_set_length().
func (ps *PrintSettings) SetMediaType(mediaType string)
SetMediaType() is a wrapper around gtk_print_settings_set_media_type().
func (ps *PrintSettings) SetNCopies(copies int)
SetNCopies() is a wrapper around gtk_print_settings_set_n_copies().
func (ps *PrintSettings) SetNumberUp(numberUp int)
SetNumberUp() is a wrapper around gtk_print_settings_set_number_up().
func (ps *PrintSettings) SetNumberUpLayout(numberUpLayout NumberUpLayout)
SetNumberUpLayout() is a wrapper around gtk_print_settings_set_number_up_layout().
func (ps *PrintSettings) SetOrientation(orientation PageOrientation)
SetOrientation() is a wrapper around gtk_print_settings_set_orientation().
func (ps *PrintSettings) SetOutputBin(bin string)
SetOutputBin() is a wrapper around gtk_print_settings_set_output_bin().
func (ps *PrintSettings) SetPageSet(pageSet PageSet)
SetPageSet() is a wrapper around gtk_print_settings_set_page_set().
func (ps *PrintSettings) SetPaperHeight(width float64, unit Unit)
SetPaperHeight() is a wrapper around gtk_print_settings_set_paper_height().
func (ps *PrintSettings) SetPaperSize(size *PaperSize)
SetPaperSize() is a wrapper around gtk_print_settings_set_paper_size().
func (ps *PrintSettings) SetPaperWidth(width float64, unit Unit)
SetPaperWidth() is a wrapper around gtk_print_settings_set_paper_width().
func (ps *PrintSettings) SetPrintPages(pages PrintPages)
SetPrintPages() is a wrapper around gtk_print_settings_set_print_pages().
func (ps *PrintSettings) SetPrinter(printer string)
SetPrinter() is a wrapper around gtk_print_settings_set_printer().
func (ps *PrintSettings) SetPrinterLpi(lpi float64)
SetPrinterLpi() is a wrapper around gtk_print_settings_set_printer_lpi().
func (ps *PrintSettings) SetQuality(quality PrintQuality)
SetQuality() is a wrapper around gtk_print_settings_set_quality().
func (ps *PrintSettings) SetResolution(resolution int)
SetResolution() is a wrapper around gtk_print_settings_set_resolution().
func (ps *PrintSettings) SetResolutionXY(resolutionX, resolutionY int)
SetResolutionXY() is a wrapper around gtk_print_settings_set_resolution_xy().
func (ps *PrintSettings) SetReverse(reverse bool)
SetReverse() is a wrapper around gtk_print_settings_set_reverse().
func (ps *PrintSettings) SetScale(scale float64)
SetScale() is a wrapper around gtk_print_settings_set_scale().
func (ps *PrintSettings) SetSefaultSource(defaultSource string)
SetSefaultSource() is a wrapper around gtk_print_settings_set_default_source().
func (ps *PrintSettings) SetUseColor(color bool)
SetUseColor() is a wrapper around gtk_print_settings_set_use_color().
func (ps *PrintSettings) ToFile(name string) error
ToFile() is a wrapper around gtk_print_settings_to_file().
func (ps *PrintSettings) Unset(key string)
Unset() is a wrapper around gtk_print_settings_unset().
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 struct {
Widget
// Interfaces
Orientable
}ProgressBar is a representation of GTK's GtkProgressBar.
func ProgressBarNew() (*ProgressBar, error)
ProgressBarNew() is a wrapper around gtk_progress_bar_new().
func (v *ProgressBar) GetFraction() float64
GetFraction() is a wrapper around gtk_progress_bar_get_fraction().
func (v *ProgressBar) GetInverted() bool
GetInverted is a wrapper around gtk_progress_bar_get_inverted().
func (v *ProgressBar) GetPulseStep() float64
GetPulseStep is a wrapper around gtk_progress_bar_get_pulse_step().
func (v *ProgressBar) GetShowText() bool
GetShowText is a wrapper around gtk_progress_bar_get_show_text().
func (v *ProgressBar) Pulse()
Pulse is a wrapper arountd gtk_progress_bar_pulse().
func (v *ProgressBar) SetFraction(fraction float64)
SetFraction() is a wrapper around gtk_progress_bar_set_fraction().
func (v *ProgressBar) SetInverted(inverted bool)
SetInverted is a wrapper around gtk_progress_bar_set_inverted().
func (v *ProgressBar) SetPulseStep(fraction float64)
SetPulseStep is a wrapper around gtk_progress_bar_set_pulse_step().
func (v *ProgressBar) SetShowText(showText bool)
SetShowText is a wrapper around gtk_progress_bar_set_show_text().
func (v *ProgressBar) SetText(text string)
SetText() is a wrapper around gtk_progress_bar_set_text().
type RadioButton struct {
CheckButton
}RadioButton is a representation of GTK's GtkRadioButton.
func RadioButtonNew(group *glib.SList) (*RadioButton, error)
RadioButtonNew is a wrapper around gtk_radio_button_new().
func RadioButtonNewFromWidget(radioGroupMember *RadioButton) (*RadioButton, error)
RadioButtonNewFromWidget is a wrapper around gtk_radio_button_new_from_widget().
RadioButtonNewWithLabel is a wrapper around gtk_radio_button_new_with_label().
func RadioButtonNewWithLabelFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)
RadioButtonNewWithLabelFromWidget is a wrapper around gtk_radio_button_new_with_label_from_widget().
RadioButtonNewWithMnemonic is a wrapper around gtk_radio_button_new_with_mnemonic()
func RadioButtonNewWithMnemonicFromWidget(radioGroupMember *RadioButton, label string) (*RadioButton, error)
RadioButtonNewWithMnemonicFromWidget is a wrapper around gtk_radio_button_new_with_mnemonic_from_widget().
func (v *RadioButton) GetGroup() (*glib.SList, error)
GetGroup is a wrapper around gtk_radio_button_get_group().
func (v *RadioButton) JoinGroup(groupSource *RadioButton)
JoinGroup is a wrapper around gtk_radio_button_join_group().
func (v *RadioButton) SetGroup(group *glib.SList)
SetGroup is a wrapper around gtk_radio_button_set_group().
type RadioMenuItem struct {
CheckMenuItem
}RadioMenuItem is a representation of GTK's GtkRadioMenuItem.
func RadioMenuItemNew(group *glib.SList) (*RadioMenuItem, error)
RadioMenuItemNew is a wrapper around gtk_radio_menu_item_new().
func RadioMenuItemNewFromWidget(group *RadioMenuItem) (*RadioMenuItem, error)
RadioMenuItemNewFromWidget is a wrapper around gtk_radio_menu_item_new_from_widget().
RadioMenuItemNewWithLabel is a wrapper around gtk_radio_menu_item_new_with_label().
func RadioMenuItemNewWithLabelFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)
RadioMenuItemNewWithLabelFromWidget is a wrapper around gtk_radio_menu_item_new_with_label_from_widget().
RadioMenuItemNewWithMnemonic is a wrapper around gtk_radio_menu_item_new_with_mnemonic().
func RadioMenuItemNewWithMnemonicFromWidget(group *RadioMenuItem, label string) (*RadioMenuItem, error)
RadioMenuItemNewWithMnemonicFromWidget is a wrapper around gtk_radio_menu_item_new_with_mnemonic_from_widget().
func (v *RadioMenuItem) GetGroup() (*glib.SList, error)
GetGroup is a wrapper around gtk_radio_menu_item_get_group().
func (v *RadioMenuItem) SetGroup(group *glib.SList)
SetGroup is a wrapper around gtk_radio_menu_item_set_group().
Range is a representation of GTK's GtkRange.
GetValue is a wrapper around gtk_range_get_value().
SetIncrements() is a wrapper around gtk_range_set_increments().
SetRange() is a wrapper around gtk_range_set_range().
SetValue is a wrapper around gtk_range_set_value().
RecentChooser is a representation of GTK's GtkRecentChooser.
func (v *RecentChooser) AddFilter(filter *RecentFilter)
func (v *RecentChooser) GetCurrentUri() string
func (v *RecentChooser) RemoveFilter(filter *RecentFilter)
type RecentChooserMenu struct {
Menu
RecentChooser
}RecentChooserMenu is a representation of GTK's GtkRecentChooserMenu.
type RecentFilter struct {
glib.InitiallyUnowned
}RecentFilter is a representation of GTK's GtkRecentFilter.
func RecentFilterNew() (*RecentFilter, error)
RecentFilterNew is a wrapper around gtk_recent_filter_new().
RecentManager is a representation of GTK's GtkRecentManager.
func RecentManagerGetDefault() (*RecentManager, error)
RecentManagerGetDefault is a wrapper around gtk_recent_manager_get_default().
func (v *RecentManager) AddItem(fileURI string) bool
AddItem is a wrapper around gtk_recent_manager_add_item().
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
)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
)Revealer is a representation of GTK's GtkRevealer
RevealerNew is a wrapper around gtk_revealer_new()
GetChildRevealed is a wrapper around gtk_revealer_get_child_revealed().
GetRevealChild is a wrapper around gtk_revealer_get_reveal_child().
GetTransitionDuration is a wrapper around gtk_revealer_get_transition_duration()
func (v *Revealer) GetTransitionType() RevealerTransitionType
GetTransitionType is a wrapper around gtk_revealer_get_transition_type()
SetRevealChild is a wrapper around gtk_revealer_set_reveal_child().
SetTransitionDuration is a wrapper around gtk_revealer_set_transition_duration().
func (v *Revealer) SetTransitionType(transition RevealerTransitionType)
SetTransitionType is a wrapper around gtk_revealer_set_transition_type()
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
)Scale is a representation of GTK's GtkScale.
func ScaleNew(orientation Orientation, adjustment *Adjustment) (*Scale, error)
ScaleNew is a wrapper around gtk_scale_new().
func ScaleNewWithRange(orientation Orientation, min, max, step float64) (*Scale, error)
ScaleNewWithRange is a wrapper around gtk_scale_new_with_range().
SetDrawValue() is a wrapper around gtk_scale_set_draw_value().
ScaleButton is a representation of GTK's GtkScaleButton.
ScaleButtonNew() is a wrapper around gtk_scale_button_new().
func (v *ScaleButton) GetAdjustment() *Adjustment
GetAdjustment() is a wrapper around gtk_scale_button_get_adjustment().
func (v *ScaleButton) GetPopup() (*Widget, error)
GetPopup() is a wrapper around gtk_scale_button_get_popup().
func (v *ScaleButton) GetValue() float64
GetValue() is a wrapper around gtk_scale_button_get_value().
func (v *ScaleButton) SetAdjustment(adjustment *Adjustment)
SetAdjustment() is a wrapper around gtk_scale_button_set_adjustment().
func (v *ScaleButton) SetValue(value float64)
SetValue() is a wrapper around gtk_scale_button_set_value().
Scrollable is a representation of GTK's GtkScrollable GInterface.
func (v *Scrollable) GetHAdjustment() (*Adjustment, error)
GetHAdjustment is a wrapper around gtk_scrollable_get_hadjustment().
func (v *Scrollable) GetVAdjustment() (*Adjustment, error)
GetVAdjustment is a wrapper around gtk_scrollable_get_vadjustment().
func (v *Scrollable) SetHAdjustment(adjustment *Adjustment)
SetHAdjustment is a wrapper around gtk_scrollable_set_hadjustment().
func (v *Scrollable) SetVAdjustment(adjustment *Adjustment)
SetVAdjustment is a wrapper around gtk_scrollable_set_vadjustment().
Scrollbar is a representation of GTK's GtkScrollbar.
func ScrollbarNew(orientation Orientation, adjustment *Adjustment) (*Scrollbar, error)
ScrollbarNew is a wrapper around gtk_scrollbar_new().
ScrolledWindow is a representation of GTK's GtkScrolledWindow.
func ScrolledWindowNew(hadjustment, vadjustment *Adjustment) (*ScrolledWindow, error)
ScrolledWindowNew() is a wrapper around gtk_scrolled_window_new().
func (v *ScrolledWindow) GetHAdjustment() *Adjustment
GetHAdjustment() is a wrapper around gtk_scrolled_window_get_hadjustment().
func (v *ScrolledWindow) GetOverlayScrolling() bool
GetOverlayScrolling is a wrapper around gtk_scrolled_window_get_overlay_scrolling().
func (v *ScrolledWindow) GetShadowType() ShadowType
GetShadowType is a wrapper around gtk_scrolled_window_get_shadow_type().
func (v *ScrolledWindow) GetVAdjustment() *Adjustment
GetVAdjustment() is a wrapper around gtk_scrolled_window_get_vadjustment().
func (v *ScrolledWindow) SetHAdjustment(adjustment *Adjustment)
SetHAdjustment is a wrapper around gtk_scrolled_window_set_hadjustment().
func (v *ScrolledWindow) SetOverlayScrolling(scrolling bool)
SetOverlayScrolling is a wrapper around gtk_scrolled_window_set_overlay_scrolling().
func (v *ScrolledWindow) SetPolicy(hScrollbarPolicy, vScrollbarPolicy PolicyType)
SetPolicy() is a wrapper around gtk_scrolled_window_set_policy().
func (v *ScrolledWindow) SetShadowType(t ShadowType)
SetShadowType is a wrapper around gtk_scrolled_window_set_shadow_type().
func (v *ScrolledWindow) SetVAdjustment(adjustment *Adjustment)
SetVAdjustment is a wrapper around gtk_scrolled_window_set_vadjustment().
SearchBar is a representation of GTK's GtkSearchBar.
SearchBarNew is a wrapper around gtk_search_bar_new()
ConnectEntry is a wrapper around gtk_search_bar_connect_entry().
GetSearchMode is a wrapper around gtk_search_bar_get_search_mode().
GetShowCloseButton is a wrapper arounb gtk_search_bar_get_show_close_button().
HandleEvent is a wrapper around gtk_search_bar_handle_event()
SetSearchMode is a wrapper around gtk_search_bar_set_search_mode().
SetShowCloseButton is a wrapper around gtk_search_bar_set_show_close_button()
SearchEntry is a reprensentation of GTK's GtkSearchEntry.
func SearchEntryNew() (*SearchEntry, error)
SearchEntryNew is a wrapper around gtk_search_entry_new().
* GtkSelectionData
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 (v *SelectionData) GetLength() int
GetLength is a wrapper around gtk_selection_data_get_length
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
)Separator is a representation of GTK's GtkSeparator.
func SeparatorNew(orientation Orientation) (*Separator, error)
SeparatorNew is a wrapper around gtk_separator_new().
SeparatorMenuItem is a representation of GTK's GtkSeparatorMenuItem.
func SeparatorMenuItemNew() (*SeparatorMenuItem, error)
SeparatorMenuItemNew is a wrapper around gtk_separator_menu_item_new().
SeparatorToolItem is a representation of GTK's GtkSeparatorToolItem.
func SeparatorToolItemNew() (*SeparatorToolItem, error)
SeparatorToolItemNew is a wrapper around gtk_separator_tool_item_new().
func (v *SeparatorToolItem) GetDraw() bool
GetDraw is a wrapper around gtk_separator_tool_item_get_draw().
func (v *SeparatorToolItem) SetDraw(draw bool)
SetDraw is a wrapper around gtk_separator_tool_item_set_draw().
GtkSettings
Get the global non window specific settings
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
)ShortcutsWindow is a representation of GTK's GtkShortcutsWindow.
SizeGroup is a representation of GTK's GtkSizeGroup
func SizeGroupNew(mode SizeGroupMode) (*SizeGroup, error)
SizeGroupNew is a wrapper around gtk_size_group_new().
func (v *SizeGroup) GetMode() SizeGroupMode
func (v *SizeGroup) SetMode(mode SizeGroupMode)
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
)SortType is a representation of GTK's GtkSortType.
SpinButton is a representation of GTK's GtkSpinButton.
func SpinButtonNew(adjustment *Adjustment, climbRate float64, digits uint) (*SpinButton, error)
SpinButtonNew() is a wrapper around gtk_spin_button_new().
func SpinButtonNewWithRange(min, max, step float64) (*SpinButton, error)
SpinButtonNewWithRange() is a wrapper around gtk_spin_button_new_with_range().
func (v *SpinButton) Configure(adjustment *Adjustment, climbRate float64, digits uint)
Configure() is a wrapper around gtk_spin_button_configure().
func (v *SpinButton) GetAdjustment() *Adjustment
GetAdjustment() is a wrapper around gtk_spin_button_get_adjustment
func (v *SpinButton) GetValue() float64
GetValue() is a wrapper around gtk_spin_button_get_value().
func (v *SpinButton) GetValueAsInt() int
GetValueAsInt() is a wrapper around gtk_spin_button_get_value_as_int().
func (v *SpinButton) SetIncrements(step, page float64)
SetIncrements() is a wrapper around gtk_spin_button_set_increments().
func (v *SpinButton) SetRange(min, max float64)
SetRange is a wrapper around gtk_spin_button_set_range().
func (v *SpinButton) SetValue(value float64)
SetValue() is a wrapper around gtk_spin_button_set_value().
Spinner is a representation of GTK's GtkSpinner.
SpinnerNew is a wrapper around gtk_spinner_new().
Start is a wrapper around gtk_spinner_start().
Stop is a wrapper around gtk_spinner_stop().
Stack is a representation of GTK's GtkStack.
StackNew is a wrapper around gtk_stack_new().
AddNamed is a wrapper around gtk_stack_add_named().
AddTitled is a wrapper around gtk_stack_add_titled().
GetChildByName is a wrapper around gtk_stack_get_child_by_name().
GetHomogeneous is a wrapper around gtk_stack_get_homogeneous().
GetTransitionDuration is a wrapper around gtk_stack_get_transition_duration().
GetTransitionRunning is a wrapper around gtk_stack_get_transition_running().
func (v *Stack) GetTransitionType() StackTransitionType
GetTransitionType is a wrapper around gtk_stack_get_transition_type().
GetVisibleChild is a wrapper around gtk_stack_get_visible_child().
GetVisibleChildName is a wrapper around gtk_stack_get_visible_child_name().
SetHomogeneous is a wrapper around gtk_stack_set_homogeneous().
SetTransitionDuration is a wrapper around gtk_stack_set_transition_duration().
func (v *Stack) SetTransitionType(transition StackTransitionType)
SetTransitionType is a wrapper around gtk_stack_set_transition_type().
SetVisibleChild is a wrapper around gtk_stack_set_visible_child().
func (v *Stack) SetVisibleChildFull(name string, transaction StackTransitionType)
SetVisibleChildFull is a wrapper around gtk_stack_set_visible_child_full().
SetVisibleChildName is a wrapper around gtk_stack_set_visible_child_name().
StackSidebar is a representation of GTK's GtkStackSidebar.
func StackSidebarNew() (*StackSidebar, error)
StackSidebarNew is a wrapper around gtk_stack_sidebar_new().
func (v *StackSidebar) GetStack() *Stack
func (v *StackSidebar) SetStack(stack *Stack)
StackSwitcher is a representation of GTK's GtkStackSwitcher
func StackSwitcherNew() (*StackSwitcher, error)
StackSwitcherNew is a wrapper around gtk_stack_switcher_new().
func (v *StackSwitcher) GetStack() *Stack
GetStack is a wrapper around gtk_stack_switcher_get_stack().
func (v *StackSwitcher) SetStack(stack *Stack)
SetStack is a wrapper around gtk_stack_switcher_set_stack().
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
)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
)Statusbar is a representation of GTK's GtkStatusbar
StatusbarNew() is a wrapper around gtk_statusbar_new().
GetContextId() is a wrapper around gtk_statusbar_get_context_id().
GetMessageArea() is a wrapper around gtk_statusbar_get_message_area().
Pop() is a wrapper around gtk_statusbar_pop().
Push() is a wrapper around gtk_statusbar_push().
StyleContext is a representation of GTK's GtkStyleContext.
func (v *StyleContext) AddClass(class_name string)
func (v *StyleContext) AddProvider(provider IStyleProvider, prio uint)
AddProvider is a wrapper around gtk_style_context_add_provider().
func (v *StyleContext) GetColor(state StateFlags) *gdk.RGBA
GetColor is a wrapper around gtk_style_context_get_color().
func (v *StyleContext) GetParent() (*StyleContext, error)
GetParent is a wrapper around gtk_style_context_get_parent().
func (v *StyleContext) GetProperty(property string, state StateFlags) (interface{}, error)
GetProperty is a wrapper around gtk_style_context_get_property().
func (v *StyleContext) GetScreen() (*gdk.Screen, error)
GetScreen is a wrapper around gtk_style_context_get_screen().
func (v *StyleContext) GetState() StateFlags
GetState is a wrapper around gtk_style_context_get_state().
func (v *StyleContext) GetStyleProperty(property string) (interface{}, error)
GetStyleProperty is a wrapper around gtk_style_context_get_style_property().
func (v *StyleContext) HasClass(className string) bool
HasClass is a wrapper around gtk_style_context_has_class().
LookupColor is a wrapper around gtk_style_context_lookup_color().
func (v *StyleContext) RemoveClass(class_name string)
func (v *StyleContext) RemoveProvider(provider IStyleProvider)
RemoveProvider is a wrapper around gtk_style_context_remove_provider().
func (v *StyleContext) Restore()
Restore is a wrapper around gtk_style_context_restore().
func (v *StyleContext) Save()
Save is a wrapper around gtk_style_context_save().
func (v *StyleContext) SetParent(p *StyleContext)
SetParent is a wrapper around gtk_style_context_set_parent().
func (v *StyleContext) SetScreen(s *gdk.Screen)
SetScreen is a wrapper around gtk_style_context_set_screen().
func (v *StyleContext) SetState(state StateFlags)
SetState is a wrapper around gtk_style_context_set_state().
Switch is a representation of GTK's GtkSwitch.
SwitchNew is a wrapper around gtk_switch_new().
GetActive is a wrapper around gtk_switch_get_active().
SetActive is a wrapper around gtk_switch_set_active().
TargetEntry is a representation of GTK's GtkTargetEntry
func TargetEntryNew(target string, flags TargetFlags, info uint) (*TargetEntry, error)
TargetEntryNew is a wrapper aroud gtk_target_entry_new().
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
)TextBuffer is a representation of GTK's GtkTextBuffer.
func TextBufferNew(table *TextTagTable) (*TextBuffer, error)
TextBufferNew() is a wrapper around gtk_text_buffer_new().
func (v *TextBuffer) ApplyTag(tag *TextTag, start, end *TextIter)
ApplyTag() is a wrapper around gtk_text_buffer_apply_tag().
func (v *TextBuffer) ApplyTagByName(name string, start, end *TextIter)
ApplyTagByName() is a wrapper around gtk_text_buffer_apply_tag_by_name().
CreateMark() is a wrapper around gtk_text_buffer_create_mark().
func (v *TextBuffer) Delete(start, end *TextIter)
Delete() is a wrapper around gtk_text_buffer_delete().
func (v *TextBuffer) GetBounds() (start, end *TextIter)
func (v *TextBuffer) GetCharCount() int
GetCharCount() is a wrapper around gtk_text_buffer_get_char_count().
func (v *TextBuffer) GetEndIter() *TextIter
GetEndIter() is a wrapper around gtk_text_buffer_get_end_iter().
func (v *TextBuffer) GetIterAtMark(mark *TextMark) *TextIter
GetIterAtMark() is a wrapper around gtk_text_buffer_get_iter_at_mark().
func (v *TextBuffer) GetIterAtOffset(charOffset int) *TextIter
GetIterAtOffset() is a wrapper around gtk_text_buffer_get_iter_at_offset().
func (v *TextBuffer) GetLineCount() int
GetLineCount() is a wrapper around gtk_text_buffer_get_line_count().
func (v *TextBuffer) GetModified() bool
GetModified() is a wrapper around gtk_text_buffer_get_modified().
func (v *TextBuffer) GetStartIter() *TextIter
GetStartIter() is a wrapper around gtk_text_buffer_get_start_iter().
func (v *TextBuffer) GetTagTable() (*TextTagTable, error)
GetTagTable() is a wrapper around gtk_text_buffer_get_tag_table().
func (v *TextBuffer) Insert(iter *TextIter, text string)
Insert() is a wrapper around gtk_text_buffer_insert().
func (v *TextBuffer) InsertAtCursor(text string)
InsertAtCursor() is a wrapper around gtk_text_buffer_insert_at_cursor().
func (v *TextBuffer) RemoveTag(tag *TextTag, start, end *TextIter)
RemoveTag() is a wrapper around gtk_text_buffer_remove_tag().
func (v *TextBuffer) SetModified(setting bool)
SetModified() is a wrapper around gtk_text_buffer_set_modified().
func (v *TextBuffer) SetText(text string)
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() TextDirection
GetLocaleDirection() is a wrapper around gtk_get_locale_direction().
TextIter is a representation of GTK's GtkTextIter
BackwardChar is a wrapper around gtk_text_iter_backward_char().
BackwardChars is a wrapper around gtk_text_iter_backward_chars().
BackwardCursorPosition is a wrapper around gtk_text_iter_backward_cursor_position().
BackwardCursorPositions is a wrapper around gtk_text_iter_backward_cursor_positions().
BackwardLine is a wrapper around gtk_text_iter_backward_line().
BackwardLines is a wrapper around gtk_text_iter_backward_lines().
BackwardToTagToggle is a wrapper around gtk_text_iter_backward_to_tag_toggle().
BackwardVisibleCursorPosition is a wrapper around gtk_text_iter_backward_visible_cursor_position().
BackwardVisibleCursorPositions is a wrapper around gtk_text_iter_backward_visible_cursor_positions().
BackwardVisibleLine is a wrapper around gtk_text_iter_backward_visible_line().
BackwardVisibleLines is a wrapper around gtk_text_iter_backward_visible_lines().
CanInsert is a wrapper around gtk_text_iter_can_insert().
Compare is a wrapper around gtk_text_iter_compare().
Editable is a wrapper around gtk_text_iter_editable().
EndsLine is a wrapper around gtk_text_iter_ends_line().
EndsSentence is a wrapper around gtk_text_iter_ends_sentence().
EndsTag is a wrapper around gtk_text_iter_ends_tag().
EndsWord is a wrapper around gtk_text_iter_ends_word().
Equal is a wrapper around gtk_text_iter_equal().
ForwardChar is a wrapper around gtk_text_iter_forward_char().
ForwardChars is a wrapper around gtk_text_iter_forward_chars().
ForwardCursorPosition is a wrapper around gtk_text_iter_forward_cursor_position().
ForwardCursorPositions is a wrapper around gtk_text_iter_forward_cursor_positions().
ForwardLine is a wrapper around gtk_text_iter_forward_line().
ForwardLines is a wrapper around gtk_text_iter_forward_lines().
ForwardSentenceEnd is a wrapper around gtk_text_iter_forward_sentence_end().
ForwardSentenceEnds is a wrapper around gtk_text_iter_forward_sentence_ends().
ForwardToEnd is a wrapper around gtk_text_iter_forward_to_end().
ForwardToLineEnd is a wrapper around gtk_text_iter_forward_to_line_end().
ForwardToTagToggle is a wrapper around gtk_text_iter_forward_to_tag_toggle().
ForwardVisibleCursorPosition is a wrapper around gtk_text_iter_forward_visible_cursor_position().
ForwardVisibleCursorPositions is a wrapper around gtk_text_iter_forward_visible_cursor_positions().
ForwardVisibleLine is a wrapper around gtk_text_iter_forward_visible_line().
ForwardVisibleLines is a wrapper around gtk_text_iter_forward_visible_lines().
ForwardVisibleWordEnd is a wrapper around gtk_text_iter_forward_visible_word_end().
ForwardVisibleWordEnds is a wrapper around gtk_text_iter_forward_word_ends().
ForwardWordEnd is a wrapper around gtk_text_iter_forward_word_end().
ForwardWordEnds is a wrapper around gtk_text_iter_forward_word_ends().
func (v *TextIter) GetBuffer() *TextBuffer
GetBuffer is a wrapper around gtk_text_iter_get_buffer().
GetBytesInLine is a wrapper around gtk_text_iter_get_bytes_in_line().
GetChar is a wrapper around gtk_text_iter_get_char().
GetCharsInLine is a wrapper around gtk_text_iter_get_chars_in_line().
GetLine is a wrapper around gtk_text_iter_get_line().
GetLineIndex is a wrapper around gtk_text_iter_get_line_index().
GetLineOffset is a wrapper around gtk_text_iter_get_line_offset().
GetOffset is a wrapper around gtk_text_iter_get_offset().
GetSlice is a wrapper around gtk_text_iter_get_slice().
GetText is a wrapper around gtk_text_iter_get_text().
GetVisibleLineIndex is a wrapper around gtk_text_iter_get_visible_line_index().
GetVisibleLineOffset is a wrapper around gtk_text_iter_get_visible_line_offset().
GetVisibleSlice is a wrapper around gtk_text_iter_get_visible_slice().
GetVisibleText is a wrapper around gtk_text_iter_get_visible_text().
HasTag is a wrapper around gtk_text_iter_has_tag().
InRange is a wrapper around gtk_text_iter_in_range().
InsideSentence is a wrapper around gtk_text_iter_inside_sentence().
InsideWord is a wrapper around gtk_text_iter_inside_word().
IsCursorPosition is a wrapper around gtk_text_iter_is_cursor_position().
IsEnd is a wrapper around gtk_text_iter_is_end().
IsStart is a wrapper around gtk_text_iter_is_start().
SetLine is a wrapper around gtk_text_iter_set_line().
SetLineIndex is a wrapper around gtk_text_iter_set_line_index().
SetLineOffset is a wrapper around gtk_text_iter_set_line_offset().
SetOffset is a wrapper around gtk_text_iter_set_offset().
SetVisibleLineIndex is a wrapper around gtk_text_iter_set_visible_line_index().
SetVisibleLineOffset is a wrapper around gtk_text_iter_set_visible_line_offset().
StartsLine is a wrapper around gtk_text_iter_starts_line().
StartsSentence is a wrapper around gtk_text_iter_starts_sentence().
StartsWord is a wrapper around gtk_text_iter_starts_word().
TogglesTag is a wrapper around gtk_text_iter_toggles_tag().
TextMark is a representation of GTK's GtkTextMark
Event() is a wrapper around gtk_text_tag_event().
GetPriority() is a wrapper around gtk_text_tag_get_priority().
SetPriority() is a wrapper around gtk_text_tag_set_priority().
func TextTagTableNew() (*TextTagTable, error)
func (v *TextTagTable) Add(tag *TextTag)
Add() is a wrapper around gtk_text_tag_table_add().
func (v *TextTagTable) Lookup(name string) (*TextTag, error)
Lookup() is a wrapper around gtk_text_tag_table_lookup().
func (v *TextTagTable) Remove(tag *TextTag)
Remove() is a wrapper around gtk_text_tag_table_remove().
TextView is a representation of GTK's GtkTextView
TextViewNew is a wrapper around gtk_text_view_new().
func TextViewNewWithBuffer(buf *TextBuffer) (*TextView, error)
TextViewNewWithBuffer is a wrapper around gtk_text_view_new_with_buffer().
func (v *TextView) AddChildInWindow(child IWidget, tp TextWindowType, xpos, ypos int)
AddChildInWindow is a wrapper around gtk_text_view_add_child_in_window().
BackwardDisplayLine is a wrapper around gtk_text_view_backward_display_line().
BackwardDisplayLineStart is a wrapper around gtk_text_view_backward_display_line_start().
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().
ForwardDisplayLine is a wrapper around gtk_text_view_forward_display_line().
ForwardDisplayLineEnd is a wrapper around gtk_text_view_forward_display_line_end().
GetAcceptsTab is a wrapper around gtk_text_view_get_accepts_tab().
func (v *TextView) GetBorderWindowSize(tp TextWindowType) int
GetBorderWindowSize is a wrapper around gtk_text_view_get_border_window_size().
func (v *TextView) GetBuffer() (*TextBuffer, error)
GetBuffer is a wrapper around gtk_text_view_get_buffer().
GetCursorLocations is a wrapper around gtk_text_view_get_cursor_locations().
GetCursorVisible is a wrapper around gtk_text_view_get_cursor_visible().
GetEditable is a wrapper around gtk_text_view_get_editable().
GetIndent is a wrapper around gtk_text_view_get_indent().
func (v *TextView) GetInputHints() InputHints
GetInputHints is a wrapper around gtk_text_view_get_input_hints().
func (v *TextView) GetInputPurpose() InputPurpose
GetInputPurpose is a wrapper around gtk_text_view_get_input_purpose().
GetIterAtLocation is a wrapper around gtk_text_view_get_iter_at_location().
GetIterAtPosition is a wrapper around gtk_text_view_get_iter_at_position().
GetIterLocation is a wrapper around gtk_text_view_get_iter_location().
func (v *TextView) GetJustification() Justification
GetJustification is a wrapper around gtk_text_view_get_justification().
GetLeftMargin is a wrapper around gtk_text_view_get_left_margin().
GetLineAtY is a wrapper around gtk_text_view_get_line_at_y().
GetLineYrange is a wrapper around gtk_text_view_get_line_yrange().
GetOverwrite is a wrapper around gtk_text_view_get_overwrite().
GetPixelsAboveLines is a wrapper around gtk_text_view_get_pixels_above_lines().
GetPixelsBelowLines is a wrapper around gtk_text_view_get_pixels_below_lines().
GetPixelsInsideWrap is a wrapper around gtk_text_view_get_pixels_inside_wrap().
GetRightMargin is a wrapper around gtk_text_view_get_right_margin().
GetVisibleRect is a wrapper around gtk_text_view_get_visible_rect().
func (v *TextView) GetWindow(win TextWindowType) *gdk.Window
GetWindow is a wrapper around gtk_text_view_get_window().
func (v *TextView) GetWindowType(w *gdk.Window) TextWindowType
GetWindowType is a wrapper around gtk_text_view_get_window_type().
GetWrapMode is a wrapper around gtk_text_view_get_wrap_mode().
ImContextFilterKeypress is a wrapper around gtk_text_view_im_context_filter_keypress().
MoveChild is a wrapper around gtk_text_view_move_child().
MoveMarkOnscreen is a wrapper around gtk_text_view_move_mark_onscreen().
MoveVisually is a wrapper around gtk_text_view_move_visually().
PlaceCursorOnscreen is a wrapper around gtk_text_view_place_cursor_onscreen().
ResetImContext is a wrapper around gtk_text_view_reset_im_context().
ScrollMarkOnscreen is a wrapper around gtk_text_view_scroll_mark_onscreen().
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 (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().
SetAcceptsTab is a wrapper around gtk_text_view_set_accepts_tab().
func (v *TextView) SetBorderWindowSize(tp TextWindowType, size int)
SetBorderWindowSize is a wrapper around gtk_text_view_set_border_window_size().
func (v *TextView) SetBuffer(buffer *TextBuffer)
SetBuffer is a wrapper around gtk_text_view_set_buffer().
SetCursorVisible is a wrapper around gtk_text_view_set_cursor_visible().
SetEditable is a wrapper around gtk_text_view_set_editable().
SetIndent is a wrapper around gtk_text_view_set_indent().
func (v *TextView) SetInputHints(hints InputHints)
SetInputHints is a wrapper around gtk_text_view_set_input_hints().
func (v *TextView) SetInputPurpose(purpose InputPurpose)
SetInputPurpose is a wrapper around gtk_text_view_set_input_purpose().
func (v *TextView) SetJustification(justify Justification)
SetJustification is a wrapper around gtk_text_view_set_justification().
SetLeftMargin is a wrapper around gtk_text_view_set_left_margin().
SetOverwrite is a wrapper around gtk_text_view_set_overwrite().
SetPixelsAboveLines is a wrapper around gtk_text_view_set_pixels_above_lines().
SetPixelsBelowLines is a wrapper around gtk_text_view_set_pixels_below_lines().
SetPixelsInsideWrap is a wrapper around gtk_text_view_set_pixels_inside_wrap().
SetRightMargin is a wrapper around gtk_text_view_set_right_margin().
SetWrapMode is a wrapper around gtk_text_view_set_wrap_mode().
StartsDisplayLine is a wrapper around gtk_text_view_starts_display_line().
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().
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
)ToggleButton is a representation of GTK's GtkToggleButton.
func ToggleButtonNew() (*ToggleButton, error)
ToggleButtonNew is a wrapper around gtk_toggle_button_new().
func ToggleButtonNewWithLabel(label string) (*ToggleButton, error)
ToggleButtonNewWithLabel is a wrapper around gtk_toggle_button_new_with_label().
func ToggleButtonNewWithMnemonic(label string) (*ToggleButton, error)
ToggleButtonNewWithMnemonic is a wrapper around gtk_toggle_button_new_with_mnemonic().
func (v *ToggleButton) GetActive() bool
GetActive is a wrapper around gtk_toggle_button_get_active().
func (v *ToggleButton) GetMode() bool
GetMode is a wrapper around gtk_toggle_button_get_mode().
func (v *ToggleButton) SetActive(isActive bool)
SetActive is a wrapper around gtk_toggle_button_set_active().
func (v *ToggleButton) SetMode(drawIndicator bool)
SetMode is a wrapper around gtk_toggle_button_set_mode().
ToolButton is a representation of GTK's GtkToolButton.
func ToolButtonNew(iconWidget IWidget, label string) (*ToolButton, error)
ToolButtonNew is a wrapper around gtk_tool_button_new().
func (v *ToolButton) GetIconName() string
GetIconName is a wrapper around gtk_tool_button_get_icon_name().
func (v *ToolButton) GetIconWidget() *Widget
GetIconWidget is a wrapper around gtk_tool_button_get_icon_widget().
func (v *ToolButton) GetLabel() string
GetLabel is a wrapper aroud gtk_tool_button_get_label().
func (v *ToolButton) GetLabelWidget() *Widget
GetLabelWidget is a wrapper around gtk_tool_button_get_label_widget().
func (v *ToolButton) GetuseUnderline() bool
GetUseUnderline is a wrapper around gtk_tool_button_get_use_underline().
func (v *ToolButton) SetGetUnderline(useUnderline bool)
SetUseUnderline is a wrapper around gtk_tool_button_set_use_underline().
func (v *ToolButton) SetIconName(iconName string)
SetIconName is a wrapper around gtk_tool_button_set_icon_name().
func (v *ToolButton) SetIconWidget(iconWidget IWidget)
SetIconWidget is a wrapper around gtk_tool_button_set_icon_widget().
func (v *ToolButton) SetLabel(label string)
SetLabel is a wrapper around gtk_tool_button_set_label().
func (v *ToolButton) SetLabelWidget(labelWidget IWidget)
SetLabelWidget is a wrapper around gtk_tool_button_set_label_widget().
ToolItem is a representation of GTK's GtkToolItem.
ToolItemNew is a wrapper around gtk_tool_item_new().
GetExpand is a wrapper around gtk_tool_item_get_expand().
GetHomogeneous is a wrapper around gtk_tool_item_get_homogeneous().
GetIconSize is a wrapper around gtk_tool_item_get_icon_size().
GetIsImportant is a wrapper around gtk_tool_item_get_is_important().
func (v *ToolItem) GetOrientation() Orientation
GetOrientation is a wrapper around gtk_tool_item_get_orientation().
func (v *ToolItem) GetReliefStyle() ReliefStyle
GetReliefStyle is a wrapper around gtk_tool_item_get_relief_style().
GetTextAlignment is a wrapper around gtk_tool_item_get_text_alignment().
func (v *ToolItem) GetTextOrientation() Orientation
GetTextOrientation is a wrapper around gtk_tool_item_get_text_orientation().
GetUseDragWindow is a wrapper around gtk_tool_item_get_use_drag_window().
GetVisibleHorizontal is a wrapper around gtk_tool_item_get_visible_horizontal().
GetVisibleVertical is a wrapper around gtk_tool_item_get_visible_vertical().
RebuildMenu is a wrapper around gtk_tool_item_rebuild_menu().
RetrieveProxyMenuItem is a wrapper around gtk_tool_item_retrieve_proxy_menu_item()
SetExpand is a wrapper around gtk_tool_item_set_expand().
SetHomogeneous is a wrapper around gtk_tool_item_set_homogeneous().
SetIsImportant is a wrapper around gtk_tool_item_set_is_important().
SetProxyMenuItem is a wrapper around gtk_tool_item_set_proxy_menu_item().
SetTooltipMarkup is a wrapper around gtk_tool_item_set_tooltip_markup().
SetTooltipText is a wrapper around gtk_tool_item_set_tooltip_text().
SetUseDragWindow is a wrapper around gtk_tool_item_set_use_drag_window().
SetVisibleHorizontal is a wrapper around gtk_tool_item_set_visible_horizontal().
SetVisibleVertical is a wrapper around gtk_tool_item_set_visible_vertical().
ToolbarReconfigured is a wrapper around gtk_tool_item_toolbar_reconfigured().
Toolbar is a representation of GTK's GtkToolbar.
ToolbarNew is a wrapper around gtk_toolbar_new().
GetDropIndex is a wrapper around gtk_toolbar_get_drop_index().
GetIconSize is a wrapper around gtk_toolbar_get_icon_size().
GetItemIndex is a wrapper around gtk_toolbar_get_item_index().
GetNItems is a wrapper around gtk_toolbar_get_n_items().
GetNthItem is a wrapper around gtk_toolbar_get_nth_item().
func (v *Toolbar) GetReliefStyle() ReliefStyle
GetReliefStyle is a wrapper around gtk_toolbar_get_relief_style().
GetShowArrow is a wrapper around gtk_toolbar_get_show_arrow().
func (v *Toolbar) GetStyle() ToolbarStyle
GetStyle is a wrapper around gtk_toolbar_get_style().
Insert is a wrapper around gtk_toolbar_insert().
SetDropHighlightItem is a wrapper around gtk_toolbar_set_drop_highlight_item().
SetIconSize is a wrapper around gtk_toolbar_set_icon_size().
SetShowArrow is a wrapper around gtk_toolbar_set_show_arrow().
func (v *Toolbar) SetStyle(style ToolbarStyle)
SetStyle is a wrapper around gtk_toolbar_set_style().
UnsetIconSize is a wrapper around gtk_toolbar_unset_icon_size().
UnsetStyle is a wrapper around gtk_toolbar_unset_style().
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
)SetCustom is a wrapper around gtk_tooltip_set_custom().
SetIcon is a wrapper around gtk_tooltip_set_icon().
SetIconFromIconName is a wrapper around gtk_tooltip_set_icon_from_icon_name().
SetMarkup is a wrapper around gtk_tooltip_set_markup().
SetText is a wrapper around gtk_tooltip_set_text().
SetTipArea is a wrapper around gtk_tooltip_set_tip_area().
TreeIter is a representation of GTK's GtkTreeIter.
Copy() is a wrapper around gtk_tree_iter_copy().
TreeModel is a representation of GTK's GtkTreeModel GInterface.
func (v *TreeModel) FilterNew(root *TreePath) (*TreeModelFilter, error)
FilterNew is a wrapper around gtk_tree_model_filter_new().
GetColumnType() is a wrapper around gtk_tree_model_get_column_type().
func (v *TreeModel) GetFlags() TreeModelFlags
GetFlags() is a wrapper around gtk_tree_model_get_flags().
GetIter() is a wrapper around gtk_tree_model_get_iter().
GetIterFirst() is a wrapper around gtk_tree_model_get_iter_first().
GetIterFromString() is a wrapper around gtk_tree_model_get_iter_from_string().
GetNColumns() is a wrapper around gtk_tree_model_get_n_columns().
GetPath() is a wrapper around gtk_tree_model_get_path().
GetValue() is a wrapper around gtk_tree_model_get_value().
IterChildren is a wrapper around gtk_tree_model_iter_children().
IterHasChild() is a wrapper around gtk_tree_model_iter_has_child().
IterNChildren is a wrapper around gtk_tree_model_iter_n_children().
IterNext() is a wrapper around gtk_tree_model_iter_next().
IterNthChild is a wrapper around gtk_tree_model_iter_nth_child().
IterParent is a wrapper around gtk_tree_model_iter_parent().
IterPrevious is a wrapper around gtk_tree_model_iter_previous().
TreeModelFilter is a representation of GTK's GtkTreeModelFilter.
func (v *TreeModelFilter) SetVisibleColumn(column int)
SetVisibleColumn is a wrapper around gtk_tree_model_filter_set_visible_column().
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
)TreePath is a representation of GTK's GtkTreePath.
Return a TreePath from the GList
TreePathNewFromString is a wrapper around gtk_tree_path_new_from_string().
GetIndices is a wrapper around gtk_tree_path_get_indices_with_depth
String is a wrapper around gtk_tree_path_to_string().
TreeSelection is a representation of GTK's GtkTreeSelection.
func (v *TreeSelection) CountSelectedRows() int
CountSelectedRows() is a wrapper around gtk_tree_selection_count_selected_rows().
func (v *TreeSelection) GetMode() SelectionMode
GetMode() is a wrapper around gtk_tree_selection_get_mode().
func (v *TreeSelection) GetSelected() (model ITreeModel, iter *TreeIter, ok bool)
GetSelected() is a wrapper around gtk_tree_selection_get_selected().
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 (v *TreeSelection) SelectIter(iter *TreeIter)
SelectIter is a wrapper around gtk_tree_selection_select_iter().
func (v *TreeSelection) SelectPath(path *TreePath)
SelectPath is a wrapper around gtk_tree_selection_select_path().
func (v *TreeSelection) SetMode(m SelectionMode)
SetMode() is a wrapper around gtk_tree_selection_set_mode().
func (v *TreeSelection) UnselectPath(path *TreePath)
UnselectPath is a wrapper around gtk_tree_selection_unselect_path().
TreeStore is a representation of GTK's GtkTreeStore.
TreeStoreNew is a wrapper around gtk_tree_store_newv().
Append is a wrapper around gtk_tree_store_append().
Clear is a wrapper around gtk_tree_store_clear().
Insert is a wrapper around gtk_tree_store_insert
Remove is a wrapper around gtk_tree_store_remove().
SetValue is a wrapper around gtk_tree_store_set_value()
TreeView is a representation of GTK's GtkTreeView.
TreeViewNew is a wrapper around gtk_tree_view_new().
func TreeViewNewWithModel(model ITreeModel) (*TreeView, error)
TreeViewNewWithModel is a wrapper around gtk_tree_view_new_with_model().
func (v *TreeView) AppendColumn(column *TreeViewColumn) int
AppendColumn is a wrapper around gtk_tree_view_append_column().
CollapseAll is a wrapper around gtk_tree_view_collapse_all().
CollapseRow is a wrapper around gtk_tree_view_collapse_row().
ColumnsAutosize is a wrapper around gtk_tree_view_columns_autosize().
ExpandAll is a wrapper around gtk_tree_view_expand_all().
ExpandRow is a wrapper around gtk_tree_view_expand_row().
ExpandToPath is a wrapper around gtk_tree_view_expand_to_path().
GetActivateOnSingleClick is a wrapper around gtk_tree_view_get_activate_on_single_click().
GetBinWindow is a wrapper around gtk_tree_view_get_bin_window().
func (v *TreeView) GetColumn(n int) *TreeViewColumn
GetColumn is a wrapper around gtk_tree_view_get_column().
func (v *TreeView) GetCursor() (p *TreePath, c *TreeViewColumn)
GetCursor is a wrapper around gtk_tree_view_get_cursor().
GetEnableSearch is a wrapper around gtk_tree_view_get_enable_search().
GetEnableTreeLines is a wrapper around gtk_tree_view_get_enable_tree_lines().
func (v *TreeView) GetExpanderColumn() *TreeViewColumn
GetExpanderColumn is a wrapper around gtk_tree_view_get_expander_column().
GetFixedHeightMode is a wrapper around gtk_tree_view_get_fixed_height_mode().
GetHeadersClickable is a wrapper around gtk_tree_view_get_headers_clickable().
GetHeadersVisible is a wrapper around gtk_tree_view_get_headers_visible().
GetHoverExpand is a wrapper around gtk_tree_view_get_hover_expand().
GetHoverSelection is a wrapper around gtk_tree_view_get_hover_selection().
GetLevelIndentation is a wrapper around gtk_tree_view_get_level_indentation().
GetModel is a wrapper around gtk_tree_view_get_model().
GetNColumns is a wrapper around gtk_tree_view_get_n_columns().
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().
GetReorderable is a wrapper around gtk_tree_view_get_reorderable().
GetRubberBanding is a wrapper around gtk_tree_view_get_rubber_banding().
GetSearchColumn is a wrapper around gtk_tree_view_get_search_column().
GetSearchEntry is a wrapper around gtk_tree_view_get_search_entry().
func (v *TreeView) GetSelection() (*TreeSelection, error)
GetSelection is a wrapper around gtk_tree_view_get_selection().
GetShowExpanders is a wrapper around gtk_tree_view_get_show_expanders().
GetTooltipColumn is a wrapper around gtk_tree_view_get_tooltip_column().
func (v *TreeView) InsertColumn(column *TreeViewColumn, pos int) int
InsertColumn is a wrapper around gtk_tree_view_insert_column().
IsRubberBandingActive is a wrapper around gtk_tree_view_is_rubber_banding_active().
func (v *TreeView) MoveColumnAfter(column *TreeViewColumn, baseColumn *TreeViewColumn)
MoveColumnAfter is a wrapper around gtk_tree_view_move_column_after().
func (v *TreeView) RemoveColumn(column *TreeViewColumn) int
RemoveColumn is a wrapper around gtk_tree_view_remove_column().
func (v *TreeView) RowActivated(path *TreePath, column *TreeViewColumn)
RowActivated is a wrapper around gtk_tree_view_row_activated().
RowExpanded is a wrapper around gtk_tree_view_row_expanded().
ScrollToPoint is a wrapper around gtk_tree_view_scroll_to_point().
SetActivateOnSingleClick is a wrapper around gtk_tree_view_set_activate_on_single_click().
func (v *TreeView) SetCursor(path *TreePath, focusColumn *TreeViewColumn, startEditing bool)
SetCursor is a wrapper around gtk_tree_view_set_cursor().
func (v *TreeView) SetCursorOnCell(path *TreePath, focusColumn *TreeViewColumn, focusCell *CellRenderer, startEditing bool)
SetCursorOnCell is a wrapper around gtk_tree_view_set_cursor_on_cell().
SetEnableSearch is a wrapper around gtk_tree_view_set_enable_search().
SetEnableTreeLines is a wrapper around gtk_tree_view_set_enable_tree_lines().
func (v *TreeView) SetExpanderColumn(column *TreeViewColumn)
SetExpanderColumn is a wrapper around gtk_tree_view_set_expander_column().
SetFixedHeightMode is a wrapper around gtk_tree_view_set_fixed_height_mode().
SetHeadersClickable is a wrapper around gtk_tree_view_set_headers_clickable().
SetHeadersVisible is a wrapper around gtk_tree_view_set_headers_visible().
SetHoverExpand is a wrapper around gtk_tree_view_set_hover_expand().
SetHoverSelection is a wrapper around gtk_tree_view_set_hover_selection().
SetLevelIndentation is a wrapper around gtk_tree_view_set_level_indentation().
func (v *TreeView) SetModel(model ITreeModel)
SetModel is a wrapper around gtk_tree_view_set_model().
SetReorderable is a wrapper around gtk_tree_view_set_reorderable().
SetRubberBanding is a wrapper around gtk_tree_view_set_rubber_banding().
SetSearchColumn is a wrapper around gtk_tree_view_set_search_column().
SetSearchEntry is a wrapper around gtk_tree_view_set_search_entry().
SetSearchEqualSubstringMatch sets TreeView to search by substring match.
SetShowExpanders is a wrapper around gtk_tree_view_set_show_expanders().
SetTooltipColumn is a wrapper around gtk_tree_view_set_tooltip_column().
type TreeViewColumn struct {
glib.InitiallyUnowned
}TreeViewColumns is a representation of GTK's GtkTreeViewColumn.
func TreeViewColumnNew() (*TreeViewColumn, error)
TreeViewColumnNew() is a wrapper around gtk_tree_view_column_new().
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 (v *TreeViewColumn) AddAttribute(renderer ICellRenderer, attribute string, column int)
AddAttribute() is a wrapper around gtk_tree_view_column_add_attribute().
func (v *TreeViewColumn) CellIsVisible() bool
CellIsVisible() is a wrapper around gtk_tree_view_column_cell_is_visible().
func (v *TreeViewColumn) Clear()
Clear() is a wrapper around gtk_tree_view_column_clear().
func (v *TreeViewColumn) ClearAttributes(cell *CellRenderer)
ClearAttributes() is a wrapper around gtk_tree_view_column_clear_attributes().
func (v *TreeViewColumn) Clicked()
Clicked() is a wrapper around gtk_tree_view_column_clicked().
func (v *TreeViewColumn) FocusCell(cell *CellRenderer)
FocusCell() is a wrapper around gtk_tree_view_column_focus_cell().
func (v *TreeViewColumn) GetClickable() bool
GetClickable() is a wrapper around gtk_tree_view_column_get_clickable().
func (v *TreeViewColumn) GetExpand() bool
GetExpand() is a wrapper around gtk_tree_view_column_get_expand().
func (v *TreeViewColumn) GetFixedWidth() int
GetFixedWidth() is a wrapper around gtk_tree_view_column_get_fixed_width().
func (v *TreeViewColumn) GetMaxWidth() int
GetMaxWidth() is a wrapper around gtk_tree_view_column_get_max_width().
func (v *TreeViewColumn) GetMinWidth() int
GetMinWidth() is a wrapper around gtk_tree_view_column_get_min_width().
func (v *TreeViewColumn) GetReorderable() bool
GetReorderable() is a wrapper around gtk_tree_view_column_get_reorderable().
func (v *TreeViewColumn) GetResizable() bool
GetResizable() is a wrapper around gtk_tree_view_column_get_resizable().
func (v *TreeViewColumn) GetSizing() TreeViewColumnSizing
GtkTreeViewColumnSizing gtk_tree_view_column_get_sizing ()
func (v *TreeViewColumn) GetSortColumnID() int
GetSortColumnID() is a wrapper around gtk_tree_view_column_get_sort_column_id().
func (v *TreeViewColumn) GetSortIndicator() bool
GetSortIndicator() is a wrapper around gtk_tree_view_column_get_sort_indicator().
func (v *TreeViewColumn) GetSortOrder() SortType
GtkSortType gtk_tree_view_column_get_sort_order ()
func (v *TreeViewColumn) GetSpacing() int
GetSpacing() is a wrapper around gtk_tree_view_column_get_spacing().
func (v *TreeViewColumn) GetTitle() string
GetTitle() is a wrapper around gtk_tree_view_column_get_title().
func (v *TreeViewColumn) GetVisible() bool
GetVisible() is a wrapper around gtk_tree_view_column_get_visible().
func (v *TreeViewColumn) GetWidth() int
GetWidth() is a wrapper around gtk_tree_view_column_get_width().
func (v *TreeViewColumn) GetXOffset() int
GetXOffset() is a wrapper around gtk_tree_view_column_get_x_offset().
func (v *TreeViewColumn) PackEnd(cell ICellRenderer, expand bool)
PackEnd() is a wrapper around gtk_tree_view_column_pack_end().
func (v *TreeViewColumn) PackStart(cell ICellRenderer, expand bool)
PackStart() is a wrapper around gtk_tree_view_column_pack_start().
func (v *TreeViewColumn) QueueResize()
QueueResize() is a wrapper around gtk_tree_view_column_queue_resize().
func (v *TreeViewColumn) SetClickable(clickable bool)
SetClickable() is a wrapper around gtk_tree_view_column_set_clickable().
func (v *TreeViewColumn) SetExpand(expand bool)
SetExpand() is a wrapper around gtk_tree_view_column_set_expand().
func (v *TreeViewColumn) SetFixedWidth(w int)
SetFixedWidth() is a wrapper around gtk_tree_view_column_set_fixed_width().
func (v *TreeViewColumn) SetMaxWidth(w int)
SetMaxWidth() is a wrapper around gtk_tree_view_column_set_max_width().
func (v *TreeViewColumn) SetMinWidth(minWidth int)
SetMinWidth() is a wrapper around gtk_tree_view_column_set_min_width().
func (v *TreeViewColumn) SetReorderable(reorderable bool)
SetReorderable() is a wrapper around gtk_tree_view_column_set_reorderable().
func (v *TreeViewColumn) SetResizable(resizable bool)
SetResizable() is a wrapper around gtk_tree_view_column_set_resizable().
func (v *TreeViewColumn) SetSizing(sizing TreeViewColumnSizing)
void gtk_tree_view_column_set_sizing ()
func (v *TreeViewColumn) SetSortColumnID(w int)
SetSortColumnID() is a wrapper around gtk_tree_view_column_set_sort_column_id().
func (v *TreeViewColumn) SetSortIndicator(reorderable bool)
SetSortIndicator() is a wrapper around gtk_tree_view_column_set_sort_indicator().
func (v *TreeViewColumn) SetSortOrder(order SortType)
void gtk_tree_view_column_set_sort_order ()
func (v *TreeViewColumn) SetSpacing(spacing int)
SetSpacing() is a wrapper around gtk_tree_view_column_set_spacing().
func (v *TreeViewColumn) SetTitle(t string)
SetTitle() is a wrapper around gtk_tree_view_column_set_title().
func (v *TreeViewColumn) SetVisible(visible bool)
SetVisible() is a wrapper around gtk_tree_view_column_set_visible().
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 struct {
Bin
// Interfaces
Scrollable
}Viewport is a representation of GTK's GtkViewport GInterface.
func ViewportNew(hadjustment, vadjustment *Adjustment) (*Viewport, error)
ViewportNew() is a wrapper around gtk_viewport_new().
func (v *Viewport) GetHAdjustment() (*Adjustment, error)
func (v *Viewport) GetVAdjustment() (*Adjustment, error)
func (v *Viewport) SetHAdjustment(adjustment *Adjustment)
func (v *Viewport) SetVAdjustment(adjustment *Adjustment)
type VolumeButton struct {
ScaleButton
}VolumeButton is a representation of GTK's GtkVolumeButton.
func VolumeButtonNew() (*VolumeButton, error)
VolumeButtonNew() is a wrapper around gtk_button_new().
type Widget struct {
glib.InitiallyUnowned
}Widget is a representation of GTK's GtkWidget.
Activate() is a wrapper around gtk_widget_activate().
func (v *Widget) AddAccelerator(signal string, group *AccelGroup, key uint, mods gdk.ModifierType, flags AccelFlags)
AddAccelerator is a wrapper around gtk_widget_add_accelerator().
AddEvents is a wrapper around gtk_widget_add_events().
CanActivateAccel is a wrapper around gtk_widget_can_activate_accel().
Destroy is a wrapper around gtk_widget_destroy().
func (v *Widget) DragDestSet(flags DestDefaults, targets []TargetEntry, actions gdk.DragAction)
Event() is a wrapper around gtk_widget_event().
GetAllocatedHeight() is a wrapper around gtk_widget_get_allocated_height().
GetAllocatedWidth() is a wrapper around gtk_widget_get_allocated_width().
func (v *Widget) GetAllocation() *Allocation
GetAllocation is a wrapper around gtk_widget_get_allocation().
GetAppPaintable is a wrapper around gtk_widget_get_app_paintable().
GetCanDefault is a wrapper around gtk_widget_get_can_default().
GetCanFocus is a wrapper around gtk_widget_get_can_focus().
func (v *Widget) GetClip() *Allocation
GetClip is a wrapper around gtk_widget_get_clip().
GetDeviceEnabled is a wrapper around gtk_widget_get_device_enabled().
GetEvents is a wrapper around gtk_widget_get_events().
GetHAlign is a wrapper around gtk_widget_get_halign().
GetHExpand is a wrapper around gtk_widget_get_hexpand().
GetHasWindow is a wrapper around gtk_widget_get_has_window().
GetMapped is a wrapper around gtk_widget_get_mapped().
GetMarginBottom is a wrapper around gtk_widget_get_margin_bottom().
GetMarginTop is a wrapper around gtk_widget_get_margin_top().
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.
GetNoShowAll is a wrapper around gtk_widget_get_no_show_all().
GetOpacity is a wrapper around gtk_widget_get_opacity()
GetParent is a wrapper around gtk_widget_get_parent().
GetParentWindow is a wrapper around gtk_widget_get_parent_window().
GetPreferredHeight is a wrapper around gtk_widget_get_preferred_height().
GetPreferredWidth is a wrapper around gtk_widget_get_preferred_width().
GetRealized is a wrapper around gtk_widget_get_realized().
GetSensitive is a wrapper around gtk_widget_get_sensitive().
GetSizeRequest is a wrapper around gtk_widget_get_size_request().
func (v *Widget) GetStyleContext() (*StyleContext, error)
GetStyleContext is a wrapper around gtk_widget_get_style_context().
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.
GetToplevel is a wrapper around gtk_widget_get_toplevel().
GetVAlign is a wrapper around gtk_widget_get_valign().
GetVExpand is a wrapper around gtk_widget_get_vexpand().
GetVisible is a wrapper around gtk_widget_get_visible().
GetWindow is a wrapper around gtk_widget_get_window().
GrabDefault() is a wrapper around gtk_widget_grab_default().
GrabFocus() is a wrapper around gtk_widget_grab_focus().
HasDefault is a wrapper around gtk_widget_has_default().
HasFocus is a wrapper around gtk_widget_has_focus().
HasGrab is a wrapper around gtk_widget_has_grab().
HasVisibleFocus is a wrapper around gtk_widget_has_visible_focus().
Hide is a wrapper around gtk_widget_hide().
InDestruction is a wrapper around gtk_widget_in_destruction().
func (v *Widget) InsertActionGroup(name string, group glib.IActionGroup)
IsDrawable is a wrapper around gtk_widget_is_drawable().
IsFocus() is a wrapper around gtk_widget_is_focus().
IsSensitive is a wrapper around gtk_widget_is_sensitive().
IsToplevel is a wrapper around gtk_widget_is_toplevel().
IsVisible is a wrapper around gtk_widget_is_visible().
Map is a wrapper around gtk_widget_map().
QueueDraw is a wrapper around gtk_widget_queue_draw().
QueueDrawArea is a wrapper aroung gtk_widget_queue_draw_area().
func (v *Widget) RemoveAccelerator(group *AccelGroup, key uint, mods gdk.ModifierType) bool
RemoveAccelerator is a wrapper around gtk_widget_remove_accelerator().
ResetStyle is a wrapper around gtk_widget_reset_style().
func (v *Widget) SetAccelPath(path string, group *AccelGroup)
SetAccelPath is a wrapper around gtk_widget_set_accel_path().
func (v *Widget) SetAllocation(allocation *Allocation)
SetAllocation is a wrapper around gtk_widget_set_allocation().
SetAppPaintable is a wrapper around gtk_widget_set_app_paintable().
SetCanDefault is a wrapper around gtk_widget_set_can_default().
SetCanFocus is a wrapper around gtk_widget_set_can_focus().
func (v *Widget) SetClip(clip *Allocation)
SetClip is a wrapper around gtk_widget_set_clip().
SetDeviceEnabled is a wrapper around gtk_widget_set_device_enabled().
SetEvents is a wrapper around gtk_widget_set_events().
SetHAlign is a wrapper around gtk_widget_set_halign().
SetHExpand is a wrapper around gtk_widget_set_hexpand().
SetHasWindow is a wrapper around gtk_widget_set_has_window().
SetMapped is a wrapper around gtk_widget_set_mapped().
SetMarginBottom is a wrapper around gtk_widget_set_margin_bottom().
SetMarginTop is a wrapper around gtk_widget_set_margin_top().
SetName() is a wrapper around gtk_widget_set_name().
SetNoShowAll is a wrapper around gtk_widget_set_no_show_all().
SetOpacity is a wrapper around gtk_widget_set_opacity()
SetParent is a wrapper around gtk_widget_set_parent().
SetParentWindow is a wrapper around gtk_widget_set_parent_window().
SetRealized is a wrapper around gtk_widget_set_realized().
SetSensitive is a wrapper around gtk_widget_set_sensitive().
SetSizeRequest is a wrapper around gtk_widget_set_size_request().
func (v *Widget) SetStateFlags(stateFlags StateFlags, clear bool)
SetStateFlags is a wrapper around gtk_widget_set_state_flags().
SetTooltipText is a wrapper around gtk_widget_set_tooltip_text().
SetVAlign is a wrapper around gtk_widget_set_valign().
SetVExpand is a wrapper around gtk_widget_set_vexpand().
SetVisible is a wrapper around gtk_widget_set_visible().
SetVisual is a wrapper around gtk_widget_set_visual().
Show is a wrapper around gtk_widget_show().
ShowAll is a wrapper around gtk_widget_show_all().
ShowNow is a wrapper around gtk_widget_show_now().
func (v *Widget) SizeAllocate(allocation *Allocation)
SizeAllocate is a wrapper around gtk_widget_size_allocate().
TranslateCoordinates is a wrapper around gtk_widget_translate_coordinates().
Unmap is a wrapper around gtk_widget_unmap().
Unparent is a wrapper around gtk_widget_unparent().
Window is a representation of GTK's GtkWindow.
func WindowNew(t WindowType) (*Window, error)
WindowNew is a wrapper around gtk_window_new().
ActivateDefault is a wrapper around gtk_window_activate_default().
ActivateFocus is a wrapper around gtk_window_activate_focus().
ActivateKey is a wrapper around gtk_window_activate_key().
ActivateMnemonic is a wrapper around gtk_window_mnemonic_activate().
func (v *Window) AddAccelGroup(accelGroup *AccelGroup)
AddAccelGroup() is a wrapper around gtk_window_add_accel_group().
AddMnemonic is a wrapper around gtk_window_add_mnemonic().
Close is a wrapper around gtk_window_close().
Deiconify is a wrapper around gtk_window_deiconify().
Fullscreen is a wrapper around gtk_window_fullscreen().
GetAcceptFocus is a wrapper around gtk_window_get_accept_focus().
func (v *Window) GetApplication() (*Application, error)
GetApplication is a wrapper around gtk_window_get_application().
GetAttachedTo is a wrapper around gtk_window_get_attached_to().
GetDecorated is a wrapper around gtk_window_get_decorated().
GetDefaultSize is a wrapper around gtk_window_get_default_size().
GetDefaultWidget is a wrapper arround gtk_window_get_default_widget().
GetDeletable is a wrapper around gtk_window_get_deletable().
GetDestroyWithParent is a wrapper around gtk_window_get_destroy_with_parent().
GetFocus is a wrapper around gtk_window_get_focus().
GetFocusOnMap is a wrapper around gtk_window_get_focus_on_map().
GetFocusVisible is a wrapper around gtk_window_get_focus_visible().
GetHideTitlebarWhenMaximized is a wrapper around gtk_window_get_hide_titlebar_when_maximized().
GetIcon is a wrapper around gtk_window_get_icon().
GetIconName is a wrapper around gtk_window_get_icon_name().
func (v *Window) GetMnemonicModifier() gdk.ModifierType
GetMnemonicModifier is a wrapper around gtk_window_get_mnemonic_modifier().
GetMnemonicsVisible is a wrapper around gtk_window_get_mnemonics_visible().
GetModal is a wrapper around gtk_window_get_modal().
GetPosition is a wrapper around gtk_window_get_position().
GetResizable is a wrapper around gtk_window_get_resizable().
GetRole is a wrapper around gtk_window_get_role().
GetScreen is a wrapper around gtk_window_get_screen().
GetSize is a wrapper around gtk_window_get_size().
GetSkipPagerHint is a wrapper around gtk_window_get_skip_pager_hint().
GetSkipTaskbarHint is a wrapper around gtk_window_get_skip_taskbar_hint().
GetTitle is a wrapper around gtk_window_get_title().
GetTransientFor is a wrapper around gtk_window_get_transient_for().
func (v *Window) GetTypeHint() gdk.WindowTypeHint
GetTypeHint is a wrapper around gtk_window_get_type_hint().
GetUrgencyHint is a wrapper around gtk_window_get_urgency_hint().
HasGroup is a wrapper around gtk_window_has_group().
HasToplevelFocus is a wrapper around gtk_window_has_toplevel_focus().
Iconify is a wrapper around gtk_window_iconify().
IsActive is a wrapper around gtk_window_is_active().
IsMaximized is a wrapper around gtk_window_is_maximized().
Maximize is a wrapper around gtk_window_maximize().
Move is a wrapper around gtk_window_move().
Present is a wrapper around gtk_window_present().
PresentWithTime is a wrapper around gtk_window_present_with_time().
func (v *Window) RemoveAccelGroup(accelGroup *AccelGroup)
RemoveAccelGroup() is a wrapper around gtk_window_add_accel_group().
RemoveMnemonic is a wrapper around gtk_window_remove_mnemonic().
Resize is a wrapper around gtk_window_resize().
SetAcceptFocus is a wrapper around gtk_window_set_accept_focus().
func (v *Window) SetApplication(a *Application)
SetApplication is a wrapper around gtk_window_set_application().
SetDecorated is a wrapper around gtk_window_set_decorated().
SetDefault is a wrapper arround gtk_window_set_default().
SetDefaultSize is a wrapper around gtk_window_set_default_size().
SetDeletable is a wrapper around gtk_window_set_deletable().
SetDestroyWithParent is a wrapper around gtk_window_set_destroy_with_parent().
SetFocus is a wrapper around gtk_window_set_focus().
SetFocusOnMap is a wrapper around gtk_window_set_focus_on_map().
SetFocusVisible is a wrapper around gtk_window_set_focus_visible().
func (v *Window) SetGravity(gravity gdk.GdkGravity)
SetGravity is a wrapper around gtk_window_set_gravity().
SetHideTitlebarWhenMaximized is a wrapper around gtk_window_set_hide_titlebar_when_maximized().
SetIcon is a wrapper around gtk_window_set_icon().
SetIconFromFile is a wrapper around gtk_window_set_icon_from_file().
SetIconName is a wrapper around gtk_window_set_icon_name().
SetKeepAbove is a wrapper around gtk_window_set_keep_above().
SetKeepBelow is a wrapper around gtk_window_set_keep_below().
func (v *Window) SetMnemonicModifier(mods gdk.ModifierType)
SetMnemonicModifier is a wrapper around gtk_window_set_mnemonic_modifier().
SetMnemonicsVisible is a wrapper around gtk_window_get_mnemonics_visible().
SetModal is a wrapper around gtk_window_set_modal().
func (v *Window) SetPosition(position WindowPosition)
SetPosition is a wrapper around gtk_window_set_position().
SetResizable is a wrapper around gtk_window_set_resizable().
SetRole is a wrapper around gtk_window_set_role().
SetSkipPagerHint is a wrapper around gtk_window_set_skip_pager_hint().
SetSkipTaskbarHint is a wrapper around gtk_window_set_skip_taskbar_hint().
SetStartupID is a wrapper around gtk_window_set_startup_id().
SetTitle is a wrapper around gtk_window_set_title().
SetTitlebar is a wrapper around gtk_window_set_titlebar().
SetTransientFor is a wrapper around gtk_window_set_transient_for().
func (v *Window) SetTypeHint(typeHint gdk.WindowTypeHint)
SetTypeHint is a wrapper around gtk_window_set_type_hint().
SetUrgencyHint is a wrapper around gtk_window_set_urgency_hint().
Stick is a wrapper around gtk_window_stick().
Unfullscreen is a wrapper around gtk_window_unfullscreen().
Unmaximize is a wrapper around gtk_window_unmaximize().
Unstick is a wrapper around gtk_window_unstick().
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
)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 interface{}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.