Upgrade to v2.7
Fyne API v2.7
package fyne
Animation
Animation
AnimationCurve
AnimationCurve
App
App
AppMetadata
AppMetadata
BuildType
BuildType
Canvas
Canvas
CanvasObject
CanvasObject
Clipboard
Clipboard
CloudProvider
CloudProvider
CloudProviderPreferences
CloudProviderPreferences
CloudProviderStorage
CloudProviderStorage
Container
Container
Delta
Delta
Device
Device
DeviceOrientation
DeviceOrientation
Disableable
Disableable
DoubleTappable
DoubleTappable
DragEvent
DragEvent
Draggable
Draggable
Driver
Driver
Focusable
Focusable
HardwareKey
HardwareKey
KeyboardShortcut
KeyboardShortcut
KeyEvent
KeyEvent
KeyModifier
KeyModifier
KeyName
KeyName
Layout
Layout
LegacyTheme
LegacyTheme
Lifecycle
Lifecycle
ListableURI
ListableURI
Locale
Locale
MainMenu
MainMenu
Menu
Menu
MenuItem
MenuItem
Notification
Notification
OverlayStack
OverlayStack
PointEvent
PointEvent
Position
Position
Preferences
Preferences
Resource
Resource
Scrollable
Scrollable
ScrollDirection
ScrollDirection
ScrollEvent
ScrollEvent
SecondaryTappable
SecondaryTappable
Settings
Settings
Shortcut
Shortcut
Shortcutable
Shortcutable
ShortcutCopy
ShortcutCopy
ShortcutCut
ShortcutCut
ShortcutHandler
ShortcutHandler
ShortcutPaste
ShortcutPaste
ShortcutRedo
ShortcutRedo
ShortcutSelectAll
ShortcutSelectAll
ShortcutUndo
ShortcutUndo
Size
Size
StaticResource
StaticResource
Storage
Storage
StringValidator
StringValidator
Tabbable
Tabbable
Tappable
Tappable
TextAlign
TextAlign
TextStyle
TextStyle
TextTruncation
TextTruncation
TextWrap
TextWrap
Theme
Theme
ThemeColorName
ThemeColorName
ThemedResource
ThemedResource
ThemeIconName
ThemeIconName
ThemeSizeName
ThemeSizeName
ThemeVariant
ThemeVariant
URI
URI
URIReadCloser
URIReadCloser
URIWithIcon
URIWithIcon
URIWriteCloser
URIWriteCloser
Validatable
Validatable
Vector2
Vector2
Widget
Widget
WidgetRenderer
WidgetRenderer
Window
Window
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/embedded
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "fyne.TextTruncation"
fyne.TextTruncation
import "fyne.io/fyne/v2"
Usage
type TextTruncation
type TextTruncation int
TextTruncation controls how a Label
or Entry
will truncate its text. The default value is TextTruncateOff
which will not truncate.
Since:
2.4
const (
// TextTruncateOff means no truncation will be applied, it is the default.
// This means that the minimum size of a text block will be the space required to display it fully.
TextTruncateOff TextTruncation = iota
// TextTruncateClip will truncate text when it reaches the end of the available space.
TextTruncateClip
// TextTruncateEllipsis is like regular truncation except that an ellipses (…) will be inserted
// wherever text has been shortened to fit.
//
// Since: 2.4
TextTruncateEllipsis
)