package
2.6.0-alpha1
Repository: https://github.com/fyne-io/fyne.git
Documentation: pkg.go.dev

# Functions

NewAccordion creates a new accordion widget.
NewAccordionItem creates a new item for an Accordion.
NewActivity returns a widget for indicating activity Since: 2.5.
NewButton creates a new button widget with the set label and tap handler.
NewButtonWithIcon creates a new button widget with the specified label, themed icon and tap handler.
NewCalendar creates a calendar instance Since: 2.6.
NewCard creates a new card widget with the specified title, subtitle and content (all optional).
NewCheck creates a new check widget with the set label and change handler.
NewCheckGroup creates a new check group widget with the set options and change handler Since: 2.1.
NewCheckWithData returns a check widget connected with the specified data source.
NewDateEntry creates a date input where the date can be selected or typed.
NewEntry creates a new single line entry widget.
NewEntryWithData returns an Entry widget connected to the specified data source.
NewFileIcon takes a filepath and creates an icon with an overlaid label using the detected mimetype and extension Since: 1.4.
NewForm creates a new form widget with the specified rows of form items and (if any of them should be shown) a form controls row at the bottom.
NewFormItem creates a new form item with the specified label text and input widget.
NewGridWrap creates and returns a GridWrap widget for displaying items in a wrapping grid layout with scrolling and caching for performance.
NewGridWrapWithData creates a new GridWrap widget that will display the contents of the provided data.
NewHyperlink creates a new hyperlink widget with the set text content.
NewHyperlinkWithStyle creates a new hyperlink widget with the set text content.
NewIcon returns a new icon widget that displays a themed icon resource.
NewLabel creates a new label widget with the set text content.
NewLabelWithData returns an Label widget connected to the specified data source.
NewLabelWithStyle creates a new label widget with the set text content.
NewList creates and returns a list widget for displaying items in a vertical layout with scrolling and caching for performance.
NewListWithData creates a new list widget that will display the contents of the provided data.
NewMenu creates a new Menu.
NewModalPopUp creates a new popUp for the specified content and displays it on the passed canvas.
NewMultiLineEntry creates a new entry that allows multiple lines.
NewPasswordEntry creates a new entry password widget.
NewPopUp creates a new popUp for the specified content and displays it on the passed canvas.
NewPopUpMenu creates a new, reusable popup menu.
NewProgressBar creates a new progress bar widget.
NewProgressBarInfinite creates a new progress bar widget that loops indefinitely from 0% -> 100% SetValue() is not defined for infinite progress bar To stop the looping progress and set the progress bar to 100%, call ProgressBarInfinite.Stop().
NewProgressBarWithData returns a progress bar connected with the specified data source.
NewRadioGroup creates a new radio group widget with the set options and change handler Since: 1.4.
NewRichText returns a new RichText widget that renders the given text and segments.
NewRichTextFromMarkdown configures a RichText widget by parsing the provided markdown content.
NewRichTextWithText returns a new RichText widget that renders the given text.
NewSelect creates a new select widget with the set list of options and changes handler.
NewSelectEntry creates a SelectEntry.
NewSelectWithData returns a new select widget connected to the specified data source.
NewSeparator creates a new separator.
NewSimpleRenderer creates a new SimpleRenderer to render a widget using a single fyne.CanvasObject.
NewSlider returns a basic slider.
NewSliderWithData returns a slider connected with the specified data source.
NewTable returns a new performant table widget defined by the passed functions.
NewTableWithHeaders returns a new performant table widget defined by the passed functions including sticky headers.
NewTextGrid creates a new empty TextGrid widget.
NewTextGridFromString creates a new TextGrid widget with the specified string content.
NewToolbar creates a new toolbar widget.
NewToolbarAction returns a new push button style ToolbarItem.
NewToolbarSeparator returns a new separator item for a Toolbar to assist with ToolbarItem grouping.
NewToolbarSpacer returns a new spacer item for a Toolbar to assist with ToolbarItem alignment.
NewTree returns a new performant tree widget defined by the passed functions.
NewTreeWithData creates a new tree widget that will display the contents of the provided data.
NewTreeWithStrings creates a new tree with the given string map.
ShowModalPopUp creates a new popUp for the specified content and displays it on the passed canvas.
ShowPopUp creates a new popUp for the specified content and displays it on the passed canvas.
ShowPopUpAtPosition creates a new popUp for the specified content at the specified absolute position.
ShowPopUpAtRelativePosition shows a new popUp for the specified content at the given position relative to stated object.
ShowPopUpMenuAtPosition creates a PopUp menu populated with items from the passed menu structure.
ShowPopUpMenuAtRelativePosition creates a PopUp menu populated with menu items from the passed menu structure.

# Constants

Adaptive will switch between horizontal and vertical layouts according to device orientation.
ButtonAlignCenter aligns the icon and the text centrally.
ButtonAlignLeading aligns the icon and the text with the leading edge.
ButtonAlignTrailing aligns the icon and the text with the trailing edge.
ButtonIconLeadingText aligns the icon on the leading edge of the text.
ButtonIconTrailingText aligns the icon on the trailing edge of the text.
DangerImportance applies an error theme to the widget.
HighImportance applies a prominent appearance.
Orientation constants to control widget layout.
LowImportance applies a subtle appearance.
MediumImportance applies a standard appearance.
SuccessImportance applies a success theme to the widget.
Orientation constants to control widget layout.
WarningImportance applies a warning theme to the widget.

