package
0.0.0-20240817140251-aa2fb5bc486d
Repository: https://github.com/diamondburned/gotkit.git
Documentation: pkg.go.dev
# Packages
Package aggressivegc enforces a GC every minute.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package textutil contains utilities for handling Pango markup and TextBuffer shenanigans.
# Functions
ActionFunc creates a CallbackActionFunc from a function.
ActionGroup constructs an action group from the diven action data.
AddActionCallbacks adds the given action callbacks to the given widget.
AddActions adds the given actions to the given widget.
AddActionShortcuts adds the given shortcuts to the widget.
AddCallbackShortcuts adds the given shortcuts to the widget.
Async runs asyncFn in a goroutine and runs the returned callback in the main thread.
BindActionCallbackMap is a more verbose variant of BindActionMap.
BindActionMap binds the given map of actions (of key prefixed appropriately) to the given widget.
BindKeys binds the event controller returned from NewKeybinds being given the map to the given widget.
BindPopoverMenu binds the given widget to a popover menu to be displayed on right-clicking.
BindPopoverMenuAtMouse binds the given widget to a popover menu to be displayed on right-clicking, but at the mouse position.
BindPopoverMenuCustom works similarly to BindPopoverMenu, but the value type can be more than just an action string.
BindPopoverMenuLazy is similarl to BindPopoverMenuCustom, except the menu items are lazily created.
BindRightClick binds the given widget to take in right-click gestures.
BindRightClickAt is a version of BindRightClick with accurate coordinates given to the callback.
BindSubscribe calls f when w gets mapped.
CustomMenu returns a new Menu from the given popover menu items.
CustomMenuItems is the variadic arguments variant of CustomMenu.
EachChild iterates over w's children.
EachList calls f for each item in the list.
ForwardTyping forwards all typing events from w to dst.
No description provided by the author
FuncBatcher creates a new FuncBatch.
IdleCtx runs the given callback inside the main loop only if the context has not expired.
InvokeMain invokes f in the main loop.
IsCancelled returns true if the cancellable is cancelled.
MenuItem creates a simple popover menu item.
MenuItemIcon is an icon variant of MenuItem.
MenuPair creates a gtk.Menu out of the given menu pair.
MenuSeparator creates a new menu separator.
MenuWidget creates a new menu item that contains a widget.
MustUnmarshalBuilder calls UnmarshalBuilder and panics on any error.
NewCallbackAction creates a new CallbackAction.
NewCallbackActionParam creates a new CallbackAction with a single parameter.
No description provided by the author
NewDragSourceWithContent creates a new DragSource with the given Go value.
NewJSONActionCallback creates a new ActionCallback that uses JSON to marshal and unmarshal data.
NewJSONVariant creates a new GVariant instance from any Go value that can be encoded into JSON.
NewKeybinds binds all accelerators given in the map with their respective functions to the returned EventControllerKey.
NewListDropTarget creates a new DropTarget that highlights the row.
NewPopoverMenu creates a new Popover menu.
NewPopoverMenuCustom creates a new Popover containing the given items.
NewPopoverMenuFromPairs is a convenient function for NewPopoverMenuFromModel and MenuPairs.
NewRadioButtons creates a new box of radio buttons.
NotifyProperty calls f everytime the object's property changes until it returns true.
OnFirstDraw attaches f to be called on the first time the widget is drawn on the screen.
OnFirstDrawUntil attaches f to be called on the first time the widget is drawn on the screen.
OnFirstMap attaches f to be called on the first time the widget is mapped on the screen.
PopupFinally pops up the Popover and schedules it to destroy itself when it's closed.
RecursiveUnfuck calls WipeAllClosures on the widget tree.
RemoveChildren removes all children from w.
RowAtY returns the row as well as the position type (top or bottom) relative to that row.
ScaleFactor returns the largest scale factor from all the displays.
SetScaleFactor sets the global maximum scale factor.
ShowPopoverMenu is like ShowPopoverMenuCustom but uses a regular string pair list.
ShowPopoverMenuCustom is like BindPopoverMenuCustom, but it does not bind a handler.
SignalToggler is a small helper to allow binding the same signal to different objects while unbinding the previous one.
Submenu creates a popover menu item that is a submenu.
UnmarshalBuilder unmarshals the given gtk.Builder instance into the given struct pointer dst.
WalkWidget walks w and its children recursively down the widget tree.
WithCanceller wraps around a context.
WithVisibility creates a new context that is canceled when the widget is hidden.
# Constants
PopoverWidth is the default popover width.
# Variables
array of bytes.
# Structs
ActionCallback is a type holding a callback with a GVariant argument and a GVariantType field describing its internal structure.
ActionData describes a CallbackAction's data.
CallbackAction extends SimpleAction to provide idiomatic callback APIs.
RadioData describes the data for the set of radio buttons created by NewRadioButtons.
# Interfaces
Cancellable describes a renewable and cancelable context.
Canceller extends Cancellable to allow the user to control the context.
PopoverMenuItem defines a popover menu item constructed from one of the constructors.
Popupper describes the Popover's Popup interface.
# Type aliases
FuncBatch batches functions for calling.