ActiveWindow returns the window that currently has the keyboard focus, or nil if none of your application windows has the keyboard focus.
AllDisplays returns all displays.
AllFontFaces returns all known font faces as FontFaceDescriptors.
AllowQuitCallback will cause f to be called when app termination has been requested.
AllWindowsToFront brings all of the application's windows to the foreground.
Alpha30Filter returns a ColorFilter that transforms colors by applying a 30% alpha blend.
AlwaysEnabled is a helper function whose signature matches the 'can' function signature required for InstallCmdHandlers() that always returns true.
Ancestor returns the first ancestor of the given type.
AncestorIs returns true if the paneler has the given ancestor.
AncestorIsOrSelf returns true if the paneler has the given ancestor or is the ancestor.
AncestorOrSelf returns the provided panel or the first ancestor of the given type.
ARGB creates a new Color from RGB (Red, Green Blue) values in the range 0-255 and an alpha value in the range 0-1.
ARGBfloat creates a new Color from ARGB (Alpha, Red, Green Blue) values in the range 0-1.
ArrowCursor returns the standard arrow cursor.
AttachConsole attempts to fix Windows console output, which is generally broken thanks to their oddball and unnecessary split between graphical and command-line applications.
AttemptQuit initiates the termination sequence.
Beep plays the system beep sound.
BestDisplayForRect returns the display with the greatest overlap with the rectangle, or the primary display if there is no overlap.
CannotRedoTitle returns the Cannot Redo title.
CannotUndoTitle returns the Cannot Undo title.
CatmullRomResampler is the standard "Catmull-Rom" filter.
CheckStateFromBool returns the equivalent CheckState.
CollectUUIDsFromRow returns a map containing the UUIDs of the provided node and all of its descendants.
ColorDecode creates a Color from a string.
CombinePaths combines two or more paths into a new path.
CopyAction returns the action that copies the selection and places it on the clipboard.
CountTableRows returns the number of table rows, including all descendants, whether open or not.
CreateDeriveLightnessFunc returns a function that will adjust the lightness of a ThemeColor by the given amount.
CreateFontFace creates a new FontFace from font data.
CreatePDF writes a PDF to the given stream.
CurrentColorMode returns the current ColorMode state.
CutAction returns the action that removes the selection and places it on the clipboard.
DashEffect returns a 4-4 dash effect.
DefaultMarkdownLinkHandler provides the default link handler, which handles opening a browsers for http and https links.
DefaultMenuFactory returns the default MenuFactory for the platform.
DefaultThemeError returns the default error color.
DefaultThemeFocus returns the default focus color.
DefaultThemeSurface returns the default surface color.
DefaultThemeTooltip returns the default tooltip color.
DefaultThemeWarning returns the default warning color.
DeleteAction returns the action that deletes the selection.
DeriveMarkdownCodeBlockFont derives a FontDescriptor for code from another font.
DeriveMarkdownHeadingFont derives a FontDescriptor for a heading from another font.
DeriveOn returns a new ThemeColor that is the On color for the passed in ThemeColor.
DistillImageSpecFor distills a file path or URL string into one that likely has an image we can read, or an empty string.
DockableFromDragData attempts to extract a Dockable from the given key in the data.
DockableHasFocus returns true if the given Dockable has the current focus inside it.
DoubleClickParameters returns the maximum delay between clicks and the maximum pixel drift allowed to register as a double-click.
DragGestureParameters returns the minimum delay before mouse movement should be recognized as a drag as well as the minimum pixel drift required to trigger a drag.
DrawEllipseBase fills and strokes an ellipse.
DrawLabel draws a label.
DrawRectBase fills and strokes a rectangle.
DrawRoundedRectBase fills and strokes a rounded rectangle.
EncodedImageFormatForExtension returns the EncodedImageFormat associated with the extension.
EncodedImageFormatForMimeType returns the EncodedImageFormat associated with the mime type.
EncodedImageFormatForPath returns the EncodedImageFormat associated with the extension of the given path.
ErrorDialogWithError displays a standard error dialog with the specified primary message and extracts the message from the error for its detail.
ErrorDialogWithMessage displays a standard error dialog with the specified primary and detail messages.
ErrorDialogWithPanel displays a standard error dialog with the specified panel.
FloatingWindowOption causes the window to float in front of all other non-floating windows.
FontFamilies retrieves the names of the installed font families.
Grayscale30Filter returns a ColorFilter that transforms colors to grayscale and applies a 30% alpha blend.
HasAnyPrefix returns true if the target has a prefix matching one of those found in prefixes.
HasURLPrefix returns true if the target has a prefix of "http://" or "https://".
HSB creates a new opaque Color from HSB (Hue, Saturation, Brightness) values in the range 0-1.
HSBA creates a new Color from HSBA (Hue, Saturation, Brightness, Alpha) values in the range 0-1.
InsertAboutItem creates the standard "About" menu item that will call the provided handler when chosen.
InsertBringAllToFrontItem creates the standard "Bring All to Front" menu item that will call AllWindowsToFront when chosen.
InsertCloseFocusedWindowItem creates the standard "Close" menu item that will close the currently focused window when chosen.
InsertMinimizeItem creates the standard "Minimize" menu item that will issue the Minimize command to the currently focused window when chosen.
InsertPreferencesItem creates the standard "Preferences…" menu item that will call the provided handler when chosen.
InsertQuitItem creates the standard "Quit"/"Exit" menu item that will issue the Quit command when chosen.
InsertStdMenus adds the standard menus to the menu bar.
InsertZoomItem creates the standard "Zoom" menu item that will issue the Zoom command to the currently focused window when chosen.
InstallDropSupport installs default drop support into a table.
InvokeTask calls a function on the UI thread.
InvokeTaskAfter schedules a function to be run on the UI thread after waiting for the specified duration.
IsColorModeTrackingPossible returns true if the underlying platform can provide the current dark mode state.
IsControlAction returns true if the keyCode should trigger a control, such as a button, that is focused.
IsDarkModeEnabled returns true if the OS is currently using a "dark mode".
KeyBindingFromKey extracts a KeyBinding from a string created via a call to .Key().
KeyCodeFromKey extracts KeyCode from a string created via a call to .Key().
LabelSize returns the preferred size of a label.
MarkDynamicColorsForRebuild marks the dynamic colors to be updated the next time RebuildDynamicColors() is called.
MatchFontFace attempts to locate the FontFace with the given family and style.
MatchFontFamily returns a FontFamily for the specified family name.
MaxSize returns the size that is at least as large as DefaultMaxSize in both dimensions, but larger if the size that is passed in is larger.
MitchellResampler is the standard "Mitchell" filter.
ModifiersFromKey extracts Modifiers from a string created via a call to .Key().
MoveCursor returns the standard move cursor.
MoveCursorImage returns the standard move cursor image.
MustColorDecode is the same as ColorDecode(), but returns Black if an error occurs.
MustSVG creates a new SVG the given svg path string (the contents of a single "d" attribute from an SVG "path" element) and panics if an error would be generated.
MustSVGFromContentString creates a new SVG and panics if an error would be generated.
MustSVGFromReader creates a new SVG and panics if an error would be generated.
New1dPathPathEffect creates a new 1D path PathEffect.
New2dLinePathEffect creates a new 2D line PathEffect.
New2dPathEffect creates a new 2D PathEffect.
New2PtConicalGradientShader creates a new 2-point conical gradient Shader.
NewAlphaFilter returns a new ColorFilter that applies an alpha blend.
NewAppMenu creates a standard 'App' menu.
NewARGBTableColorFilter returns a new ARGB table color filter.
NewArithmeticImageFilter returns a new arithmetic image filter.
NewBlendColorFilter returns a new blend color filter.
NewBlendShader creates a new blend Shader.
NewBlurImageFilter returns a new blur image filter.
NewBlurMaskFilter returns a new blur mask filter.
NewButton creates a new button.
NewCancelButtonInfo creates a standard cancel button.
NewCheckBox creates a new checkbox.
NewClipMaskFilter returns a new clip mask filter.
NewColorImageFilter returns a new color image filter.
NewColorShader creates a new color Shader.
NewCommonOpenDialog creates a new OpenDialog.
NewCommonSaveDialog creates a new SaveDialog.
NewComposeColorFilter returns a new color filter that combines two other color filters.
NewComposeImageFilter returns a new combining image filter.
NewComposePathEffect creates a new PathEffect that combines two PathEffects.
NewCompoundBorder creates a border that contains other borders.
NewCornerPathEffect creates a new corner PathEffect.
NewCursor creates a new custom cursor from an image.
NewDashPathEffect creates a new dash PathEffect.
NewDefaultFieldBorder creates the default border for a field.
NewDialog creates a new standard dialog.
NewDilateImageFilter returns a new dilate image filter.
NewDiscretePathEffect creates a new discrete PathEffect.
NewDisplacementImageFilter returns a new displacement image filter.
NewDistantLitDiffuseImageFilter returns a new distant lit diffuse image filter.
NewDistantLitSpecularImageFilter returns a new distant lit specular image filter.
NewDock creates a new, empty, dock.
NewDockContainer creates a new DockContainer.
NewDockState creates a new DockState for the given Dock.
NewDropShadowImageFilter returns a new drop shadow image filter.
NewDropShadowOnlyImageFilter returns a new drop shadow only image filter.
NewDynamicColor creates a new DynamicColor and registers it for theme updates.
NewEditMenu creates a standard 'Edit' menu.
NewEmptyBorder creates a new empty border with the specified insets.
NewErodeImageFilter returns a new erode image filter.
NewEvenlySpacedGradient creates a new gradient with the specified colors evenly spread across the whole range.
NewField creates a new, empty, field.
NewFileMenu creates a standard 'File' menu.
NewFileStream creates a new stream that writes to a file.
NewFractalPerlinNoiseShader creates a new fractal perlin noise Shader.
NewGammaMaskFilter returns a new gamma mask filter.
NewGroup creates a new group for the specified set of panels.
NewHelpMenu creates a standard 'Help' menu.
NewHighContrastColorFilter returns a new high contrast color filter.
NewHorizontalEvenlySpacedGradient creates a new gradient with the specified colors evenly spread across the whole range.
NewHorizontalInsets creates a new Insets whose left and right edges have the specified value.
NewIdentityMatrix creates a new identity transformation 2D matrix.
NewImageFromBytes creates a new image from raw bytes.
NewImageFromDrawing creates a new image by drawing into it.
NewImageFromFilePathOrURL creates a new image from data retrieved from the file path or URL.
NewImageFromFilePathOrURLWithContext creates a new image from data retrieved from the file path or URL.
NewImageFromPixels creates a new image from pixel data.
NewImageShader creates a new image Shader.
NewImageSourceDefaultImageFilter returns a new image source image filter that uses the default quality and the full image size.
NewImageSourceImageFilter returns a new image source image filter.
NewInWindowMenuFactory creates a new MenuFactory for in-window usage.
NewLabel creates a new, empty label.
NewLightingColorFilter returns a new lighting color filter.
NewLinearGradientShader creates a new linear gradient Shader.
NewLineBorder creates a new line border.
NewLink creates a new RichLabel that can be used as a hyperlink.
NewList creates a new List control.
NewLumaColorFilter returns a new luma color filter.
NewMagnifierImageFilter returns a new magnifier image filter.
NewMarkdown creates a new markdown widget.
NewMatrixColorFilter returns a new matrix color filter.
NewMatrixConvolutionImageFilter returns a new matrix convolution image filter.
NewMatrixTransformImageFilter returns a new matrix transform image filter.
NewMemoryStream creates a new stream that writes to memory.
NewMergeImageFilter returns a new merge image filter.
NewMessagePanel creates a new panel containing the given primary and detail messages.
NewMultiLineField creates a new, empty, multi-line, field.
NewNoButtonInfo creates a standard No button.
NewNumericField creates a new field that holds a numeric value and limits its input to a specific range of values.
NewOffsetImageFilter returns a new offset image filter.
NewOKButtonInfo creates a standard OK button.
NewOKButtonInfoWithTitle creates a standard OK button with a specific title.
NewOpenDialog creates a new open dialog using native support where possible.
NewPaint creates a new Paint.
NewPanel creates a new panel.
NewPath creates a new, empty path.
NewPathFromSVGString attempts to create a path from the given SVG string.
NewPoint creates a new Point.
NewPointLitDiffuseImageFilter returns a new point lit diffuse image filter.
NewPointLitSpecularImageFilter returns a new point lit specular image filter.
NewPointPtr creates a new *Point.
NewPopupMenu creates a new PopupMenu.
NewProgressBar creates a new progress bar.
NewRadialGradientShader creates a new radial gradient Shader.
NewRadioButton creates a new radio button.
NewRect creates a new Rect.
NewRectPtr creates a new *Rect.
NewRichLabel creates a new, empty rich label.
NewRotationByDegreesMatrix creates a new 2D matrix that rotates by 'degrees'.
NewRotationMatrix creates a new 2D matrix that rotates by 'radians'.
NewSaveDialog creates a new save dialog using native support where possible.
NewScaleMatrix creates a new 2D matrix that scales by 'sx' and 'sy'.
NewScrollBar creates a new scroll bar.
NewScrollPanel creates a new scrollable area.
NewSeparator creates a new separator line.
NewShaderMaskFilter returns a new shader mask filter.
NewSize creates a new Size.
NewSizePtr creates a new *Size.
NewSpotLitDiffuseImageFilter returns a new spot lit diffuse image filter.
NewSpotLitSpecularImageFilter returns a new spot lit specular image filter.
NewSumPathEffect creates a new sum PathEffect.
NewSVG creates a new SVG the given svg path string (the contents of a single "d" attribute from an SVG "path" element).
NewSVGButton creates an SVG icon button with a size equal to the default button theme's font baseline.
NewSVGFromContentString creates a new SVG.
NewSVGFromReader creates a new SVG.
NewSweepGradientShader creates a new sweep gradient Shader.
NewTable creates a new Table control.
NewTableColumnHeader creates a new table column header panel.
NewTableDragDrawable creates a new drawable for a table row drag.
NewTableHeader creates a new TableHeader.
NewTableMaskFilter returns a new table mask filter.
NewTag creates a new, empty Tag.
NewText creates a new Text.
NewTextFromRunes creates a new Text.
NewTextLines creates a new list of Text, one for each logical line.
NewTextWrappedLines creates a new list of Text, potentially multiple for each logical line.
NewTileImageFilter returns a new tile image filter.
NewTooltipBase returns the base for a tooltip.
NewTooltipWithSecondaryText creates a text tooltip panel containing a primary piece of text along with a secondary piece of text in a slightly smaller font.
NewTooltipWithText creates a standard text tooltip panel.
NewTranslationMatrix creates a new 2D matrix that translates by 'tx' and 'ty'.
NewTrimPathEffect creates a new trim PathEffect.
NewTurbulencePerlinNoiseShader creates a new turbulence perlin noise Shader.
NewUndoManager creates a new undo/redo manager.
NewUniformInsets creates a new Insets whose edges all have the same value.
NewVerticalEvenlySpacedGradient creates a new gradient with the specified colors evenly spread across the whole range.
NewVerticalInsets creates a new Insets whose top and bottom edges have the specified value.
NewWell creates a new Well.
NewWindow creates a new, initially hidden, window.
NewWindowMenu creates a standard 'Window' menu.
NewYesButtonInfo creates a standard Yes button.
NextUndoID returns the next available undo ID.
NoGlobalMenuBar will disable the global menu bar on platforms that normally use it, instead using the in-window menu bar.
NormalizeOKLCH returns the normalized lightness (0-1), chroma (0-0.37), and hue (0-360) values using the OKLCH color space.
NotResizableWindowOption prevents the window from being resized by the user.
OKLCH creates a Color from lightness (0-1), chroma (0-0.37), hue (0-360), alpha (0-1) values using the OKLCH color space.
OpenFilesCallback will cause f to be called when the application is asked to open one or more files by the OS or an external application.
OSMenuCmdModifier returns the OS's standard menu command key modifier.
PasteAction returns the action that pastes the contents of the clipboard, replacing the selection.
PointingCursor returns the standard pointing cursor.
PrimaryDisplay returns the primary display.
QuestionDialog displays a standard question dialog with the specified primary and detail messages.
QuestionDialogWithPanel displays a standard question dialog with the specified panel.
QuitAfterLastWindowClosedCallback will cause f to be called when the last window is closed to determine if the application should quit as a result.
QuittingCallback will cause f to be called just before the app terminates.
RebuildDynamicColors rebuilds the dynamic colors, but only if a call to MarkDynamicColorsForRebuild() has been made since the last time this function was called.
RecoveryCallback will cause f to be called should a task invoked via task.InvokeTask() or task.InvokeTaskAfter() panic.
RegisterFont registers a font with the font manager.
ReleaseOnUIThread will add f to the release queue and eventually call it on the UI thread.
ResizeHorizontalCursor returns the standard horizontal resize cursor.
ResizeHorizontalCursorImage returns the standard horizontal resize cursor image.
ResizeLeftDiagonalCursor returns the standard left diagonal resize cursor.
ResizeLeftDiagonalCursorImage returns the standard left diagonal resize cursor image.
ResizeRightDiagonalCursor returns the standard right diagonal resize cursor.
ResizeRightDiagonalCursorImage returns the standard right diagonal resize cursor image.
ResizeVerticalCursor returns the standard vertical resize cursor.
ResizeVerticalCursorImage returns the standard vertical resize cursor image.
ReviseTarget returns a sanitized target with either a link or an absolute path.
RGB creates a new opaque Color from RGB (Red, Green Blue) values in the range 0-255.
RouteActionToFocusEnabledFunc is intended to be the EnabledCallback for actions that will route to the currently focused UI widget and call CanPerformCmd() on it.
RouteActionToFocusExecuteFunc is intended to be the ExecuteCallback for actions that will route to the currently focused UI widget and call PerformCmd() on it.
RowContainsRow returns true if 'descendant' is in fact a descendant of 'ancestor'.
SanitizeExtensionList ensures the extension list is consistent:
- removal of leading and trailing white space - removal of leading "*." or "." - lower-cased - removal of duplicates - removal of empty extensions.
SelectAllAction returns the action that selects everything in the current focus.
SetThemeMode sets the current ColorMode.
SlantFromString extracts the FontSlant from a string.
SpacingFromString extracts the FontSpacing from a string.
Start the application.
StartupFinishedCallback will cause f to be called once application startup has completed and it is about to start servicing the event loop.
StdInsets returns insets preset to the standard spacing.
TextCursor returns the standard text cursor.
ThemeChanged marks dynamic colors for rebuilding, calls any installed theme change callback, and then redraws all windows.
ThemeChangedCallback will cause f to be called when the theme is changed.
TitleIconsWindowOption sets the title icon of the window.
TransientWindowOption causes the window to be marked as transient, which means it will never be considered the active window.
UndecoratedWindowOption prevents the standard window decorations (title as well as things like close buttons) from being shown.
UndoManagerFor returns the UndoManager for a given Paneler.
ValidateSaveFilePath ensures the given path is ok to be used to save a file.
WarningDialogWithMessage displays a standard warning dialog with the specified primary and detail messages.
WarningDialogWithPanel displays a standard error dialog with the specified panel.
WeightFromString extracts the FontWeight from a string.
WindowCount returns the number of windows that are open.
Windows returns a slice containing the current set of open windows.
YesNoCancelDialog displays a standard question dialog with the specified primary and detail messages.
YesNoCancelDialogWithPanel displays a standard question dialog with the specified panel.
YesNoDialog displays a standard question dialog with the specified primary and detail messages.
YesNoDialogWithPanel displays a standard question dialog with the specified panel.