# Variables

RichTextStyleBlockquote represents a quote presented in an indented block.
RichTextStyleCodeBlock represents a code blog segment.
RichTextStyleCodeInline represents an inline code segment.
RichTextStyleEmphasis represents regular text with emphasis.
RichTextStyleHeading represents a heading text that stands on its own line.
RichTextStyleInline represents standard text that can be surrounded by other elements.
RichTextStyleParagraph represents standard text that should appear separate from other text.
RichTextStylePassword represents standard sized text where the characters are obscured.
RichTextStyleStrong represents regular text with a strong emphasis.
RichTextStyleSubHeading represents a sub-heading text that stands on its own line.
TextGridStyleDefault is a default style for test grid cells.
TextGridStyleWhitespace is the style used for whitespace characters, if enabled.

# Structs

Accordion displays a list of AccordionItems.
AccordionItem represents a single item in an Acc rdion.
Activity is used to indicate that something is happening that should be waited for, or is in the background (depending on usage).
BaseWidget provides a helper that handles basic widget behaviours.
Button widget has a text label and triggers an event func when clicked.
Calendar creates a new date time picker which returns a time object Since: 2.6.
Card widget groups title, subtitle with content and a header image Since: 1.4.
Check widget has a text label and a checked (or unchecked) icon and triggers an event func when toggled.
CheckGroup widget has a list of text labels and checkbox icons next to each.
CustomTextGridStyle is a utility type for those not wanting to define their own style types.
DateEntry is an input field which supports selecting from a fixed set of options.
DisableableWidget describes an extension to BaseWidget which can be disabled.
Entry
Entry widget allows simple text to be input when focused.
FileIcon is an adaption of widget.Icon for showing files and folders Since: 1.4.
Form widget is two column grid where each row has a label and a widget (usually an input).
FormItem provides the details for a row in a form.
GridWrap is a widget with an API very similar to widget.List, that lays out items in a scrollable wrapping grid similar to container.NewGridWrap.
Hyperlink widget is a text component with appropriate padding and layout.
HyperlinkSegment represents a hyperlink within a rich text widget.
Icon widget is a basic image component that load's its resource to match the theme.
ImageSegment represents an image within a rich text widget.
Label widget is a label component with appropriate padding and layout.
List is a widget that pools list items for performance and lays the items out in a vertical direction inside of a scroller.
ListSegment includes an itemised list with the content set using the Items field.
Menu is a widget for displaying a fyne.Menu.
ParagraphSegment wraps a number of text elements in a paragraph.
PopUp is a widget that can float above the user interface.
PopUpMenu is a Menu which displays itself in an OverlayContainer.
ProgressBar widget creates a horizontal panel that indicates progress.
ProgressBarInfinite widget creates a horizontal panel that indicates waiting indefinitely An infinite progress bar loops 0% -> 100% repeatedly until Stop() is called.
RadioGroup widget has a list of text labels and checks check icons next to each.
RichText represents the base element for a rich text-based widget.
RichTextStyle describes the details of a text object inside a RichText widget.
Select widget has a list of options, with the current one shown, and triggers an event func when clicked.
SelectEntry is an input field which supports selecting from a fixed set of options.
Separator is a widget for displaying a separator with themeable color.
SeparatorSegment includes a horizontal separator in a rich text widget.
Slider is a widget that can slide between two fixed values.
Table widget is a grid of items that can be scrolled and a cell selected.
TableCellID is a type that represents a cell's position in a table based on its row and column location.
TextGrid is a monospaced grid of characters.
TextGridCell represents a single cell in a text grid.
TextGridRow represents a row of cells cell in a text grid.
TextSegment represents the styling for a segment of rich text.
Toolbar widget creates a horizontal list of tool buttons.
ToolbarAction is push button style of ToolbarItem.
ToolbarSeparator is a thin, visible divide that can be added to a Toolbar.
ToolbarSpacer is a blank, stretchable space for a toolbar.
Tree widget displays hierarchical data.

# Interfaces

RichTextBlock is an extension of a text segment that contains other segments Since: 2.1.
RichTextSegment describes any element that can be rendered in a RichText widget.
TextGridStyle defines a style that can be applied to a TextGrid cell.
ToolbarItem represents any interface element that can be added to a toolbar.

# Type aliases

ButtonAlign represents the horizontal alignment of a button.
ButtonIconPlacement represents the ordering of icon & text within a button.
ButtonImportance represents how prominent the button should appear Since: 1.4 Deprecated: Use widget.Importance instead.
ButtonStyle determines the behaviour and rendering of a button.
GridWrapItemID is the ID of an individual item in the GridWrap widget.
Importance represents how prominent the widget should appear Since: 2.4.
ListItemID uniquely identifies an item within a list.
Orientation controls the horizontal/vertical layout of a widget.
TreeNodeID represents the unique id of a tree node.