Documentation ¶
Index ¶
- Constants
- Variables
- func AddEmbedResources(fs *embed.FS)
- func AddTheme(theme Theme)
- func AddTransition(view View, subviewID string, tag PropertyName, animation AnimationProperty) bool
- func AllImageResources() []string
- func AllRawResources() []string
- func AppendEditText(view View, subviewID string, text string)
- func AppendView(rootView View, containerID string, view View) bool
- func BlurView(view View)
- func BlurViewByID(viewID string, session Session)
- func CubicBezierTiming(x1, y1, x2, y2 float64) string
- func DebugLog(text string)
- func DebugLogF(format string, a ...any)
- func ErrorLog(text string)
- func ErrorLogF(format string, a ...any)
- func FinishApp()
- func FocusView(view View, subviewID ...string)
- func FocusViewByID(viewID string, session Session)
- func Get(rootView View, viewID string, tag PropertyName) any
- func GetAnimationCancelListeners(view View, subviewID ...string) []func(View, string)
- func GetAnimationEndListeners(view View, subviewID ...string) []func(View, string)
- func GetAnimationIterationListeners(view View, subviewID ...string) []func(View, string)
- func GetAnimationStartListeners(view View, subviewID ...string) []func(View, string)
- func GetAvoidBreak(view View, subviewID ...string) bool
- func GetBackfaceVisible(view View, subviewID ...string) bool
- func GetBackgroundBlendMode(view View, subviewID ...string) int
- func GetBackgroundClip(view View, subviewID ...string) int
- func GetBackgroundOrigin(view View, subviewID ...string) int
- func GetCellHorizontalAlign(view View, subviewID ...string) int
- func GetCellVerticalAlign(view View, subviewID ...string) int
- func GetCheckboxChangedListeners(view View, subviewID ...string) []func(Checkbox, bool)
- func GetCheckboxHorizontalAlign(view View, subviewID ...string) int
- func GetCheckboxVerticalAlign(view View, subviewID ...string) int
- func GetClickListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetColorChangedListeners(view View, subviewID ...string) []func(ColorPicker, Color, Color)
- func GetColumnCount(view View, subviewID ...string) int
- func GetColumnFill(view View, subviewID ...string) int
- func GetColumnSeparatorStyle(view View, subviewID ...string) int
- func GetContextMenuListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetCurrent(view View, subviewID ...string) int
- func GetDataList(view View, subviewID ...string) []string
- func GetDateChangedListeners(view View, subviewID ...string) []func(DatePicker, time.Time, time.Time)
- func GetDatePickerMax(view View, subviewID ...string) (time.Time, bool)
- func GetDatePickerMin(view View, subviewID ...string) (time.Time, bool)
- func GetDatePickerStep(view View, subviewID ...string) int
- func GetDatePickerValue(view View, subviewID ...string) time.Time
- func GetDisabledStyle(view View, subviewID ...string) string
- func GetDoubleClickListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetDropDownDisabledItems(view View, subviewID ...string) []int
- func GetDropDownItemSeparators(view View, subviewID ...string) []int
- func GetDropDownItems(view View, subviewID ...string) []string
- func GetDropDownListeners(view View, subviewID ...string) []func(DropDownList, int, int)
- func GetEditViewPattern(view View, subviewID ...string) string
- func GetEditViewType(view View, subviewID ...string) int
- func GetFilePickerAccept(view View, subviewID ...string) []string
- func GetFileSelectedListeners(view View, subviewID ...string) []func(FilePicker, []FileInfo)
- func GetFocusListeners(view View, subviewID ...string) []func(View)
- func GetFontName(view View, subviewID ...string) string
- func GetGridAutoFlow(view View, subviewID ...string) int
- func GetHint(view View, subviewID ...string) string
- func GetHorizontalAlign(view View, subviewID ...string) int
- func GetImageViewAltText(view View, subviewID ...string) string
- func GetImageViewFit(view View, subviewID ...string) int
- func GetImageViewHorizontalAlign(view View, subviewID ...string) int
- func GetImageViewSource(view View, subviewID ...string) string
- func GetImageViewVerticalAlign(view View, subviewID ...string) int
- func GetKeyDownListeners(view View, subviewID ...string) []func(View, KeyEvent)
- func GetKeyUpListeners(view View, subviewID ...string) []func(View, KeyEvent)
- func GetListHorizontalAlign(view View, subviewID ...string) int
- func GetListItemCheckedListeners(view View, subviewID ...string) []func(ListView, []int)
- func GetListItemClickedListeners(view View, subviewID ...string) []func(ListView, int)
- func GetListItemHorizontalAlign(view View, subviewID ...string) int
- func GetListItemSelectedListeners(view View, subviewID ...string) []func(ListView, int)
- func GetListItemVerticalAlign(view View, subviewID ...string) int
- func GetListOrientation(view View, subviewID ...string) int
- func GetListVerticalAlign(view View, subviewID ...string) int
- func GetListViewCheckbox(view View, subviewID ...string) int
- func GetListViewCheckboxHorizontalAlign(view View, subviewID ...string) int
- func GetListViewCheckboxVerticalAlign(view View, subviewID ...string) int
- func GetListViewCheckedItems(view View, subviewID ...string) []int
- func GetListWrap(view View, subviewID ...string) int
- func GetLocalIP() string
- func GetLostFocusListeners(view View, subviewID ...string) []func(View)
- func GetMaskClip(view View, subviewID ...string) int
- func GetMaskOrigin(view View, subviewID ...string) int
- func GetMaxLength(view View, subviewID ...string) int
- func GetMixBlendMode(view View, subviewID ...string) int
- func GetMouseDownListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetMouseMoveListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetMouseOutListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetMouseOverListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetMouseUpListeners(view View, subviewID ...string) []func(View, MouseEvent)
- func GetNotTranslate(view View, subviewID ...string) bool
- func GetNumberChangedListeners(view View, subviewID ...string) []func(NumberPicker, float64, float64)
- func GetNumberPickerMinMax(view View, subviewID ...string) (float64, float64)
- func GetNumberPickerPrecision(view View, subviewID ...string) int
- func GetNumberPickerStep(view View, subviewID ...string) float64
- func GetNumberPickerType(view View, subviewID ...string) int
- func GetNumberPickerValue(view View, subviewID ...string) float64
- func GetOpacity(view View, subviewID ...string) float64
- func GetOrder(view View, subviewID ...string) int
- func GetOverflow(view View, subviewID ...string) int
- func GetPerspectiveOrigin(view View, subviewID ...string) (SizeUnit, SizeUnit)
- func GetPointerCancelListeners(view View, subviewID ...string) []func(View, PointerEvent)
- func GetPointerDownListeners(view View, subviewID ...string) []func(View, PointerEvent)
- func GetPointerMoveListeners(view View, subviewID ...string) []func(View, PointerEvent)
- func GetPointerOutListeners(view View, subviewID ...string) []func(View, PointerEvent)
- func GetPointerOverListeners(view View, subviewID ...string) []func(View, PointerEvent)
- func GetPointerUpListeners(view View, subviewID ...string) []func(View, PointerEvent)
- func GetProgressBarMax(view View, subviewID ...string) float64
- func GetProgressBarValue(view View, subviewID ...string) float64
- func GetPushDuration(view View, subviewID ...string) float64
- func GetPushTiming(view View, subviewID ...string) string
- func GetResize(view View, subviewID ...string) int
- func GetResizeListeners(view View, subviewID ...string) []func(View, Frame)
- func GetScale(view View, subviewID ...string) (float64, float64, float64)
- func GetScrollListeners(view View, subviewID ...string) []func(View, Frame)
- func GetSemantics(view View, subviewID ...string) int
- func GetSkew(view View, subviewID ...string) (AngleUnit, AngleUnit)
- func GetString(tag, lang string) (string, bool)
- func GetStyle(view View, subviewID ...string) string
- func GetSvgImageViewHorizontalAlign(view View, subviewID ...string) int
- func GetSvgImageViewVerticalAlign(view View, subviewID ...string) int
- func GetTabIndex(view View, subviewID ...string) int
- func GetTabSize(view View, subviewID ...string) int
- func GetTableCellClickedListeners(view View, subviewID ...string) []func(TableView, int, int)
- func GetTableCellSelectedListeners(view View, subviewID ...string) []func(TableView, int, int)
- func GetTableFootHeight(view View, subviewID ...string) int
- func GetTableHeadHeight(view View, subviewID ...string) int
- func GetTableRowClickedListeners(view View, subviewID ...string) []func(TableView, int)
- func GetTableRowSelectedListeners(view View, subviewID ...string) []func(TableView, int)
- func GetTableSelectionMode(view View, subviewID ...string) int
- func GetTableVerticalAlign(view View, subviewID ...string) int
- func GetText(view View, subviewID ...string) string
- func GetTextAlign(view View, subviewID ...string) int
- func GetTextChangedListeners(view View, subviewID ...string) []func(EditView, string, string)
- func GetTextDirection(view View, subviewID ...string) int
- func GetTextLineStyle(view View, subviewID ...string) int
- func GetTextOverflow(view View, subviewID ...string) int
- func GetTextTransform(view View, subviewID ...string) int
- func GetTextWeight(view View, subviewID ...string) int
- func GetTextWrap(view View, subviewID ...string) int
- func GetTimeChangedListeners(view View, subviewID ...string) []func(TimePicker, time.Time, time.Time)
- func GetTimePickerMax(view View, subviewID ...string) (time.Time, bool)
- func GetTimePickerMin(view View, subviewID ...string) (time.Time, bool)
- func GetTimePickerStep(view View, subviewID ...string) int
- func GetTimePickerValue(view View, subviewID ...string) time.Time
- func GetTooltip(view View, subviewID ...string) string
- func GetTouchCancelListeners(view View, subviewID ...string) []func(View, TouchEvent)
- func GetTouchEndListeners(view View, subviewID ...string) []func(View, TouchEvent)
- func GetTouchMoveListeners(view View, subviewID ...string) []func(View, TouchEvent)
- func GetTouchStartListeners(view View, subviewID ...string) []func(View, TouchEvent)
- func GetTransformOrigin(view View, subviewID ...string) (SizeUnit, SizeUnit, SizeUnit)
- func GetTransitionCancelListeners(view View, subviewID ...string) []func(View, string)
- func GetTransitionEndListeners(view View, subviewID ...string) []func(View, string)
- func GetTransitionRunListeners(view View, subviewID ...string) []func(View, string)
- func GetTransitionStartListeners(view View, subviewID ...string) []func(View, string)
- func GetTransitions(view View, subviewID ...string) map[PropertyName]AnimationProperty
- func GetTranslate(view View, subviewID ...string) (SizeUnit, SizeUnit, SizeUnit)
- func GetVerticalAlign(view View, subviewID ...string) int
- func GetVerticalTextOrientation(view View, subviewID ...string) int
- func GetVisibility(view View, subviewID ...string) int
- func GetWritingMode(view View, subviewID ...string) int
- func GetZIndex(view View, subviewID ...string) int
- func InitCustomView(customView CustomView, tag string, session Session, params Params) bool
- func InlineImageFromResource(filename string) (string, bool)
- func InsertView(rootView View, containerID string, view View, index int) bool
- func IsAnimationPaused(view View, subviewID ...string) bool
- func IsCheckboxChecked(view View, subviewID ...string) bool
- func IsColumnSpanAll(view View, subviewID ...string) bool
- func IsDetailsExpanded(view View, subviewID ...string) bool
- func IsDisabled(view View, subviewID ...string) bool
- func IsEditViewWrap(view View, subviewID ...string) bool
- func IsItalic(view View, subviewID ...string) bool
- func IsListViewCheckedItem(view View, subviewID string, index int) bool
- func IsMediaPlayerEnded(view View, playerID string) bool
- func IsMediaPlayerPaused(view View, playerID string) bool
- func IsMoveToFrontAnimation(view View, subviewID ...string) bool
- func IsMultipleFilePicker(view View, subviewID ...string) bool
- func IsOverline(view View, subviewID ...string) bool
- func IsReadOnly(view View, subviewID ...string) bool
- func IsSmallCaps(view View, subviewID ...string) bool
- func IsSpellcheck(view View, subviewID ...string) bool
- func IsStrikethrough(view View, subviewID ...string) bool
- func IsSummaryMarkerHidden(view View, subviewID ...string) bool
- func IsTimingFunctionValid(timingFunction string, session Session) bool
- func IsUnderline(view View, subviewID ...string) bool
- func IsUserSelect(view View, subviewID ...string) bool
- func LastError() string
- func LoadFilePickerFile(view View, subviewID string, file FileInfo, result func(FileInfo, []byte))
- func MediaPlayerCurrentTime(view View, playerID string) float64
- func MediaPlayerDuration(view View, playerID string) float64
- func MediaPlayerPause(view View, playerID string)
- func MediaPlayerPlay(view View, playerID string)
- func MediaPlayerPlaybackRate(view View, playerID string) float64
- func MediaPlayerVolume(view View, playerID string) float64
- func NewHandler(urlPrefix string, createContentFunc func(Session) SessionContent, ...) *httpHandler
- func OpenBrowser(url string) bool
- func OpenRawResource(filename string) fs.File
- func ReadRawResource(filename string) []byte
- func RedrawCanvasView(rootView View, canvasViewID string)
- func RegisterViewCreator(tag string, creator func(Session) View) bool
- func ReloadListViewData(view View, subviewID ...string)
- func ReloadTableViewCell(row, column int, view View, subviewID ...string) bool
- func ReloadTableViewData(view View, subviewID ...string) bool
- func ScrollViewTo(view View, subviewID string, x, y float64)
- func ScrollViewToEnd(view View, subviewID ...string)
- func ScrollViewToStart(view View, subviewID ...string)
- func Set(rootView View, viewID string, tag PropertyName, value any) bool
- func SetAnimated(rootView View, viewID string, tag PropertyName, value any, ...) bool
- func SetChangeListener(view View, viewID string, tag PropertyName, listener func(View, PropertyName))
- func SetDebugLog(f func(string))
- func SetErrorLog(f func(string))
- func SetMediaPlayerCurrentTime(view View, playerID string, seconds float64)
- func SetMediaPlayerPlaybackRate(view View, playerID string, rate float64)
- func SetMediaPlayerVolume(view View, playerID string, volume float64)
- func SetParams(rootView View, viewID string, params Params) bool
- func SetResourcePath(path string)
- func SetWidth[...](size T, view View, subviewID ...string) bool
- func ShowCancellableQuestion(title, text string, session Session, onYes func(), onNo func(), ...)
- func ShowMessage(title, text string, session Session)
- func ShowQuestion(title, text string, session Session, onYes func(), onNo func())
- func StartApp(addr string, createContentFunc func(Session) SessionContent, params AppParams)
- func StepsTiming(stepCount int) string
- func UpdateContent(view View, subviewID ...string)
- type AbsoluteLayout
- type AngleUnit
- type AngleUnitType
- type AnimatedProperty
- type AnimationProperty
- func GetAnimation(view View, subviewID ...string) []AnimationProperty
- func GetTransition(view View, subviewID string, tag PropertyName) AnimationProperty
- func NewAnimation(id string, timingFunc string, duration float64, delay float64, direction int, ...) AnimationProperty
- func NewAnimationProperty(params Params) AnimationProperty
- func NewTransitionAnimation(timingFunc string, duration float64, delay float64) AnimationProperty
- type AppParams
- type Application
- type AudioPlayer
- type BackgroundElement
- func GetBackground(view View, subviewID ...string) []BackgroundElement
- func GetMask(view View, subviewID ...string) []BackgroundElement
- func NewBackgroundConicGradient(params Params) BackgroundElement
- func NewBackgroundImage(params Params) BackgroundElement
- func NewBackgroundLinearGradient(params Params) BackgroundElement
- func NewBackgroundRadialGradient(params Params) BackgroundElement
- func NewCircleRadialGradient[radiusType SizeUnit | RadialGradientRadiusType](xCenter, yCenter SizeUnit, radius radiusType, repeating bool, ...) BackgroundElement
- func NewEllipseRadialGradient[radiusType []SizeUnit | RadialGradientRadiusType](xCenter, yCenter SizeUnit, radius radiusType, repeating bool, ...) BackgroundElement
- func NewLinearGradient[DirectionType LinearGradientDirectionType | AngleUnit](direction DirectionType, repeating bool, point1 GradientPoint, ...) BackgroundElement
- type BackgroundGradientAngle
- type BackgroundGradientPoint
- type BorderProperty
- type Bounds
- type BoundsProperty
- type BoxRadius
- type Button
- type Canvas
- type CanvasView
- type CellIndex
- type Checkbox
- type ClipShape
- type ClipShapeProperty
- func GetClip(view View, subviewID ...string) ClipShapeProperty
- func GetShapeOutside(view View, subviewID ...string) ClipShapeProperty
- func NewCircleClip(x, y, radius SizeUnit) ClipShapeProperty
- func NewClipShapeProperty(shape ClipShape, params Params) ClipShapeProperty
- func NewEllipseClip(x, y, rx, ry SizeUnit) ClipShapeProperty
- func NewInsetClip(top, right, bottom, left SizeUnit, radius RadiusProperty) ClipShapeProperty
- func NewPolygonClip(points []any) ClipShapeProperty
- func NewPolygonPointsClip(points []SizeUnit) ClipShapeProperty
- type Color
- func ARGB[T int | uint | int8 | uint8](alpha, red, green, blue T) Color
- func GetAccentColor(view View, subviewID ...string) Color
- func GetBackgroundColor(view View, subviewID ...string) Color
- func GetCaretColor(view View, subviewID ...string) Color
- func GetColorPickerValue(view View, subviewID ...string) Color
- func GetColumnSeparatorColor(view View, subviewID ...string) Color
- func GetTextColor(view View, subviewID ...string) Color
- func GetTextLineColor(view View, subviewID ...string) Color
- func RGB[T int | uint | int8 | uint8](red, green, blue T) Color
- func StringToColor(text string) (Color, bool)
- type ColorPicker
- type ColumnLayout
- type ColumnSeparatorProperty
- type ControlKeyMask
- type CustomView
- type CustomViewData
- func (customView *CustomViewData) AllTags() []PropertyName
- func (customView *CustomViewData) Append(view View)
- func (customView *CustomViewData) Clear()
- func (customView *CustomViewData) Focusable() bool
- func (customView *CustomViewData) Frame() Frame
- func (customView *CustomViewData) Get(tag PropertyName) any
- func (customView *CustomViewData) HasFocus() bool
- func (customView *CustomViewData) ID() string
- func (customView *CustomViewData) Insert(view View, index int)
- func (customView *CustomViewData) Parent() View
- func (customView *CustomViewData) Remove(tag PropertyName)
- func (customView *CustomViewData) RemoveView(index int) View
- func (customView *CustomViewData) Scroll() Frame
- func (customView *CustomViewData) Session() Session
- func (customView *CustomViewData) Set(tag PropertyName, value any) bool
- func (customView *CustomViewData) SetAnimated(tag PropertyName, value any, animation AnimationProperty) bool
- func (customView *CustomViewData) SetChangeListener(tag PropertyName, listener func(View, PropertyName))
- func (customView *CustomViewData) SetParams(params Params) bool
- func (customView *CustomViewData) SetTransition(tag PropertyName, animation AnimationProperty)
- func (customView *CustomViewData) String() string
- func (customView *CustomViewData) SuperView() View
- func (customView *CustomViewData) Tag() string
- func (customView *CustomViewData) Transition(tag PropertyName) AnimationProperty
- func (customView *CustomViewData) Transitions() map[PropertyName]AnimationProperty
- func (customView *CustomViewData) ViewIndex(view View) int
- func (customView *CustomViewData) Views() []View
- type DataNode
- type DataObject
- type DataValue
- type DatePicker
- type DetailsView
- type DropDownList
- type EditView
- type FileInfo
- type FilePicker
- type FilterProperty
- type FontParams
- type Frame
- type GradientPoint
- type GridAdapter
- type GridCellColumnSpanAdapter
- type GridCellRowSpanAdapter
- type GridLayout
- type HorizontalTableJoin
- type Image
- type ImageView
- type KeyCode
- type KeyEvent
- type LineCap
- type LineJoin
- type LinearGradientDirectionType
- type ListAdapter
- type ListItemEnabled
- type ListLayout
- type ListView
- type MediaPlayer
- type MediaSource
- type MediaStyleParams
- type MouseEvent
- type NamedColor
- type NumberPicker
- type OutlineProperty
- type Params
- type ParentView
- type Path
- type PointerEvent
- type Popup
- type PopupButton
- type PopupButtonType
- type ProgressBar
- type Properties
- type PropertyName
- type RadialGradientRadiusType
- type RadiusProperty
- func NewEllipticRadius[xType SizeUnit | int | float64, yType SizeUnit | int | float64](x xType, y yType) RadiusProperty
- func NewRadii[topRightType SizeUnit | int | float64, ...](topRight topRightType, bottomRight bottomRightType, bottomLeft bottomLeftType, ...) RadiusProperty
- func NewRadiusProperty(params Params) RadiusProperty
- type Range
- type Resizable
- type Session
- type SessionContent
- type SessionDisconnectListener
- type SessionFinishListener
- type SessionPauseListener
- type SessionReconnectListener
- type SessionResumeListener
- type SessionStartListener
- type ShadowProperty
- func GetShadowPropertys(view View, subviewID ...string) []ShadowProperty
- func GetTextShadows(view View, subviewID ...string) []ShadowProperty
- func NewInsetShadow[xOffsetType SizeUnit | int | float64, yOffsetType SizeUnit | int | float64, ...](xOffset xOffsetType, yOffset yOffsetType, blurRadius blurType, ...) ShadowProperty
- func NewShadow[xOffsetType SizeUnit | int | float64, yOffsetType SizeUnit | int | float64, ...](xOffset xOffsetType, yOffset yOffsetType, blurRadius blurType, ...) ShadowProperty
- func NewShadowProperty(params Params) ShadowProperty
- func NewTextShadow[xOffsetType SizeUnit | int | float64, yOffsetType SizeUnit | int | float64, ...](xOffset xOffsetType, yOffset yOffsetType, blurRadius blurType, color Color) ShadowProperty
- type SimpleTableAdapter
- type SizeFunc
- func ClampSize(min, value, max any) SizeFunc
- func DivSize(arg0, arg1 any) SizeFunc
- func MaxSize(arg0, arg1 any, args ...any) SizeFunc
- func MinSize(arg0, arg1 any, args ...any) SizeFunc
- func ModSize(arg0, arg1 any) SizeFunc
- func MulSize(arg0, arg1 any) SizeFunc
- func RemSize(arg0, arg1 any) SizeFunc
- func RoundDownSize(valueToRound, roundingInterval any) SizeFunc
- func RoundSize(valueToRound, roundingInterval any) SizeFunc
- func RoundToZeroSize(valueToRound, roundingInterval any) SizeFunc
- func RoundUpSize(valueToRound, roundingInterval any) SizeFunc
- func SubSize(arg0, arg1 any) SizeFunc
- func SumSize(arg0, arg1 any, args ...any) SizeFunc
- type SizeUnit
- func AutoSize() SizeUnit
- func Cm[...](value T) SizeUnit
- func Em[...](value T) SizeUnit
- func Ex[...](value T) SizeUnit
- func Fr[...](value T) SizeUnit
- func GetBottom(view View, subviewID ...string) SizeUnit
- func GetCellHeight(view View, subviewID ...string) []SizeUnit
- func GetCellWidth(view View, subviewID ...string) []SizeUnit
- func GetColumnGap(view View, subviewID ...string) SizeUnit
- func GetColumnSeparatorWidth(view View, subviewID ...string) SizeUnit
- func GetColumnWidth(view View, subviewID ...string) SizeUnit
- func GetGridColumnGap(view View, subviewID ...string) SizeUnit
- func GetGridRowGap(view View, subviewID ...string) SizeUnit
- func GetHeight(view View, subviewID ...string) SizeUnit
- func GetLeft(view View, subviewID ...string) SizeUnit
- func GetLetterSpacing(view View, subviewID ...string) SizeUnit
- func GetLineHeight(view View, subviewID ...string) SizeUnit
- func GetListColumnGap(view View, subviewID ...string) SizeUnit
- func GetListItemHeight(view View, subviewID ...string) SizeUnit
- func GetListItemWidth(view View, subviewID ...string) SizeUnit
- func GetListRowGap(view View, subviewID ...string) SizeUnit
- func GetMaxHeight(view View, subviewID ...string) SizeUnit
- func GetMaxWidth(view View, subviewID ...string) SizeUnit
- func GetMinHeight(view View, subviewID ...string) SizeUnit
- func GetMinWidth(view View, subviewID ...string) SizeUnit
- func GetOutlineOffset(view View, subviewID ...string) SizeUnit
- func GetPerspective(view View, subviewID ...string) SizeUnit
- func GetRight(view View, subviewID ...string) SizeUnit
- func GetTextIndent(view View, subviewID ...string) SizeUnit
- func GetTextLineThickness(view View, subviewID ...string) SizeUnit
- func GetTextSize(view View, subviewID ...string) SizeUnit
- func GetTop(view View, subviewID ...string) SizeUnit
- func GetWidth(view View, subviewID ...string) SizeUnit
- func GetWordSpacing(view View, subviewID ...string) SizeUnit
- func Inch[...](value T) SizeUnit
- func Mm[...](value T) SizeUnit
- func Pc[...](value T) SizeUnit
- func Percent[...](value T) SizeUnit
- func Pt[...](value T) SizeUnit
- func Px[...](value T) SizeUnit
- func StringToSizeUnit(value string) (SizeUnit, bool)
- type SizeUnitType
- type StackLayout
- type SvgImageView
- type TableAdapter
- type TableAllowCellSelection
- type TableAllowRowSelection
- type TableCellStyle
- type TableColumnStyle
- type TableRowStyle
- type TableView
- type TabsLayout
- type TextMetrics
- type TextTableAdapter
- type TextView
- type Theme
- type TimePicker
- type Touch
- type TouchEvent
- type TransformProperty
- type VerticalTableJoin
- type VideoPlayer
- type View
- func CreateViewFromObject(session Session, object DataObject) View
- func CreateViewFromResources(session Session, name string) View
- func CreateViewFromText(session Session, text string) View
- func GetDetailsSummary(view View, subviewID ...string) View
- func NewView(session Session, params Params) View
- func RemoveView(rootView View, containerID string, index int) View
- func ViewByID(rootView View, id string, ids ...string) View
- type ViewBorder
- type ViewBorders
- type ViewOutline
- type ViewStyle
- type ViewsContainer
Constants ¶
const ( // Animation is the constant for "animation" property tag. // // Used by View. // Sets and starts animations. // // Supported types: AnimationProperty, []AnimationProperty. // // Internal type is []AnimationProperty, other types converted to it during assignment. // See AnimationProperty description for more details. Animation PropertyName = "animation" // AnimationPaused is the constant for "animation-paused" property tag. // // Used by AnimationProperty. // Controls whether the animation is running or paused. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Animation is paused. // - false, 0, "false", "no", "off", or "0" - Animation is playing. AnimationPaused PropertyName = "animation-paused" // Transition is the constant for "transition" property tag. // // Used by View. // // Sets transition animation of view properties. Each provided property must contain AnimationProperty which describe how // particular property will be animated on property value change. Transition animation can be applied to properties of the // type SizeUnit, Color, AngleUnit, float64 and composite properties that contain elements of the listed types(for // example, "shadow", "border", etc.). If we'll try to animate other properties with internal type like bool or // string no error will occur, simply there will be no animation. // // Supported types: Params. // // See Params description for more details. Transition PropertyName = "transition" // PropertyTag is the constant for "property" property tag. // // Used by AnimationProperty. // // Describes a scenario for changing a View's property. Used only for animation script. // // Supported types: []AnimatedProperty, AnimatedProperty. // // Internal type is []AnimatedProperty, other types converted to it during assignment. // See AnimatedProperty description for more details. PropertyTag PropertyName = "property" // Duration is the constant for "duration" property tag. // // Used by AnimationProperty. // // Sets the length of time in seconds that an animation takes to complete one cycle. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Duration PropertyName = "duration" // Delay is the constant for "delay" property tag. // // Used by AnimationProperty. // // Specifies the amount of time in seconds to wait from applying the animation to an element before beginning to perform // the animation. The animation can start later, immediately from its beginning or immediately and partway through the // animation. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Delay PropertyName = "delay" // TimingFunction is the constant for "timing-function" property tag. // // Used by AnimationProperty. // // Set how an animation progresses through the duration of each cycle. // // Supported types: string. // // Values: // - "ease" (EaseTiming) - Speed increases towards the middle and slows down at the end. // - "ease-in" (EaseInTiming) - Speed is slow at first, but increases in the end. // - "ease-out" (EaseOutTiming) - Speed is fast at first, but decreases in the end. // - "ease-in-out" (EaseInOutTiming) - Speed is slow at first, but quickly increases and at the end it decreases again. // - "linear" (LinearTiming) - Constant speed. // - "step(n)" (StepTiming(n int) function) - Timing function along stepCount stops along the transition, displaying each stop for equal lengths of time. // - "cubic-bezier(x1, y1, x2, y2)" (CubicBezierTiming(x1, y1, x2, y2 float64) function) - Cubic-Bezier curve timing function. x1 and x2 must be in the range [0, 1]. TimingFunction PropertyName = "timing-function" // IterationCount is the constant for "iteration-count" property tag. // // Used by AnimationProperty. // // Sets the number of times an animation sequence should be played before stopping. Used only for animation script. // // Supported types: int, string. // // Internal type is int, other types converted to it during assignment. IterationCount PropertyName = "iteration-count" // AnimationDirection is the constant for "animation-direction" property tag. // // Used by AnimationProperty. // // Whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward // and backward. Used only for animation script. // // Supported types: int, string. // // Values: // - 0 (NormalAnimation) or "normal" - The animation plays forward every iteration, that is, when the animation ends, it is immediately reset to its starting position and played again. // - 1 (ReverseAnimation) or "reverse" - The animation plays backwards, from the last position to the first, and then resets to the final position and plays again. // - 2 (AlternateAnimation) or "alternate" - The animation changes direction in each cycle, that is, in the first cycle, it starts from the start position, reaches the end position, and in the second cycle, it continues from the end position and reaches the start position, and so on. // - 3 (AlternateReverseAnimation) or "alternate-reverse" - The animation starts playing from the end position and reaches the start position, and in the next cycle, continuing from the start position, it goes to the end position. AnimationDirection PropertyName = "animation-direction" // NormalAnimation is value of the "animation-direction" property. // // The animation plays forwards each cycle. In other words, each time the animation cycles, // the animation will reset to the beginning state and start over again. This is the default value. NormalAnimation = 0 // ReverseAnimation is value of the "animation-direction" property. // // The animation plays backwards each cycle. In other words, each time the animation cycles, // the animation will reset to the end state and start over again. Animation steps are performed // backwards, and timing functions are also reversed. // // For example, an "ease-in" timing function becomes "ease-out". ReverseAnimation = 1 // AlternateAnimation is value of the "animation-direction" property. // // The animation reverses direction each cycle, with the first iteration being played forwards. // The count to determine if a cycle is even or odd starts at one. AlternateAnimation = 2 // AlternateReverseAnimation is value of the "animation-direction" property. // // The animation reverses direction each cycle, with the first iteration being played backwards. // The count to determine if a cycle is even or odd starts at one. AlternateReverseAnimation = 3 // EaseTiming - a timing function which increases in velocity towards the middle of the transition, slowing back down at the end EaseTiming = "ease" // EaseInTiming - a timing function which starts off slowly, with the transition speed increasing until complete EaseInTiming = "ease-in" // EaseOutTiming - a timing function which starts transitioning quickly, slowing down the transition continues. EaseOutTiming = "ease-out" // EaseInOutTiming - a timing function which starts transitioning slowly, speeds up, and then slows down again. EaseInOutTiming = "ease-in-out" // LinearTiming - a timing function at an even speed LinearTiming = "linear" )
Constants which related to view's animation
const ( // BorderBox is the value of the following properties: // - BackgroundClip - The background extends to the outside edge of the border (but underneath the border in z-ordering). // - BackgroundOrigin - The background is positioned relative to the border box. // - MaskClip - The painted content is clipped to the border box. // - MaskOrigin - The mask is positioned relative to the border box. BorderBox = 0 // PaddingBox is value of the BackgroundClip and MaskClip property: // - BackgroundClip - The background extends to the outside edge of the padding. No background is drawn beneath the border. // - BackgroundOrigin - The background is positioned relative to the padding box. // - MaskClip - The painted content is clipped to the padding box. // - MaskOrigin - The mask is positioned relative to the padding box. PaddingBox = 1 // ContentBox is value of the BackgroundClip and MaskClip property: // - BackgroundClip - The background is painted within (clipped to) the content box. // - BackgroundOrigin - The background is positioned relative to the content box. // - MaskClip - The painted content is clipped to the content box. // - MaskOrigin - The mask is positioned relative to the content box. ContentBox = 2 )
const ( // NoRepeat is value of the Repeat property of an background image: // // The image is not repeated (and hence the background image painting area // will not necessarily be entirely covered). The position of the non-repeated // background image is defined by the background-position CSS property. NoRepeat = 0 // RepeatXY is value of the Repeat property of an background image: // // The image is repeated as much as needed to cover the whole background // image painting area. The last image will be clipped if it doesn't fit. RepeatXY = 1 // RepeatX is value of the Repeat property of an background image: // // The image is repeated horizontally as much as needed to cover // the whole width background image painting area. The image is not repeated vertically. // The last image will be clipped if it doesn't fit. RepeatX = 2 // RepeatY is value of the Repeat property of an background image: // // The image is repeated vertically as much as needed to cover // the whole height background image painting area. The image is not repeated horizontally. // The last image will be clipped if it doesn't fit. RepeatY = 3 // RepeatRound is value of the Repeat property of an background image: // // As the allowed space increases in size, the repeated images will stretch (leaving no gaps) // until there is room (space left >= half of the image width) for another one to be added. // When the next image is added, all of the current ones compress to allow room. RepeatRound = 4 // RepeatSpace is value of the Repeat property of an background image: // // The image is repeated as much as possible without clipping. The first and last images // are pinned to either side of the element, and whitespace is distributed evenly between the images. RepeatSpace = 5 // ScrollAttachment is value of the Attachment property of an background image: // // The background is fixed relative to the element itself and does not scroll with its contents. // (It is effectively attached to the element's border.) ScrollAttachment = 0 // FixedAttachment is value of the Attachment property of an background image: // // The background is fixed relative to the viewport. Even if an element has // a scrolling mechanism, the background doesn't move with the element. FixedAttachment = 1 // LocalAttachment is value of the Attachment property of an background image: // // The background is fixed relative to the element's contents. If the element has a scrolling mechanism, // the background scrolls with the element's contents, and the background painting area // and background positioning area are relative to the scrollable area of the element // rather than to the border framing them. LocalAttachment = 2 )
Constants related to view's background description
const ( // NoneLine constant specifies that there is no border NoneLine = 0 // SolidLine constant specifies the border/line as a solid line SolidLine = 1 // DashedLine constant specifies the border/line as a dashed line DashedLine = 2 // DottedLine constant specifies the border/line as a dotted line DottedLine = 3 // DoubleLine constant specifies the border/line as a double solid line DoubleLine = 4 // DoubleLine constant specifies the border/line as a double solid line WavyLine = 5 // LeftStyle is the constant for "left-style" property tag. // // Used by BorderProperty. // Left border line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. LeftStyle PropertyName = "left-style" // RightStyle is the constant for "right-style" property tag. // // Used by BorderProperty. // Right border line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. RightStyle PropertyName = "right-style" // TopStyle is the constant for "top-style" property tag. // // Used by BorderProperty. // Top border line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. TopStyle PropertyName = "top-style" // BottomStyle is the constant for "bottom-style" property tag. // // Used by BorderProperty. // Bottom border line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. BottomStyle PropertyName = "bottom-style" // LeftWidth is the constant for "left-width" property tag. // // Used by BorderProperty. // Left border line width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. LeftWidth PropertyName = "left-width" // RightWidth is the constant for "right-width" property tag. // // Used by BorderProperty. // Right border line width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. RightWidth PropertyName = "right-width" // TopWidth is the constant for "top-width" property tag. // // Used by BorderProperty. // Top border line width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. TopWidth PropertyName = "top-width" // BottomWidth is the constant for "bottom-width" property tag. // // Used by BorderProperty. // Bottom border line width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. BottomWidth PropertyName = "bottom-width" // LeftColor is the constant for "left-color" property tag. // // Used by BorderProperty. // Left border line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. LeftColor PropertyName = "left-color" // RightColor is the constant for "right-color" property tag. // // Used by BorderProperty. // Right border line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. RightColor PropertyName = "right-color" // TopColor is the constant for "top-color" property tag. // // Used by BorderProperty. // Top border line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. TopColor PropertyName = "top-color" // BottomColor is the constant for "bottom-color" property tag. // // Used by BorderProperty. // Bottom border line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BottomColor PropertyName = "bottom-color" )
Constants related to view's border description
const ( // MiterJoin - Connected segments are joined by extending their outside edges // to connect at a single point, with the effect of filling an additional // lozenge-shaped area. This setting is affected by the miterLimit property MiterJoin LineJoin = 0 // RoundJoin - rounds off the corners of a shape by filling an additional sector // of disc centered at the common endpoint of connected segments. // The radius for these rounded corners is equal to the line width. RoundJoin LineJoin = 1 // BevelJoin - Fills an additional triangular area between the common endpoint // of connected segments, and the separate outside rectangular corners of each segment. BevelJoin LineJoin = 2 // ButtCap - the ends of lines are squared off at the endpoints. Default value. ButtCap LineCap = 0 // RoundCap - the ends of lines are rounded. RoundCap LineCap = 1 // SquareCap - the ends of lines are squared off by adding a box with an equal width // and half the height of the line's thickness. SquareCap LineCap = 2 // AlphabeticBaseline - the text baseline is the normal alphabetic baseline. Default value. AlphabeticBaseline = 0 // TopBaseline - the text baseline is the top of the em square. TopBaseline = 1 // MiddleBaseline - the text baseline is the middle of the em square. MiddleBaseline = 2 // BottomBaseline - the text baseline is the bottom of the bounding box. // This differs from the ideographic baseline in that the ideographic baseline doesn't consider descenders. BottomBaseline = 3 // HangingBaseline - the text baseline is the hanging baseline. (Used by Tibetan and other Indic scripts.) HangingBaseline = 4 // IdeographicBaseline - the text baseline is the ideographic baseline; this is // the bottom of the body of the characters, if the main body of characters protrudes // beneath the alphabetic baseline. (Used by Chinese, Japanese, and Korean scripts.) IdeographicBaseline = 5 // StartAlign - the text is aligned at the normal start of the line (left-aligned // for left-to-right locales, right-aligned for right-to-left locales). StartAlign = 3 // EndAlign - the text is aligned at the normal end of the line (right-aligned // for left-to-right locales, left-aligned for right-to-left locales). EndAlign = 4 )
Constants related to canvas view operations
const ( // TextNode - node is the pair "tag - text value". Syntax: <tag> = <text> TextNode = 0 // ObjectNode - node is the pair "tag - object". Syntax: <tag> = <object name>{...} ObjectNode = 1 // ArrayNode - node is the pair "tag - object". Syntax: <tag> = [...] ArrayNode = 2 )
Constants which are used to describe a node type, see DataNode
const ( // SingleLineText - single-line text type of EditView SingleLineText = 0 // PasswordText - password type of EditView PasswordText = 1 // EmailText - e-mail type of EditView. Allows to enter one email EmailText = 2 // EmailsText - e-mail type of EditView. Allows to enter multiple emails separated by comma EmailsText = 3 // URLText - url type of EditView. Allows to enter one url URLText = 4 // PhoneText - telephone type of EditView. Allows to enter one phone number PhoneText = 5 // MultiLineText - multi-line text type of EditView MultiLineText = 6 )
Constants for the values of an EditView "edit-view-type" property
const ( // ImageLoading is the image loading status: in the process of loading ImageLoading = 0 // ImageReady is the image loading status: the image is loaded successfully ImageReady = 1 // ImageLoadingError is the image loading status: an error occurred while loading ImageLoadingError = 2 )
Constants which represent return values of the LoadingStatus function of an Image view
const ( // LoadedEvent is the constant for "loaded-event" property tag. // // Used by ImageView. // Occur when the image has been loaded. // // General listener format: // func(image rui.ImageView) // // where: // image - Interface of an image view which generated this event. // // Allowed listener formats: // func() LoadedEvent PropertyName = "loaded-event" // ErrorEvent is the constant for "error-event" property tag. // // Used by ImageView. // Occur when the image loading has been failed. // // General listener format: // func(image rui.ImageView) // // where: // image - Interface of an image view which generated this event. // // Allowed listener formats: // func() ErrorEvent PropertyName = "error-event" // NoneFit - value of the "object-fit" property of an ImageView. The replaced content is not resized NoneFit = 0 // ContainFit - value of the "object-fit" property of an ImageView. The replaced content // is scaled to maintain its aspect ratio while fitting within the element’s content box. // The entire object is made to fill the box, while preserving its aspect ratio, so the object // will be "letterboxed" if its aspect ratio does not match the aspect ratio of the box. ContainFit = 1 // CoverFit - value of the "object-fit" property of an ImageView. The replaced content // is sized to maintain its aspect ratio while filling the element’s entire content box. // If the object's aspect ratio does not match the aspect ratio of its box, then the object will be clipped to fit. CoverFit = 2 // FillFit - value of the "object-fit" property of an ImageView. The replaced content is sized // to fill the element’s content box. The entire object will completely fill the box. // If the object's aspect ratio does not match the aspect ratio of its box, then the object will be stretched to fit. FillFit = 3 // ScaleDownFit - value of the "object-fit" property of an ImageView. The content is sized as // if NoneFit or ContainFit were specified, whichever would result in a smaller concrete object size. ScaleDownFit = 4 )
Constants which represent ImageView specific properties and events
const ( // AltKey is the mask of the "alt" key AltKey ControlKeyMask = 1 // CtrlKey is the mask of the "ctrl" key CtrlKey ControlKeyMask = 2 // ShiftKey is the mask of the "shift" key ShiftKey ControlKeyMask = 4 // MetaKey is the mask of the "meta" key MetaKey ControlKeyMask = 8 // KeyA represent "A" key on the keyboard KeyA KeyCode = "KeyA" // KeyB represent "B" key on the keyboard KeyB KeyCode = "KeyB" // KeyC represent "C" key on the keyboard KeyC KeyCode = "KeyC" // KeyD represent "D" key on the keyboard KeyD KeyCode = "KeyD" // KeyE represent "E" key on the keyboard KeyE KeyCode = "KeyE" // KeyF represent "F" key on the keyboard KeyF KeyCode = "KeyF" // KeyG represent "G" key on the keyboard KeyG KeyCode = "KeyG" // KeyH represent "H" key on the keyboard KeyH KeyCode = "KeyH" // KeyI represent "I" key on the keyboard KeyI KeyCode = "KeyI" // KeyJ represent "J" key on the keyboard KeyJ KeyCode = "KeyJ" // KeyK represent "K" key on the keyboard KeyK KeyCode = "KeyK" // KeyL represent "L" key on the keyboard KeyL KeyCode = "KeyL" // KeyM represent "M" key on the keyboard KeyM KeyCode = "KeyM" // KeyN represent "N" key on the keyboard KeyN KeyCode = "KeyN" // KeyO represent "O" key on the keyboard KeyO KeyCode = "KeyO" // KeyP represent "P" key on the keyboard KeyP KeyCode = "KeyP" // KeyQ represent "Q" key on the keyboard KeyQ KeyCode = "KeyQ" // KeyR represent "R" key on the keyboard KeyR KeyCode = "KeyR" // KeyS represent "S" key on the keyboard KeyS KeyCode = "KeyS" // KeyT represent "T" key on the keyboard KeyT KeyCode = "KeyT" // KeyU represent "U" key on the keyboard KeyU KeyCode = "KeyU" // KeyV represent "V" key on the keyboard KeyV KeyCode = "KeyV" // KeyW represent "W" key on the keyboard KeyW KeyCode = "KeyW" // KeyX represent "X" key on the keyboard KeyX KeyCode = "KeyX" // KeyY represent "Y" key on the keyboard KeyY KeyCode = "KeyY" // KeyZ represent "Z" key on the keyboard KeyZ KeyCode = "KeyZ" // Digit0Key represent "Digit0" key on the keyboard Digit0Key KeyCode = "Digit0" // Digit1Key represent "Digit1" key on the keyboard Digit1Key KeyCode = "Digit1" // Digit2Key represent "Digit2" key on the keyboard Digit2Key KeyCode = "Digit2" // Digit3Key represent "Digit3" key on the keyboard Digit3Key KeyCode = "Digit3" // Digit4Key represent "Digit4" key on the keyboard Digit4Key KeyCode = "Digit4" // Digit5Key represent "Digit5" key on the keyboard Digit5Key KeyCode = "Digit5" // Digit6Key represent "Digit6" key on the keyboard Digit6Key KeyCode = "Digit6" // Digit7Key represent "Digit7" key on the keyboard Digit7Key KeyCode = "Digit7" // Digit8Key represent "Digit8" key on the keyboard Digit8Key KeyCode = "Digit8" // Digit9Key represent "Digit9" key on the keyboard Digit9Key KeyCode = "Digit9" // SpaceKey represent "Space" key on the keyboard SpaceKey KeyCode = "Space" // MinusKey represent "Minus" key on the keyboard MinusKey KeyCode = "Minus" // EqualKey represent "Equal" key on the keyboard EqualKey KeyCode = "Equal" // IntlBackslashKey represent "IntlBackslash" key on the keyboard IntlBackslashKey KeyCode = "IntlBackslash" // BracketLeftKey represent "BracketLeft" key on the keyboard BracketLeftKey KeyCode = "BracketLeft" // BracketRightKey represent "BracketRight" key on the keyboard BracketRightKey KeyCode = "BracketRight" // SemicolonKey represent "Semicolon" key on the keyboard SemicolonKey KeyCode = "Semicolon" // CommaKey represent "Comma" key on the keyboard CommaKey KeyCode = "Comma" // PeriodKey represent "Period" key on the keyboard PeriodKey KeyCode = "Period" // QuoteKey represent "Quote" key on the keyboard QuoteKey KeyCode = "Quote" // BackquoteKey represent "Backquote" key on the keyboard BackquoteKey KeyCode = "Backquote" // SlashKey represent "Slash" key on the keyboard SlashKey KeyCode = "Slash" // EscapeKey represent "Escape" key on the keyboard EscapeKey KeyCode = "Escape" // EnterKey represent "Enter" key on the keyboard EnterKey KeyCode = "Enter" // TabKey represent "Tab" key on the keyboard TabKey KeyCode = "Tab" // CapsLockKey represent "CapsLock" key on the keyboard CapsLockKey KeyCode = "CapsLock" // DeleteKey represent "Delete" key on the keyboard DeleteKey KeyCode = "Delete" // InsertKey represent "Insert" key on the keyboard InsertKey KeyCode = "Insert" // HelpKey represent "Help" key on the keyboard HelpKey KeyCode = "Help" // BackspaceKey represent "Backspace" key on the keyboard BackspaceKey KeyCode = "Backspace" // PrintScreenKey represent "PrintScreen" key on the keyboard PrintScreenKey KeyCode = "PrintScreen" // ScrollLockKey represent "ScrollLock" key on the keyboard ScrollLockKey KeyCode = "ScrollLock" // PauseKey represent "Pause" key on the keyboard PauseKey KeyCode = "Pause" // ContextMenuKey represent "ContextMenu" key on the keyboard ContextMenuKey KeyCode = "ContextMenu" // ArrowLeftKey represent "ArrowLeft" key on the keyboard ArrowLeftKey KeyCode = "ArrowLeft" // ArrowRightKey represent "ArrowRight" key on the keyboard ArrowRightKey KeyCode = "ArrowRight" // ArrowUpKey represent "ArrowUp" key on the keyboard ArrowUpKey KeyCode = "ArrowUp" // ArrowDownKey represent "ArrowDown" key on the keyboard ArrowDownKey KeyCode = "ArrowDown" // HomeKey represent "Home" key on the keyboard HomeKey KeyCode = "Home" // EndKey represent "End" key on the keyboard EndKey KeyCode = "End" // PageUpKey represent "PageUp" key on the keyboard PageUpKey KeyCode = "PageUp" // PageDownKey represent "PageDown" key on the keyboard PageDownKey KeyCode = "PageDown" // F1Key represent "F1" key on the keyboard F1Key KeyCode = "F1" // F2Key represent "F2" key on the keyboard F2Key KeyCode = "F2" // F3Key represent "F3" key on the keyboard F3Key KeyCode = "F3" // F4Key represent "F4" key on the keyboard F4Key KeyCode = "F4" // F5Key represent "F5" key on the keyboard F5Key KeyCode = "F5" // F6Key represent "F6" key on the keyboard F6Key KeyCode = "F6" // F7Key represent "F7" key on the keyboard F7Key KeyCode = "F7" // F8Key represent "F8" key on the keyboard F8Key KeyCode = "F8" // F9Key represent "F9" key on the keyboard F9Key KeyCode = "F9" // F10Key represent "F10" key on the keyboard F10Key KeyCode = "F10" // F11Key represent "F11" key on the keyboard F11Key KeyCode = "F11" // F12Key represent "F12" key on the keyboard F12Key KeyCode = "F12" // F13Key represent "F13" key on the keyboard F13Key KeyCode = "F13" // NumLockKey represent "NumLock" key on the keyboard NumLockKey KeyCode = "NumLock" // NumpadKey0 represent "Numpad0" key on the keyboard NumpadKey0 KeyCode = "Numpad0" // NumpadKey1 represent "Numpad1" key on the keyboard NumpadKey1 KeyCode = "Numpad1" // NumpadKey2 represent "Numpad2" key on the keyboard NumpadKey2 KeyCode = "Numpad2" // NumpadKey3 represent "Numpad3" key on the keyboard NumpadKey3 KeyCode = "Numpad3" // NumpadKey4 represent "Numpad4" key on the keyboard NumpadKey4 KeyCode = "Numpad4" // NumpadKey5 represent "Numpad5" key on the keyboard NumpadKey5 KeyCode = "Numpad5" // NumpadKey6 represent "Numpad6" key on the keyboard NumpadKey6 KeyCode = "Numpad6" // NumpadKey7 represent "Numpad7" key on the keyboard NumpadKey7 KeyCode = "Numpad7" // NumpadKey8 represent "Numpad8" key on the keyboard NumpadKey8 KeyCode = "Numpad8" // NumpadKey9 represent "Numpad9" key on the keyboard NumpadKey9 KeyCode = "Numpad9" // NumpadDecimalKey represent "NumpadDecimal" key on the keyboard NumpadDecimalKey KeyCode = "NumpadDecimal" // NumpadEnterKey represent "NumpadEnter" key on the keyboard NumpadEnterKey KeyCode = "NumpadEnter" // NumpadAddKey represent "NumpadAdd" key on the keyboard NumpadAddKey KeyCode = "NumpadAdd" // NumpadSubtractKey represent "NumpadSubtract" key on the keyboard NumpadSubtractKey KeyCode = "NumpadSubtract" // NumpadMultiplyKey represent "NumpadMultiply" key on the keyboard NumpadMultiplyKey KeyCode = "NumpadMultiply" // NumpadDivideKey represent "NumpadDivide" key on the keyboard NumpadDivideKey KeyCode = "NumpadDivide" // ShiftLeftKey represent "ShiftLeft" key on the keyboard ShiftLeftKey KeyCode = "ShiftLeft" // ShiftRightKey represent "ShiftRight" key on the keyboard ShiftRightKey KeyCode = "ShiftRight" // ControlLeftKey represent "ControlLeft" key on the keyboard ControlLeftKey KeyCode = "ControlLeft" // ControlRightKey represent "ControlRight" key on the keyboard ControlRightKey KeyCode = "ControlRight" // AltLeftKey represent "AltLeft" key on the keyboard AltLeftKey KeyCode = "AltLeft" // AltRightKey represent "AltRight" key on the keyboard AltRightKey KeyCode = "AltRight" // MetaLeftKey represent "MetaLeft" key on the keyboard MetaLeftKey KeyCode = "MetaLeft" // MetaRightKey represent "MetaRight" key on the keyboard MetaRightKey KeyCode = "MetaRight" )
Constants for specific keyboard keys.
const ( // TopDownOrientation - subviews are arranged from top to bottom. Synonym of VerticalOrientation TopDownOrientation = 0 // StartToEndOrientation - subviews are arranged from left to right. Synonym of HorizontalOrientation StartToEndOrientation = 1 // BottomUpOrientation - subviews are arranged from bottom to top BottomUpOrientation = 2 // EndToStartOrientation - subviews are arranged from right to left EndToStartOrientation = 3 )
Constants which represent values of the "orientation" property of the ListLayout
const ( // ListWrapOff - subviews are scrolled and "true" if a new row/column starts ListWrapOff = 0 // ListWrapOn - the new row/column starts at bottom/right ListWrapOn = 1 // ListWrapReverse - the new row/column starts at top/left ListWrapReverse = 2 )
Constants which represent values of the "list-wrap" property of the ListLayout
const ( // VerticalOrientation is the vertical ListView orientation VerticalOrientation = 0 // HorizontalOrientation is the horizontal ListView orientation HorizontalOrientation = 1 )
Constants which represent values of the "orientation" property of the ListView. These are aliases for values used in ListLayout "orientation" property like TopDownOrientation and StartToEndOrientation
const ( // NoneCheckbox is value of "checkbox" property: no checkbox NoneCheckbox = 0 // SingleCheckbox is value of "checkbox" property: only one item can be checked SingleCheckbox = 1 // MultipleCheckbox is value of "checkbox" property: several items can be checked MultipleCheckbox = 2 )
Constants which represent values of a "checkbox" property of ListView
const ( // ClickEvent is the constant for "click-event" property tag. // // Used by View. // Occur when the user clicks on the view. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() ClickEvent PropertyName = "click-event" // DoubleClickEvent is the constant for "double-click-event" property tag. // // Used by View. // Occur when the user double clicks on the view. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() DoubleClickEvent PropertyName = "double-click-event" // MouseDown is the constant for "mouse-down" property tag. // // Used by View. // Is fired at a View when a pointing device button is pressed while the pointer is inside the view. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() MouseDown PropertyName = "mouse-down" // MouseUp is the constant for "mouse-up" property tag. // // Used by View. // Is fired at a View when a button on a pointing device (such as a mouse or trackpad) is released while the pointer is // located inside it. "mouse-up" events are the counterpoint to "mouse-down" events. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() MouseUp PropertyName = "mouse-up" // MouseMove is the constant for "mouse-move" property tag. // // Used by View. // Is fired at a view when a pointing device(usually a mouse) is moved while the cursor's hotspot is inside it. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() MouseMove PropertyName = "mouse-move" // MouseOut is the constant for "mouse-out" property tag. // // Used by View. // Is fired at a View when a pointing device (usually a mouse) is used to move the cursor so that it is no longer // contained within the view or one of its children. "mouse-out" is also delivered to a view if the cursor enters a child // view, because the child view obscures the visible area of the view. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() MouseOut PropertyName = "mouse-out" // MouseOver is the constant for "mouse-over" property tag. // // Used by View. // Is fired at a View when a pointing device (such as a mouse or trackpad) is used to move the cursor onto the view or one // of its child views. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() MouseOver PropertyName = "mouse-over" // ContextMenuEvent is the constant for "context-menu-event" property tag. // // Used by View. // Occur when the user calls the context menu by the right mouse clicking. // // General listener format: // // func(view rui.View, event rui.MouseEvent) // // where: // - view - Interface of a view which generated this event, // - event - Mouse event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.MouseEvent) // func() ContextMenuEvent PropertyName = "context-menu-event" // PrimaryMouseButton is a number of the main pressed button, usually the left button or the un-initialized state PrimaryMouseButton = 0 // AuxiliaryMouseButton is a number of the auxiliary pressed button, usually the wheel button // or the middle button (if present) AuxiliaryMouseButton = 1 // SecondaryMouseButton is a number of the secondary pressed button, usually the right button SecondaryMouseButton = 2 // MouseButton4 is a number of the fourth button, typically the Browser Back button MouseButton4 = 3 // MouseButton5 is a number of the fifth button, typically the Browser Forward button MouseButton5 = 4 // PrimaryMouseMask is the mask of the primary button (usually the left button) PrimaryMouseMask = 1 // SecondaryMouseMask is the mask of the secondary button (usually the right button) SecondaryMouseMask = 2 // AuxiliaryMouseMask is the mask of the auxiliary button (usually the mouse wheel button or middle button) AuxiliaryMouseMask = 4 // MouseMask4 is the mask of the 4th button (typically the "Browser Back" button) MouseMask4 = 8 //MouseMask5 is the mask of the 5th button (typically the "Browser Forward" button) MouseMask5 = 16 )
Constants related to View mouse events properties
const ( // NumberEditor - type of NumberPicker. NumberPicker is presented by editor NumberEditor = 0 // NumberSlider - type of NumberPicker. NumberPicker is presented by slider NumberSlider = 1 )
Constants which describe values of the "number-picker-type" property of a NumberPicker
const ( // Title is the constant for "title" property tag. // // Used by Popup, TabsLayout. // // Usage in Popup: // Define the title. // // Supported types: string. // // Usage in TabsLayout: // Set the title of the tab. The property is set for the child view of TabsLayout. // // Supported types: string. Title = "title" // TitleStyle is the constant for "title-style" property tag. // // Used by Popup. // Set popup title style. Default title style is "ruiPopupTitle". // // Supported types: string. TitleStyle PropertyName = "title-style" // CloseButton is the constant for "close-button" property tag. // // Used by Popup. // Controls whether a close button can be added to the popup. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Close button will be added to a title bar of a window. // - false, 0, "false", "no", "off", "0" - Popup without a close button. CloseButton PropertyName = "close-button" // OutsideClose is the constant for "outside-close" property tag. // // Used by Popup. // Controls whether popup can be closed by clicking outside of the window. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Clicking outside the popup window will automatically call the Dismiss() method. // - false, 0, "false", "no", "off", "0" - Clicking outside the popup window has no effect. OutsideClose PropertyName = "outside-close" // Buttons is the constant for "buttons" property tag. // // Used by Popup. // Buttons that will be placed at the bottom of the popup. // // Supported types: PopupButton, []PopupButton. // // Internal type is []PopupButton, other types converted to it during assignment. // See PopupButton description for more details. Buttons PropertyName = "buttons" // ButtonsAlign is the constant for "buttons-align" property tag. // // Used by Popup. // Set the horizontal alignment of popup buttons. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Width alignment. ButtonsAlign PropertyName = "buttons-align" // DismissEvent is the constant for "dismiss-event" property tag. // // Used by Popup. // Used to track the closing state of the Popup. It occurs after the Popup disappears from the screen. // // General listener format: // // func(popup rui.Popup) // // where: // popup - Interface of a popup which generated this event. // // Allowed listener formats: // // func() DismissEvent PropertyName = "dismiss-event" // Arrow is the constant for "arrow" property tag. // // Used by Popup. // Add an arrow to popup. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneArrow) or "none" - No arrow. // - 1 (TopArrow) or "top" - Arrow at the top side of the pop-up window. // - 2 (RightArrow) or "right" - Arrow on the right side of the pop-up window. // - 3 (BottomArrow) or "bottom" - Arrow at the bottom of the pop-up window. // - 4 (LeftArrow) or "left" - Arrow on the left side of the pop-up window. Arrow PropertyName = "arrow" // ArrowAlign is the constant for "arrow-align" property tag. // // Used by Popup. // Set the horizontal alignment of the popup arrow. Default value is "center". // // Supported types: int, string. // // Values: // - 0 (TopAlign/LeftAlign) or "top" - Top/left alignment. // - 1 (BottomAlign/RightAlign) or "bottom" - Bottom/right alignment. // - 2 (CenterAlign) or "center" - Center alignment. ArrowAlign PropertyName = "arrow-align" // ArrowSize is the constant for "arrow-size" property tag. // // Used by Popup. // Set the size(length) of the popup arrow. Default value is 16px defined by @ruiArrowSize constant. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. ArrowSize PropertyName = "arrow-size" // ArrowWidth is the constant for "arrow-width" property tag. // // Used by Popup. // Set the width of the popup arrow. Default value is 16px defined by @ruiArrowWidth constant. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. ArrowWidth PropertyName = "arrow-width" // ShowTransform is the constant for "show-transform" property tag. // // Used by Popup. // Specify start translation, scale and rotation over x, y and z axes as well as a distortion // for an animated Popup showing/hidding. // // Supported types: TransformProperty, string. // // See TransformProperty description for more details. // // Conversion rules: // - TransformProperty - stored as is, no conversion performed. // - string - string representation of Transform interface. Example: // // "_{ translate-x = 10px, scale-y = 1.1}" ShowTransform = "show-transform" // ShowDuration is the constant for "show-duration" property tag. // // Used by Popup. // Sets the length of time in seconds that a Popup show/hide animation takes to complete. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ShowDuration = "show-duration" // ShowTiming is the constant for "show-timing" property tag. // // Used by Popup. // Set how a Popup show/hide animation progresses through the duration of each cycle. // // Supported types: string. // // Values: // - "ease" (EaseTiming) - Speed increases towards the middle and slows down at the end. // - "ease-in" (EaseInTiming) - Speed is slow at first, but increases in the end. // - "ease-out" (EaseOutTiming) - Speed is fast at first, but decreases in the end. // - "ease-in-out" (EaseInOutTiming) - Speed is slow at first, but quickly increases and at the end it decreases again. // - "linear" (LinearTiming) - Constant speed. // - "step(n)" (StepTiming(n int) function) - Timing function along stepCount stops along the transition, displaying each stop for equal lengths of time. // - "cubic-bezier(x1, y1, x2, y2)" (CubicBezierTiming(x1, y1, x2, y2 float64) function) - Cubic-Bezier curve timing function. x1 and x2 must be in the range [0, 1]. ShowTiming = "show-timing" // ShowOpacity is the constant for "show-opacity" property tag. // // Used by Popup. // In [1..0] range sets the start opacity of Popup show animation (the finish animation opacity is 1). // Opacity is the degree to which content behind the view is hidden, and is the opposite of transparency. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ShowOpacity = "show-opacity" // ArrowOffset is the constant for "arrow-offset" property tag. // // Used by Popup. // Set the offset of the popup arrow. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. ArrowOffset PropertyName = "arrow-offset" // NoneArrow is value of the popup "arrow" property: no arrow NoneArrow = 0 // TopArrow is value of the popup "arrow" property: // Arrow at the top side of the pop-up window TopArrow = 1 // RightArrow is value of the popup "arrow" property: // Arrow on the right side of the pop-up window RightArrow = 2 // BottomArrow is value of the popup "arrow" property: // Arrow at the bottom of the pop-up window BottomArrow = 3 // LeftArrow is value of the popup "arrow" property: // Arrow on the left side of the pop-up window LeftArrow = 4 )
Constants for Popup specific properties and events
const ( // Visible - default value of the view Visibility property: View is visible Visible = 0 // Invisible - value of the view Visibility property: View is invisible but takes place Invisible = 1 // Gone - value of the view Visibility property: View is invisible and does not take place Gone = 2 // OverflowHidden - value of the view "overflow" property: // Content is clipped if necessary to fit the padding box. No scrollbars are provided, // and no support for allowing the user to scroll (such as by dragging or using a scroll wheel) is allowed. // The content can be scrolled programmatically, so the element is still a scroll container. OverflowHidden = 0 // OverflowVisible - value of the view "overflow" property: // Content is not clipped and may be rendered outside the padding box. OverflowVisible = 1 // OverflowScroll - value of the view "overflow" property: // Content is clipped if necessary to fit the padding box. Browsers always display scrollbars whether or // not any content is actually clipped, preventing scrollbars from appearing or disappearing as content changes. OverflowScroll = 2 // OverflowAuto - value of the view "overflow" property: // Depends on the browser user agent. If content fits inside the padding box, it looks the same as OverflowVisible, // but still establishes a new block formatting context. Desktop browsers provide scrollbars if content overflows. OverflowAuto = 3 // NoneTextTransform - not transform text NoneTextTransform = 0 // CapitalizeTextTransform - capitalize text CapitalizeTextTransform = 1 // LowerCaseTextTransform - transform text to lower case LowerCaseTextTransform = 2 // UpperCaseTextTransform - transform text to upper case UpperCaseTextTransform = 3 // HorizontalTopToBottom - content flows horizontally from left to right, vertically from top to bottom. // The next horizontal line is positioned below the previous line. HorizontalTopToBottom = 0 // HorizontalBottomToTop - content flows horizontally from left to right, vertically from bottom to top. // The next horizontal line is positioned above the previous line. HorizontalBottomToTop = 1 // VerticalRightToLeft - content flows vertically from top to bottom, horizontally from right to left. // The next vertical line is positioned to the left of the previous line. VerticalRightToLeft = 2 // VerticalLeftToRight - content flows vertically from top to bottom, horizontally from left to right. // The next vertical line is positioned to the right of the previous line. VerticalLeftToRight = 3 // MixedTextOrientation - rotates the characters of horizontal scripts 90° clockwise. // Lays out the characters of vertical scripts naturally. Default value. MixedTextOrientation = 0 // UprightTextOrientation - lays out the characters of horizontal scripts naturally (upright), // as well as the glyphs for vertical scripts. Note that this keyword causes all characters // to be considered as left-to-right: the used value of "text-direction" is forced to be "left-to-right". UprightTextOrientation = 1 // SystemTextDirection - direction of a text and other elements defined by system. This is the default value. SystemTextDirection = 0 // LeftToRightDirection - text and other elements go from left to right. LeftToRightDirection = 1 //RightToLeftDirection - text and other elements go from right to left. RightToLeftDirection = 2 // ThinFont - the value of "text-weight" property: the thin (hairline) text weight ThinFont = 1 // ExtraLightFont - the value of "text-weight" property: the extra light (ultra light) text weight ExtraLightFont = 2 // LightFont - the value of "text-weight" property: the light text weight LightFont = 3 // NormalFont - the value of "text-weight" property (default value): the normal text weight NormalFont = 4 // MediumFont - the value of "text-weight" property: the medium text weight MediumFont = 5 // SemiBoldFont - the value of "text-weight" property: the semi bold (demi bold) text weight SemiBoldFont = 6 // BoldFont - the value of "text-weight" property: the bold text weight BoldFont = 7 // ExtraBoldFont - the value of "text-weight" property: the extra bold (ultra bold) text weight ExtraBoldFont = 8 // BlackFont - the value of "text-weight" property: the black (heavy) text weight BlackFont = 9 // TopAlign - top vertical-align for the "vertical-align" property TopAlign = 0 // BottomAlign - bottom vertical-align for the "vertical-align" property BottomAlign = 1 // LeftAlign - the left horizontal-align for the "horizontal-align" property LeftAlign = 0 // RightAlign - the right horizontal-align for the "horizontal-align" property RightAlign = 1 // CenterAlign - the center horizontal/vertical-align for the "horizontal-align"/"vertical-align" property CenterAlign = 2 // StretchAlign - the stretch horizontal/vertical-align for the "horizontal-align"/"vertical-align" property StretchAlign = 3 // JustifyAlign - the justify text align for "text-align" property JustifyAlign = 3 // BaselineAlign - the baseline cell-vertical-align for the "cell-vertical-align" property BaselineAlign = 4 // WhiteSpaceNormal - sequences of white space are collapsed. Newline characters in the source // are handled the same as other white space. Lines are broken as necessary to fill line boxes. WhiteSpaceNormal = 0 // WhiteSpaceNowrap - collapses white space as for normal, but suppresses line breaks (text wrapping) // within the source. WhiteSpaceNowrap = 1 // WhiteSpacePre - sequences of white space are preserved. Lines are only broken at newline // characters in the source and at <br> elements. WhiteSpacePre = 2 // WhiteSpacePreWrap - Sequences of white space are preserved. Lines are broken at newline // characters, at <br>, and as necessary to fill line boxes. WhiteSpacePreWrap = 3 // WhiteSpacePreLine - sequences of white space are collapsed. Lines are broken at newline characters, // at <br>, and as necessary to fill line boxes. WhiteSpacePreLine = 4 // WhiteSpaceBreakSpaces - the behavior is identical to that of WhiteSpacePreWrap, except that: // - Any sequence of preserved white space always takes up space, including at the end of the line. // - A line breaking opportunity exists after every preserved white space character, including between white space characters. // - Such preserved spaces take up space and do not hang, and thus affect the box’s intrinsic sizes (min-content size and max-content size). WhiteSpaceBreakSpaces = 5 // WordBreakNormal - use the default line break rule. WordBreakNormal = 0 // WordBreakAll - to prevent overflow, word breaks should be inserted between any two characters // (excluding Chinese/Japanese/Korean text). WordBreakAll = 1 // WordBreakKeepAll - word breaks should not be used for Chinese/Japanese/Korean (CJK) text. // Non-CJK text behavior is the same as for normal. WordBreakKeepAll = 2 // WordBreakWord - when the block boundaries are exceeded, the remaining whole words can be split // in an arbitrary place, unless a more suitable place for the line break is found. WordBreakWord = 3 // TextOverflowClip - truncate the text at the limit of the content area, therefore the truncation // can happen in the middle of a character. TextOverflowClip = 0 // TextOverflowEllipsis - display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) to represent clipped text. // The ellipsis is displayed inside the content area, decreasing the amount of text displayed. // If there is not enough space to display the ellipsis, it is clipped. TextOverflowEllipsis = 1 // DefaultSemantics - default value of the view Semantic property DefaultSemantics = 0 // ArticleSemantics - value of the view Semantic property: view represents a self-contained // composition in a document, page, application, or site, which is intended to be // independently distributable or reusable (e.g., in syndication) ArticleSemantics = 1 // SectionSemantics - value of the view Semantic property: view represents // a generic standalone section of a document, which doesn't have a more specific // semantic element to represent it. SectionSemantics = 2 // AsideSemantics - value of the view Semantic property: view represents a portion // of a document whose content is only indirectly related to the document's main content. // Asides are frequently presented as sidebars or call-out boxes. AsideSemantics = 3 // HeaderSemantics - value of the view Semantic property: view represents introductory // content, typically a group of introductory or navigational aids. It may contain // some heading elements but also a logo, a search form, an author name, and other elements. HeaderSemantics = 4 // MainSemantics - value of the view Semantic property: view represents the dominant content // of the application. The main content area consists of content that is directly related // to or expands upon the central topic of a document, or the central functionality of an application. MainSemantics = 5 // nearest sectioning content or sectioning root element. A footer view typically contains // information about the author of the section, copyright data or links to related documents. FooterSemantics = 6 // a page whose purpose is to provide navigation links, either within the current document // or to other documents. Common examples of navigation sections are menus, tables of contents, // and indexes. NavigationSemantics = 7 // FigureSemantics - value of the view Semantic property: view represents self-contained content, // potentially with an optional caption, which is specified using the FigureCaptionSemantics view. FigureSemantics = 8 // FigureCaptionSemantics - value of the view Semantic property: view represents a caption or // legend describing the rest of the contents of its parent FigureSemantics view. FigureCaptionSemantics = 9 // ButtonSemantics - value of the view Semantic property: view a clickable button ButtonSemantics = 10 // ParagraphSemantics - value of the view Semantic property: view represents a paragraph. // Paragraphs are usually represented in visual media as blocks of text separated // from adjacent blocks by blank lines and/or first-line indentation ParagraphSemantics = 11 // H1Semantics - value of the view Semantic property: view represent of first level section headings. // H1Semantics is the highest section level and H6Semantics is the lowest. H1Semantics = 12 // H2Semantics - value of the view Semantic property: view represent of second level section headings. // H1Semantics is the highest section level and H6Semantics is the lowest. H2Semantics = 13 // H3Semantics - value of the view Semantic property: view represent of third level section headings. // H1Semantics is the highest section level and H6Semantics is the lowest. H3Semantics = 14 // H4Semantics - value of the view Semantic property: view represent of fourth level section headings. // H1Semantics is the highest section level and H6Semantics is the lowest. H4Semantics = 15 // H5Semantics - value of the view Semantic property: view represent of fifth level section headings. // H1Semantics is the highest section level and H6Semantics is the lowest. H5Semantics = 16 // H6Semantics - value of the view Semantic property: view represent of sixth level section headings. // H1Semantics is the highest section level and H6Semantics is the lowest. H6Semantics = 17 // BlockquoteSemantics - value of the view Semantic property: view indicates that // the enclosed text is an extended quotation. BlockquoteSemantics = 18 // CodeSemantics - value of the view Semantic property: view displays its contents styled // in a fashion intended to indicate that the text is a short fragment of computer code CodeSemantics = 19 // NoneFloat - value of the view "float" property: the View must not float. NoneFloat = 0 // LeftFloat - value of the view "float" property: the View must float on the left side of its containing block. LeftFloat = 1 // RightFloat - value of the view "float" property: the View must float on the right side of its containing block. RightFloat = 2 // NoneResize - value of the view "resize" property: the View The offers no user-controllable method for resizing it. NoneResize = 0 // BothResize - value of the view "resize" property: the View displays a mechanism for allowing // the user to resize it, which may be resized both horizontally and vertically. BothResize = 1 // HorizontalResize - value of the view "resize" property: the View displays a mechanism for allowing // the user to resize it in the horizontal direction. HorizontalResize = 2 // VerticalResize - value of the view "resize" property: the View displays a mechanism for allowing // the user to resize it in the vertical direction. VerticalResize = 3 // RowAutoFlow - value of the "grid-auto-flow" property of the GridLayout: // Views are placed by filling each row in turn, adding new rows as necessary. RowAutoFlow = 0 // ColumnAutoFlow - value of the "grid-auto-flow" property of the GridLayout: // Views are placed by filling each column in turn, adding new columns as necessary. ColumnAutoFlow = 1 // RowDenseAutoFlow - value of the "grid-auto-flow" property of the GridLayout: // Views are placed by filling each row, adding new rows as necessary. // "dense" packing algorithm attempts to fill in holes earlier in the grid, if smaller items come up later. // This may cause views to appear out-of-order, when doing so would fill in holes left by larger views. RowDenseAutoFlow = 2 // ColumnDenseAutoFlow - value of the "grid-auto-flow" property of the GridLayout: // Views are placed by filling each column, adding new columns as necessary. // "dense" packing algorithm attempts to fill in holes earlier in the grid, if smaller items come up later. // This may cause views to appear out-of-order, when doing so would fill in holes left by larger views. ColumnDenseAutoFlow = 3 // BlendNormal - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the top color, regardless of what the bottom color is. // The effect is like two opaque pieces of paper overlapping. BlendNormal = 0 // BlendMultiply - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of multiplying the top and bottom colors. // A black layer leads to a black final layer, and a white layer leads to no change. // The effect is like two images printed on transparent film overlapping. BlendMultiply = 1 // BlendScreen - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of inverting the colors, multiplying them, and inverting that value. // A black layer leads to no change, and a white layer leads to a white final layer. // The effect is like two images shone onto a projection screen. BlendScreen = 2 // BlendOverlay - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of multiply if the bottom color is darker, or screen if the bottom color is lighter. // This blend mode is equivalent to hard-light but with the layers swapped. BlendOverlay = 3 // BlendDarken - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is composed of the darkest values of each color channel. BlendDarken = 4 // BlendLighten - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is composed of the lightest values of each color channel. BlendLighten = 5 // BlendColorDodge - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of dividing the bottom color by the inverse of the top color. // A black foreground leads to no change. A foreground with the inverse color of the backdrop leads to a fully lit color. // This blend mode is similar to screen, but the foreground need only be as light as the inverse of the backdrop to create a fully lit color. BlendColorDodge = 6 // BlendColorBurn - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of inverting the bottom color, dividing the value by the top color, and inverting that value. // A white foreground leads to no change. A foreground with the inverse color of the backdrop leads to a black final image. // This blend mode is similar to multiply, but the foreground need only be as dark as the inverse of the backdrop to make the final image black. BlendColorBurn = 7 // BlendHardLight - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of multiply if the top color is darker, or screen if the top color is lighter. // This blend mode is equivalent to overlay but with the layers swapped. The effect is similar to shining a harsh spotlight on the backdrop. BlendHardLight = 8 // BlendSoftLight - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is similar to hard-light, but softer. This blend mode behaves similar to hard-light. // The effect is similar to shining a diffused spotlight on the backdrop*.* BlendSoftLight = 9 // BlendDifference - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is the result of subtracting the darker of the two colors from the lighter one. // A black layer has no effect, while a white layer inverts the other layer's color. BlendDifference = 10 // BlendExclusion - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color is similar to difference, but with less contrast. // As with difference, a black layer has no effect, while a white layer inverts the other layer's color. BlendExclusion = 11 // BlendHue - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color has the hue of the top color, while using the saturation and luminosity of the bottom color. BlendHue = 12 // BlendSaturation - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color has the saturation of the top color, while using the hue and luminosity of the bottom color. // A pure gray backdrop, having no saturation, will have no effect. BlendSaturation = 13 // BlendColor - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color has the hue and saturation of the top color, while using the luminosity of the bottom color. // The effect preserves gray levels and can be used to colorize the foreground. BlendColor = 14 // BlendLuminosity - value of the "mix-blend-mode" and "background-blend-mode" property: // The final color has the luminosity of the top color, while using the hue and saturation of the bottom color. // This blend mode is equivalent to BlendColor, but with the layers swapped. BlendLuminosity = 15 // ColumnFillBalance - value of the "column-fill" property: content is equally divided between columns. ColumnFillBalance = 0 // ColumnFillAuto - value of the "column-fill" property: // Columns are filled sequentially. Content takes up only the room it needs, possibly resulting in some columns remaining empty. ColumnFillAuto = 1 // TextWrapOn - value of the "text-wrap" property: // text is wrapped across lines at appropriate characters (for example spaces, // in languages like English that use space separators) to minimize overflow. TextWrapOn = 0 // TextWrapOff - value of the "text-wrap" property: text does not wrap across lines. // It will overflow its containing element rather than breaking onto a new line. TextWrapOff = 1 // TextWrapBalance - value of the "text-wrap" property: text is wrapped in a way // that best balances the number of characters on each line, enhancing layout quality // and legibility. Because counting characters and balancing them across multiple lines // is computationally expensive, this value is only supported for blocks of text // spanning a limited number of lines (six or less for Chromium and ten or less for Firefox). TextWrapBalance = 2 )
Constants for various specific properties of a views
const ( // Side is the constant for "side" property tag. // // Used by Resizable. // Determines which side of the container is used to resize. The value of property is an or-combination of values listed. // Default value is "all". // // Supported types: int, string. // // Values: // - 1 (TopSide) or "top" - Top frame side. // - 2 (RightSide) or "right" - Right frame side. // - 4 (BottomSide) or "bottom" - Bottom frame side. // - 8 (LeftSide) or "left" - Left frame side. // - 15 (AllSides) or "all" - All frame sides. Side = "side" // ResizeBorderWidth is the constant for "resize-border-width" property tag. // // Used by Resizable. // Specifies the width of the resizing border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. ResizeBorderWidth = "resize-border-width" )
Constants for Resizable specific properties and events
const ( // TopSide is value of the "side" property: the top side is used to resize TopSide = 1 // RightSide is value of the "side" property: the right side is used to resize RightSide = 2 // BottomSide is value of the "side" property: the bottom side is used to resize BottomSide = 4 // LeftSide is value of the "side" property: the left side is used to resize LeftSide = 8 // AllSides is value of the "side" property: all sides is used to resize AllSides = TopSide | RightSide | BottomSide | LeftSide )
Constants for values of Resizable "side" property. These constants can be ORed if needed.
const ( // NoneSelection the selection is forbidden. NoneSelection = 0 // CellSelection the selection of a single cell only is enabled. CellSelection = 1 // RowSelection the selection of a table row only is enabled. RowSelection = 2 )
Constants which represent values of "selection-mode" property of a TableView
const ( // TopTabs - tabs of TabsLayout are on the top TopTabs = 0 // BottomTabs - tabs of TabsLayout are on the bottom BottomTabs = 1 // LeftTabs - tabs of TabsLayout are on the left. Bookmarks are rotated counterclockwise 90 degrees. LeftTabs = 2 // RightTabs - tabs of TabsLayout are on the right. Bookmarks are rotated clockwise 90 degrees. RightTabs = 3 // LeftListTabs - tabs of TabsLayout are on the left LeftListTabs = 4 // RightListTabs - tabs of TabsLayout are on the right RightListTabs = 5 // HiddenTabs - tabs of TabsLayout are hidden HiddenTabs = 6 )
Constants that are the values of the "tabs" property of a TabsLayout
const ( // DefaultMedia means that style appliance will not be related to client's window orientation DefaultMedia = 0 // PortraitMedia means that style apply on clients with portrait window orientation PortraitMedia = 1 // PortraitMedia means that style apply on clients with landscape window orientation LandscapeMedia = 2 )
Constants used as a values for MediaStyleParams member Orientation
const PopupMenuResult = "popup-menu-result"
PopupMenuResult is the constant for "popup-menu-result" property tag.
Used by `Popup`. Set the function to be called when the menu item of popup menu is selected.
Supported types: `func(index int)`.
Variables ¶
var ProtocolInDebugLog = false
ProtocolInDebugLog If it is set to true, then the protocol of the exchange between clients and the server is displayed in the debug log
Functions ¶
func AddEmbedResources ¶
AddEmbedResources adds embedded resources to the list of application resources
func AddTransition ¶ added in v0.2.0
func AddTransition(view View, subviewID string, tag PropertyName, animation AnimationProperty) bool
AddTransition adds the transition for the subview property. If the second argument (subviewID) is not specified or it is "" then the transition is added to the first argument (view)
func AllImageResources ¶ added in v0.6.0
func AllImageResources() []string
AllImageResources returns the list of all image resouces
func AllRawResources ¶
func AllRawResources() []string
AllRawResources returns the list of all raw resouces
func AppendEditText ¶
AppendEditText appends the text to the EditView content. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func AppendView ¶
AppendView appends a view to the end of the list of a view children
func BlurView ¶ added in v0.7.0
func BlurView(view View)
BlurView removes keyboard focus from the specified View.
func BlurViewByID ¶ added in v0.7.0
BlurViewByID removes keyboard focus from the View with the specified viewID.
func CubicBezierTiming ¶
CubicBezierTiming return a cubic-Bezier curve timing function. x1 and x2 must be in the range [0, 1].
func FocusView ¶
FocusView sets focus on the specified subview, if it can be focused. The focused View is the View which will receive keyboard events by default. If the second argument (subviewID) is not specified or it is "" then focus is set on the first argument (view)
func FocusViewByID ¶
FocusView sets focus on the View with the specified viewID, if it can be focused. The focused View is the View which will receive keyboard events by default.
func Get ¶
func Get(rootView View, viewID string, tag PropertyName) any
Get returns a value of the property with name "tag" of the "rootView" subview with "viewID" id value.
The type of return value depends on the property.
If the subview don't exists or the property is not set then nil is returned.
If the second argument (subviewID) is "" then a listener for the first argument (view) is get
func GetAnimationCancelListeners ¶ added in v0.2.0
GetAnimationCancelListeners returns the "animation-cancel-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetAnimationEndListeners ¶ added in v0.2.0
GetAnimationEndListeners returns the "animation-end-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetAnimationIterationListeners ¶ added in v0.2.0
GetAnimationIterationListeners returns the "animation-iteration-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetAnimationStartListeners ¶ added in v0.2.0
GetAnimationStartListeners returns the "animation-start-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetAvoidBreak ¶
GetAvoidBreak returns "true" if avoids any break from being inserted within the principal box, and "false" if allows, but does not force, any break to be inserted within the principal box. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetBackfaceVisible ¶
GetBackfaceVisible returns a bool property that sets whether the back face of an element is visible when turned towards the user. Values: true - the back face is visible when turned towards the user (default value). false - the back face is hidden, effectively making the element invisible when turned away from the user. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetBackgroundBlendMode ¶ added in v0.11.0
GetBackgroundBlendMode returns a "background-blend-mode" of the subview. Returns one of next values:
BlendNormal (0), BlendMultiply (1), BlendScreen (2), BlendOverlay (3), BlendDarken (4), BlendLighten (5), BlendColorDodge (6), BlendColorBurn (7), BlendHardLight (8), BlendSoftLight (9), BlendDifference (10), BlendExclusion (11), BlendHue (12), BlendSaturation (13), BlendColor (14), BlendLuminosity (15)
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetBackgroundClip ¶ added in v0.18.0
GetBackgroundClip returns a "background-clip" of the subview. Returns one of next values:
BorderBox (0), PaddingBox (1), ContentBox (2)
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetBackgroundOrigin ¶ added in v0.18.0
GetBackgroundOrigin returns a "background-origin" of the subview. Returns one of next values:
BorderBox (0), PaddingBox (1), ContentBox (2)
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCellHorizontalAlign ¶
GetCellHorizontalAlign returns the vertical align of a GridLayout cell content: LeftAlign (0), RightAlign (1), CenterAlign (2), StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCellVerticalAlign ¶
GetCellVerticalAlign returns the vertical align of a GridLayout cell content: TopAlign (0), BottomAlign (1), CenterAlign (2), StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCheckboxChangedListeners ¶ added in v0.17.0
GetCheckboxChangedListeners returns the CheckboxChangedListener list of an Checkbox subview. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCheckboxHorizontalAlign ¶ added in v0.9.0
GetCheckboxHorizontalAlign return the vertical align of a Checkbox subview: LeftAlign (0), RightAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetCheckboxVerticalAlign ¶ added in v0.9.0
GetCheckboxVerticalAlign return the vertical align of a Checkbox subview: TopAlign (0), BottomAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetClickListeners ¶
func GetClickListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetClickListeners returns the "click-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetColorChangedListeners ¶
func GetColorChangedListeners(view View, subviewID ...string) []func(ColorPicker, Color, Color)
GetColorChangedListeners returns the ColorChangedListener list of an ColorPicker subview. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetColumnCount ¶
GetColumnCount returns int value which specifies number of columns into which the content of ColumnLayout is break. If the return value is 0 then the number of columns is calculated based on the "column-width" property. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetColumnFill ¶ added in v0.11.0
GetColumnFill returns a "column-fill" property value of the subview. Returns one of next values: ColumnFillBalance (0) or ColumnFillAuto (1) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetColumnSeparatorStyle ¶
ColumnSeparatorStyle returns int value which specifies the style of the line drawn between columns in a multi-column layout. Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetContextMenuListeners ¶
func GetContextMenuListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetContextMenuListeners returns the "context-menu" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCurrent ¶ added in v0.4.0
GetCurrent returns the index of the selected item (<0 if there is no a selected item) or the current view index (StackLayout, TabsLayout). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDataList ¶ added in v0.15.0
GetDataList returns the data list of an editor. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDateChangedListeners ¶
func GetDateChangedListeners(view View, subviewID ...string) []func(DatePicker, time.Time, time.Time)
GetDateChangedListeners returns the DateChangedListener list of an DatePicker subview. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDatePickerMax ¶
GetDatePickerMax returns the max date of DatePicker subview and "true" as the second value if the min date is set, "false" as the second value otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDatePickerMin ¶
GetDatePickerMin returns the min date of DatePicker subview and "true" as the second value if the min date is set, "false" as the second value otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDatePickerStep ¶
GetDatePickerStep returns the date changing step in days of DatePicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDatePickerValue ¶
GetDatePickerValue returns the date of DatePicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDisabledStyle ¶
GetDisabledStyle returns the disabled subview style id. If the second argument (subviewID) is not specified or it is "" then a style of the first argument (view) is returned
func GetDoubleClickListeners ¶
func GetDoubleClickListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetDoubleClickListeners returns the "double-click-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDropDownDisabledItems ¶ added in v0.6.0
GetDropDownDisabledItems return an array of disabled(non selectable) items indices of DropDownList. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDropDownItemSeparators ¶ added in v0.17.0
GetDropDownItemSeparators return an array of indices of DropDownList items after which a separator should be added. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDropDownItems ¶
GetDropDownItems return the DropDownList items list. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetDropDownListeners ¶
func GetDropDownListeners(view View, subviewID ...string) []func(DropDownList, int, int)
GetDropDownListeners returns the "drop-down-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetEditViewPattern ¶
GetEditViewPattern returns a value of the Pattern property of EditView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetEditViewType ¶
GetEditViewType returns a value of the Type property of EditView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetFilePickerAccept ¶ added in v0.3.0
GetFilePickerAccept returns sets the list of allowed file extensions or MIME types. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetFileSelectedListeners ¶ added in v0.3.0
func GetFileSelectedListeners(view View, subviewID ...string) []func(FilePicker, []FileInfo)
GetFileSelectedListeners returns the "file-selected-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetFocusListeners ¶
GetFocusListeners returns a FocusListener list. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetFontName ¶
GetFontName returns the subview font. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetGridAutoFlow ¶ added in v0.7.0
GetGridAutoFlow returns the value of the "grid-auto-flow" property If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetHint ¶
GetHint returns a hint text of the subview. If the second argument (subviewID) is not specified or it is "" then a text of the first argument (view) is returned.
func GetHorizontalAlign ¶
GetHorizontalAlign return the vertical align of a list/checkbox: LeftAlign (0), RightAlign (1), CenterAlign (2), StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetImageViewAltText ¶
GetImageViewAltText returns an alternative text description of an ImageView subview. If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetImageViewFit ¶
GetImageViewFit returns how the content of a replaced ImageView subview: NoneFit (0), ContainFit (1), CoverFit (2), FillFit (3), or ScaleDownFit (4). If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetImageViewHorizontalAlign ¶
GetImageViewHorizontalAlign return the vertical align of an ImageView subview: LeftAlign (0), RightAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetImageViewSource ¶
GetImageViewSource returns the image URL of an ImageView subview. If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetImageViewVerticalAlign ¶
GetImageViewVerticalAlign return the vertical align of an ImageView subview: TopAlign (0), BottomAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetKeyDownListeners ¶
GetKeyDownListeners returns the "key-down-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetKeyUpListeners ¶
GetKeyUpListeners returns the "key-up-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListHorizontalAlign ¶
GetListHorizontalAlign returns the vertical align of a ListLayout or ListView subview: LeftAlign (0), RightAlign (1), CenterAlign (2), or StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemCheckedListeners ¶
GetListItemCheckedListeners returns a ListItemCheckedListener of the ListView. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemClickedListeners ¶
GetListItemClickedListeners returns a ListItemClickedListener of the ListView. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemHorizontalAlign ¶
ItemHorizontalAlign returns the horizontal align of the ListView item content: LeftAlign (0), RightAlign (1), CenterAlign (2), StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemSelectedListeners ¶
GetListItemSelectedListeners returns a ListItemSelectedListener of the ListView. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemVerticalAlign ¶
GetListItemVerticalAlign returns the vertical align of the ListView item content: TopAlign (0), BottomAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListOrientation ¶
GetListOrientation returns the orientation of a ListLayout or ListView subview: TopDownOrientation (0), StartToEndOrientation (1), BottomUpOrientation (2), or EndToStartOrientation (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListVerticalAlign ¶
GetListVerticalAlign returns the vertical align of a ListLayout or ListView sibview: TopAlign (0), BottomAlign (1), CenterAlign (2), or StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListViewCheckbox ¶
GetListViewCheckbox returns the ListView checkbox type: NoneCheckbox (0), SingleCheckbox (1), or MultipleCheckbox (2). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListViewCheckboxHorizontalAlign ¶
GetListViewCheckboxHorizontalAlign returns the horizontal align of the ListView checkbox: LeftAlign (0), RightAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListViewCheckboxVerticalAlign ¶
GetListViewCheckboxVerticalAlign returns the vertical align of the ListView checkbox: TopAlign (0), BottomAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListViewCheckedItems ¶
GetListViewCheckedItems returns the array of ListView checked items. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListWrap ¶
GetListWrap returns the wrap type of a ListLayout or ListView subview: ListWrapOff (0), ListWrapOn (1), or ListWrapReverse (2) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetLostFocusListeners ¶
GetLostFocusListeners returns a LostFocusListener list. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMaskClip ¶ added in v0.18.0
GetMaskClip returns a "mask-clip" of the subview. Returns one of next values:
BorderBox (0), PaddingBox (1), ContentBox (2)
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMaskOrigin ¶ added in v0.18.0
GetMaskOrigin returns a "mask-origin" of the subview. Returns one of next values:
BorderBox (0), PaddingBox (1), ContentBox (2)
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMaxLength ¶
GetMaxLength returns a maximal length of EditView. If a maximal length is not limited then 0 is returned If the second argument (subviewID) is not specified or it is "" then a value of the first argument (view) is returned.
func GetMixBlendMode ¶ added in v0.11.0
GetMixBlendMode returns a "mix-blend-mode" of the subview. Returns one of next values:
BlendNormal (0), BlendMultiply (1), BlendScreen (2), BlendOverlay (3), BlendDarken (4), BlendLighten (5), BlendColorDodge (6), BlendColorBurn (7), BlendHardLight (8), BlendSoftLight (9), BlendDifference (10), BlendExclusion (11), BlendHue (12), BlendSaturation (13), BlendColor (14), BlendLuminosity (15)
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMouseDownListeners ¶
func GetMouseDownListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetMouseDownListeners returns the "mouse-down" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMouseMoveListeners ¶
func GetMouseMoveListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetMouseMoveListeners returns the "mouse-move" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMouseOutListeners ¶
func GetMouseOutListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetMouseOutListeners returns the "mouse-out" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMouseOverListeners ¶
func GetMouseOverListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetMouseOverListeners returns the "mouse-over" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMouseUpListeners ¶
func GetMouseUpListeners(view View, subviewID ...string) []func(View, MouseEvent)
GetMouseUpListeners returns the "mouse-up" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetNotTranslate ¶
GetNotTranslate returns value of "not-translate" property of the subview. If the second argument (subviewID) is not specified or is an empty string then a value from the first argument (view) is returned.
func GetNumberChangedListeners ¶
func GetNumberChangedListeners(view View, subviewID ...string) []func(NumberPicker, float64, float64)
GetNumberChangedListeners returns the NumberChangedListener list of an NumberPicker subview. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetNumberPickerMinMax ¶
GetNumberPickerMinMax returns the min and max value of NumberPicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetNumberPickerPrecision ¶ added in v0.18.0
GetNumberPickerPrecision returns the precision of displaying fractional part in editor of NumberPicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetNumberPickerStep ¶
GetNumberPickerStep returns the value changing step of NumberPicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetNumberPickerType ¶
GetNumberPickerType returns the type of NumberPicker subview. Valid values: NumberEditor (0) - NumberPicker is presented by editor (default type); NumberSlider (1) - NumberPicker is presented by slider. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetNumberPickerValue ¶
GetNumberPickerValue returns the value of NumberPicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetOpacity ¶
GetOpacity returns the subview opacity. If the second argument (subviewID) is not specified or it is "" then an opacity of the first argument (view) is returned
func GetOrder ¶ added in v0.11.0
GetOrder returns the subview order to layout an item in a ListLayout or GridLayout container. If the second argument (subviewID) is not specified or it is "" then an order of the first argument (view) is returned
func GetOverflow ¶ added in v0.9.0
GetOverflow returns a value of the subview "overflow" property. Returns one of next values: OverflowHidden (0), OverflowVisible (1), OverflowScroll (2), OverflowAuto (3) If the second argument (subviewID) is not specified or it is "" then a value of the first argument (view) is returned
func GetPerspectiveOrigin ¶
GetPerspectiveOrigin returns a x- and y-coordinate of the position at which the viewer is looking. It is used as the vanishing point by the Perspective property. The default value is (50%, 50%). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPointerCancelListeners ¶
func GetPointerCancelListeners(view View, subviewID ...string) []func(View, PointerEvent)
GetPointerCancelListeners returns the "pointer-cancel" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPointerDownListeners ¶
func GetPointerDownListeners(view View, subviewID ...string) []func(View, PointerEvent)
GetPointerDownListeners returns the "pointer-down" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPointerMoveListeners ¶
func GetPointerMoveListeners(view View, subviewID ...string) []func(View, PointerEvent)
GetPointerMoveListeners returns the "pointer-move" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPointerOutListeners ¶
func GetPointerOutListeners(view View, subviewID ...string) []func(View, PointerEvent)
GetPointerOutListeners returns the "pointer-out" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPointerOverListeners ¶
func GetPointerOverListeners(view View, subviewID ...string) []func(View, PointerEvent)
GetPointerOverListeners returns the "pointer-over" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPointerUpListeners ¶
func GetPointerUpListeners(view View, subviewID ...string) []func(View, PointerEvent)
GetPointerUpListeners returns the "pointer-up" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetProgressBarMax ¶
GetProgressBarMax returns the max value of ProgressBar subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetProgressBarValue ¶
GetProgressBarValue returns the value of ProgressBar subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetPushDuration ¶ added in v0.18.0
GetPushDuration returns the length of time in seconds that an push/pop StackLayout animation takes to complete. If the second argument (subviewID) is not specified or it is "" then a width of the first argument (view) is returned
func GetPushTiming ¶ added in v0.18.0
GetPushTiming returns the function which sets how an push/pop animation progresses. If the second argument (subviewID) is not specified or it is "" then a width of the first argument (view) is returned
func GetResize ¶ added in v0.7.0
GetResize returns the "resize" property value if the subview. One of the following values is returned: NoneResize (0), BothResize (1), HorizontalResize (2), or VerticalResize (3) If the second argument (subviewID) is not specified or it is "" then a value of the first argument (view) is returned
func GetResizeListeners ¶
GetResizeListeners returns the list of "resize-event" listeners. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then the listeners list of the first argument (view) is returned
func GetScale ¶
GetScale returns a x-, y-, and z-axis scaling value of a 2D/3D scale. The default value is 1. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetScrollListeners ¶
GetScrollListeners returns the list of "scroll-event" listeners. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then the listeners list of the first argument (view) is returned
func GetSemantics ¶
GetSemantics returns the subview semantics. Valid semantics values are DefaultSemantics (0), ArticleSemantics (1), SectionSemantics (2), AsideSemantics (3), HeaderSemantics (4), MainSemantics (5), FooterSemantics (6), NavigationSemantics (7), FigureSemantics (8), FigureCaptionSemantics (9), ButtonSemantics (10), ParagraphSemantics (11), H1Semantics (12) - H6Semantics (17), BlockquoteSemantics (18), and CodeSemantics (19). If the second argument (subviewID) is not specified or it is "" then a semantics of the first argument (view) is returned
func GetSkew ¶
GetSkew returns a angles to use to distort the element along the abscissa (x-axis) and the ordinate (y-axis). The default value is 0. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetStyle ¶
GetStyle returns the subview style id. If the second argument (subviewID) is not specified or it is "" then a style of the first argument (view) is returned
func GetSvgImageViewHorizontalAlign ¶ added in v0.12.0
GetSvgImageViewHorizontalAlign return the vertical align of an SvgImageView subview: LeftAlign (0), RightAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetSvgImageViewVerticalAlign ¶ added in v0.12.0
GetSvgImageViewVerticalAlign return the vertical align of an SvgImageView subview: TopAlign (0), BottomAlign (1), CenterAlign (2) If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetTabIndex ¶ added in v0.11.0
GetTabIndex returns the subview tab-index. If the second argument (subviewID) is not specified or it is "" then a tab-index of the first argument (view) is returned
func GetTabSize ¶ added in v0.9.0
GetTabSize returns the subview width of tab characters (U+0009) in spaces. If the second argument (subviewID) is not specified or it is "" then a width of the first argument (view) is returned
func GetTableCellClickedListeners ¶ added in v0.5.0
GetTableCellClickedListeners returns listeners of event which occurs when the user clicks on a table cell. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableCellSelectedListeners ¶ added in v0.5.0
GetTableCellSelectedListeners returns listeners of event which occurs when a table cell becomes selected. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableFootHeight ¶ added in v0.5.0
GetTableFootHeight returns the number of rows in the table footer. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableHeadHeight ¶ added in v0.5.0
GetTableHeadHeight returns the number of rows in the table header. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableRowClickedListeners ¶ added in v0.5.0
GetTableRowClickedListeners returns listeners of event which occurs when the user clicks on a table row. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableRowSelectedListeners ¶ added in v0.5.0
GetTableRowSelectedListeners returns listeners of event which occurs when a table row becomes selected. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableSelectionMode ¶ added in v0.5.0
GetTableSelectionMode returns the mode of the TableView elements selection. Valid values are NoneSelection (0), CellSelection (1), and RowSelection (2). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTableVerticalAlign ¶ added in v0.5.0
GetTableVerticalAlign returns a vertical align in a TableView cell. Returns one of next values: TopAlign (0), BottomAlign (1), CenterAlign (2), and BaselineAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetText ¶
GetText returns a text of the EditView subview. If the second argument (subviewID) is not specified or it is "" then a text of the first argument (view) is returned.
func GetTextAlign ¶
GetTextAlign returns a text align of the subview. Returns one of next values:
LeftAlign = 0, RightAlign = 1, CenterAlign = 2, JustifyAlign = 3
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextChangedListeners ¶
GetTextChangedListeners returns the TextChangedListener list of an EditView or MultiLineEditView subview. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextDirection ¶
GetTextDirection - returns a direction of text, table columns, and horizontal overflow. Valid values are SystemTextDirection (0), LeftToRightDirection (1), and RightToLeftDirection (2). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextLineStyle ¶
GetTextLineStyle returns the stroke style of the decoration line that is used on text in an element, such as a line-through, underline, or overline. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextOverflow ¶
GetTextOverflow returns a value of the "text-overflow" property: TextOverflowClip (0) or TextOverflowEllipsis (1). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextTransform ¶
GetTextTransform returns a text transform of the subview. Return one of next values: NoneTextTransform (0), CapitalizeTextTransform (1), LowerCaseTextTransform (2) or UpperCaseTextTransform (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextWeight ¶
GetTextWeight returns a text weight of the subview. Returns one of next values: 1, 2, 3, 4 (normal text), 5, 6, 7 (bold text), 8 and 9 If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextWrap ¶ added in v0.16.0
GetTextAlign returns how text inside of the subview is wrapped. Returns one of next values:
TextWrapOn = 0, TextWrapOff = 1, TextWrapBalance = 3
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTimeChangedListeners ¶
func GetTimeChangedListeners(view View, subviewID ...string) []func(TimePicker, time.Time, time.Time)
GetTimeChangedListeners returns the TimeChangedListener list of an TimePicker subview. If there are no listeners then the empty list is returned If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTimePickerMax ¶
GetTimePickerMax returns the max time of TimePicker subview and "true" as the second value if the min time is set, "false" as the second value otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTimePickerMin ¶
GetTimePickerMin returns the min time of TimePicker subview and "true" as the second value if the min time is set, "false" as the second value otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTimePickerStep ¶
GetTimePickerStep returns the time changing step in seconds of TimePicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTimePickerValue ¶
GetTimePickerValue returns the time of TimePicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTooltip ¶ added in v0.13.0
GetTooltip returns a tooltip text of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTouchCancelListeners ¶
func GetTouchCancelListeners(view View, subviewID ...string) []func(View, TouchEvent)
GetTouchCancelListeners returns the "touch-cancel" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTouchEndListeners ¶
func GetTouchEndListeners(view View, subviewID ...string) []func(View, TouchEvent)
GetTouchEndListeners returns the "touch-end" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTouchMoveListeners ¶
func GetTouchMoveListeners(view View, subviewID ...string) []func(View, TouchEvent)
GetTouchMoveListeners returns the "touch-move" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTouchStartListeners ¶
func GetTouchStartListeners(view View, subviewID ...string) []func(View, TouchEvent)
GetTouchStartListeners returns the "touch-start" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransformOrigin ¶ added in v0.18.0
GetTransformOrigin returns a x-, y-, and z-coordinate of the point around which a view transformation is applied. The default value is (50%, 50%, 50%). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransitionCancelListeners ¶ added in v0.2.0
GetTransitionCancelListeners returns the "transition-cancel-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransitionEndListeners ¶ added in v0.2.0
GetTransitionEndListeners returns the "transition-end-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransitionRunListeners ¶ added in v0.2.0
GetTransitionRunListeners returns the "transition-run-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransitionStartListeners ¶ added in v0.2.0
GetTransitionStartListeners returns the "transition-start-event" listener list. If there are no listeners then the empty list is returned. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransitions ¶ added in v0.9.0
func GetTransitions(view View, subviewID ...string) map[PropertyName]AnimationProperty
GetTransitions returns the subview transitions. The result is always non-nil. If the second argument (subviewID) is not specified or it is "" then transitions of the first argument (view) is returned
func GetTranslate ¶
GetTranslate returns a x-, y-, and z-axis translation value of a 2D/3D translation If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetVerticalAlign ¶
GetVerticalAlign return the vertical align of a list: TopAlign (0), BottomAlign (1), CenterAlign (2), StretchAlign (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetVerticalTextOrientation ¶
GetVerticalTextOrientation returns a orientation of the text characters in a line. It only affects text in vertical mode (when "writing-mode" is "vertical-right-to-left" or "vertical-left-to-right"). Valid values are MixedTextOrientation (0), UprightTextOrientation (1), and SidewaysTextOrientation (2). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetVisibility ¶
GetVisibility returns the subview visibility. One of the following values is returned: Visible (0), Invisible (1), or Gone (2) If the second argument (subviewID) is not specified or it is "" then a visibility of the first argument (view) is returned
func GetWritingMode ¶
GetWritingMode returns whether lines of text are laid out horizontally or vertically, as well as the direction in which blocks progress. Valid values are HorizontalTopToBottom (0), HorizontalBottomToTop (1), VerticalRightToLeft (2) and VerticalLeftToRight (3) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetZIndex ¶
GetZIndex returns the subview z-order. If the second argument (subviewID) is not specified or it is "" then a z-order of the first argument (view) is returned
func InitCustomView ¶
func InitCustomView(customView CustomView, tag string, session Session, params Params) bool
InitCustomView initializes fields of CustomView by default values
func InlineImageFromResource ¶ added in v0.12.0
InlineImageFromResource reads image from resources and converts it to an inline image. Supported png, jpeg, gif, and svg files
func InsertView ¶
Insert inserts a view to the "index" position in the list of a view children
func IsAnimationPaused ¶ added in v0.2.0
IsAnimationPaused returns "true" if an animation of the subview is paused, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsCheckboxChecked ¶
IsCheckboxChecked returns true if the Checkbox is checked, false otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsColumnSpanAll ¶ added in v0.11.0
IsColumnSpanAll returns a "column-span-all" property value of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsDetailsExpanded ¶
IsDetailsExpanded returns a value of the Expanded property of DetailsView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsDisabled ¶
IsDisabled returns "true" if the subview is disabled If the second argument (subviewID) is not specified or it is "" then a state of the first argument (view) is returned
func IsEditViewWrap ¶
IsEditViewWrap returns a value of the EditWrap property of MultiLineEditView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsItalic ¶
IsItalic returns "true" if a text font of the subview is displayed in italics, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsListViewCheckedItem ¶
IsListViewCheckedItem returns true if the ListView item with index is checked, false otherwise. If the second argument (subviewID) is "" then a value from the first argument (view) is returned.
func IsMediaPlayerEnded ¶
IsMediaPlayerEnded function tells whether the media element is ended.
func IsMediaPlayerPaused ¶
IsMediaPlayerPaused function tells whether the media element is paused.
func IsMoveToFrontAnimation ¶ added in v0.18.0
IsMoveToFrontAnimation returns "true" if an animation is used when calling the MoveToFront/MoveToFrontByID method of StackLayout interface. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsMultipleFilePicker ¶ added in v0.3.0
IsMultipleFilePicker returns "true" if multiple files can be selected in the FilePicker, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsOverline ¶
IsOverline returns "true" if a text font of the subview is displayed overlined, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsReadOnly ¶
IsReadOnly returns the true if a EditView works in read only mode. If the second argument (subviewID) is not specified or it is "" then a value of the first argument (view) is returned.
func IsSmallCaps ¶
IsSmallCaps returns "true" if a text font of the subview is displayed in small caps, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsSpellcheck ¶
IsSpellcheck returns a value of the Spellcheck property of EditView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsStrikethrough ¶
IsStrikethrough returns "true" if a text font of the subview is displayed strikethrough, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsSummaryMarkerHidden ¶ added in v0.18.0
IsDetailsExpanded returns a value of the HideSummaryMarker property of DetailsView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsTimingFunctionValid ¶ added in v0.9.0
IsTimingFunctionValid returns "true" if the "timingFunction" argument is the valid timing function.
func IsUnderline ¶
IsUnderline returns "true" if a text font of the subview is displayed underlined, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func IsUserSelect ¶ added in v0.8.0
IsUserSelect returns "true" if the user can select text, "false" otherwise. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func LoadFilePickerFile ¶ added in v0.3.0
LoadFilePickerFile loads the content of the selected file. This function is asynchronous. The "result" function will be called after loading the data. If the second argument (subviewID) is "" then the file from the first argument (view) is loaded
func MediaPlayerCurrentTime ¶
MediaPlayerCurrentTime returns the current playback time in seconds.
func MediaPlayerDuration ¶
MediaPlayerDuration returns the value indicating the total duration of the media in seconds. If no media data is available, the returned value is NaN.
func MediaPlayerPause ¶
MediaPlayerPause will pause playback of the media, if the media is already in a paused state this method will have no effect.
func MediaPlayerPlay ¶
MediaPlayerPlay attempts to begin playback of the media.
func MediaPlayerPlaybackRate ¶
MediaPlayerPlaybackRate returns the rate at which the media is being played back.
func MediaPlayerVolume ¶
Volume returns the audio volume, from 0.0 (silent) to 1.0 (loudest).
func NewHandler ¶ added in v0.13.3
func NewHandler(urlPrefix string, createContentFunc func(Session) SessionContent, params AppParams) *httpHandler
NewHandler is used to embed the rui application in third-party web frameworks (net/http, gin, echo...).
Example for echo:
e := echo.New() e.Any(`/ui/*`, func()echo.HandlerFunc{ rui.AddEmbedResources(&resources) h := rui.NewHandler("/ui", CreateSessionContent, rui.AppParams{ Title: `Awesome app`, Icon: `favicon.png`, }) return func(c echo.Context) error { h.ServeHTTP(c.Response(), c.Request()) return nil } })
func OpenBrowser ¶
OpenBrowser open browser with specific URL locally. Useful for applications which run on local machine or for debug purposes.
func OpenRawResource ¶ added in v0.17.0
OpenRawResource returns the contents of the raw resource with the specified name
func ReadRawResource ¶
ReadRawResource returns the contents of the raw resource with the specified name
func RedrawCanvasView ¶
RedrawCanvasView finds CanvasView with canvasViewID and redraws it
func RegisterViewCreator ¶
RegisterViewCreator register function of creating view
func ReloadListViewData ¶
ReloadListViewData updates ListView content If the second argument (subviewID) is not specified or it is "" then content the first argument (view) is updated.
func ReloadTableViewCell ¶ added in v0.13.0
ReloadTableViewCell updates the given table cell. If the last argument (subviewID) is not specified or it is "" then updates the cell of the first argument (TableView).
func ReloadTableViewData ¶ added in v0.6.0
ReloadTableViewData updates TableView If the second argument (subviewID) is not specified or it is "" then updates the first argument (TableView).
func ScrollViewTo ¶
ScrollTo scrolls the view's content to the given position. If the second argument (subviewID) is "" then the first argument (view) is used
func ScrollViewToEnd ¶
ScrollViewToEnd scrolls the view's content to the end of view. If the second argument (subviewID) is not specified or it is "" then the first argument (view) is used
func ScrollViewToStart ¶
ScrollViewToEnd scrolls the view's content to the start of view. If the second argument (subviewID) is not specified or it is "" then the first argument (view) is used
func Set ¶
func Set(rootView View, viewID string, tag PropertyName, value any) bool
Set sets the property with name "tag" of the "rootView" subview with "viewID" id by value. Result:
- true - success,
- false - error (incompatible type or invalid format of a string value, see AppLog).
If the second argument (subviewID) is "" then a listener for the first argument (view) is set
func SetAnimated ¶
func SetAnimated(rootView View, viewID string, tag PropertyName, value any, animation AnimationProperty) bool
SetAnimated sets the property with name "tag" of the "rootView" subview with "viewID" id by value. Result: true - success, false - error (incompatible type or invalid format of a string value, see AppLog).
func SetChangeListener ¶ added in v0.4.0
func SetChangeListener(view View, viewID string, tag PropertyName, listener func(View, PropertyName))
SetChangeListener sets a listener for changing a subview property value.
If the second argument (subviewID) is "" then a listener for the first argument (view) is set
func SetDebugLog ¶
func SetDebugLog(f func(string))
SetDebugLog sets a function for outputting debug info. The default value is nil (debug info is ignored)
func SetErrorLog ¶
func SetErrorLog(f func(string))
SetErrorLog sets a function for outputting error messages. The default value is log.Println(text)
func SetMediaPlayerCurrentTime ¶
SetMediaPlayerCurrentTime sets the current playback time in seconds.
func SetMediaPlayerPlaybackRate ¶
SetMediaPlayerPlaybackRate sets the rate at which the media is being played back. This is used to implement user controls for fast forward, slow motion, and so forth. The normal playback rate is multiplied by this value to obtain the current rate, so a value of 1.0 indicates normal speed.
func SetMediaPlayerVolume ¶
SetVolume sets the audio volume, from 0.0 (silent) to 1.0 (loudest).
func SetParams ¶
SetParams sets properties with name "tag" of the "rootView" subview. Result:
- true - all properties were set successful,
- false - error (incompatible type or invalid format of a string value, see AppLog).
func SetResourcePath ¶
func SetResourcePath(path string)
SetResourcePath set path of the resource directory
func ShowCancellableQuestion ¶
func ShowCancellableQuestion(title, text string, session Session, onYes func(), onNo func(), onCancel func())
ShowCancellableQuestion displays a message with the given title and text and three buttons "Yes", "No" and "Cancel".
When the "Yes", "No" or "Cancel" button is pressed, the message is closed and the onYes, onNo or onCancel function (if it is not nil) is called, respectively.
func ShowMessage ¶
ShowMessage displays the popup with the title given in the "title" argument and the message text given in the "text" argument.
func ShowQuestion ¶
ShowQuestion displays a message with the given title and text and two buttons "Yes" and "No".
When the "Yes" button is clicked, the message is closed and the onYes function is called (if it is not nil).
When the "No" button is pressed, the message is closed and the onNo function is called (if it is not nil).
func StartApp ¶ added in v0.5.0
func StartApp(addr string, createContentFunc func(Session) SessionContent, params AppParams)
StartApp - create the new application and start it
func StepsTiming ¶
StepsTiming return a timing function along stepCount stops along the transition, displaying each stop for equal lengths of time
func UpdateContent ¶ added in v0.16.0
UpdateContent updates child Views of ListLayout/GridLayout subview if the "content" property value is set to ListAdapter/GridAdapter, otherwise does nothing. If the second argument (subviewID) is not specified or it is "" then the first argument (view) updates.
Types ¶
type AbsoluteLayout ¶
type AbsoluteLayout interface { ViewsContainer }
AbsoluteLayout represent an AbsoluteLayout view where child views can be arbitrary positioned
func NewAbsoluteLayout ¶
func NewAbsoluteLayout(session Session, params Params) AbsoluteLayout
NewAbsoluteLayout create new AbsoluteLayout object and return it
type AngleUnit ¶
type AngleUnit struct { // Type of the angle value Type AngleUnitType // Value of the angle in Type units Value float64 }
AngleUnit used to represent an angular values
func Deg ¶
func Deg[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) AngleUnit
Deg creates AngleUnit with Degree type
func GetRotate ¶
GetRotate returns a x-, y, z-coordinate of the vector denoting the axis of rotation, and the angle of the view rotation If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func Grad ¶
func Grad[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) AngleUnit
Grad create AngleUnit with Gradian type
func PiRad ¶
func PiRad[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) AngleUnit
PiRad create AngleUnit with PiRadian type
func Rad ¶
func Rad[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) AngleUnit
Rad create AngleUnit with Radian type
func StringToAngleUnit ¶
StringToAngleUnit converts the string argument to AngleUnit
type AngleUnitType ¶
type AngleUnitType uint8
AngleUnitType : type of enumerated constants for define a type of AngleUnit value. Can take the following values: Radian, Degree, Gradian, and Turn
const ( // Radian - angle in radians Radian AngleUnitType = 0 // Radian - angle in radians * π PiRadian AngleUnitType = 1 // Degree - angle in degrees Degree AngleUnitType = 2 // Gradian - angle in gradian (1⁄400 of a full circle) Gradian AngleUnitType = 3 // Turn - angle in turns (1 turn = 360 degree) Turn AngleUnitType = 4 )
Constants which represent values or the AngleUnitType
type AnimatedProperty ¶ added in v0.2.0
type AnimatedProperty struct { // Tag is the name of the property Tag PropertyName // From is the initial value of the property From any // To is the final value of the property To any // KeyFrames is intermediate property values KeyFrames map[int]any }
AnimatedProperty describes the change script of one property
type AnimationProperty ¶ added in v0.18.0
type AnimationProperty interface { Properties fmt.Stringer // Start starts the animation for the view specified by the first argument. // The second argument specifies the animation event listener (can be nil) Start(view View, listener func(view View, animation AnimationProperty, event PropertyName)) bool // Stop stops the animation Stop() // Pause pauses the animation Pause() // Resume resumes an animation that was stopped using the Pause method Resume() // contains filtered or unexported methods }
AnimationProperty interface is used to set animation parameters. Used properties:
"property", "id", "duration", "delay", "timing-function", "iteration-count", and "animation-direction"
func GetAnimation ¶ added in v0.2.0
func GetAnimation(view View, subviewID ...string) []AnimationProperty
GetAnimation returns the subview animations. The result is always non-nil. If the second argument (subviewID) is not specified or it is "" then transitions of the first argument (view) is returned
func GetTransition ¶ added in v0.2.0
func GetTransition(view View, subviewID string, tag PropertyName) AnimationProperty
GetTransition returns the subview property transition. If there is no transition for the given property then nil is returned. If the second argument (subviewID) is not specified or it is "" then transitions of the first argument (view) is returned
func NewAnimation ¶ added in v0.2.0
func NewAnimation(id string, timingFunc string, duration float64, delay float64, direction int, iterationCount int, property AnimatedProperty, properties ...AnimatedProperty) AnimationProperty
NewTransitionAnimation creates the animation scenario.
- id - specifies the animation identifier.
- timingFunc - specifies how an animation progresses through the duration of each cycle. If it is "" then "easy" function is used;
- duration - specifies the length of time in seconds that an animation takes to complete one cycle. Must be > 0;
- delay - specifies the amount of time in seconds to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning or immediately and partway through the animation.
- direction - specifies whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. Only the following values can be used: 0 (NormalAnimation), 1 (ReverseAnimation), 2 (AlternateAnimation), and 3 (AlternateReverseAnimation);
- iterationCount - specifies the number of times an animation sequence should be played before stopping. A negative value specifies infinite repetition;
- property, properties - describes a scenario for changing a View's property.
func NewAnimationProperty ¶ added in v0.18.0
func NewAnimationProperty(params Params) AnimationProperty
NewAnimationProperty creates a new animation object and return its interface
The following properties can be used:
- "id" (ID) - specifies the animation identifier. Used only for animation script.
- "duration" (Duration) - specifies the length of time in seconds that an animation takes to complete one cycle;
- "delay" (Delay) - specifies the amount of time in seconds to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning or immediately and partway through the animation;
- "timing-function" (TimingFunction) - specifies how an animation progresses through the duration of each cycle;
- "iteration-count" (IterationCount) - specifies the number of times an animation sequence should be played before stopping. Used only for animation script;
- "animation-direction" (AnimationDirection) - specifies whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. Used only for animation script;
- "property" (PropertyTag) - describes a scenario for changing a View's property. Used only for animation script.
func NewTransitionAnimation ¶ added in v0.18.0
func NewTransitionAnimation(timingFunc string, duration float64, delay float64) AnimationProperty
NewTransitionAnimation creates animation data for the transition.
- timingFunc - specifies how an animation progresses through the duration of each cycle. If it is "" then "easy" function is used;
- duration - specifies the length of time in seconds that an animation takes to complete one cycle. Must be > 0;
- delay - specifies the amount of time in seconds to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning or immediately and partway through the animation.
type AppParams ¶ added in v0.5.0
type AppParams struct { // Title - title of the app window/tab Title string // TitleColor - background color of the app window/tab (applied only for Safari and Chrome for Android) TitleColor Color // Icon - the icon file name Icon string // CertFile - path of a certificate for the server must be provided // if neither the Server's TLSConfig.Certificates nor TLSConfig.GetCertificate are populated. // If the certificate is signed by a certificate authority, the certFile should be the concatenation // of the server's certificate, any intermediates, and the CA's certificate. CertFile string AutoCertDomain string // KeyFile - path of a private key for the server must be provided // if neither the Server's TLSConfig.Certificates nor TLSConfig.GetCertificate are populated. KeyFile string // Redirect80 - if true then the function of redirect from port 80 to 443 is created Redirect80 bool // NoSocket - if true then WebSockets will not be used and information exchange // between the client and the server will be carried out only via http. NoSocket bool // SocketAutoClose - time in seconds after which the socket is automatically closed for an inactive session. // The countdown begins after the OnPause event arrives. // If the value of this property is less than or equal to 0 then the socket is not closed. SocketAutoClose int }
AppParams defines parameters of the app
type Application ¶
type Application interface { // Finish finishes the application Finish() // Params returns application parameters set by StartApp function Params() AppParams // contains filtered or unexported methods }
Application represent generic application interface, see also Session
type AudioPlayer ¶
type AudioPlayer interface { MediaPlayer }
AudioPlayer is a type of a View which can play audio files
func AudioPlayerByID ¶
func AudioPlayerByID(rootView View, id string, ids ...string) AudioPlayer
AudioPlayerByID return the AudioPlayer path to which is specified using the arguments id, ids. Example
view := AudioPlayerByID(rootView, "id1", "id2", "id3") view := AudioPlayerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not AudioPlayer, the function will return nil
func NewAudioPlayer ¶
func NewAudioPlayer(session Session, params Params) AudioPlayer
NewAudioPlayer create new MediaPlayer object and return it
type BackgroundElement ¶
type BackgroundElement interface { Properties fmt.Stringer // Tag returns type of the background element. // Possible values are: "image", "conic-gradient", "linear-gradient" and "radial-gradient" Tag() string // Clone creates a new copy of BackgroundElement Clone() BackgroundElement // contains filtered or unexported methods }
BackgroundElement describes the background element
func GetBackground ¶ added in v0.18.0
func GetBackground(view View, subviewID ...string) []BackgroundElement
GetBackground returns the view background.
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMask ¶ added in v0.18.0
func GetMask(view View, subviewID ...string) []BackgroundElement
GetMask returns the view mask.
If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func NewBackgroundConicGradient ¶ added in v0.6.0
func NewBackgroundConicGradient(params Params) BackgroundElement
NewBackgroundConicGradient creates the new background conic gradient
The following properties can be used:
- "gradient" Gradient - Describes gradient stop points. This is a mandatory property while describing background gradients.
- "center-x" CenterX - center X point of the gradient.
- "center-y" CenterY - center Y point of the gradient.
- "from" From - start angle position of the gradient.
- "repeating" Repeating - Defines whether stop points needs to be repeated after the last one.
func NewBackgroundImage ¶
func NewBackgroundImage(params Params) BackgroundElement
NewBackgroundImage creates the new background image
The following properties can be used:
- "src" Source - the name of the image in the "images" folder of the resources, or the URL of the image or inline-image.
- "width" Width - the width of the image.
- "height" Height - the height of the image.
- "image-horizontal-align" ImageHorizontalAlign - the horizontal alignment of the image relative to view's bounds.
- "image-vertical-align" ImageVerticalAlign - the vertical alignment of the image relative to view's bounds.
- "repeat" Repeat - the repetition of the image.
- "fit" Fit - the image scaling parameters.
- "attachment" Attachment - defines whether a background image's position is fixed within the viewport or scrolls with its containing block.
func NewBackgroundLinearGradient ¶
func NewBackgroundLinearGradient(params Params) BackgroundElement
NewBackgroundLinearGradient creates the new background linear gradient.
The following properties can be used:
func NewBackgroundRadialGradient ¶
func NewBackgroundRadialGradient(params Params) BackgroundElement
NewBackgroundRadialGradient creates the new background radial gradient.
The following properties can be used:
- "gradient" (Gradient) - Describes gradient stop points. This is a mandatory property while describing background gradients.
- "center-x" (CenterX), "center-y" (CenterY) - Defines the gradient center point cooordinates.
- "radial-gradient-radius" (RadialGradientRadius) - Defines radius of the radial gradient.
- "radial-gradient-shape" (RadialGradientShape) - Defines shape of the radial gradient.
- "repeating" (Repeating) - Defines whether stop points needs to be repeated after the last one.
func NewCircleRadialGradient ¶ added in v0.18.0
func NewCircleRadialGradient[radiusType SizeUnit | RadialGradientRadiusType](xCenter, yCenter SizeUnit, radius radiusType, repeating bool, point1 GradientPoint, point2 GradientPoint, points ...GradientPoint) BackgroundElement
NewCircleRadialGradient creates the new background circle radial gradient.
func NewEllipseRadialGradient ¶ added in v0.18.0
func NewEllipseRadialGradient[radiusType []SizeUnit | RadialGradientRadiusType](xCenter, yCenter SizeUnit, radius radiusType, repeating bool, point1 GradientPoint, point2 GradientPoint, points ...GradientPoint) BackgroundElement
NewEllipseRadialGradient creates the new background ellipse radial gradient.
func NewLinearGradient ¶ added in v0.18.0
func NewLinearGradient[DirectionType LinearGradientDirectionType | AngleUnit](direction DirectionType, repeating bool, point1 GradientPoint, point2 GradientPoint, points ...GradientPoint) BackgroundElement
NewLinearGradient creates the new background linear gradient.
type BackgroundGradientAngle ¶ added in v0.6.0
type BackgroundGradientAngle struct { // Color - the color of the key angle. Must not be nil. // Can take a value of Color type or string (color constant or textual description of the color) Color any // Angle - the key angle. Optional (may be nil). // Can take a value of AngleUnit type or string (angle constant or textual description of the angle) Angle any }
BackgroundGradientAngle defined an element of the conic gradient
func (*BackgroundGradientAngle) String ¶ added in v0.6.0
func (point *BackgroundGradientAngle) String() string
String convert internal representation of BackgroundGradientAngle into a string.
type BackgroundGradientPoint ¶
type BackgroundGradientPoint struct { // Color - the color of the point. Must not be nil. // Can take a value of Color type or string (color constant or textual description of the color) Color any // Pos - the distance from the start of the gradient straight line. Optional (may be nil). // Can take a value of SizeUnit type or string (size constant or textual description of the SizeUnit) Pos any }
BackgroundGradientPoint define point on gradient straight line
func (*BackgroundGradientPoint) String ¶ added in v0.14.0
func (point *BackgroundGradientPoint) String() string
String convert internal representation of BackgroundGradientPoint into a string.
type BorderProperty ¶
type BorderProperty interface { Properties fmt.Stringer // ViewBorders returns top, right, bottom and left borders information all together ViewBorders(session Session) ViewBorders // contains filtered or unexported methods }
BorderProperty is the interface of a view border data
func NewBorder ¶
func NewBorder(params Params) BorderProperty
NewBorder creates the new BorderProperty. The following properties can be used:
"style" (Style). Determines the line style (int). Valid values: 0 (NoneLine), 1 (SolidLine), 2 (DashedLine), 3 (DottedLine), or 4 (DoubleLine);
"color" (ColorTag). Determines the line color (Color);
"width" (Width). Determines the line thickness (SizeUnit).
type Bounds ¶
type Bounds struct {
Top, Right, Bottom, Left SizeUnit
}
Bounds describe bounds of rectangle.
func DefaultBounds ¶
func DefaultBounds() Bounds
DefaultBounds return bounds with Top, Right, Bottom and Left fields set to Auto
func GetMargin ¶
Margin returns the subview margin. If the second argument (subviewID) is not specified or it is "" then a margin of the first argument (view) is returned
func GetPadding ¶
GetPadding returns the subview padding. If the second argument (subviewID) is not specified or it is "" then a padding of the first argument (view) is returned
type BoundsProperty ¶
type BoundsProperty interface { Properties fmt.Stringer // Bounds returns top, right, bottom and left size of the bounds Bounds(session Session) Bounds // contains filtered or unexported methods }
BorderProperty is an interface of a bounds property data
func NewBounds ¶ added in v0.18.0
func NewBounds[topType SizeUnit | int | float64, rightType SizeUnit | int | float64, bottomType SizeUnit | int | float64, leftType SizeUnit | int | float64]( top topType, right rightType, bottom bottomType, left leftType) BoundsProperty
NewBounds creates the new BoundsProperty object.
The arguments specify the boundaries in a clockwise direction: "top", "right", "bottom", and "left".
If the argument is specified as int or float64, the value is considered to be in pixels.
func NewBoundsProperty ¶
func NewBoundsProperty(params Params) BoundsProperty
NewBoundsProperty creates the new BoundsProperty object.
The following SizeUnit properties can be used: "left" (Left), "right" (Right), "top" (Top), and "bottom" (Bottom).
type BoxRadius ¶
type BoxRadius struct {
TopLeftX, TopLeftY, TopRightX, TopRightY, BottomLeftX, BottomLeftY, BottomRightX, BottomRightY SizeUnit
}
BoxRadius defines radii of rounds the corners of an element's outer border edge
func GetRadius ¶
Radius returns the BoxRadius structure of the subview. If the second argument (subviewID) is not specified or it is "" then a BoxRadius of the first argument (view) is returned.
func (BoxRadius) AllAnglesIsEqual ¶
AllAnglesIsEqual returns 'true' if all angles is equal, 'false' otherwise
type Button ¶
type Button interface { CustomView }
Button represent a Button view
func ButtonByID ¶
ButtonByID return the Button path to which is specified using the arguments id, ids. Example
view := ButtonByID(rootView, "id1", "id2", "id3") view := ButtonByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not Button, the function will return nil
type Canvas ¶
type Canvas interface { // View return the view for the drawing View() CanvasView // Width returns the width in pixels of the canvas area Width() float64 // Height returns the height in pixels of the canvas area Height() float64 // Save saves the entire state of the canvas by pushing the current state onto a stack. Save() // Restore restores the most recently saved canvas state by popping the top entry // in the drawing state stack. If there is no saved state, this method does nothing. Restore() // ClipPath turns the rectangle into the current clipping region. It replaces any previous clipping region. ClipRect(x, y, width, height float64) // ClipPath turns the path into the current clipping region. It replaces any previous clipping region. ClipPath(path Path) // SetScale adds a scaling transformation to the canvas units horizontally and/or vertically. // * x - scaling factor in the horizontal direction. A negative value flips pixels across // the vertical axis. A value of 1 results in no horizontal scaling; // * y - scaling factor in the vertical direction. A negative value flips pixels across // the horizontal axis. A value of 1 results in no vertical scaling. SetScale(x, y float64) // SetTranslation adds a translation transformation to the current matrix. // * x - distance to move in the horizontal direction. Positive values are to the right, and negative to the left; // * y - distance to move in the vertical direction. Positive values are down, and negative are up. SetTranslation(x, y float64) // SetRotation adds a rotation to the transformation matrix. // angle - the rotation angle, clockwise in radians SetRotation(angle float64) // SetTransformation multiplies the current transformation with the matrix described by the arguments // of this method. This lets you scale, rotate, translate (move), and skew the context. // The transformation matrix is described by: // ⎡ xScale xSkew dx ⎤ // ⎢ ySkew yScale dy ⎥ // ⎣ 0 0 1 ⎦ // where // * xScale, yScale - horizontal and vertical scaling. A value of 1 results in no scaling; // * xSkew, ySkew - horizontal and vertical skewing; // * dx, dy - horizontal and vertical translation (moving). SetTransformation(xScale, yScale, xSkew, ySkew, dx, dy float64) // ResetTransformation resets the current transform to the identity matrix ResetTransformation() // SetSolidColorFillStyle sets the color to use inside shapes SetSolidColorFillStyle(color Color) // SetSolidColorStrokeStyle sets color to use for the strokes (outlines) around shapes SetSolidColorStrokeStyle(color Color) // SetLinearGradientFillStyle sets a gradient along the line connecting two given coordinates to use inside shapes // * x0, y0 - coordinates of the start point; // * x1, y1 - coordinates of the end point; // * startColor, endColor - the start and end color // * stopPoints - the array of stop points SetLinearGradientFillStyle(x0, y0 float64, color0 Color, x1, y1 float64, color1 Color, stopPoints []GradientPoint) // SetLinearGradientStrokeStyle sets a gradient along the line connecting two given coordinates to use for the strokes (outlines) around shapes // * x0, y0 - coordinates of the start point; // * x1, y1 - coordinates of the end point; // * color0, color1 - the start and end color // * stopPoints - the array of stop points SetLinearGradientStrokeStyle(x0, y0 float64, color0 Color, x1, y1 float64, color1 Color, stopPoints []GradientPoint) // SetRadialGradientFillStyle sets a radial gradient using the size and coordinates of two circles // to use inside shapes // * x0, y0 - coordinates of the center of the start circle; // * r0 - the radius of the start circle; // * x1, y1 - coordinates the center of the end circle; // * r1 - the radius of the end circle; // * color0, color1 - the start and end color // * stopPoints - the array of stop points SetRadialGradientFillStyle(x0, y0, r0 float64, color0 Color, x1, y1, r1 float64, color1 Color, stopPoints []GradientPoint) // SetRadialGradientStrokeStyle sets a radial gradient using the size and coordinates of two circles // to use for the strokes (outlines) around shapes // * x0, y0 - coordinates of the center of the start circle; // * r0 - the radius of the start circle; // * x1, y1 - coordinates the center of the end circle; // * r1 - the radius of the end circle; // * color0, color1 - the start and end color // * stopPoints - the array of stop points SetRadialGradientStrokeStyle(x0, y0, r0 float64, color0 Color, x1, y1, r1 float64, color1 Color, stopPoints []GradientPoint) // SetConicGradientFillStyle sets a conic gradient around a point // to use inside shapes // * x, y - coordinates of the center of the conic gradient in pilels; // * startAngle - the angle at which to begin the gradient, in radians. The angle starts from a line going horizontally right from the center, and proceeds clockwise. // * startColor - the start color; // * endColor - the end color; // * stopPoints - the array of stop points. The Pos field of GradientPoint, in the range from 0 to 1, specifies the angle in turns. SetConicGradientFillStyle(x, y, startAngle float64, startColor, endColor Color, stopPoints []GradientPoint) // SetConicGradientFillStyle sets a conic gradient around a point // to use inside shapes // * x, y - coordinates of the center of the conic gradient in pilels; // * startAngle - the angle at which to begin the gradient, in radians. The angle starts from a line going horizontally right from the center, and proceeds clockwise. // * startColor - the start color; // * endColor - the end color; // * stopPoints - the array of stop points. The Pos field of GradientPoint, in the range from 0 to 1, specifies the angle in turns. SetConicGradientStrokeStyle(x, y, startAngle float64, startColor, endColor Color, stopPoints []GradientPoint) // SetImageFillStyle set the image as the filling pattern. // // repeat - indicating how to repeat the pattern's image. Possible values are: // * NoRepeat (0) - neither direction, // * RepeatXY (1) - both directions, // * RepeatX (2) - horizontal only, // * RepeatY (3) - vertical only. SetImageFillStyle(image Image, repeat int) // SetLineWidth the line width, in coordinate space units. Zero, negative, Infinity, and NaN values are ignored. SetLineWidth(width float64) // SetLineJoin sets the shape used to join two line segments where they meet. // Valid values: MiterJoin (0), RoundJoin (1), BevelJoin (2). All other values are ignored. SetLineJoin(join LineJoin) // SetLineJoin sets the shape used to draw the end points of lines. // Valid values: ButtCap (0), RoundCap (1), SquareCap (2). All other values are ignored. SetLineCap(cap LineCap) // SetLineDash sets the line dash pattern used when stroking lines. // dash - an array of values that specify alternating lengths of lines and gaps which describe the pattern. // offset - the line dash offset SetLineDash(dash []float64, offset float64) // SetFont sets the current text style to use when drawing text SetFont(name string, size SizeUnit) // SetFontWithParams sets the current text style to use when drawing text SetFontWithParams(name string, size SizeUnit, params FontParams) // TextWidth calculates metrics of the text drawn by a given font TextMetrics(text string, fontName string, fontSize SizeUnit, fontParams FontParams) TextMetrics // SetTextBaseline sets the current text baseline used when drawing text. Valid values: // AlphabeticBaseline (0), TopBaseline (1), MiddleBaseline (2), BottomBaseline (3), // HangingBaseline (4), and IdeographicBaseline (5). All other values are ignored. SetTextBaseline(baseline int) // SetTextAlign sets the current text alignment used when drawing text. Valid values: // LeftAlign (0), RightAlign (1), CenterAlign (2), StartAlign (3), and EndAlign(4). All other values are ignored. SetTextAlign(align int) // SetShadow sets shadow parameters: // * offsetX, offsetY - the distance that shadows will be offset horizontally and vertically; // * blur - the amount of blur applied to shadows. Must be non-negative; // * color - the color of shadows. SetShadow(offsetX, offsetY, blur float64, color Color) // ResetShadow sets shadow parameters to default values (invisible shadow) ResetShadow() // ClearRect erases the pixels in a rectangular area by setting them to transparent black ClearRect(x, y, width, height float64) // FillRect draws a rectangle that is filled according to the current FillStyle. FillRect(x, y, width, height float64) // StrokeRect draws a rectangle that is stroked (outlined) according to the current strokeStyle // and other context settings StrokeRect(x, y, width, height float64) // FillAndStrokeRect draws a rectangle that is filled according to the current FillStyle and // is stroked (outlined) according to the current strokeStyle and other context settings FillAndStrokeRect(x, y, width, height float64) // FillRoundedRect draws a rounded rectangle that is filled according to the current FillStyle. FillRoundedRect(x, y, width, height, r float64) // StrokeRoundedRect draws a rounded rectangle that is stroked (outlined) according // to the current strokeStyle and other context settings StrokeRoundedRect(x, y, width, height, r float64) // FillAndStrokeRoundedRect draws a rounded rectangle that is filled according to the current FillStyle // and is stroked (outlined) according to the current strokeStyle and other context settings FillAndStrokeRoundedRect(x, y, width, height, r float64) // FillEllipse draws a ellipse that is filled according to the current FillStyle. // * x, y - coordinates of the ellipse's center; // * radiusX - the ellipse's major-axis radius. Must be non-negative; // * radiusY - the ellipse's minor-axis radius. Must be non-negative; // * rotation - the rotation of the ellipse, expressed in radians. FillEllipse(x, y, radiusX, radiusY, rotation float64) // StrokeRoundedRect draws a ellipse that is stroked (outlined) according // to the current strokeStyle and other context settings StrokeEllipse(x, y, radiusX, radiusY, rotation float64) // FillAndStrokeEllipse draws a ellipse that is filled according to the current FillStyle // and is stroked (outlined) according to the current strokeStyle and other context settings FillAndStrokeEllipse(x, y, radiusX, radiusY, rotation float64) // NewPath creates a new Path object NewPath() Path // NewPathFromSvg creates a new Path and initialize it by a string consisting of SVG path data NewPathFromSvg(data string) Path // FillPath draws a path that is filled according to the current FillStyle. FillPath(path Path) // StrokePath draws a path that is stroked (outlined) according to the current strokeStyle // and other context settings StrokePath(path Path) // FillAndStrokeRect draws a path that is filled according to the current FillStyle and // is stroked (outlined) according to the current strokeStyle and other context settings FillAndStrokePath(path Path) // DrawLine draws a line according to the current strokeStyle and other context settings DrawLine(x0, y0, x1, y1 float64) // FillText draws a text string at the specified coordinates, filling the string's characters // with the current FillStyle FillText(x, y float64, text string) // StrokeText strokes — that is, draws the outlines of — the characters of a text string // at the specified coordinates StrokeText(x, y float64, text string) // DrawImage draws the image at the (x, y) position DrawImage(x, y float64, image Image) // DrawImageInRect draws the image in the rectangle (x, y, width, height), scaling in height and width if necessary DrawImageInRect(x, y, width, height float64, image Image) // DrawImageFragment draws the fragment (described by srcX, srcY, srcWidth, srcHeight) of image // in the rectangle (dstX, dstY, dstWidth, dstHeight), scaling in height and width if necessary DrawImageFragment(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight float64, image Image) // contains filtered or unexported methods }
Canvas is a drawing interface used by the CanvasView
type CanvasView ¶
type CanvasView interface { View // Redraw forces CanvasView to redraw its content Redraw() }
CanvasView interface of a custom draw view
func CanvasViewByID ¶
func CanvasViewByID(rootView View, id string, ids ...string) CanvasView
CanvasViewByID return the CanvasView path to which is specified using the arguments id, ids. Example
view := CanvasViewByID(rootView, "id1", "id2", "id3") view := CanvasViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not CanvasView, the function will return nil
func NewCanvasView ¶
func NewCanvasView(session Session, params Params) CanvasView
NewCanvasView creates the new custom draw view
type CellIndex ¶ added in v0.5.0
type CellIndex struct {
Row, Column int
}
CellIndex defines coordinates of the TableView cell
func GetTableCurrent ¶ added in v0.5.0
GetTableCurrent returns the row and column index of the TableView selected cell/row. If there is no selected cell/row or the selection mode is NoneSelection (0), then a value of the row and column index less than 0 is returned. If the selection mode is RowSelection (2) then the returned column index is less than 0. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
type Checkbox ¶
type Checkbox interface { ViewsContainer }
Checkbox represent a Checkbox view
func CheckboxByID ¶
CheckboxByID return the Checkbox path to which is specified using the arguments id, ids. Example
view := CheckboxByID(rootView, "id1", "id2", "id3") view := CheckboxByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not Checkbox, the function will return nil
func NewCheckbox ¶
NewCheckbox create new Checkbox object and return it
type ClipShapeProperty ¶ added in v0.18.0
type ClipShapeProperty interface { Properties fmt.Stringer // Shape returns the clip shape type Shape() ClipShape // contains filtered or unexported methods }
ClipShapeProperty defines a View clipping area
func GetClip ¶
func GetClip(view View, subviewID ...string) ClipShapeProperty
GetClip returns a View clipping area. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetShapeOutside ¶
func GetShapeOutside(view View, subviewID ...string) ClipShapeProperty
GetShapeOutside returns a shape around which adjacent inline content. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func NewCircleClip ¶ added in v0.18.0
func NewCircleClip(x, y, radius SizeUnit) ClipShapeProperty
NewCircleClip creates a circle View clipping area.
- x - x-axis position of the circle clip center;
- y - y-axis position of the circle clip center;
- radius - radius of the circle clip center.
func NewClipShapeProperty ¶ added in v0.18.0
func NewClipShapeProperty(shape ClipShape, params Params) ClipShapeProperty
NewClipShapeProperty creates ClipShapeProperty.
The following properties can be used for shapes:
InsetClip:
- "top" (Top) - offset (SizeUnit) from the top border of a View;
- "right" (Right) - offset (SizeUnit) from the right border of a View;
- "bottom" (Bottom) - offset (SizeUnit) from the bottom border of a View;
- "left" (Left) - offset (SizeUnit) from the left border of a View;
- "radius" (Radius) - corner radius (RadiusProperty).
CircleClip:
- "x" (X) - x-axis position (SizeUnit) of the circle clip center;
- "y" (Y) - y-axis position (SizeUnit) of the circle clip center;
- "radius" (Radius) - radius (SizeUnit) of the circle clip center.
EllipseClip:
- "x" (X) - x-axis position (SizeUnit) of the ellipse clip center;
- "y" (Y) - y-axis position (SizeUnit) of the ellipse clip center;
- "radius-x" (RadiusX) - x-axis radius (SizeUnit) of the ellipse clip center;
- "radius-y" (RadiusY) - y-axis radius (SizeUnit) of the ellipse clip center.
PolygonClip:
- "points" (Points) - an array ([]SizeUnit) of corner points of the polygon in the following order: x1, y1, x2, y2, ….
The function will return nil if no properties are specified, unsupported properties are specified, or at least one property has an invalid value.
func NewEllipseClip ¶ added in v0.18.0
func NewEllipseClip(x, y, rx, ry SizeUnit) ClipShapeProperty
NewEllipseClip creates a ellipse View clipping area.
- x - x-axis position of the ellipse clip center;
- y - y-axis position of the ellipse clip center;
- rx - x-axis radius of the ellipse clip center;
- ry - y-axis radius of the ellipse clip center.
func NewInsetClip ¶ added in v0.18.0
func NewInsetClip(top, right, bottom, left SizeUnit, radius RadiusProperty) ClipShapeProperty
NewInsetClip creates a rectangle View clipping area.
- top - offset from the top border of a View;
- right - offset from the right border of a View;
- bottom - offset from the bottom border of a View;
- left - offset from the left border of a View;
- radius - corner radius, pass nil if you don't need to round corners
func NewPolygonClip ¶ added in v0.18.0
func NewPolygonClip(points []any) ClipShapeProperty
NewPolygonClip creates a polygon View clipping area.
- points - an array of corner points of the polygon in the following order: x1, y1, x2, y2, …
The elements of the function argument can be or text constants, or the text representation of SizeUnit, or elements of SizeUnit type.
func NewPolygonPointsClip ¶ added in v0.18.0
func NewPolygonPointsClip(points []SizeUnit) ClipShapeProperty
NewPolygonPointsClip creates a polygon View clipping area.
- points - an array of corner points of the polygon in the following order: x1, y1, x2, y2, …
type Color ¶
type Color uint32
Color - represent color in argb format
const ( // Black color constant Black Color = 0xff000000 // Silver color constant Silver Color = 0xffc0c0c0 // Gray color constant Gray Color = 0xff808080 // White color constant White Color = 0xffffffff // Maroon color constant Maroon Color = 0xff800000 // Red color constant Red Color = 0xffff0000 // Purple color constant Purple Color = 0xff800080 // Fuchsia color constant Fuchsia Color = 0xffff00ff // Green color constant Green Color = 0xff008000 // Lime color constant Lime Color = 0xff00ff00 // Olive color constant Olive Color = 0xff808000 // Yellow color constant Yellow Color = 0xffffff00 Navy Color = 0xff000080 // Blue color constant Blue Color = 0xff0000ff // Teal color constant Teal Color = 0xff008080 // Aqua color constant Aqua Color = 0xff00ffff // Orange color constant Orange Color = 0xffffa500 // AliceBlue color constant AliceBlue Color = 0xfff0f8ff // AntiqueWhite color constant AntiqueWhite Color = 0xfffaebd7 // Aquamarine color constant Aquamarine Color = 0xff7fffd4 // Azure color constant Azure Color = 0xfff0ffff // Beige color constant Beige Color = 0xfff5f5dc // Bisque color constant Bisque Color = 0xffffe4c4 // BlanchedAlmond color constant BlanchedAlmond Color = 0xffffebcd // BlueViolet color constant BlueViolet Color = 0xff8a2be2 // Brown color constant Brown Color = 0xffa52a2a // BurlyWood color constant BurlyWood Color = 0xffdeb887 // CadetBlue color constant CadetBlue Color = 0xff5f9ea0 // Chartreuse color constant Chartreuse Color = 0xff7fff00 // Chocolate color constant Chocolate Color = 0xffd2691e // Coral color constant Coral Color = 0xffff7f50 // CornflowerBlue color constant CornflowerBlue Color = 0xff6495ed // CornSilk color constant CornSilk Color = 0xfffff8dc // Crimson color constant Crimson Color = 0xffdc143c // Cyan color constant Cyan Color = 0xff00ffff // DarkBlue color constant DarkBlue Color = 0xff00008b // DarkCyan color constant DarkCyan Color = 0xff008b8b // DarkGoldenRod color constant DarkGoldenRod Color = 0xffb8860b // DarkGray color constant DarkGray Color = 0xffa9a9a9 // DarkGreen color constant DarkGreen Color = 0xff006400 // DarkGrey color constant DarkGrey Color = 0xffa9a9a9 // DarkKhaki color constant DarkKhaki Color = 0xffbdb76b // DarkMagenta color constant DarkMagenta Color = 0xff8b008b // DarkOliveGreen color constant DarkOliveGreen Color = 0xff556b2f // DarkOrange color constant DarkOrange Color = 0xffff8c00 // DarkOrchid color constant DarkOrchid Color = 0xff9932cc // DarkRed color constant DarkRed Color = 0xff8b0000 // DarkSalmon color constant DarkSalmon Color = 0xffe9967a // DarkSeaGreen color constant DarkSeaGreen Color = 0xff8fbc8f // DarkSlateBlue color constant DarkSlateBlue Color = 0xff483d8b // DarkSlateGray color constant DarkSlateGray Color = 0xff2f4f4f // DarkSlateGrey color constant DarkSlateGrey Color = 0xff2f4f4f // DarkTurquoise color constant DarkTurquoise Color = 0xff00ced1 // DarkViolet color constant DarkViolet Color = 0xff9400d3 // DeepPink color constant DeepPink Color = 0xffff1493 // DeepSkyBlue color constant DeepSkyBlue Color = 0xff00bfff // DimGray color constant DimGray Color = 0xff696969 // DimGrey color constant DimGrey Color = 0xff696969 // DodgerBlue color constant DodgerBlue Color = 0xff1e90ff // FireBrick color constant FireBrick Color = 0xffb22222 // FloralWhite color constant FloralWhite Color = 0xfffffaf0 // ForestGreen color constant ForestGreen Color = 0xff228b22 // Gainsboro color constant Gainsboro Color = 0xffdcdcdc // GhostWhite color constant GhostWhite Color = 0xfff8f8ff // Gold color constant Gold Color = 0xffffd700 // GoldenRod color constant GoldenRod Color = 0xffdaa520 // GreenYellow color constant GreenYellow Color = 0xffadff2f // Grey color constant Grey Color = 0xff808080 // Honeydew color constant Honeydew Color = 0xfff0fff0 // HotPink color constant HotPink Color = 0xffff69b4 // IndianRed color constant IndianRed Color = 0xffcd5c5c // Indigo color constant Indigo Color = 0xff4b0082 // Ivory color constant Ivory Color = 0xfffffff0 // Khaki color constant Khaki Color = 0xfff0e68c // Lavender color constant Lavender Color = 0xffe6e6fa // LavenderBlush color constant LavenderBlush Color = 0xfffff0f5 // LawnGreen color constant LawnGreen Color = 0xff7cfc00 // LemonChiffon color constant LemonChiffon Color = 0xfffffacd // LightBlue color constant LightBlue Color = 0xffadd8e6 // LightCoral color constant LightCoral Color = 0xfff08080 // LightCyan color constant LightCyan Color = 0xffe0ffff // LightGoldenrodYellow color constant LightGoldenRodYellow Color = 0xfffafad2 // LightGray color constant LightGray Color = 0xffd3d3d3 // LightGreen color constant LightGreen Color = 0xff90ee90 // LightGrey color constant LightGrey Color = 0xffd3d3d3 // LightPink color constant LightPink Color = 0xffffb6c1 // LightSalmon color constant LightSalmon Color = 0xffffa07a // LightSeaGreen color constant LightSeaGreen Color = 0xff20b2aa // LightSkyBlue color constant LightSkyBlue Color = 0xff87cefa // LightSlateGray color constant LightSlateGray Color = 0xff778899 // LightSlateGrey color constant LightSlateGrey Color = 0xff778899 // LightSteelBlue color constant LightSteelBlue Color = 0xffb0c4de // LightYellow color constant LightYellow Color = 0xffffffe0 // LimeGreen color constant LimeGreen Color = 0xff32cd32 // Linen color constant Linen Color = 0xfffaf0e6 // Magenta color constant Magenta Color = 0xffff00ff // MediumAquamarine color constant MediumAquamarine Color = 0xff66cdaa // MediumBlue color constant MediumBlue Color = 0xff0000cd // MediumOrchid color constant MediumOrchid Color = 0xffba55d3 // MediumPurple color constant MediumPurple Color = 0xff9370db // MediumSeaGreen color constant MediumSeaGreen Color = 0xff3cb371 // MediumSlateBlue color constant MediumSlateBlue Color = 0xff7b68ee // MediumSpringGreen color constant MediumSpringGreen Color = 0xff00fa9a // MediumTurquoise color constant MediumTurquoise Color = 0xff48d1cc // MediumVioletRed color constant MediumVioletRed Color = 0xffc71585 // MidnightBlue color constant MidnightBlue Color = 0xff191970 // MintCream color constant MintCream Color = 0xfff5fffa // MistyRose color constant MistyRose Color = 0xffffe4e1 // Moccasin color constant Moccasin Color = 0xffffe4b5 NavajoWhite Color = 0xffffdead // OldLace color constant OldLace Color = 0xfffdf5e6 // OliveDrab color constant OliveDrab Color = 0xff6b8e23 // OrangeRed color constant OrangeRed Color = 0xffff4500 // Orchid color constant Orchid Color = 0xffda70d6 // PaleGoldenrod color constant PaleGoldenrod Color = 0xffeee8aa // PaleGreen color constant PaleGreen Color = 0xff98fb98 // PaleTurquoise color constant PaleTurquoise Color = 0xffafeeee // PaleVioletRed color constant PaleVioletRed Color = 0xffdb7093 // PapayaWhip color constant PapayaWhip Color = 0xffffefd5 // PeachPuff color constant PeachPuff Color = 0xffffdab9 // Peru color constant Peru Color = 0xffcd853f // Pink color constant Pink Color = 0xffffc0cb // Plum color constant Plum Color = 0xffdda0dd // PowderBlue color constant PowderBlue Color = 0xffb0e0e6 // RosyBrown color constant RosyBrown Color = 0xffbc8f8f // RoyalBlue color constant RoyalBlue Color = 0xff4169e1 // SaddleBrown color constant SaddleBrown Color = 0xff8b4513 // Salmon color constant Salmon Color = 0xfffa8072 // SandyBrown color constant SandyBrown Color = 0xfff4a460 // SeaGreen color constant SeaGreen Color = 0xff2e8b57 // SeaShell color constant SeaShell Color = 0xfffff5ee // Sienna color constant Sienna Color = 0xffa0522d // SkyBlue color constant SkyBlue Color = 0xff87ceeb // SlateBlue color constant SlateBlue Color = 0xff6a5acd // SlateGray color constant SlateGray Color = 0xff708090 // SlateGrey color constant SlateGrey Color = 0xff708090 // Snow color constant Snow Color = 0xfffffafa // SpringGreen color constant SpringGreen Color = 0xff00ff7f // SteelBlue color constant SteelBlue Color = 0xff4682b4 // Tan color constant Tan Color = 0xffd2b48c // Thistle color constant Thistle Color = 0xffd8bfd8 // Tomato color constant Tomato Color = 0xffff6347 // Turquoise color constant Turquoise Color = 0xff40e0d0 // Violet color constant Violet Color = 0xffee82ee // Wheat color constant Wheat Color = 0xfff5deb3 // WhiteSmoke color constant WhiteSmoke Color = 0xfff5f5f5 // YellowGreen color constant YellowGreen Color = 0xff9acd32 )
A set of predefined colors used in the library
func GetAccentColor ¶ added in v0.9.0
GetAccentColor returns the accent color for UI controls generated by some elements. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetBackgroundColor ¶
GetBackgroundColor returns a background color of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCaretColor ¶ added in v0.7.0
GetCaretColor returns the color of the text input caret. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetColorPickerValue ¶
GetColorPickerValue returns the value of ColorPicker subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetColumnSeparatorColor ¶
ColumnSeparatorColor returns Color value which specifies the color of the line drawn between columns in a multi-column layout. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetTextColor ¶
GetTextColor returns a text color of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextLineColor ¶
GetTextLineColor returns the stroke color of the decoration line that is used on text in an element, such as a line-through, underline, or overline. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func StringToColor ¶
StringToColor converts the string argument to Color value
type ColorPicker ¶
type ColorPicker interface { View }
ColorPicker represent a ColorPicker view
func ColorPickerByID ¶ added in v0.3.0
func ColorPickerByID(rootView View, id string, ids ...string) ColorPicker
ColorPickerByID return the ColorPicker path to which is specified using the arguments id, ids. Example
view := ColorPickerByID(rootView, "id1", "id2", "id3") view := ColorPickerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ColorPicker, the function will return nil
func NewColorPicker ¶
func NewColorPicker(session Session, params Params) ColorPicker
NewColorPicker create new ColorPicker object and return it
type ColumnLayout ¶
type ColumnLayout interface { ViewsContainer }
ColumnLayout represent a ColumnLayout view
func ColumnLayoutByID ¶
func ColumnLayoutByID(rootView View, id string, ids ...string) ColumnLayout
ColumnLayoutByID return the ColumnLayout path to which is specified using the arguments id, ids. Example
view := ColumnLayoutByID(rootView, "id1", "id2", "id3") view := ColumnLayoutByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ColumnLayout, the function will return nil
func NewColumnLayout ¶
func NewColumnLayout(session Session, params Params) ColumnLayout
NewColumnLayout create new ColumnLayout object and return it
type ColumnSeparatorProperty ¶
type ColumnSeparatorProperty interface { Properties fmt.Stringer // ViewBorder returns column separator description in a form of ViewBorder ViewBorder(session Session) ViewBorder // contains filtered or unexported methods }
ColumnSeparatorProperty is the interface of a view separator data
func NewColumnSeparator ¶
func NewColumnSeparator(style int, color Color, width SizeUnit) ColumnSeparatorProperty
NewColumnSeparator creates the new ColumnSeparatorProperty.
Arguments:
- style - determines the line style. Valid values: 0 NoneLine, 1 SolidLine, 2 DashedLine, 3 DottedLine, or 4 DoubleLine;
- color - determines the line color;
- width - determines the line thickness.
func NewColumnSeparatorProperty ¶ added in v0.18.0
func NewColumnSeparatorProperty(params Params) ColumnSeparatorProperty
NewColumnSeparatorProperty creates the new ColumnSeparatorProperty.
The following properties can be used:
type ControlKeyMask ¶ added in v0.13.0
type ControlKeyMask int
ControlKeyMask represent ORed state of keyboard's control keys like AltKey, CtrlKey, ShiftKey and MetaKey
type CustomView ¶
type CustomView interface { ViewsContainer // CreateSuperView must be implemented to create a base view from which custom control has been built CreateSuperView(session Session) View // SuperView must be implemented to return a base view from which custom control has been built SuperView() View // contains filtered or unexported methods }
CustomView defines a custom view interface
type CustomViewData ¶
type CustomViewData struct {
// contains filtered or unexported fields
}
CustomViewData defines a data of a basic custom view
func (*CustomViewData) AllTags ¶
func (customView *CustomViewData) AllTags() []PropertyName
AllTags returns an array of the set properties
func (*CustomViewData) Append ¶
func (customView *CustomViewData) Append(view View)
Append appends a view to the end of the list of a view children
func (*CustomViewData) Clear ¶
func (customView *CustomViewData) Clear()
Clear removes all properties
func (*CustomViewData) Focusable ¶
func (customView *CustomViewData) Focusable() bool
Focusable returns true if the view receives the focus
func (*CustomViewData) Frame ¶
func (customView *CustomViewData) Frame() Frame
Frame returns a location and size of the view in pixels
func (*CustomViewData) Get ¶
func (customView *CustomViewData) Get(tag PropertyName) any
Get returns a value of the property with name defined by the argument. The type of return value depends on the property. If the property is not set then nil is returned.
func (*CustomViewData) HasFocus ¶ added in v0.5.0
func (customView *CustomViewData) HasFocus() bool
HasFocus returns "true" if the view has focus
func (*CustomViewData) ID ¶
func (customView *CustomViewData) ID() string
ID returns a id of the view
func (*CustomViewData) Insert ¶
func (customView *CustomViewData) Insert(view View, index int)
Insert inserts a view to the "index" position in the list of a view children
func (*CustomViewData) Parent ¶
func (customView *CustomViewData) Parent() View
Parent returns a parent view
func (*CustomViewData) Remove ¶
func (customView *CustomViewData) Remove(tag PropertyName)
Remove removes the property with name defined by the argument
func (*CustomViewData) RemoveView ¶
func (customView *CustomViewData) RemoveView(index int) View
Remove removes a view from the list of a view children and return it
func (*CustomViewData) Scroll ¶
func (customView *CustomViewData) Scroll() Frame
Scroll returns a location and size of a scrollable view in pixels
func (*CustomViewData) Session ¶
func (customView *CustomViewData) Session() Session
Session returns a current Session interface
func (*CustomViewData) Set ¶
func (customView *CustomViewData) Set(tag PropertyName, value any) bool
Set sets the value (second argument) of the property with name defined by the first argument. Return "true" if the value has been set, in the opposite case "false" are returned and a description of the error is written to the log
func (*CustomViewData) SetAnimated ¶
func (customView *CustomViewData) SetAnimated(tag PropertyName, value any, animation AnimationProperty) bool
SetAnimated sets the value (second argument) of the property with name defined by the first argument. Return "true" if the value has been set, in the opposite case "false" are returned and a description of the error is written to the log
func (*CustomViewData) SetChangeListener ¶ added in v0.4.0
func (customView *CustomViewData) SetChangeListener(tag PropertyName, listener func(View, PropertyName))
SetChangeListener set the function to track the change of the View property
func (*CustomViewData) SetParams ¶ added in v0.17.3
func (customView *CustomViewData) SetParams(params Params) bool
func (*CustomViewData) SetTransition ¶ added in v0.9.0
func (customView *CustomViewData) SetTransition(tag PropertyName, animation AnimationProperty)
SetTransition sets the transition animation for the property if "animation" argument is not nil, and removes the transition animation of the property if "animation" argument is nil. The "tag" argument is the property name.
func (*CustomViewData) String ¶
func (customView *CustomViewData) String() string
String convert internal representation of a CustomViewData into a string.
func (*CustomViewData) SuperView ¶
func (customView *CustomViewData) SuperView() View
SuperView returns a super view
func (*CustomViewData) Tag ¶
func (customView *CustomViewData) Tag() string
Tag returns a tag of View interface
func (*CustomViewData) Transition ¶ added in v0.9.0
func (customView *CustomViewData) Transition(tag PropertyName) AnimationProperty
Transition returns the transition animation of the property(tag). Returns nil is there is no transition animation.
func (*CustomViewData) Transitions ¶ added in v0.9.0
func (customView *CustomViewData) Transitions() map[PropertyName]AnimationProperty
Transitions returns a map of transition animations. The result is always non-nil.
func (*CustomViewData) ViewIndex ¶ added in v0.13.0
func (customView *CustomViewData) ViewIndex(view View) int
Remove removes a view from the list of a view children and return it
func (*CustomViewData) Views ¶
func (customView *CustomViewData) Views() []View
Views return a list of child views
type DataNode ¶
type DataNode interface { // Tag returns a tag name Tag() string // Type returns a node type. Possible values are TextNode, ObjectNode and ArrayNode Type() int // Text returns node text Text() string // Object returns node as object if that node type is an object Object() DataObject // ArraySize returns array size if that node type is an array ArraySize() int // ArrayElement returns a value of an array if that node type is an array ArrayElement(index int) DataValue // ArrayElements returns an array of objects if that node is an array ArrayElements() []DataValue // ArrayAsParams returns an array of a params(map) if that node is an array ArrayAsParams() []Params }
DataNode interface of a data node
type DataObject ¶
type DataObject interface { DataValue // Tag returns data object tag Tag() string // PropertyCount returns properties count PropertyCount() int // Property returns a data node corresponding to a property with specific index Property(index int) DataNode // PropertyByTag returns a data node corresponding to a property tag PropertyByTag(tag string) DataNode // PropertyValue returns a string value of a property with a specific tag PropertyValue(tag string) (string, bool) // PropertyObject returns an object value of a property with a specific tag PropertyObject(tag string) DataObject // SetPropertyValue sets a string value of a property with a specific tag SetPropertyValue(tag, value string) // SetPropertyObject sets an object value of a property with a specific tag SetPropertyObject(tag string, object DataObject) // ToParams create a params(map) representation of a data object ToParams() Params }
DataObject interface of a data object
func NewDataObject ¶
func NewDataObject(tag string) DataObject
NewDataObject create new DataObject with the tag and empty property list
func ParseDataText ¶
func ParseDataText(text string) DataObject
ParseDataText - parse text and return DataNode
type DataValue ¶
type DataValue interface { // IsObject returns "true" if data value is an object IsObject() bool // Object returns data value as a data object Object() DataObject // Value returns value as a string Value() string }
DataValue interface of a data node value
type DatePicker ¶
type DatePicker interface { View }
DatePicker represent a DatePicker view
func DatePickerByID ¶ added in v0.3.0
func DatePickerByID(rootView View, id string, ids ...string) DatePicker
DatePickerByID return the DatePicker path to which is specified using the arguments id, ids. Example
view := DatePickerByID(rootView, "id1", "id2", "id3") view := DatePickerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not DatePicker, the function will return nil
func NewDatePicker ¶
func NewDatePicker(session Session, params Params) DatePicker
NewDatePicker create new DatePicker object and return it
type DetailsView ¶
type DetailsView interface { ViewsContainer }
DetailsView represent a DetailsView view, which is a collapsible container of views
func DetailsViewByID ¶
func DetailsViewByID(rootView View, id string, ids ...string) DetailsView
DetailsViewByID return the ColumnLayout path to which is specified using the arguments id, ids. Example
view := DetailsViewByID(rootView, "id1", "id2", "id3") view := DetailsViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not DetailsView, the function will return nil
func NewDetailsView ¶
func NewDetailsView(session Session, params Params) DetailsView
NewDetailsView create new DetailsView object and return it
type DropDownList ¶
type DropDownList interface { View }
DropDownList represent a DropDownList view
func DropDownListByID ¶
func DropDownListByID(rootView View, id string, ids ...string) DropDownList
DropDownListByID return the DropDownListView path to which is specified using the arguments id, ids. Example
view := DropDownListByID(rootView, "id1", "id2", "id3") view := DropDownListByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not DropDownList, the function will return nil
func NewDropDownList ¶
func NewDropDownList(session Session, params Params) DropDownList
NewDropDownList create new DropDownList object and return it
type EditView ¶
type EditView interface { View // AppendText appends text to the current text of an EditView view AppendText(text string) // contains filtered or unexported methods }
EditView represent an EditView view
func EditViewByID ¶
EditViewByID return the EditView path to which is specified using the arguments id, ids. Example
view := EditViewByID(rootView, "id1", "id2", "id3") view := EditViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not EditView, the function will return nil
func NewEditView ¶
NewEditView create new EditView object and return it
type FileInfo ¶ added in v0.3.0
type FileInfo struct { // Name - the file's name. Name string // LastModified specifying the date and time at which the file was last modified LastModified time.Time // Size - the size of the file in bytes. Size int64 // MimeType - the file's MIME type. MimeType string }
FileInfo describes a file which selected in the FilePicker view
func GetFilePickerFiles ¶ added in v0.3.0
GetFilePickerFiles returns the list of FilePicker selected files If there are no files selected then an empty slice is returned (the result is always not nil) If the second argument (subviewID) is not specified or it is "" then selected files of the first argument (view) is returned
type FilePicker ¶ added in v0.3.0
type FilePicker interface { View // Files returns the list of selected files. // If there are no files selected then an empty slice is returned (the result is always not nil) Files() []FileInfo // LoadFile loads the content of the selected file. This function is asynchronous. // The "result" function will be called after loading the data. LoadFile(file FileInfo, result func(FileInfo, []byte)) }
FilePicker represents the FilePicker view
func FilePickerByID ¶ added in v0.3.0
func FilePickerByID(rootView View, id string, ids ...string) FilePicker
FilePickerByID return the FilePicker path to which is specified using the arguments id, ids. Example
view := FilePickerByID(rootView, "id1", "id2", "id3") view := FilePickerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not FilePicker, the function will return nil
func NewFilePicker ¶ added in v0.3.0
func NewFilePicker(session Session, params Params) FilePicker
NewFilePicker create new FilePicker object and return it
type FilterProperty ¶ added in v0.18.0
type FilterProperty interface { Properties fmt.Stringer // contains filtered or unexported methods }
FilterProperty defines an applied to a View a graphical effects like blur or color shift. Allowable properties are Blur, Brightness, Contrast, DropShadow, Grayscale, HueRotate, Invert, Opacity, Saturate, and Sepia
func GetBackdropFilter ¶ added in v0.7.0
func GetBackdropFilter(view View, subviewID ...string) FilterProperty
GetBackdropFilter returns the area behind a View graphical effects like blur or color shift. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetFilter ¶
func GetFilter(view View, subviewID ...string) FilterProperty
GetFilter returns a View graphical effects like blur or color shift. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func NewFilterProperty ¶ added in v0.18.0
func NewFilterProperty(params Params) FilterProperty
NewFilterProperty creates the new FilterProperty
type FontParams ¶
type FontParams struct { // Italic - if true then a font is italic Italic bool // SmallCaps - if true then a font uses small-caps glyphs SmallCaps bool // Weight - a font weight. Valid values: 0...9, there // 0 - a weight does not specify; // 1 - a minimal weight; // 4 - a normal weight; // 7 - a bold weight; // 9 - a maximal weight. Weight int // LineHeight - the height (relative to the font size of the element itself) of a line box. LineHeight SizeUnit }
FontParams defined optionally font properties
type Frame ¶
type Frame struct { // Left - the left border Left float64 // Top - the top border Top float64 // Width - the width of a rectangle area Width float64 // Height - the height of a rectangle area Height float64 }
Frame - the location and size of a rectangle area
func GetListItemFrame ¶
GetListItemFrame - returns the location and size of the ListView item in pixels. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetViewFrame ¶
GetViewFrame returns the size and location of view's viewport. If the second argument (subviewID) is not specified or it is "" then the value of the first argument (view) is returned
func GetViewScroll ¶
GetViewScroll returns ... If the second argument (subviewID) is not specified or it is "" then a value of the first argument (view) is returned
type GradientPoint ¶
type GradientPoint struct { // Offset - a number between 0 and 1, inclusive, representing the position of the color stop Offset float64 // Color - the color of the stop Color Color }
GradientPoint defined by an offset and a color, to a linear or radial gradient
type GridAdapter ¶ added in v0.16.0
type GridAdapter interface { // GridColumnCount returns the number of columns in the grid GridColumnCount() int // GridRowCount returns the number of rows in the grid GridRowCount() int // GridCellContent creates a View at the given cell GridCellContent(row, column int, session Session) View }
GridAdapter is an interface to define GridLayout content. GridLayout will query interface functions to populate its content
type GridCellColumnSpanAdapter ¶ added in v0.16.0
type GridCellColumnSpanAdapter interface { // GridCellColumnSpan returns the number of columns that a cell spans. // Values less than 1 are ignored. GridCellColumnSpan(row, column int) int }
GridCellColumnSpanAdapter implements the optional method of the GridAdapter interface
type GridCellRowSpanAdapter ¶ added in v0.16.0
type GridCellRowSpanAdapter interface { // GridCellRowSpan returns the number of rows that a cell spans // Values less than 1 are ignored. GridCellRowSpan(row, column int) int }
GridCellColumnSpanAdapter implements the optional method of the GridAdapter interface
type GridLayout ¶
type GridLayout interface { ViewsContainer // UpdateContent updates child Views if the "content" property value is set to GridAdapter, // otherwise does nothing UpdateGridContent() }
GridLayout represents a GridLayout view
func GridLayoutByID ¶
func GridLayoutByID(rootView View, id string, ids ...string) GridLayout
GridLayoutByID return the GridLayout path to which is specified using the arguments id, ids. Example
view := GridLayoutByID(rootView, "id1", "id2", "id3") view := GridLayoutByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not GridLayout, the function will return nil
func NewGridLayout ¶
func NewGridLayout(session Session, params Params) GridLayout
NewGridLayout create new GridLayout object and return it
type HorizontalTableJoin ¶
type HorizontalTableJoin struct { }
HorizontalTableJoin is an auxiliary structure. It used as cell content and specifies that the cell should be merged with the one before it
type Image ¶
type Image interface { // URL returns the url of the image URL() string // LoadingStatus returns the status of the image loading: ImageLoading (0), ImageReady (1), ImageLoadingError (2) LoadingStatus() int // LoadingError: if LoadingStatus() == ImageLoadingError then returns the error text, "" otherwise LoadingError() string // Width returns the width of the image in pixels. While LoadingStatus() != ImageReady returns 0 Width() float64 // Height returns the height of the image in pixels. While LoadingStatus() != ImageReady returns 0 Height() float64 // contains filtered or unexported methods }
Image defines the image that is used for drawing operations on the Canvas.
type ImageView ¶
type ImageView interface { View // NaturalSize returns the intrinsic, density-corrected size (width, height) of the image in pixels. // If the image hasn't been loaded yet or an load error has occurred, then (0, 0) is returned. NaturalSize() (float64, float64) // CurrentSource() return the full URL of the image currently visible in the ImageView. // If the image hasn't been loaded yet or an load error has occurred, then "" is returned. CurrentSource() string }
ImageView represents an ImageView view
func ImageViewByID ¶ added in v0.3.0
ImageViewByID return the ImageView path to which is specified using the arguments id, ids. Example
view := ImageViewByID(rootView, "id1", "id2", "id3") view := ImageViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ImageView, the function will return nil
func NewImageView ¶
NewImageView create new ImageView object and return it
type KeyCode ¶ added in v0.13.0
type KeyCode string
KeyCode is a string representation the a physical key being pressed. The value is not affected by the current keyboard layout or modifier state, so a particular key will always have the same value.
type KeyEvent ¶
type KeyEvent struct { // TimeStamp is the time at which the event was created (in milliseconds). // This value is time since epoch—but in reality, browsers' definitions vary. TimeStamp uint64 // Key is the key value of the key represented by the event. If the value has a printed representation, // this attribute's value is the same as the char property. Otherwise, it's one of the key value strings // specified in Key values. If the key can't be identified, its value is the string "Unidentified". Key string // Code holds a string that identifies the physical key being pressed. The value is not affected // by the current keyboard layout or modifier state, so a particular key will always return the same value. Code KeyCode // Repeat == true if a key has been depressed long enough to trigger key repetition, otherwise false. Repeat bool // CtrlKey == true if the control key was down when the event was fired. false otherwise. CtrlKey bool // ShiftKey == true if the shift key was down when the event was fired. false otherwise. ShiftKey bool // AltKey == true if the alt key was down when the event was fired. false otherwise. AltKey bool // MetaKey == true if the meta key was down when the event was fired. false otherwise. MetaKey bool }
KeyEvent represent a keyboard event
type LineCap ¶ added in v0.18.0
type LineCap int
LineCap is the type for setting the shape used to draw the end points of lines.
type LineJoin ¶ added in v0.18.0
type LineJoin int
LineJoin is the type for setting the shape used to join two line segments where they meet.
type LinearGradientDirectionType ¶ added in v0.18.0
type LinearGradientDirectionType int
const ( // ToTopGradient is value of the Direction property of a linear gradient. The value is equivalent to the 0deg angle ToTopGradient LinearGradientDirectionType = 0 // ToRightTopGradient is value of the Direction property of a linear gradient. ToRightTopGradient LinearGradientDirectionType = 1 // ToRightGradient is value of the Direction property of a linear gradient. The value is equivalent to the 90deg angle ToRightGradient LinearGradientDirectionType = 2 // ToRightBottomGradient is value of the Direction property of a linear gradient. ToRightBottomGradient LinearGradientDirectionType = 3 // ToBottomGradient is value of the Direction property of a linear gradient. The value is equivalent to the 180deg angle ToBottomGradient LinearGradientDirectionType = 4 // ToLeftBottomGradient is value of the Direction property of a linear gradient. ToLeftBottomGradient LinearGradientDirectionType = 5 // ToLeftGradient is value of the Direction property of a linear gradient. The value is equivalent to the 270deg angle ToLeftGradient LinearGradientDirectionType = 6 // ToLeftTopGradient is value of the Direction property of a linear gradient. ToLeftTopGradient LinearGradientDirectionType = 7 )
Constants related to view's background gradient description
type ListAdapter ¶
type ListAdapter interface { // ListSize returns the number of elements in the list ListSize() int // ListItem creates a View of a list item at the given index ListItem(index int, session Session) View }
ListAdapter - the list data source
func GetListViewAdapter ¶
func GetListViewAdapter(view View, subviewID ...string) ListAdapter
GetListViewAdapter - returns the ListView adapter. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func NewTextListAdapter ¶
func NewTextListAdapter(items []string, params Params) ListAdapter
NewTextListAdapter create the new ListAdapter for a string list displaying. The second argument is parameters of a TextView item
func NewViewListAdapter ¶
func NewViewListAdapter(items []View) ListAdapter
NewTextListAdapter create the new ListAdapter for a view list displaying
type ListItemEnabled ¶ added in v0.16.0
type ListItemEnabled interface { // IsListItemEnabled returns the status (enabled/disabled) of a list item at the given index IsListItemEnabled(index int) bool }
ListItemEnabled implements the optional method of ListAdapter interface
type ListLayout ¶
type ListLayout interface { ViewsContainer // UpdateContent updates child Views if the "content" property value is set to ListAdapter, // otherwise does nothing UpdateContent() }
ListLayout represents a ListLayout view
func ListLayoutByID ¶
func ListLayoutByID(rootView View, id string, ids ...string) ListLayout
ListLayoutByID return the ListLayout path to which is specified using the arguments id, ids. Example
view := ListLayoutByID(rootView, "id1", "id2", "id3") view := ListLayoutByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ListLayout, the function will return nil
func NewListLayout ¶
func NewListLayout(session Session, params Params) ListLayout
NewListLayout create new ListLayout object and return it
type ListView ¶
type ListView interface { View ParentView // ReloadListViewData updates ListView content ReloadListViewData() // contains filtered or unexported methods }
ListView represents a ListView view
func ListViewByID ¶
ListViewByID return the ListView path to which is specified using the arguments id, ids. Example
view := ListViewByID(rootView, "id1", "id2", "id3") view := ListViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ListView, the function will return nil
func NewListView ¶
NewListView creates the new list view
type MediaPlayer ¶
type MediaPlayer interface { View // Play attempts to begin playback of the media. Play() // Pause will pause playback of the media, if the media is already in a paused state this method will have no effect. Pause() // SetCurrentTime sets the current playback time in seconds. SetCurrentTime(seconds float64) // CurrentTime returns the current playback time in seconds. CurrentTime() float64 // Duration returns the value indicating the total duration of the media in seconds. // If no media data is available, the returned value is NaN. Duration() float64 // SetPlaybackRate sets the rate at which the media is being played back. This is used to implement user controls // for fast forward, slow motion, and so forth. The normal playback rate is multiplied by this value to obtain // the current rate, so a value of 1.0 indicates normal speed. SetPlaybackRate(rate float64) // PlaybackRate returns the rate at which the media is being played back. PlaybackRate() float64 // SetVolume sets the audio volume, from 0.0 (silent) to 1.0 (loudest). SetVolume(volume float64) // Volume returns the audio volume, from 0.0 (silent) to 1.0 (loudest). Volume() float64 // IsEnded function tells whether the media element is ended. IsEnded() bool // IsPaused function tells whether the media element is paused. IsPaused() bool }
MediaPlayer is a common interface for media player views like AudioPlayer and VideoPlayer.
type MediaSource ¶
type MediaSource struct { // Url of the source Url string // MimeType of the source MimeType string }
MediaSource represent one media file source
type MediaStyleParams ¶ added in v0.13.0
type MediaStyleParams struct { // Orientation for which particular style will be applied Orientation int // MinWidth for which particular style will be applied MinWidth int // MaxWidth for which particular style will be applied MaxWidth int // MinHeight for which particular style will be applied MinHeight int // MaxHeight for which particular style will be applied MaxHeight int }
MediaStyleParams define rules when particular style will be applied
type MouseEvent ¶
type MouseEvent struct { // TimeStamp is the time at which the event was created (in milliseconds). // This value is time since epoch—but in reality, browsers' definitions vary. TimeStamp uint64 // Button indicates which button was pressed on the mouse to trigger the event: // PrimaryMouseButton (0), AuxiliaryMouseButton (1), SecondaryMouseButton (2), // MouseButton4 (3), and MouseButton5 (4) Button int // Buttons indicates which buttons are pressed on the mouse (or other input device) // when a mouse event is triggered. Each button that can be pressed is represented by a given mask: // PrimaryMouseMask (1), SecondaryMouseMask (2), AuxiliaryMouseMask (4), MouseMask4 (8), and MouseMask5 (16) Buttons int // X provides the horizontal coordinate within the view's viewport. X float64 // Y provides the vertical coordinate within the view's viewport. Y float64 // ClientX provides the horizontal coordinate within the application's viewport at which the event occurred. ClientX float64 // ClientY provides the vertical coordinate within the application's viewport at which the event occurred. ClientY float64 // ScreenX provides the horizontal coordinate (offset) of the mouse pointer in global (screen) coordinates. ScreenX float64 // ScreenY provides the vertical coordinate (offset) of the mouse pointer in global (screen) coordinates. ScreenY float64 // CtrlKey == true if the control key was down when the event was fired. false otherwise. CtrlKey bool // ShiftKey == true if the shift key was down when the event was fired. false otherwise. ShiftKey bool // AltKey == true if the alt key was down when the event was fired. false otherwise. AltKey bool // MetaKey == true if the meta key was down when the event was fired. false otherwise. MetaKey bool }
MouseEvent represent a mouse event
type NamedColor ¶ added in v0.6.0
NamedColor make a relation between color and its name
func NamedColors ¶ added in v0.6.0
func NamedColors() []NamedColor
NamedColors returns the list of named colors
type NumberPicker ¶
type NumberPicker interface { View }
NumberPicker represents a NumberPicker view
func NewNumberPicker ¶
func NewNumberPicker(session Session, params Params) NumberPicker
NewNumberPicker create new NumberPicker object and return it
func NumberPickerByID ¶
func NumberPickerByID(rootView View, id string, ids ...string) NumberPicker
NumberPickerByID return the NumberPicker path to which is specified using the arguments id, ids. Example
view := NumberPickerByID(rootView, "id1", "id2", "id3") view := NumberPickerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not NumberPicker, the function will return nil
type OutlineProperty ¶
type OutlineProperty interface { Properties fmt.Stringer // ViewOutline returns style color and line width of an outline ViewOutline(session Session) ViewOutline // contains filtered or unexported methods }
OutlineProperty defines a view's outside border
func NewOutlineProperty ¶
func NewOutlineProperty(params Params) OutlineProperty
NewOutlineProperty creates the new OutlineProperty.
The following properties can be used:
- "color" (ColorTag) - Determines the line color (Color);
- "width" (Width) - Determines the line thickness (SizeUnit).
type Params ¶
type Params map[PropertyName]any
Params defines a type of a parameters list
func (Params) AllTags ¶
func (params Params) AllTags() []PropertyName
AllTags returns a sorted slice of all properties.
func (Params) Clear ¶ added in v0.4.0
func (params Params) Clear()
Clear removes all properties from a map.
func (Params) Get ¶ added in v0.4.0
func (params Params) Get(tag PropertyName) any
Get returns a value of the property with name defined by the argument. The type of return value depends on the property. If the property is not set then nil is returned.
func (Params) Remove ¶ added in v0.4.0
func (params Params) Remove(tag PropertyName)
Remove removes the property with name defined by the argument from a map.
func (Params) Set ¶ added in v0.4.0
func (params Params) Set(tag PropertyName, value any) bool
Set sets the value (second argument) of the property with name defined by the first argument. Return "true" if the value has been set, in the opposite case "false" is returned and a description of an error is written to the log
type ParentView ¶ added in v0.10.1
type ParentView interface { // Views return a list of child views Views() []View }
ParentView describe a view which can have a child views
type Path ¶
type Path interface { // MoveTo begins a new sub-path at the point specified by the given (x, y) coordinates MoveTo(x, y float64) // LineTo adds a straight line to the current sub-path by connecting // the sub-path's last point to the specified (x, y) coordinates LineTo(x, y float64) // ArcTo adds a circular arc to the current sub-path, using the given control points and radius. // The arc is automatically connected to the path's latest point with a straight line, if necessary. // - x0, y0 - coordinates of the first control point; // - x1, y1 - coordinates of the second control point; // - radius - the arc's radius. Must be non-negative. ArcTo(x0, y0, x1, y1, radius float64) // Arc adds a circular arc to the current sub-path. // - x, y - coordinates of the arc's center; // - radius - the arc's radius. Must be non-negative; // - startAngle - the angle at which the arc starts, measured clockwise from the positive // x-axis and expressed in radians. // - endAngle - the angle at which the arc ends, measured clockwise from the positive // x-axis and expressed in radians. // - clockwise - if true, causes the arc to be drawn clockwise between the start and end angles, // otherwise - counter-clockwise Arc(x, y, radius, startAngle, endAngle float64, clockwise bool) // BezierCurveTo adds a cubic Bézier curve to the current sub-path. The starting point is // the latest point in the current path. // - cp0x, cp0y - coordinates of the first control point; // - cp1x, cp1y - coordinates of the second control point; // - x, y - coordinates of the end point. BezierCurveTo(cp0x, cp0y, cp1x, cp1y, x, y float64) // QuadraticCurveTo adds a quadratic Bézier curve to the current sub-path. // - cpx, cpy - coordinates of the control point; // - x, y - coordinates of the end point. QuadraticCurveTo(cpx, cpy, x, y float64) // Ellipse adds an elliptical arc to the current sub-path // - x, y - coordinates of the ellipse's center; // - radiusX - the ellipse's major-axis radius. Must be non-negative; // - radiusY - the ellipse's minor-axis radius. Must be non-negative; // - rotation - the rotation of the ellipse, expressed in radians; // - startAngle - the angle at which the ellipse starts, measured clockwise // from the positive x-axis and expressed in radians; // - endAngle - the angle at which the ellipse ends, measured clockwise // from the positive x-axis and expressed in radians. // - clockwise - if true, draws the ellipse clockwise, otherwise draws counter-clockwise Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle float64, clockwise bool) // Close adds a straight line from the current point to the start of the current sub-path. // If the shape has already been closed or has only one point, this function does nothing. Close() // contains filtered or unexported methods }
Path is a path interface
type PointerEvent ¶
type PointerEvent struct { MouseEvent // PointerID is a unique identifier for the pointer causing the event. PointerID int // Width is the width (magnitude on the X axis), in pixels, of the contact geometry of the pointer. Width float64 // Height is the height (magnitude on the Y axis), in pixels, of the contact geometry of the pointer. Height float64 // Pressure is the normalized pressure of the pointer input in the range 0 to 1, where 0 and 1 represent // the minimum and maximum pressure the hardware is capable of detecting, respectively. Pressure float64 // TangentialPressure is the normalized tangential pressure of the pointer input (also known // as barrel pressure or cylinder stress) in the range -1 to 1, where 0 is the neutral position of the control. TangentialPressure float64 // TiltX is the plane angle (in degrees, in the range of -90 to 90) between the Y–Z plane // and the plane containing both the pointer (e.g. pen stylus) axis and the Y axis. TiltX float64 // TiltY is the plane angle (in degrees, in the range of -90 to 90) between the X–Z plane // and the plane containing both the pointer (e.g. pen stylus) axis and the X axis. TiltY float64 // Twist is the clockwise rotation of the pointer (e.g. pen stylus) around its major axis in degrees, // with a value in the range 0 to 359. Twist float64 // PointerType indicates the device type that caused the event ("mouse", "pen", "touch", etc.) PointerType string // IsPrimary indicates if the pointer represents the primary pointer of this pointer type. IsPrimary bool }
PointerEvent represent a stylus events. Also inherit MouseEvent attributes
type Popup ¶
type Popup interface { // View returns a content view of the popup View() View // Session returns current client session Session() Session // Show displays a popup Show() // Dismiss closes a popup Dismiss() // contains filtered or unexported methods }
Popup represents a Popup view
type PopupButton ¶
type PopupButton struct { // Title of the button Title string // Type of the button Type PopupButtonType // OnClick is the handler function that gets called when the button is pressed OnClick func(Popup) }
PopupButton describes a button that will be placed at the bottom of the window.
type PopupButtonType ¶ added in v0.13.0
type PopupButtonType int
PopupButtonType represent popup button type
const ( // NormalButton is the constant of the popup button type: the normal button NormalButton PopupButtonType = 0 // DefaultButton is the constant of the popup button type: button that fires when the "Enter" key is pressed DefaultButton PopupButtonType = 1 // CancelButton is the constant of the popup button type: button that fires when the "Escape" key is pressed CancelButton PopupButtonType = 2 )
Constants which are used as a values of PopupButtonType variables
type ProgressBar ¶
type ProgressBar interface { View }
ProgressBar represents a ProgressBar view
func NewProgressBar ¶
func NewProgressBar(session Session, params Params) ProgressBar
NewProgressBar create new ProgressBar object and return it
func ProgressBarByID ¶
func ProgressBarByID(rootView View, id string, ids ...string) ProgressBar
ProgressBarByID return the ProgressBar path to which is specified using the arguments id, ids. Example
view := ProgressBarByID(rootView, "id1", "id2", "id3") view := ProgressBarByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ProgressBar, the function will return nil
type Properties ¶
type Properties interface { // Get returns a value of the property with name defined by the argument. // The type of return value depends on the property. If the property is not set then nil is returned. Get(tag PropertyName) any // Set sets the value (second argument) of the property with name defined by the first argument. // Return "true" if the value has been set, in the opposite case "false" are returned and // a description of the error is written to the log Set(tag PropertyName, value any) bool // Remove removes the property with name defined by the argument Remove(tag PropertyName) // Clear removes all properties Clear() // AllTags returns an array of the set properties AllTags() []PropertyName // contains filtered or unexported methods }
Properties interface of properties map
type PropertyName ¶ added in v0.18.0
type PropertyName string
const ( // TransitionRunEvent is the constant for "transition-run-event" property tag. // // Used by View: // Is fired when a transition is first created, i.e. before any transition delay has begun. // // General listener format: // func(view rui.View, propertyName rui.PropertyName). // // where: // - view - Interface of a view which generated this event, // - propertyName - Name of the property. // // Allowed listener formats: // func(view rui.View), // func(propertyName rui.PropertyName) // func(). TransitionRunEvent PropertyName = "transition-run-event" // TransitionStartEvent is the constant for "transition-start-event" property tag. // // Used by View: // Is fired when a transition has actually started, i.e., after "delay" has ended. // // General listener format: // func(view rui.View, propertyName rui.PropertyName). // // where: // - view - Interface of a view which generated this event, // - propertyName - Name of the property. // // Allowed listener formats: // func(view rui.View) // func(propertyName rui.PropertyName) // func() TransitionStartEvent PropertyName = "transition-start-event" // TransitionEndEvent is the constant for "transition-end-event" property tag. // // Used by View: // Is fired when a transition has completed. // // General listener format: // func(view rui.View, propertyName rui.PropertyName). // // where: // - view - Interface of a view which generated this event, // - propertyName - Name of the property. // // Allowed listener formats: // func(view rui.View) // func(propertyName rui.PropertyName) // func() TransitionEndEvent PropertyName = "transition-end-event" // TransitionCancelEvent is the constant for "transition-cancel-event" property tag. // // Used by View: // Is fired when a transition is cancelled. The transition is cancelled when: // - A new property transition has begun. // - The "visibility" property is set to "gone". // - The transition is stopped before it has run to completion, e.g. by moving the mouse off a hover-transitioning view. // // General listener format: // func(view rui.View, propertyName rui.PropertyName). // // where: // - view - Interface of a view which generated this event, // - propertyName - Name of the property. // // Allowed listener formats: // func(view rui.View) // func(propertyName rui.PropertyName) // func() TransitionCancelEvent PropertyName = "transition-cancel-event" // AnimationStartEvent is the constant for "animation-start-event" property tag. // // Used by View: // Fired when an animation has started. If there is an "animation-delay", this event will fire once the delay period has // expired. // // General listener format: // func(view rui.View, animationId string). // // where: // - view - Interface of a view which generated this event, // - animationId - Id of the animation. // // Allowed listener formats: // func(view rui.View) // func(animationId string) // func() AnimationStartEvent PropertyName = "animation-start-event" // AnimationEndEvent is the constant for "animation-end-event" property tag. // // Used by View: // Fired when an animation has completed. If the animation aborts before reaching completion, such as if the element is // removed or the animation is removed from the element, the "animation-end-event" is not fired. // // General listener format: // func(view rui.View, animationId string). // // where: // - view - Interface of a view which generated this event, // - animationId - Id of the animation. // // Allowed listener formats: // func(view rui.View) // func(animationId string) // func() AnimationEndEvent PropertyName = "animation-end-event" // AnimationCancelEvent is the constant for "animation-cancel-event" property tag. // // Used by View: // Fired when an animation unexpectedly aborts. In other words, any time it stops running without sending the // "animation-end-event". This might happen when the animation-name is changed such that the animation is removed, or when // the animating view is hidden. Therefore, either directly or because any of its containing views are hidden. The event // is not supported by all browsers. // // General listener format: // func(view rui.View, animationId string). // // where: // - view - Interface of a view which generated this event, // - animationId - Id of the animation. // // Allowed listener formats: // func(view rui.View) // func(animationId string) // func() AnimationCancelEvent PropertyName = "animation-cancel-event" // AnimationIterationEvent is the constant for "animation-iteration-event" property tag. // // Used by View: // Fired when an iteration of an animation ends, and another one begins. This event does not occur at the same time as the // animation end event, and therefore does not occur for animations with an "iteration-count" of one. // // General listener format: // func(view rui.View, animationId string). // // where: // - view - Interface of a view which generated this event, // - animationId - Id of the animation. // // Allowed listener formats: // func(view rui.View) // func(animationId string) // func() AnimationIterationEvent PropertyName = "animation-iteration-event" )
Constants which describe values for view's animation events properties
const ( // ColorChangedEvent is the constant for "color-changed" property tag. // // Used by `ColorPicker`. // Event generated when color picker value has been changed. // // General listener format: // func(picker rui.ColorPicker, newColor, oldColor rui.Color) // // where: // - picker - Interface of a color picker which generated this event, // - newColor - New color value, // - oldColor - Old color value. // // Allowed listener formats: // func(picker rui.ColorPicker, newColor rui.Color) // func(newColor, oldColor rui.Color) // func(newColor rui.Color) // func(picker rui.ColorPicker) // func() ColorChangedEvent PropertyName = "color-changed" // ColorPickerValue is the constant for "color-picker-value" property tag. // // Used by `ColorPicker`. // Define current color picker value. // // Supported types: `Color`, `string`. // // Internal type is `Color`, other types converted to it during assignment. // See `Color` description for more details. ColorPickerValue PropertyName = "color-picker-value" )
Constants for ColorPicker specific properties and events.
const ( // ColumnCount is the constant for "column-count" property tag. // // Used by ColumnLayout. // Specifies number of columns into which the content is break. Values less than zero are not valid. If this property // value is 0 then the number of columns is calculated based on the "column-width" property. // // Supported types: int, string. // // Values: // - 0 or "0" - Use "column-width" to control how many columns will be created. // - positive value - Тhe number of columns into which the content is divided. ColumnCount PropertyName = "column-count" // ColumnWidth is the constant for "column-width" property tag. // // Used by ColumnLayout. // Specifies the width of each column. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. ColumnWidth PropertyName = "column-width" // ColumnGap is the constant for "column-gap" property tag. // // Used by ColumnLayout. // Set the size of the gap (gutter) between columns. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. ColumnGap PropertyName = "column-gap" // ColumnSeparator is the constant for "column-separator" property tag. // // Used by ColumnLayout. // Specifies the line drawn between columns in a multi-column layout. // // Supported types: ColumnSeparatorProperty, ViewBorder. // // Internal type is ColumnSeparatorProperty, other types converted to it during assignment. // See [ColumnSeparatorProperty] and [ViewBorder] description for more details. ColumnSeparator PropertyName = "column-separator" // ColumnSeparatorStyle is the constant for "column-separator-style" property tag. // // Used by ColumnLayout. // Controls the style of the line drawn between columns in a multi-column layout. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The separator will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a separator. // - 2 (DashedLine) or "dashed" - Dashed line as a separator. // - 3 (DottedLine) or "dotted" - Dotted line as a separator. // - 4 (DoubleLine) or "double" - Double line as a separator. ColumnSeparatorStyle PropertyName = "column-separator-style" // ColumnSeparatorWidth is the constant for "column-separator-width" property tag. // // Used by ColumnLayout. // Set the width of the line drawn between columns in a multi-column layout. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. ColumnSeparatorWidth PropertyName = "column-separator-width" // ColumnSeparatorColor is the constant for "column-separator-color" property tag. // // Used by ColumnLayout. // Set the color of the line drawn between columns in a multi-column layout. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. ColumnSeparatorColor PropertyName = "column-separator-color" // ColumnFill is the constant for "column-fill" property tag. // // Used by ColumnLayout. // Controls how a ColumnLayout's content is balanced when broken into columns. Default value is "balance". // // Supported types: int, string. // // Values: // - 0 (ColumnFillBalance) or "balance" - Content is equally divided between columns. // - 1 (ColumnFillAuto) or "auto" - Columns are filled sequentially. Content takes up only the room it needs, possibly resulting in some columns remaining empty. ColumnFill PropertyName = "column-fill" // ColumnSpanAll is the constant for "column-span-all" property tag. // // Used by ColumnLayout. // Property used in views placed inside the column layout container. Makes it possible for a view to span across all // columns. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - View will span across all columns. // - false, 0, "false", "no", "off", or "0" - View will be a part of a column. ColumnSpanAll PropertyName = "column-span-all" )
Constants for ColumnLayout specific properties and events
const ( // DateChangedEvent is the constant for "date-changed" property tag. // // Used by DatePicker. // Occur when date picker value has been changed. // // General listener format: // func(picker rui.DatePicker, newDate time.Time, oldDate time.Time) // // where: // - picker - Interface of a date picker which generated this event, // - newDate - New date value, // - oldDate - Old date value. // // Allowed listener formats: // func(picker rui.DatePicker, newDate time.Time) // func(newDate time.Time, oldDate time.Time) // func(newDate time.Time) // func(picker rui.DatePicker) // func() DateChangedEvent PropertyName = "date-changed" // DatePickerMin is the constant for "date-picker-min" property tag. // // Used by DatePicker. // Minimum date value. // // Supported types: time.Time, string. // // Internal type is time.Time, other types converted to it during assignment. // // Conversion rules: // string - values of this type parsed and converted to time.Time. The following formats are supported: // - "YYYYMMDD" - "20240102". // - "Mon-DD-YYYY" - "Jan-02-24". // - "Mon-DD-YY" - "Jan-02-2024". // - "DD-Mon-YYYY" - "02-Jan-2024". // - "YYYY-MM-DD" - "2024-01-02". // - "Month DD, YYYY" - "January 02, 2024". // - "DD Month YYYY" - "02 January 2024". // - "MM/DD/YYYY" - "01/02/2024". // - "MM/DD/YY" - "01/02/24". // - "MMDDYY" - "010224". DatePickerMin PropertyName = "date-picker-min" // DatePickerMax is the constant for "date-picker-max" property tag. // // Used by DatePicker. // Maximum date value. // // Supported types: time.Time, string. // // Internal type is time.Time, other types converted to it during assignment. // // Conversion rules: // string - values of this type parsed and converted to time.Time. The following formats are supported: // - "YYYYMMDD" - "20240102". // - "Mon-DD-YYYY" - "Jan-02-24". // - "Mon-DD-YY" - "Jan-02-2024". // - "DD-Mon-YYYY" - "02-Jan-2024". // - "YYYY-MM-DD" - "2024-01-02". // - "Month DD, YYYY" - "January 02, 2024". // - "DD Month YYYY" - "02 January 2024". // - "MM/DD/YYYY" - "01/02/2024". // - "MM/DD/YY" - "01/02/24". // - "MMDDYY" - "010224". DatePickerMax PropertyName = "date-picker-max" // DatePickerStep is the constant for "date-picker-step" property tag. // // Used by DatePicker. // Date change step in days. // // Supported types: int, string. // // Values: // positive value - Step value in days used to increment or decrement date. DatePickerStep PropertyName = "date-picker-step" // DatePickerValue is the constant for "date-picker-value" property tag. // // Used by DatePicker. // Current value. // // Supported types: time.Time, string. // // Internal type is time.Time, other types converted to it during assignment. // // Conversion rules: // string - values of this type parsed and converted to time.Time. The following formats are supported: // - "YYYYMMDD" - "20240102". // - "Mon-DD-YYYY" - "Jan-02-24". // - "Mon-DD-YY" - "Jan-02-2024". // - "DD-Mon-YYYY" - "02-Jan-2024". // - "YYYY-MM-DD" - "2024-01-02". // - "Month DD, YYYY" - "January 02, 2024". // - "DD Month YYYY" - "02 January 2024". // - "MM/DD/YYYY" - "01/02/2024". // - "MM/DD/YY" - "01/02/24". // - "MMDDYY" - "010224". DatePickerValue PropertyName = "date-picker-value" )
Constants for DatePicker specific properties and events.
const ( // Summary is the constant for "summary" property tag. // // Used by DetailsView. // The content of this property is used as the label for the disclosure widget. // // Supported types: // - string - Summary as a text. // - View - Summary as a view, in this case it can be quite complex if needed. Summary PropertyName = "summary" // Expanded is the constant for "expanded" property tag. // // Used by DetailsView. // Controls the content expanded state of the details view. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Content is visible. // - false, 0, "false", "no", "off", or "0" - Content is collapsed (hidden). Expanded PropertyName = "expanded" // HideSummaryMarker is the constant for "hide-summary-marker" property tag. // // Used by DetailsView. // Allows you to hide the summary marker (▶︎). Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - The summary marker is hidden. // - false, 0, "false", "no", "off", or "0" - The summary marker is displayed (default value). HideSummaryMarker PropertyName = "hide-summary-marker" )
Constants for DetailsView specific properties and events
const ( // EditTextChangedEvent is the constant for "edit-text-changed" property tag. // // Used by EditView. // Occur when edit view text has been changed. // // General listener format: // func(editView rui.EditView, newText string, oldText string). // // where: // - editView - Interface of an edit view which generated this event, // - newText - New edit view text, // - oldText - Previous edit view text. // // Allowed listener formats: // - func(editView rui.EditView, newText string) // - func(newText string, oldText string) // - func(newText string) // - func(editView rui.EditView) // - func() EditTextChangedEvent PropertyName = "edit-text-changed" // EditViewType is the constant for "edit-view-type" property tag. // // Used by EditView. // Type of the text input. Default value is "text". // // Supported types: int, string. // // Values: // - 0 (SingleLineText) or "text" - One-line text editor. // - 1 (PasswordText) or "password" - Password editor. The text is hidden by asterisks. // - 2 (EmailText) or "email" - Single e-mail editor. // - 3 (EmailsText) or "emails" - Multiple e-mail editor. // - 4 (URLText) or "url" - Internet address input editor. // - 5 (PhoneText) or "phone" - Phone number editor. // - 6 (MultiLineText) or "multiline" - Multi-line text editor. EditViewType PropertyName = "edit-view-type" // EditViewPattern is the constant for "edit-view-pattern" property tag. // // Used by EditView. // Regular expression to limit editing of a text. // // Supported types: string. EditViewPattern PropertyName = "edit-view-pattern" // Spellcheck is the constant for "spellcheck" property tag. // // Used by EditView. // Enable or disable spell checker. Available in SingleLineText and MultiLineText types of edit view. Default value is // false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Enable spell checker for text. // - false, 0, "false", "no", "off", "0" - Disable spell checker for text. Spellcheck PropertyName = "spellcheck" )
Constants for EditView specific properties and events
const ( // FileSelectedEvent is the constant for "file-selected-event" property tag. // // Used by FilePicker. // Fired when user selects file(s). // // General listener format: // func(picker rui.FilePicker, files []rui.FileInfo). // // where: // picker - Interface of a file picker which generated this event, // files - Array of description of selected files. // // Allowed listener formats: // func(picker rui.FilePicker) // func(files []rui.FileInfo) // func() FileSelectedEvent PropertyName = "file-selected-event" // Accept is the constant for "accept" property tag. // // Used by FilePicker. // Set the list of allowed file extensions or MIME types. // // Supported types: string, []string. // // Internal type is string, other types converted to it during assignment. // // Conversion rules: // - string - may contain single value of multiple separated by comma(,). // - []string - an array of acceptable file extensions or MIME types. Accept PropertyName = "accept" // Multiple is the constant for "multiple" property tag. // // Used by FilePicker. // Controls whether multiple files can be selected. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Several files can be selected. // - false, 0, "false", "no", "off", "0" - Only one file can be selected. Multiple PropertyName = "multiple" )
Constants for FilePicker specific properties and events
const ( // Blur is the constant for "blur" property tag. // // Used by FilterProperty. // Applies a Gaussian blur. The value of radius defines the value of the standard deviation to the Gaussian function, or // how many pixels on the screen blend into each other, so a larger value will create more blur. The lacuna value for // interpolation is 0. The parameter is specified as a length in pixels. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Blur PropertyName = "blur" // Brightness is the constant for "brightness" property tag. // // Used by FilterProperty. // Applies a linear multiplier to input image, making it appear more or less bright. A value of 0% will create an image // that is completely black. A value of 100% leaves the input unchanged. Other values are linear multipliers on the // effect. Values of an amount over 100% are allowed, providing brighter results. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Brightness PropertyName = "brightness" // Contrast is the constant for "contrast" property tag. // // Used by FilterProperty. // Adjusts the contrast of the input. A value of 0% will create an image that is completely black. A value of 100% leaves // the input unchanged. Values of amount over 100% are allowed, providing results with less contrast. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Contrast PropertyName = "contrast" // DropShadow is the constant for "drop-shadow" property tag. // // Used by FilterProperty. // Applies a drop shadow effect to the input image. A drop shadow is effectively a blurred, offset version of the input // image's alpha mask drawn in a particular color, composited below the image. Shadow parameters are set using the // ShadowProperty interface. // // Supported types: []ShadowProperty, ShadowProperty, string. // // Internal type is []ShadowProperty, other types converted to it during assignment. // See ShadowProperty description for more details. // // Conversion rules: // - []ShadowProperty - stored as is, no conversion performed. // - ShadowProperty - converted to []ShadowProperty. // - string - string representation of ShadowProperty. Example: "_{blur = 1em, color = black, spread-radius = 0.5em}". DropShadow PropertyName = "drop-shadow" // Grayscale is the constant for "grayscale" property tag. // // Used by FilterProperty. // Converts the input image to grayscale. The value of ‘amount’ defines the proportion of the conversion. A value of 100% // is completely grayscale. A value of 0% leaves the input unchanged. Values between 0% and 100% are linear multipliers on // the effect. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Grayscale PropertyName = "grayscale" // HueRotate is the constant for "hue-rotate" property tag. // // Used by FilterProperty. // Applies a hue rotation on the input image. The value of ‘angle’ defines the number of degrees around the color circle // the input samples will be adjusted. A value of 0deg leaves the input unchanged. If the ‘angle’ parameter is missing, a // value of 0deg is used. Though there is no maximum value, the effect of values above 360deg wraps around. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. HueRotate PropertyName = "hue-rotate" // Invert is the constant for "invert" property tag. // // Used by FilterProperty. // Inverts the samples in the input image. The value of ‘amount’ defines the proportion of the conversion. A value of 100% // is completely inverted. A value of 0% leaves the input unchanged. Values between 0% and 100% are linear multipliers on // the effect. // // Supported types: float64, int, string. // // Internal type is float, other types converted to it during assignment. Invert PropertyName = "invert" // Saturate is the constant for "saturate" property tag. // // Used by FilterProperty. // Saturates the input image. The value of ‘amount’ defines the proportion of the conversion. A value of 0% is completely // un-saturated. A value of 100% leaves the input unchanged. Other values are linear multipliers on the effect. Values of // amount over 100% are allowed, providing super-saturated results. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Saturate PropertyName = "saturate" // Sepia is the constant for "sepia" property tag. // // Used by FilterProperty. // Converts the input image to sepia. The value of ‘amount’ defines the proportion of the conversion. A value of 100% is // completely sepia. A value of 0% leaves the input unchanged. Values between 0% and 100% are linear multipliers on the // effect. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Sepia PropertyName = "sepia" )
Constants for FilterProperty specific properties and events
const ( // FocusEvent is the constant for "focus-event" property tag. // // Used by View. // Occur when the view takes input focus. // // General listener format: // func(rui.View). // // where: // view - Interface of a view which generated this event. // // Allowed listener formats: // func(). FocusEvent PropertyName = "focus-event" // LostFocusEvent is the constant for "lost-focus-event" property tag. // // Used by View. // Occur when the View lost input focus. // // General listener format: // func(view rui.View). // // where: // view - Interface of a view which generated this event. // // Allowed listener formats: // func() LostFocusEvent PropertyName = "lost-focus-event" )
Constants which represent View specific focus events properties
const ( // CellVerticalAlign is the constant for "cell-vertical-align" property tag. // // Used by GridLayout, SvgImageView. // // Usage in GridLayout: // Sets the default vertical alignment of GridLayout children within the cell they are occupying. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Full height stretch. // // Usage in SvgImageView: // Same as "vertical-align". CellVerticalAlign PropertyName = "cell-vertical-align" // CellHorizontalAlign is the constant for "cell-horizontal-align" property tag. // // Used by GridLayout, SvgImageView. // // Usage in GridLayout: // Sets the default horizontal alignment of GridLayout children within the occupied cell. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Full width stretch. // // Usage in SvgImageView: // Same as "horizontal-align". CellHorizontalAlign PropertyName = "cell-horizontal-align" // CellVerticalSelfAlign is the constant for "cell-vertical-self-align" property tag. // // Used by GridLayout. // Sets the vertical alignment of GridLayout children within the cell they are occupying. The property is set for the // child view of GridLayout. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Full height stretch. CellVerticalSelfAlign PropertyName = "cell-vertical-self-align" // CellHorizontalSelfAlign is the constant for "cell-horizontal-self-align" property tag. // // Used by GridLayout. // Sets the horizontal alignment of GridLayout children within the occupied cell. The property is set for the child view // of GridLayout. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Full width stretch. CellHorizontalSelfAlign PropertyName = "cell-horizontal-self-align" )
Constants related to GridLayout specific properties and events
const ( // KeyDownEvent is the constant for "key-down-event" property tag. // // Used by View. // Is fired when a key is pressed. // // General listener format: // // func(view rui.View, event rui.KeyEvent). // // where: // - view - Interface of a view which generated this event, // - event - Key event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.KeyEvent) // func() KeyDownEvent PropertyName = "key-down-event" // KeyUpEvent is the constant for "key-up-event" property tag. // // Used by View. // Is fired when a key is released. // // General listener format: // // func(view rui.View, event rui.KeyEvent) // // where: // - view - Interface of a view which generated this event, // - event - Key event. // // Allowed listener formats: // // func(view rui.View) // func(event rui.KeyEvent) // func() KeyUpEvent PropertyName = "key-up-event" )
Constants which represent View specific keyboard events properties
const ( // ListItemClickedEvent is the constant for "list-item-clicked" property tag. // // Used by ListView. // Occur when the user clicks on an item in the list. // // General listener format: // // func(list rui.ListView, item int) // // where: // - list - Interface of a list which generated this event, // - item - An index of an item clicked. // // Allowed listener formats: // // func(item int) // func(list rui.ListView) // func() ListItemClickedEvent PropertyName = "list-item-clicked" // ListItemSelectedEvent is the constant for "list-item-selected" property tag. // // Used by ListView. // Occur when a list item becomes selected. // // General listener format: // // func(list rui.ListView, item int) // // where: // - list - Interface of a list which generated this event, // - item - An index of an item selected. // // Allowed listener formats: // // func(item int) // func(list rui.ListView) // func() ListItemSelectedEvent PropertyName = "list-item-selected" // ListItemCheckedEvent is the constant for "list-item-checked" property tag. // // Used by ListView. // Occur when a list item checkbox becomes checked or unchecked. // // General listener format: // // func(list rui.ListView, checkedItems []int). // // where: // - list - Interface of a list which generated this event, // - checkedItems - Array of indices of marked elements. // // Allowed listener formats: // // func(checkedItems []int) // func(list rui.ListView) // func() ListItemCheckedEvent PropertyName = "list-item-checked" // ListItemStyle is the constant for "list-item-style" property tag. // // Used by ListView. // Defines the style of an unselected item. // // Supported types: string. ListItemStyle PropertyName = "list-item-style" // CurrentStyle is the constant for "current-style" property tag. // // Used by ListView. // Defines the style of the selected item when the ListView is focused. // // Supported types: string. CurrentStyle PropertyName = "current-style" // CurrentInactiveStyle is the constant for "current-inactive-style" property tag. // // Used by ListView. // Defines the style of the selected item when the ListView is unfocused. // // Supported types: string. CurrentInactiveStyle PropertyName = "current-inactive-style" )
Constants which represent ListView specific properties and events
const ( // Controls is the constant for "controls" property tag. // // Used by AudioPlayer, VideoPlayer. // // Controls whether the browser need to provide controls to allow user to control audio playback, volume, seeking and // pause/resume playback. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - The browser will offer controls to allow the user to control audio playback, volume, seeking and pause/resume playback. // - false, 0, "false", "no", "off", "0" - No controls will be visible to the end user. Controls PropertyName = "controls" // Loop is the constant for "loop" property tag. // // Used by AudioPlayer, VideoPlayer. // // Controls whether the audio player will play media in a loop. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - The audio player will automatically seek back to the start upon reaching the end of the audio. // - false, 0, "false", "no", "off", "0" - Audio player will stop playing when the end of the media file has been reached. Loop PropertyName = "loop" // Muted is the constant for "muted" property tag. // // Used by AudioPlayer, VideoPlayer. // // Controls whether the audio will be initially silenced. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Audio will be muted. // - false, 0, "false", "no", "off", "0" - Audio playing normally. Muted PropertyName = "muted" // Preload is the constant for "preload" property tag. // // Used by AudioPlayer, VideoPlayer. // // Property is intended to provide a hint to the browser about what the author thinks will lead to the best user // experience. Default value is different for each browser. // // Supported types: int, string. // // Values: // - 0 (PreloadNone) or "none" - Media file must not be pre-loaded. // - 1 (PreloadMetadata) or "metadata" - Only metadata is preloaded. // - 2 (PreloadAuto) or "auto" - The entire media file can be downloaded even if the user doesn't have to use it. Preload PropertyName = "preload" // AbortEvent is the constant for "abort-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Fired when the resource was not fully loaded, but not as the result of an error. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() AbortEvent PropertyName = "abort-event" // CanPlayEvent is the constant for "can-play-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the browser can play the media, but estimates that not enough data has been loaded to play the media up to // its end without having to stop for further buffering of content. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() CanPlayEvent PropertyName = "can-play-event" // CanPlayThroughEvent is the constant for "can-play-through-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the browser estimates it can play the media up to its end without stopping for content buffering. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() CanPlayThroughEvent PropertyName = "can-play-through-event" // CompleteEvent is the constant for "complete-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the rendering of an OfflineAudioContext has been terminated. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() CompleteEvent PropertyName = "complete-event" // DurationChangedEvent is the constant for "duration-changed-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the duration attribute has been updated. // // General listener format: // // func(player rui.MediaPlayer, duration float64). // // where: // - player - Interface of a player which generated this event, // - duration - Current duration. // // Allowed listener formats: // // func(player rui.MediaPlayer), // func(duration float64), // func() DurationChangedEvent PropertyName = "duration-changed-event" // EmptiedEvent is the constant for "emptied-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the media has become empty; for example, this event is sent if the media has already been loaded(or // partially loaded), and the HTMLMediaElement.load method is called to reload it. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() EmptiedEvent PropertyName = "emptied-event" // EndedEvent is the constant for "ended-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the playback has stopped because the end of the media was reached. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() EndedEvent PropertyName = "ended-event" // LoadedDataEvent is the constant for "loaded-data-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the first frame of the media has finished loading. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() LoadedDataEvent PropertyName = "loaded-data-event" // LoadedMetadataEvent is the constant for "loaded-metadata-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the metadata has been loaded. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() LoadedMetadataEvent PropertyName = "loaded-metadata-event" // LoadStartEvent is the constant for "load-start-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Fired when the browser has started to load a resource. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() LoadStartEvent PropertyName = "load-start-event" // PauseEvent is the constant for "pause-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the playback has been paused. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() PauseEvent PropertyName = "pause-event" // PlayEvent is the constant for "play-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the playback has begun. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() PlayEvent PropertyName = "play-event" // PlayingEvent is the constant for "playing-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the playback is ready to start after having been paused or delayed due to lack of data. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() PlayingEvent PropertyName = "playing-event" // ProgressEvent is the constant for "progress-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Fired periodically as the browser loads a resource. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() ProgressEvent PropertyName = "progress-event" // RateChangedEvent is the constant for "rate-changed-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the playback rate has changed. // // General listener format: // // func(player rui.MediaPlayer, rate float64). // // where: // - player - Interface of a player which generated this event, // - rate - Playback rate. // // Allowed listener formats: // // func(player rui.MediaPlayer), // func(rate float64), // func() RateChangedEvent PropertyName = "rate-changed-event" // SeekedEvent is the constant for "seeked-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when a seek operation completed. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() SeekedEvent PropertyName = "seeked-event" // SeekingEvent is the constant for "seeking-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when a seek operation has began. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() SeekingEvent PropertyName = "seeking-event" // StalledEvent is the constant for "stalled-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() StalledEvent PropertyName = "stalled-event" // SuspendEvent is the constant for "suspend-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the media data loading has been suspended. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() SuspendEvent PropertyName = "suspend-event" // TimeUpdateEvent is the constant for "time-update-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the time indicated by the currentTime attribute has been updated. // // General listener format: // // func(player rui.MediaPlayer, time float64). // // where: // - player - Interface of a player which generated this event, // - time - Current time. // // Allowed listener formats: // // func(player rui.MediaPlayer), // func(time float64), // func() TimeUpdateEvent PropertyName = "time-update-event" // VolumeChangedEvent is the constant for "volume-changed-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the volume has changed. // // General listener format: // // func(player rui.MediaPlayer, volume float64). // // where: // - player - Interface of a player which generated this event, // - volume - New volume level. // // Allowed listener formats: // // func(player rui.MediaPlayer), // func(volume float64), // func() VolumeChangedEvent PropertyName = "volume-changed-event" // WaitingEvent is the constant for "waiting-event" property tag. // // Used by AudioPlayer, VideoPlayer. // // Occur when the playback has stopped because of a temporary lack of data. // // General listener format: // // func(player rui.MediaPlayer) // // where: // player - Interface of a player which generated this event. // // Allowed listener formats: // // func() WaitingEvent PropertyName = "waiting-event" // Error codes: // - 0 (PlayerErrorUnknown) - Unknown error, // - 1 (PlayerErrorAborted) - Fetching the associated resource was interrupted by a user request, // - 2 (PlayerErrorNetwork) - Some kind of network error has occurred that prevented the media from successfully ejecting, even though it was previously available, // - 3 (PlayerErrorDecode) - Although the resource was previously identified as being used, an error occurred while trying to decode the media resource, // - 4 (PlayerErrorSourceNotSupported) - The associated resource object or media provider was found to be invalid. // // Allowed listener formats: // // func(code int, message string), // func(player rui.MediaPlayer), // func() PlayerErrorEvent PropertyName = "player-error-event" // PreloadNone - value of the view "preload" property: indicates that the audio/video should not be preloaded. PreloadNone = 0 // PreloadMetadata - value of the view "preload" property: indicates that only audio/video metadata (e.g. length) is fetched. PreloadMetadata = 1 // PreloadAuto - value of the view "preload" property: indicates that the whole audio file can be downloaded, // even if the user is not expected to use it. PreloadAuto = 2 // PlayerErrorUnknown - MediaPlayer error code: An unknown error. PlayerErrorUnknown = 0 // PlayerErrorAborted - MediaPlayer error code: The fetching of the associated resource was aborted by the user's request. PlayerErrorAborted = 1 // PlayerErrorNetwork - MediaPlayer error code: Some kind of network error occurred which prevented the media // from being successfully fetched, despite having previously been available. PlayerErrorNetwork = 2 // PlayerErrorDecode - MediaPlayer error code: Despite having previously been determined to be usable, // an error occurred while trying to decode the media resource, resulting in an error. PlayerErrorDecode = 3 // PlayerErrorSourceNotSupported - MediaPlayer error code: The associated resource or media provider object has been found to be unsuitable. PlayerErrorSourceNotSupported = 4 )
Constants which related to media player properties and events
const ( // NumberChangedEvent is the constant for "number-changed" property tag. // // Used by NumberPicker. // Set listener(s) that track the change in the entered value. // // General listener format: // // func(picker rui.NumberPicker, newValue float64, oldValue float64) // // where: // - picker - Interface of a number picker which generated this event, // - newValue - New value, // - oldValue - Old Value. // // Allowed listener formats: // // func(picker rui.NumberPicker, newValue float64) // func(newValue float64, oldValue float64) // func(newValue float64) // func() NumberChangedEvent PropertyName = "number-changed" // NumberPickerType is the constant for "number-picker-type" property tag. // // Used by NumberPicker. // Sets the visual representation. // // Supported types: int, string. // // Values: // - 0 (NumberEditor) or "editor" - Displayed as an editor. // - 1 (NumberSlider) or "slider" - Displayed as a slider. NumberPickerType PropertyName = "number-picker-type" // NumberPickerMin is the constant for "number-picker-min" property tag. // // Used by NumberPicker. // Set the minimum value. The default value is 0. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. NumberPickerMin PropertyName = "number-picker-min" // NumberPickerMax is the constant for "number-picker-max" property tag. // // Used by NumberPicker. // Set the maximum value. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. NumberPickerMax PropertyName = "number-picker-max" // NumberPickerStep is the constant for "number-picker-step" property tag. // // Used by NumberPicker. // Set the value change step. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. NumberPickerStep PropertyName = "number-picker-step" // NumberPickerValue is the constant for "number-picker-value" property tag. // // Used by NumberPicker. // Current value. The default value is 0. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. NumberPickerValue PropertyName = "number-picker-value" // NumberPickerValue is the constant for "number-picker-value" property tag. // // Used by NumberPicker. // Precision of displaying fractional part in editor. The default value is 0 (not used). // // Supported types: int, int8...int64, uint, uint8...uint64, string. // // Internal type is float, other types converted to it during assignment. NumberPickerPrecision PropertyName = "number-picker-precision" )
Constants related to NumberPicker specific properties and events
const ( // PointerDown is the constant for "pointer-down" property tag. // // Used by View. // Fired when a pointer becomes active. For mouse, it is fired when the device transitions from no buttons depressed to at // least one button depressed. For touch, it is fired when physical contact is made with the digitizer. For pen, it is // fired when the stylus makes physical contact with the digitizer. // // General listener format: // // func(view rui.View, event rui.PointerEvent) // // where: // - view - Interface of a view which generated this event, // - event - Pointer event. // // Allowed listener formats: // // func(event rui.PointerEvent) // func(view rui.View) // func() PointerDown PropertyName = "pointer-down" // PointerUp is the constant for "pointer-up" property tag. // // Used by View. // Is fired when a pointer is no longer active. // // General listener format: // // func(view rui.View, event rui.PointerEvent) // // where: // - view - Interface of a view which generated this event, // - event - Pointer event. // // Allowed listener formats: // // func(event rui.PointerEvent) // func(view rui.View) // func() PointerUp PropertyName = "pointer-up" // PointerMove is the constant for "pointer-move" property tag. // // Used by View. // Is fired when a pointer changes coordinates. // // General listener format: // // func(view rui.View, event rui.PointerEvent) // // where: // - view - Interface of a view which generated this event, // - event - Pointer event. // // Allowed listener formats: // // func(event rui.PointerEvent) // func(view rui.View) // func() PointerMove PropertyName = "pointer-move" // PointerCancel is the constant for "pointer-cancel" property tag. // // Used by View. // Is fired if the pointer will no longer be able to generate events (for example the related device is deactivated). // // General listener format: // // func(view rui.View, event rui.PointerEvent) // // where: // - view - Interface of a view which generated this event, // - event - Pointer event. // // Allowed listener formats: // // func(event rui.PointerEvent) // func(view rui.View) // func() PointerCancel PropertyName = "pointer-cancel" // PointerOut is the constant for "pointer-out" property tag. // // Used by View. // Is fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing // the "pointer-up" event for a device that does not support hover (see "pointer-up"); after firing the "pointer-cancel" // event (see "pointer-cancel"); when a pen stylus leaves the hover range detectable by the digitizer. // // General listener format: // // func(view rui.View, event rui.PointerEvent) // // where: // - view - Interface of a view which generated this event, // - event - Pointer event. // // Allowed listener formats: // // func(event rui.PointerEvent) // func(view rui.View) // func() PointerOut PropertyName = "pointer-out" // PointerOver is the constant for "pointer-over" property tag. // // Used by View. // Is fired when a pointing device is moved into an view's hit test boundaries. // // General listener format: // // func(view rui.View, event rui.PointerEvent) // // where: // - view - Interface of a view which generated this event, // - event - Pointer event. // // Allowed listener formats: // // func(event rui.PointerEvent) // func(view rui.View) // func() PointerOver PropertyName = "pointer-over" )
Constants for View specific pointer events properties
const ( // ProgressBarMax is the constant for "progress-max" property tag. // // Used by ProgressBar. // Maximum value, default is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ProgressBarMax PropertyName = "progress-max" // ProgressBarValue is the constant for "progress-value" property tag. // // Used by ProgressBar. // Current value, default is 0. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ProgressBarValue PropertyName = "progress-value" )
Constants for ProgressBar specific properties and events
const ( // ID is the constant for "id" property tag. // // # Used by View, AnimationProperty. // // Usage in View: // Optional textual identifier for the view. Used to reference view from source code if needed. // // Supported types: string. // // # Usage in AnimationProperty: // // Specifies the animation identifier. Used only for animation script. // // Supported types: string. ID PropertyName = "id" // Style is the constant for "style" property tag. // // Used by ColumnSeparatorProperty, View, BorderProperty, OutlineProperty. // // # Usage in ColumnSeparatorProperty: // // Line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The separator will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a separator. // - 2 (DashedLine) or "dashed" - Dashed line as a separator. // - 3 (DottedLine) or "dotted" - Dotted line as a separator. // - 4 (DoubleLine) or "double" - Double line as a separator. // // # Usage in View: // // Sets the name of the style that is applied to the view when the "disabled" property is set to false or "style-disabled" // property is not defined. // // Supported types: string. // // # Usage in BorderProperty: // // Border line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. // // # Usage in OutlineProperty: // // Outline line style. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The outline will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as an outline. // - 2 (DashedLine) or "dashed" - Dashed line as an outline. // - 3 (DottedLine) or "dotted" - Dotted line as an outline. // - 4 (DoubleLine) or "double" - Double line as an outline. Style PropertyName = "style" // StyleDisabled is the constant for "style-disabled" property tag. // // Used by View. // Sets the name of the style that is applied to the view when the "disabled" property is set to true. // // Supported types: string. StyleDisabled PropertyName = "style-disabled" // Disabled is the constant for "disabled" property tag. // // Used by ViewsContainer. // Controls whether the view can receive focus and which style to use. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - View can't receive focus and "style-disabled" style will be used by the view. // - false, 0, "false", "no", "off", or "0" - View can receive focus and "style" style will be used by the view. Disabled PropertyName = "disabled" // Focusable is the constant for "focusable" property tag. // // Used by View. // Controls whether view can receive focus. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - View can have a focus. // - false, 0, "false", "no", "off", or "0" - View can't have a focus. Focusable PropertyName = "focusable" // Semantics is the constant for "semantics" property tag. // // Used by View. // Defines the semantic meaning of the view. This property may have no visible effect, but it allows search engines to // understand the structure of your application. It also helps to voice the interface to systems for people with // disabilities. // // Supported types: int, string. // // Values: // - 0 (DefaultSemantics) or "default" - Default semantics. // - 1 (ArticleSemantics) or "article" - Article semantics. // - 2 (SectionSemantics) or "section" - Section semantics. // - 3 (AsideSemantics) or "aside" - Aside semantics. // - 4 (HeaderSemantics) or "header" - Header semantics. // - 5 (MainSemantics) or "main" - Main semantics. // - 6 (FooterSemantics) or "footer" - Footer semantics. // - 7 (NavigationSemantics) or "navigation" - Navigation semantics. // - 8 (FigureSemantics) or "figure" - Figure semantics. // - 9 (FigureCaptionSemantics) or "figure-caption" - Figure caption semantics. // - 10 (ButtonSemantics) or "button" - Button semantics. // - 11 (ParagraphSemantics) or "p" - Paragraph semantics. // - 12 (H1Semantics) or "h1" - Heading level 1 semantics. // - 13 (H2Semantics) or "h2" - Heading level 2 semantics. // - 14 (H3Semantics) or "h3" - Heading level 3 semantics. // - 15 (H4Semantics) or "h4" - Heading level 4 semantics. // - 16 (H5Semantics) or "h5" - Heading level 5 semantics. // - 17 (H6Semantics) or "h6" - Heading level 6 semantics. // - 18 (BlockquoteSemantics) or "blockquote" - Blockquote semantics. // - 19 (CodeSemantics) or "code" - Code semantics. Semantics PropertyName = "semantics" // Visibility is the constant for "visibility" property tag. // // Used by View. // Specifies the visibility of the view. // // Supported types: int, string. // // Values: // - 0 (Visible) or "visible" - The view is visible. // - 1 (Invisible) or "invisible" - The view is invisible but takes up space. // - 2 (Gone) or "gone" - The view is invisible and does not take up space. Visibility PropertyName = "visibility" // ZIndex is the constant for "z-index" property tag. // // Used by View. // Sets the z-order of a positioned view. Overlapping views with a larger z-index cover those with a smaller one. // // Supported types: int, string. // // Values: // - negative value - Views with lower value will be behind views with higher value. // - not negative value - Views with higher value will be on top of views with lower value. ZIndex PropertyName = "z-index" // Opacity is the constant for "opacity" property tag. // // Used by View, FilterProperty. // // # Usage in View: // // In [1..0] range sets the opacity of view. Opacity is the degree to which content behind the view is hidden, and is the // opposite of transparency. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. // // # Usage in FilterProperty: // // Opacity is the degree to which content behind the view is hidden, and is the opposite of transparency. Value is in // range 0% to 100%, where 0% is fully transparent. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. Opacity PropertyName = "opacity" // Overflow is the constant for "overflow" property tag. // // Used by View. // Set the desired behavior for an element's overflow i.e. when an element's content is too big to fit in its block // formatting context in both directions. // // Supported types: int, string. // // Values: // - 0 (OverflowHidden) or "hidden" - The overflow is clipped, and the rest of the content will be invisible. // - 1 (OverflowVisible) or "visible" - The overflow is not clipped. The content renders outside the element's box. // - 2 (OverflowScroll) or "scroll" - The overflow is clipped, and a scrollbar is added to see the rest of the content. // - 3 (OverflowAuto) or "auto" - Similar to OverflowScroll, but it adds scrollbars only when necessary. Overflow PropertyName = "overflow" // Row is the constant for "row" property tag. // // Used by View. // Row of the view inside the container like GridLayout. // // Supported types: Range, int, string. // // Internal type is Range, other types converted to it during assignment. // // Conversion rules: // - int - set single value(index). // - string - can contain single integer value(index) or a range of integer values(indices), examples: "0", "0:3". Row PropertyName = "row" // Column is the constant for "column" property tag. // // Used by View. // Column of the view inside the container like GridLayout. // // Supported types: Range, int, string. // // Internal type is Range, other types converted to it during assignment. // // Conversion rules: // - int - set single value(index). // - string - can contain single integer value(index) or a range of integer values(indices), examples: "0", "0:3". Column PropertyName = "column" // Left is the constant for "left" property tag. // // Used by View, BoundsProperty, ClipShapeProperty. // // # Usage in View: // // Offset from left border of the container. Used only for views placed in an AbsoluteLayout. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in BoundsProperty: // // Left bound value. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in ClipShapeProperty: // // Specifies the left border position of inset clip shape. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Left PropertyName = "left" // Right is the constant for "right" property tag. // // Used by View, BoundsProperty, ClipShapeProperty. // // # Usage in View: // // Offset from right border of the container. Used only for views placed in an AbsoluteLayout. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in BoundsProperty: // // Right bound value. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in ClipShapeProperty: // // Specifies the right border position of inset clip shape. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Right PropertyName = "right" // Top is the constant for "top" property tag. // // Used by View, BoundsProperty, ClipShapeProperty. // // # Usage in View: // // Offset from top border of the container. Used only for views placed in an AbsoluteLayout. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in BoundsProperty: // // Top bound value. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in ClipShapeProperty: // // Specifies the top border position of inset clip shape. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Top PropertyName = "top" // Bottom is the constant for "bottom" property tag. // // Used by View, BoundsProperty, ClipShapeProperty. // // # Usage in View: // // Offset from bottom border of the container. Used only for views placed in an AbsoluteLayout. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in BoundsProperty: // // Bottom bound value. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in ClipShapeProperty: // // Specifies the bottom border position of inset clip shape. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Bottom PropertyName = "bottom" // Width is the constant for "width" property tag. // // Used by ColumnSeparatorProperty, View, BorderProperty, OutlineProperty. // // # Usage in ColumnSeparatorProperty: // // Line width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in View: // // Set a view's width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in BorderProperty: // // Border line width. // // Supported types: SizeUnit, string. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in OutlineProperty: // // Outline line width. // // Supported types: SizeUnit, string. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Width PropertyName = "width" // Height is the constant for "height" property tag. // // Used by View. // Set a view's height. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Height PropertyName = "height" // MinWidth is the constant for "min-width" property tag. // // Used by View. // Set a view's minimal width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MinWidth PropertyName = "min-width" // MinHeight is the constant for "min-height" property tag. // // Used by View. // Set a view's minimal height. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MinHeight PropertyName = "min-height" // MaxWidth is the constant for "max-width" property tag. // // Used by View. // Set a view's maximal width. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MaxWidth PropertyName = "max-width" // MaxHeight is the constant for "max-height" property tag. // // Used by View. // Set a view's maximal height. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MaxHeight PropertyName = "max-height" // Margin is the constant for "margin" property tag. // // Used by View. // Set the margin area on all four sides of an element. // // Supported types: BoundsProperty, Bounds, SizeUnit, float32, float64, int, string. // // Internal type could be BoundsProperty or SizeUnit depending on whether single value or multiple values has been set, other types converted to them during assignment. // See BoundsProperty, Bounds, SizeUnit for more information. // // Conversion rules: // - BoundsProperty - stored as is, no conversion performed. // - Bounds - new BoundsProperty will be created and corresponding values for top, right, bottom and left border will be set. // - SizeUnit - stored as is and the same value will be used for all borders. // - float - new SizeUnit will be created and the same value(in pixels) will be used for all borders. // - int - new SizeUnit will be created and the same value(in pixels) will be used for all borders. // - string - can contain one or four SizeUnit separated with comma(,). In case one value will be provided a new SizeUnit will be created and the same value will be used for all borders. If four values will be provided then they will be set respectively for top, right, bottom and left border. Margin PropertyName = "margin" // MarginLeft is the constant for "margin-left" property tag. // // Used by View. // Set the margin area on the left of a view. A positive value places it farther from its neighbors, while a negative // value places it closer. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MarginLeft PropertyName = "margin-left" // MarginRight is the constant for "margin-right" property tag. // // Used by View. // Set the margin area on the right of a view. A positive value places it farther from its neighbors, while a negative // value places it closer. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MarginRight PropertyName = "margin-right" // MarginTop is the constant for "margin-top" property tag. // // Used by View. // Set the margin area on the top of a view. A positive value places it farther from its neighbors, while a negative value // places it closer. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MarginTop PropertyName = "margin-top" // MarginBottom is the constant for "margin-bottom" property tag. // // Used by View. // Set the margin area on the bottom of a view. A positive value places it farther from its neighbors, while a negative // value places it closer. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. MarginBottom PropertyName = "margin-bottom" // Padding is the constant for "padding" property tag. // // Used by View. // Sets the padding area on all four sides of a view at once. An element's padding area is the space between its content // and its border. // // Supported types: BoundsProperty, Bounds, SizeUnit, float32, float64, int, string. // // Internal type could be BoundsProperty or SizeUnit depending on whether single value or multiple values has been set, other types converted to them during assignment. // See BoundsProperty, Bounds, SizeUnit for more information. // // Conversion rules: // - BoundsProperty - stored as is, no conversion performed. // - Bounds - new BoundsProperty will be created and corresponding values for top, right, bottom and left border will be set. // - SizeUnit - stored as is and the same value will be used for all borders. // - float - new SizeUnit will be created and the same value(in pixels) will be used for all borders. // - int - new SizeUnit will be created and the same value(in pixels) will be used for all borders. // - string - can contain one or four SizeUnit separated with comma(,). In case one value will be provided a new SizeUnit will be created and the same value will be used for all borders. If four values will be provided then they will be set respectively for top, right, bottom and left border. Padding PropertyName = "padding" // PaddingLeft is the constant for "padding-left" property tag. // // Used by View. // Set the width of the padding area to the left of a view. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. PaddingLeft PropertyName = "padding-left" // PaddingRight is the constant for "padding-right" property tag. // // Used by View. // Set the width of the padding area to the right of a view. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. PaddingRight PropertyName = "padding-right" // PaddingTop is the constant for "padding-top" property tag. // // Used by View. // Set the height of the padding area to the top of a view. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. PaddingTop PropertyName = "padding-top" // PaddingBottom is the constant for "padding-bottom" property tag. // // Used by View. // Set the height of the padding area to the bottom of a view. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. PaddingBottom PropertyName = "padding-bottom" // AccentColor is the constant for "accent-color" property tag. // // Used by View. // Sets the accent color for UI controls generated by some elements. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. AccentColor PropertyName = "accent-color" // BackgroundColor is the constant for "background-color" property tag. // // Used by View. // Set the background color of a view. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BackgroundColor PropertyName = "background-color" // Background is the constant for "background" property tag. // // Used by View. // Set one or more background images and/or gradients for the view. // // Supported types: BackgroundElement, []BackgroundElement, string. // // Internal type is []BackgroundElement, other types converted to it during assignment. // See BackgroundElement description for more details. // // Conversion rules: // - string - must contain text representation of background element(s) like in resource files. Background PropertyName = "background" // Mask is the constant for "mask" property tag. // // Used by View. // Set one or more images and/or gradients as the view mask. // As mask is used only alpha channel of images and/or gradients. // // Supported types: BackgroundElement, []BackgroundElement, string. // // Internal type is []BackgroundElement, other types converted to it during assignment. // See BackgroundElement description for more details. // // Conversion rules: // - string - must contain text representation of background element(s) like in resource files. Mask PropertyName = "mask" // Cursor is the constant for "cursor" property tag. // // Used by View. // Sets the type of mouse cursor, if any, to show when the mouse pointer is over the view. // // Supported types: int, string. // // Values: // - 0 or "auto" - Auto cursor. // - 1 or "default" - Default cursor. // - 2 or "none" - None cursor. // - 3 or "context-menu" - Context menu cursor. // - 4 or "help" - Help cursor. // - 5 or "pointer" - Pointer cursor. // - 6 or "progress" - Progress cursor. // - 7 or "wait" - Wait cursor. // - 8 or "cell" - Cell cursor. // - 9 or "crosshair" - Crosshair cursor. // - 10 or "text" - Text cursor. // - 11 or "vertical-text" - Vertical text cursor. // - 12 or "alias" - Alias cursor. // - 13 or "copy" - Copy cursor. // - 14 or "move" - Move cursor. // - 15 or "no-drop" - No drop cursor. // - 16 or "not-allowed" - Not allowed cursor. // - 17 or "e-resize" - Resize cursor. // - 18 or "n-resize" - Resize cursor. // - 19 or "ne-resize" - Resize cursor. // - 20 or "nw-resize" - Resize cursor. // - 21 or "s-resize" - Resize cursor. // - 22 or "se-resize" - Resize cursor. // - 23 or "sw-resize" - Resize cursor. // - 24 or "w-resize" - Resize cursor. // - 25 or "ew-resize" - Resize cursor. // - 26 or "ns-resize" - Resize cursor. // - 27 or "nesw-resize" - Resize cursor. // - 28 or "nwse-resize" - Resize cursor. // - 29 or "col-resize" - Col resize cursor. // - 30 or "row-resize" - Row resize cursor. // - 31 or "all-scroll" - All scroll cursor. // - 32 or "zoom-in" - Zoom in cursor. // - 33 or "zoom-out" - Zoom out cursor. // - 34 or "grab" - Grab cursor. // - 35 or "grabbing" - Grabbing cursor. Cursor PropertyName = "cursor" // Border is the constant for "border" property tag. // // Used by View. // Set a view's border. It sets the values of a border width, style, and color. // // Supported types: BorderProperty, ViewBorder, ViewBorders. // // Internal type is BorderProperty, other types converted to it during assignment. // See BorderProperty, ViewBorder, ViewBorders description for more details. // // Conversion rules: // - ViewBorder - style, width and color applied to all borders and stored in internal implementation of BorderProperty. // - ViewBorders - style, width and color of each border like top, right, bottom and left applied to related borders, stored in internal implementation of BorderProperty. Border PropertyName = "border" // BorderLeft is the constant for "border-left" property tag. // // Used by View. // Set a view's left border. It sets the values of a border width, style, and color. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder, BorderProperty description for more details. BorderLeft PropertyName = "border-left" // BorderRight is the constant for "border-right" property tag. // // Used by View. // Set a view's right border. It sets the values of a border width, style, and color. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder, BorderProperty description for more details. BorderRight PropertyName = "border-right" // BorderTop is the constant for "border-top" property tag. // // Used by View. // Set a view's top border. It sets the values of a border width, style, and color. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder, BorderProperty description for more details. BorderTop PropertyName = "border-top" // BorderBottom is the constant for "border-bottom" property tag. // // Used by View. // Set a view's bottom border. It sets the values of a border width, style, and color. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder, BorderProperty description for more details. BorderBottom PropertyName = "border-bottom" // BorderStyle is the constant for "border-style" property tag. // // Used by View. // Set the line style for all four sides of a view's border. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. BorderStyle PropertyName = "border-style" // BorderLeftStyle is the constant for "border-left-style" property tag. // // Used by View. // Set the line style of a view's left border. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. BorderLeftStyle PropertyName = "border-left-style" // BorderRightStyle is the constant for "border-right-style" property tag. // // Used by View. // Set the line style of a view's right border. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. BorderRightStyle PropertyName = "border-right-style" // BorderTopStyle is the constant for "border-top-style" property tag. // // Used by View. // Set the line style of a view's top border. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. BorderTopStyle PropertyName = "border-top-style" // BorderBottomStyle is the constant for "border-bottom-style" property tag. // // Used by View. // Sets the line style of a view's bottom border. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. BorderBottomStyle PropertyName = "border-bottom-style" // BorderWidth is the constant for "border-width" property tag. // // Used by View. // Set the line width for all four sides of a view's border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. BorderWidth PropertyName = "border-width" // BorderLeftWidth is the constant for "border-left-width" property tag. // // Used by View. // Set the line width of a view's left border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. BorderLeftWidth PropertyName = "border-left-width" // BorderRightWidth is the constant for "border-right-width" property tag. // // Used by View. // Set the line width of a view's right border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. BorderRightWidth PropertyName = "border-right-width" // BorderTopWidth is the constant for "border-top-width" property tag. // // Used by View. // Set the line width of a view's top border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. BorderTopWidth PropertyName = "border-top-width" // BorderBottomWidth is the constant for "border-bottom-width" property tag. // // Used by View. // Set the line width of a view's bottom border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. BorderBottomWidth PropertyName = "border-bottom-width" // BorderColor is the constant for "border-color" property tag. // // Used by View. // Set the line color for all four sides of a view's border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BorderColor PropertyName = "border-color" // BorderLeftColor is the constant for "border-left-color" property tag. // // Used by View. // Set the line color of a view's left border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BorderLeftColor PropertyName = "border-left-color" // BorderRightColor is the constant for "border-right-color" property tag. // // Used by View. // Set the line color of a view's right border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BorderRightColor PropertyName = "border-right-color" // BorderTopColor is the constant for "border-top-color" property tag. // // Used by View. // Set the line color of a view's top border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BorderTopColor PropertyName = "border-top-color" // BorderBottomColor is the constant for "border-bottom-color" property tag. // // Used by View. // Set the line color of a view's bottom border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. BorderBottomColor PropertyName = "border-bottom-color" // Outline is the constant for "outline" property tag. // // Used by View. // Set a view's outline. It sets the values of an outline width, style, and color. // // Supported types: OutlineProperty, ViewOutline, ViewBorder. // // Internal type is OutlineProperty, other types converted to it during assignment. // See OutlineProperty, ViewOutline and ViewBorder description for more details. Outline PropertyName = "outline" // OutlineStyle is the constant for "outline-style" property tag. // // Used by View. // Set the style of an view's outline. // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The outline will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as an outline. // - 2 (DashedLine) or "dashed" - Dashed line as an outline. // - 3 (DottedLine) or "dotted" - Dotted line as an outline. // - 4 (DoubleLine) or "double" - Double line as an outline. OutlineStyle PropertyName = "outline-style" // OutlineColor is the constant for "outline-color" property tag. // // Used by View. // Set the color of an view's outline. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. OutlineColor PropertyName = "outline-color" // OutlineWidth is the constant for "outline-width" property tag. // // Used by View. // Set the width of an view's outline. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. OutlineWidth PropertyName = "outline-width" // OutlineOffset is the constant for "outline-offset" property tag. // // Used by View. // Set the amount of space between an outline and the edge or border of a view. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. OutlineOffset PropertyName = "outline-offset" // Shadow is the constant for "shadow" property tag. // // Used by View. // Adds shadow effects around a view's frame. A shadow is described by X and Y offsets relative to the element, blur, // spread radius and color. // // Supported types: ShadowProperty, []ShadowProperty, string. // // Internal type is []ShadowProperty, other types converted to it during assignment. // See ShadowProperty description for more details. // // Conversion rules: // - []ShadowProperty - stored as is. no conversion performed. // - ShadowProperty - converted to []ShadowProperty during assignment. // - string - must contain a string representation of ShadowProperty Shadow PropertyName = "shadow" // FontName is the constant for "font-name" property tag. // // Used by View. // Specifies a prioritized list of one or more font family names and/or generic family names for the view. Values are // separated by commas to indicate that they are alternatives. This is an inherited property, i.e. if it is not defined, // then the value of the parent view is used. // // Supported types: string. FontName PropertyName = "font-name" // TextColor is the constant for "text-color" property tag. // // Used by View. // Set the foreground color value of a view's text and text decorations. This is an inherited property, i.e. if it is not // defined, then the value of the parent view is used. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. TextColor PropertyName = "text-color" // TextSize is the constant for "text-size" property tag. // // Used by View. // Set the size of the font. This is an inherited property, i.e. if it is not defined, then the value of the parent view // is used. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. TextSize PropertyName = "text-size" // Italic is the constant for "italic" property tag. // // Used by View. // Controls whether the text is displayed in italics. This is an inherited property, i.e. if it is not defined, then the // value of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Text is displayed in italics. // - false, 0, "false", "no", "off", or "0" - Normal text. Italic PropertyName = "italic" // SmallCaps is the constant for "small-caps" property tag. // // Used by View. // Controls whether to use small caps characters while displaying the text. This is an inherited property, i.e. if it is // not defined, then the value of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Text displayed using small caps. // - false, 0, "false", "no", "off", or "0" - Normal text display. SmallCaps PropertyName = "small-caps" // Strikethrough is the constant for "strikethrough" property tag. // // Used by View. // Controls whether to draw line over the text. This is an inherited property, i.e. if it is not defined, then the value // of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Draw line over the text. // - false, 0, "false", "no", "off", or "0" - Normal text display. Strikethrough PropertyName = "strikethrough" // Overline is the constant for "overline" property tag. // // Used by View. // Controls whether the line needs to be displayed on top of the text. This is an inherited property, i.e. if it is not // defined, then the value of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Overline text. // - false, 0, "false", "no", "off", or "0" - No overline. Overline PropertyName = "overline" // Underline is the constant for "underline" property tag. // // Used by View. // Controls whether to draw line below the text, This is an inherited property, i.e. if it is not defined, then the value // of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Draw line below the text. // - false, 0, "false", "no", "off", or "0" - Normal text display. Underline PropertyName = "underline" // TextLineThickness is the constant for "text-line-thickness" property tag. // // Used by View. // Set the stroke thickness of the decoration line that is used on text in an element, such as a strikethrough, underline, // or overline. This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. TextLineThickness PropertyName = "text-line-thickness" // TextLineStyle is the constant for "text-line-style" property tag. // // Used by View. // Set the style of the lines specified by "strikethrough", "overline" and "underline" properties. This is an inherited // property, i.e. if it is not defined, then the value of the parent view is used. // // Supported types: int, string. // // Values: // - 1 (SolidLine) or "solid" - Solid line as a text line. // - 2 (DashedLine) or "dashed" - Dashed line as a text line. // - 3 (DottedLine) or "dotted" - Dotted line as a text line. // - 4 (DoubleLine) or "double" - Double line as a text line. // - 5 (WavyLine) or "wavy" - Wavy line as a text line. TextLineStyle PropertyName = "text-line-style" // TextLineColor is the constant for "text-line-color" property tag. // // Used by View. // Sets the color of the lines specified by "strikethrough", "overline" and "underline" properties. This is an inherited // property, i.e. if it is not defined, then the value of the parent view is used. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. TextLineColor PropertyName = "text-line-color" // TextWeight is the constant for "text-weight" property tag. // // Used by View. // Sets weight of the text. // // Supported types: int, string. // // Values: // - 1 (ThinFont) or "thin" - Thin font. // - 2 (ExtraLightFont) or "extra-light" - Extra light font. // - 3 (LightFont) or "light" - Light font. // - 4 (NormalFont) or "normal" - Normal font. // - 5 (MediumFont) or "medium" - Medium font. // - 6 (SemiBoldFont) or "semi-bold" - Semi-bold font. // - 7 (BoldFont) or "bold" - Bold font. // - 8 (ExtraBoldFont) or "extra-bold" - Extra bold font. // - 9 (BlackFont) or "black" - Black font. TextWeight PropertyName = "text-weight" // TextAlign is the constant for "text-align" property tag. // // Used by TableView, View. // // Usage in TableView: // Sets the horizontal alignment of the content inside a table cell. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (JustifyAlign) or "justify" - Justify alignment. // // Usage in View: // Alignment of the text in view. This is an inherited property, i.e. if it is not defined, then the value of the parent // view is used. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (JustifyAlign) or "justify" - Justify alignment. TextAlign PropertyName = "text-align" // TextIndent is the constant for "text-indent" property tag. // // Used by View. // Determines the size of the indent(empty space) before the first line of text. This is an inherited property, i.e. if it // is not defined, then the value of the parent view is used. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. TextIndent PropertyName = "text-indent" // TextShadow is the constant for "text-shadow" property tag. // // Used by View. // Specify shadow for the text. // // Supported types: ShadowProperty, []ShadowProperty, string. // // Internal type is []ShadowProperty, other types converted to it during assignment. // See ShadowProperty description for more details. // // Conversion rules: // - []ShadowProperty - stored as is. no conversion performed. // - ShadowProperty - converted to []ShadowProperty during assignment. // - string - must contain a string representation of ShadowProperty TextShadow PropertyName = "text-shadow" // TextWrap is the constant for "text-wrap" property tag. // // Used by View. // Controls how text inside the view is wrapped. Default value is "wrap". // // Supported types: int, string. // // Values: // - 0 (TextWrapOn) or "wrap" - Text is wrapped across lines at appropriate characters (for example spaces, in languages like English that use space separators) to minimize overflow. // - 1 (TextWrapOff) or "nowrap" - Text does not wrap across lines. It will overflow its containing element rather than breaking onto a new line. // - 2 (TextWrapBalance) or "balance" - Text is wrapped in a way that best balances the number of characters on each line, enhancing layout quality and legibility. Because counting characters and balancing them across multiple lines is computationally expensive, this value is only supported for blocks of text spanning a limited number of lines (six or less for Chromium and ten or less for Firefox). TextWrap PropertyName = "text-wrap" // TabSize is the constant for "tab-size" property tag. // // Used by View. // Set the width of tab characters (U+0009) in spaces. This is an inherited property, i.e. if it is not defined, then the // value of the parent view is used. Default value is 8. // // Supported types: int, string. // // Values: // - greater than 0 - Number of spaces in tab character. // - 0 or negative - ignored. TabSize PropertyName = "tab-size" // LetterSpacing is the constant for "letter-spacing" property tag. // // Used by View. // Set the horizontal spacing behavior between text characters. This value is added to the natural spacing between // characters while rendering the text. Positive values of letter-spacing causes characters to spread farther apart, while // negative values of letter-spacing bring characters closer together. This is an inherited property, i.e. if it is not // defined, then the value of the parent view is used. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. LetterSpacing PropertyName = "letter-spacing" // WordSpacing is the constant for "word-spacing" property tag. // // Used by View. // Set the length of space between words and between tags. This is an inherited property, i.e. if it is not defined, then // the value of the parent view is used. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. WordSpacing PropertyName = "word-spacing" // LineHeight is the constant for "line-height" property tag. // // Used by View. // Set the height of a line box. It's commonly used to set the distance between lines of text. This is an inherited // property, i.e. if it is not defined, then the value of the parent view is used. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. LineHeight PropertyName = "line-height" // WhiteSpace is the constant for "white-space" property tag. // // Used by View. // Sets how white space inside an element is handled. This is an inherited property, i.e. if it is not defined, then the // value of the parent view is used. // // Supported types: int, string. // // Values: // - 0 (WhiteSpaceNormal) or "normal" - Sequences of spaces are concatenated into one space. // Newlines in the source are treated as a single space. Applying this value optionally splits lines to fill inline boxes. // - 1 (WhiteSpaceNowrap) or "nowrap" - Concatenates sequences of spaces into one space, like a normal value, but does not wrap lines(text wrapping) within the text. // - 2 (WhiteSpacePre) or "pre" - Sequences of spaces are saved as they are specified in the source. // Lines are wrapped only where newlines are specified in the source and where "br" elements are specified in the source. // - 3 (WhiteSpacePreWrap) or "pre-wrap" - Sequences of spaces are saved as they are indicated in the source. // Lines are wrapped only where newlines are specified in the source and there, where "br" elements are specified in the source, and optionally to fill inline boxes. // - 4 (WhiteSpacePreLine) or "pre-line" - Sequences of spaces are concatenated into one space. Lines are split on newlines, on "br" elements, and optionally to fill inline boxes. // - 5 (WhiteSpaceBreakSpaces) or "break-spaces" - The behavior is identical to WhiteSpacePreWrap with the some differences. // // Differences WhiteSpaceBreakSpaces (5) from WhiteSpacePreWrap(3): // 1. Sequences of spaces are preserved as specified in the source, including spaces at the end of lines. // 2. Lines are wrapped on any spaces, including in the middle of a sequence of spaces. // 3. Spaces take up space and do not hang at the ends of lines, which means they affect the internal dimensions (min-content and max-content). WhiteSpace PropertyName = "white-space" // WordBreak is the constant for "word-break" property tag. // // Used by View. // Set whether line breaks appear wherever the text would otherwise overflow its content box. This is an inherited // property, i.e. if it is not defined, then the value of the parent view is used. Default value is "normal". // // Supported types: int, string. // // Values: // - 0 (WordBreakNormal) or "normal" - Default behavior for linefeed placement. // - 1 (WordBreakAll) or "break-all" - If the block boundaries are exceeded, a line break will be inserted between any two characters(except for Chinese/Japanese/Korean text). // - 2 (WordBreakKeepAll) or "keep-all" - Line break will not be used in Chinese/Japanese/ Korean text. For text in other languages, the default behavior(normal) will be applied. // - 3 (WordBreakWord) or "break-word" - When the block boundaries are exceeded, the remaining whole words can be broken in an arbitrary place, if a more suitable place for line break is not found. WordBreak PropertyName = "word-break" // TextTransform is the constant for "text-transform" property tag. // // Used by View. // Specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or // with each word capitalized. This is an inherited property, i.e. if it is not defined, then the value of the parent view // is used. // // Supported types: int, string. // // Values: // - 0 (NoneTextTransform) or "none" - Original case of characters. // - 1 (CapitalizeTextTransform) or "capitalize" - Every word starts with a capital letter. // - 2 (LowerCaseTextTransform) or "lowercase" - All characters are lowercase. // - 3 (UpperCaseTextTransform) or "uppercase" - All characters are uppercase. TextTransform PropertyName = "text-transform" // TextDirection is the constant for "text-direction" property tag. // // Used by View. // Sets the direction of text, table columns, and horizontal overflow. This is an inherited property, i.e. if it is not // defined, then the value of the parent view is used. Default value is "system". // // Supported types: int, string. // // Values: // - 0 (SystemTextDirection) or "system" - Use the system text direction. // - 1 (LeftToRightDirection) or "left-to-right" - For languages written from left to right (like English and most other languages). // - 2 (RightToLeftDirection) or "right-to-left" - For languages written from right to left (like Hebrew or Arabic). TextDirection PropertyName = "text-direction" // WritingMode is the constant for "writing-mode" property tag. // // Used by View. // Set whether lines of text are laid out horizontally or vertically, as well as the direction in which blocks progress. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. Default value is // "horizontal-top-to-bottom". // // Supported types: int, string. // // Values: // - 0 (HorizontalTopToBottom) or "horizontal-top-to-bottom" - Horizontal lines are displayed from top to bottom. // - 1 (HorizontalBottomToTop) or "horizontal-bottom-to-top" - Horizontal lines are displayed from bottom to top. // - 2 (VerticalRightToLeft) or "vertical-right-to-left" - Vertical lines are output from right to left. // - 3 (VerticalLeftToRight) or "vertical-left-to-right" - Vertical lines are output from left to right. WritingMode PropertyName = "writing-mode" // VerticalTextOrientation is the constant for "vertical-text-orientation" property tag. // // Used by View. // Set the orientation of the text characters in a line. It only affects text in vertical mode ("writing-mode" property). // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. // // Supported types: int, string. // // Values: // - 0 (MixedTextOrientation) or "mixed" - Symbols rotated 90° clockwise. // - 1 (UprightTextOrientation) or "upright" - Symbols are arranged normally(vertically). VerticalTextOrientation PropertyName = "vertical-text-orientation" // TextOverflow is the constant for "text-overflow" property tag. // // Used by TextView. // Sets how hidden overflow content is signaled to users. Default value is "clip". // // Supported types: int, string. // // Values: // - 0 (TextOverflowClip) or "clip" - Text is clipped at the border. // - 1 (TextOverflowEllipsis) or "ellipsis" - At the end of the visible part of the text "…" is displayed. TextOverflow PropertyName = "text-overflow" // Hint is the constant for "hint" property tag. // // Used by EditView. // Sets a hint to the user of what can be entered in the control. // // Supported types: string. Hint PropertyName = "hint" // MaxLength is the constant for "max-length" property tag. // // Used by EditView. // Sets the maximum number of characters that the user can enter. // // Supported types: int, string. // // Values: // - positive value - Maximum number of characters. // - 0 or negative value - The maximum number of characters is not limited. MaxLength PropertyName = "max-length" // ReadOnly is the constant for "readonly" property tag. // // Used by EditView. // Controls whether the user can modify value or not. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - User not able to modify the value. // - false, 0, "false", "no", "off", or "0" - Value can be modified. ReadOnly PropertyName = "readonly" // Content is the constant for "content" property tag. // // Used by ViewsContainer, GridLayout, ListLayout, Resizable, StackLayout, SvgImageView, TableView. // // # Usage in ViewsContainer: // // An array of child views. // // Supported types: View, []View, string, []string, []any containing elements of View, string. // // Internal type is []View, other types converted to it during assignment. // // Conversion rules: // - View - converted to []View containing one element. // - []View - nil-elements are prohibited, if the array contains nil, then the property will not be set, and the Set function will return false and an error message will be written to the log. // - string - if the string is a text representation of the View, then the corresponding view is created, otherwise a TextView is created, to which the given string is passed as a text. Then a []View is created containing the resulting view. // - []string - each element of an array is converted to View as described above. // - []any - this array must contain only View and a string. Each string element is converted to a view as described above. If array contains invalid values, the "content" property will not be set, and the Set function will return false and an error message will be written to the log. // // # Usage in GridLayout: // // Defines an array of child views or can be an implementation of GridAdapter interface. // // Supported types: []View, GridAdapter, View, string, []string. // // Internal type is either []View or GridAdapter, other types converted to []View during assignment. // // Conversion rules: // - View - view which describe one cell, converted to []View. // - []View - describe several cells, stored as is. // - string - text representation of the view which describe one cell, converted to []View. // - []string - an array of text representation of the views which describe several cells, converted to []View. // - GridAdapter - interface which describe several cells, see GridAdapter description for more details. // // # Usage in ListLayout: // // Defines an array of child views or can be an implementation of ListAdapter interface. // // Supported types: []View, ListAdapter, View, string, []string. // // Internal type is either []View or ListAdapter, other types converted to []View during assignment. // // Conversion rules: // - View - view which describe one item, converted to []View. // - []View - describe several items, stored as is. // - string - text representation of the view which describe one item, converted to []View. // - []string - an array of text representation of the views which describe several items, converted to []View. // - ListAdapter - interface which describe several items, see ListAdapter description for more details. // // # Usage in Resizable: // // Content view to make it resizable or text in this case TextView will be created. // // Supported types: View, string. // // Internal type is View, other types converted to it during assignment. // // Usage in StackLayout: // An array of child views. // // Supported types: View, []View, string, []string, []any containing elements of View, string. // // Internal type is []View, other types converted to it during assignment. // // Conversion rules: // - View - converted to []View containing one element. // - []View - nil-elements are prohibited, if the array contains nil, then the property will not be set, and the Set function will return false and an error message will be written to the log. // - string - if the string is a text representation of the View, then the corresponding view is created, otherwise a TextView is created, to which the given string is passed as a text. Then a []View is created containing the resulting view. // - []string - each element of an array is converted to View as described above. // - []any - this array must contain only View and a string. Each string element is converted to a view as described above. If array contains invalid values, the "content" property will not be set, and the Set function will return false and an error message will be written to the log. // // # Usage in SvgImageView: // // Image to display. Could be the image file name in the images folder of the resources, image URL or content of the svg image. // // Supported types: string. // // # Usage in TableView: // // Defines the content of the table. // // Supported types: TableAdapter, [][]string, [][]any. // // Internal type is TableAdapter, other types converted to it during assignment. // See TableAdapter description for more details. Content PropertyName = "content" // Items is the constant for "items" property tag. // // Used by DropDownList, ListView, Popup. // // # Usage in DropDownList: // // Array of data elements. // // Supported types: []string, string, []fmt.Stringer, []Color, []SizeUnit, []AngleUnit, []any containing // elements of string, fmt.Stringer, bool, rune, float32, float64, int, int8…int64, uint, uint8…uint64. // // Internal type is []string, other types converted to it during assignment. // // Conversion rules: // - string - contain single item. // - []string - an array of items. // - []fmt.Stringer - an array of objects convertible to string. // - []Color - An array of color values which will be converted to a string array. // - []SizeUnit - an array of size unit values which will be converted to a string array. // - []any - this array must contain only types which were listed in Types section. // // # Usage in ListView: // // List content. Main value is an implementation of ListAdapter interface. // // Supported types: ListAdapter, []View, []string, []any containing elements of View, string, fmt.Stringer, float and int. // // Internal type is either []View or ListAdapter, other types converted to it during assignment. // // Conversion rules: // - ListAdapter - interface which provides an access to list items and other information, stored as is. // - []View - an array of list items, each in a form of some view-based element. Stored as is. // - []string - an array of text. Converted into an internal implementation of ListAdapter, each list item will be an instance of TextView. // - []any - an array of items of arbitrary type, where types like string, fmt.Stringer, float and int will be converted to TextView. View type will remain unchanged. All values after conversion will be wrapped by internal implementation of ListAdapter. // // # Usage in Popup: // // Array of menu items. // // Supported types: ListAdapter, []string. // // Internal type is ListAdapter internal implementation, other types converted to it during assignment. Items PropertyName = "items" // DisabledItems is the constant for "disabled-items" property tag. // // Used by DropDownList. // An array of disabled(non selectable) items indices. // // Supported types: []int, string, []string, []any containing elements of string or int. // // Internal type is []int, other types converted to it during assignment. // Rules of conversion. // - []int - Array of indices. // - string - Single index value or multiple index values separated by comma(,). // - []string - Array of indices in text format. // - []any - Array of strings or integer values. DisabledItems PropertyName = "disabled-items" // ItemSeparators is the constant for "item-separators" property tag. // // Used by DropDownList. // An array of indices of DropDownList items after which a separator should be added. // // Supported types: []int, string, []string, []any containing elements of string or int. // // Internal type is []int, other types converted to it during assignment. // Rules of conversion. // - []int - Array of indices. // - string - Single index value or multiple index values separated by comma(,). // - []string - Array of indices in text format. // - []any - Array of strings or integer values. ItemSeparators PropertyName = "item-separators" // Current is the constant for "current" property tag. // // Used by DropDownList, ListView, TableView, TabsLayout. // // # Usage in DropDownList: // // Current selected item. // // Supported types: int, string. // // Values: // - negative value - No item has been selected. // - not negative value - Index of selected item. // // # Usage in ListView: // // Set or get index of selected item. // // Supported types: int, string. // // Values: // - negative value - No item has been selected. // - not negative value - Index of selected item. // // # Usage in TableView: // // Sets the coordinates of the selected cell/row. // // Supported types: CellIndex, int, string. // // Internal type is CellIndex, other types converted to it during assignment. // See CellIndex description for more details. // // Conversion rules: // - int - specify index of current table row, current column index will be set to -1. // - string - can be one integer value which specify current row or pair of integer values separated by comma(,). When two values provided then first value specify current row index and second one specify column index. // // # Usage in TabsLayout: // // Defines index of the current active child view. // // Supported types: int, string. // // Values: // - negative value - No visible tab. // - not negative value - Index of visible tab. Current PropertyName = "current" // Type is the constant for "type" property tag. // // Used by EditView, NumberPicker. // // Usage in EditView: // Same as "edit-view-type" [EditViewType]. // // Usage in NumberPicker: // Same as "number-picker-type" [NumberPickerType]. Type PropertyName = "type" // Pattern is the constant for "pattern" property tag. // // Used by EditView. // Same as "edit-view-pattern" [EditViewPattern]. Pattern PropertyName = "pattern" // GridAutoFlow is the constant for "grid-auto-flow" property tag. // // Used by GridLayout. // Controls how to place child controls if Row and Column properties were not set for children views. // // Supported types: int, string. // // Values: // - 0 (RowAutoFlow) or "row" - Views are placed by filling each row in turn, adding new rows as necessary. // - 1 (ColumnAutoFlow) or "column" - Views are placed by filling each column in turn, adding new columns as necessary. // - 2 (RowDenseAutoFlow) or "row-dense" - Views are placed by filling each row, adding new rows as necessary. "dense" packing algorithm attempts to fill in holes earlier in the grid, if smaller items come up later. This may cause views to appear out-of-order, when doing so would fill in holes left by larger views. // - 3 (ColumnDenseAutoFlow) or "column-dense" - Views are placed by filling each column, adding new columns as necessary. "dense" packing algorithm attempts to fill in holes earlier in the grid, if smaller items come up later. This may cause views to appear out-of-order, when doing so would fill in holes left by larger views. GridAutoFlow PropertyName = "grid-auto-flow" // CellWidth is the constant for "cell-width" property tag. // // Used by GridLayout: // Set a fixed width of GridLayout cells regardless of the size of the child elements. Each element in the array // determines the size of the corresponding column. By default, the sizes of the cells are calculated based on the sizes // of the child views placed in them. // // Supported types: SizeUnit, []SizeUnit, SizeFunc, string, []string, []any containing elements of string or // SizeUnit. // // Internal type is either SizeUnit or []SizeUnit, other types converted to it during assignment. // // Conversion rules: // - SizeUnit, SizeFunc - stored as is and all cells are set to have the same width. // - []SizeUnit - stored as is and each column of the grid layout has width which is specified in an array. // - string - containing textual representations of SizeUnit (or SizeUnit constants), may contain several values separated by comma(,). Each column of the grid layout has width which is specified in an array. // - []string - each element must be a textual representation of a SizeUnit (or a SizeUnit constant). Each column of the grid layout has width which is specified in an array. // If the number of elements in an array is less than the number of columns used, then the missing elements are set to have Auto size. // // The values can use SizeUnit type SizeInFraction. This type means 1 part. The part is calculated as follows: the size of all cells that are not of type SizeInFraction is subtracted from the size of the container, and then the remaining size is divided by the number of parts. The SizeUnit value of type SizeInFraction can be either integer or fractional. CellWidth PropertyName = "cell-width" // CellHeight is the constant for "cell-height" property tag. // // Used by GridLayout: // Set a fixed height of GridLayout cells regardless of the size of the child elements. Each element in the array // determines the size of the corresponding row. By default, the sizes of the cells are calculated based on the sizes of // the child views placed in them. // // Supported types: SizeUnit, []SizeUnit, SizeFunc, string, []string, []any containing elements of string or // SizeUnit. // // Internal type is either SizeUnit or []SizeUnit, other types converted to it during assignment. // // Conversion rules: // - SizeUnit, SizeFunc - stored as is and all cells are set to have the same height. // - []SizeUnit - stored as is and each row of the grid layout has height which is specified in an array. // - string - containing textual representations of SizeUnit (or SizeUnit constants), may contain several values separated by comma(,). Each row of the grid layout has height which is specified in an array. // - []string - each element must be a textual representation of a SizeUnit (or a SizeUnit constant). Each row of the grid layout has height which is specified in an array. // If the number of elements in an array is less than the number of rows used, then the missing elements are set to have Auto size. // // The values can use SizeUnit type SizeInFraction. This type means 1 part. The part is calculated as follows: the size of all cells that are not of type SizeInFraction is subtracted from the size of the container, and then the remaining size is divided by the number of parts. The SizeUnit value of type SizeInFraction can be either integer or fractional. CellHeight PropertyName = "cell-height" // GridRowGap is the constant for "grid-row-gap" property tag. // // Used by GridLayout. // Space between rows. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. GridRowGap PropertyName = "grid-row-gap" // GridColumnGap is the constant for "grid-column-gap" property tag. // // Used by GridLayout. // Space between columns. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. GridColumnGap PropertyName = "grid-column-gap" // Source is the constant for "src" property tag. // // Used by AudioPlayer, ImageView, VideoPlayer. // // # Usage in AudioPlayer // // Specifies the location of the media file(s). Since different browsers support different file formats and codecs, it is // recommended to specify multiple sources in different formats. The player chooses the most suitable one from the list of // sources. Setting mime types makes this process easier for the browser. // // Supported types: string, MediaSource, []MediaSource. // // Internal type is []MediaSource, other types converted to it during assignment. // // # Usage in ImageView // // Set either the name of the image in the "images" folder of the resources, or the URL of the image or inline-image. An // inline-image is the content of an image file encoded in base64 format. // // Supported types: string. // // # Usage in VideoPlayer // // Specifies the location of the media file(s). Since different browsers support different file formats and codecs, it is // recommended to specify multiple sources in different formats. The player chooses the most suitable one from the list of // sources. Setting mime types makes this process easier for the browser. // // Supported types: string, MediaSource, []MediaSource. // // Internal type is []MediaSource, other types converted to it during assignment. Source PropertyName = "src" // SrcSet is the constant for "srcset" property tag. // // Used by ImageView. // String which identifies one or more image candidate strings, separated using comma(,) each specifying image resources // to use under given screen density. This property is only used if building an application for js/wasm platform. // // Supported types: string. SrcSet PropertyName = "srcset" // Fit is the constant for "fit" property tag. // // Used by ImageView, BackgroundElement. // // # Usage in ImageView // // Defines the image scaling parameters. // // Supported types: int, string. // // Values: // - 0 (NoneFit) or "none" - The image is not resized. // - 1 (ContainFit) or "contain" - The image is scaled to maintain its aspect ratio while fitting within the element’s content box. The entire object is made to fill the box, while preserving its aspect ratio, so the object will be "letterboxed" if its aspect ratio does not match the aspect ratio of the box. // - 2 (CoverFit) or "cover" - The image is sized to maintain its aspect ratio while filling the element’s entire content box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be clipped to fit. // - 3 (FillFit) or "fill" - The image to fill the element’s content box. The entire object will completely fill the box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be stretched to fit. // - 4 (ScaleDownFit) or "scale-down" - The image is sized as if NoneFit or ContainFit were specified, whichever would result in a smaller concrete object size. // // # Usage in BackgroundElement // // Used for image background only. Defines the image scaling parameters. // // Supported types: int, string. // // Values: // - 0 (NoneFit) or "none" - The image is not resized. // - 1 (ContainFit) or "contain" - The image is scaled to maintain its aspect ratio while fitting within the element’s content box. The entire object is made to fill the box, while preserving its aspect ratio, so the object will be "letterboxed" if its aspect ratio does not match the aspect ratio of the box. // - 2 (CoverFit) or "cover" - The image is sized to maintain its aspect ratio while filling the element’s entire content box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be clipped to fit. Fit PropertyName = "fit" // Repeat is the constant for "repeat" property tag. // // Used by BackgroundElement. // Used for image background only. Specifying the repetition of the image. Default value is "no-repeat". // // Supported types: int, string. // // Values: // - 0 (NoRepeat) or "no-repeat" - Image does not repeat. // - 1 (RepeatXY) or "repeat" - Image repeat horizontally and vertically. // - 2 (RepeatX) or "repeat-x" - Image repeat only horizontally. // - 3 (RepeatY) or "repeat-y" - Image repeat only vertically. // - 4 (RepeatRound) or "round" - Image is repeated so that an integer number of images fit into the background area. If this fails, then the background images are scaled. // - 5 (RepeatSpace) or "space" - Image is repeated as many times as necessary to fill the background area. If this fails, an empty space is added between the pictures. Repeat PropertyName = "repeat" // Attachment is the constant for "attachment" property tag. // // Used by BackgroundElement. // Used for image background only. Sets whether a background image's position is fixed within the viewport or scrolls with // its containing block. // // Supported types: int, string. // // Values: // - 0 (ScrollAttachment) or "scroll" - The background image will scroll with the page. // - 1 (FixedAttachment) or "fixed" - The background image will not scroll with the page. // - 2 (LocalAttachment) or "local" - The background image will scroll with the element's contents. Attachment PropertyName = "attachment" // BackgroundClip is the constant for "background-clip" property tag. // // Used by View. // Determines how the background color and/or background image will be displayed below the box borders. // // Supported types: int, string. // // Values: // - 0 (BorderBoxClip) or "border-box" - The background extends to the outer edge of the border(but below the border in z-order). // - 1 (PaddingBoxClip) or "padding-box" - The background extends to the outer edge of the padding. No background is drawn below the border. // - 2 (ContentBoxClip) or "content-box" - The background is painted inside(clipped) of the content box. BackgroundClip PropertyName = "background-clip" // BackgroundOrigin is the constant for "background-origin" property tag. // // Used by View. // Determines the background's origin: from the border start, inside the border, or inside the padding. // // Supported types: int, string. // // Values: // - 0 (BorderBox) or "border-box" - The background is positioned relative to the border box. // - 1 (PaddingBox) or "padding-box" - The background is positioned relative to the padding box. // - 2 (ContentBox) or "content-box" - The background is positioned relative to the content box. BackgroundOrigin PropertyName = "background-origin" // MaskClip is the constant for "mask-clip" property tag. // // Used by View. // Determines how image/gradient masks will be used below the box borders. // // Supported types: int, string. // // Values: // - 0 (BorderBox) or "border-box" - The mask extends to the outer edge of the border. // - 1 (PaddingBox) or "padding-box" - The mask extends to the outer edge of the padding. // - 2 (ContentBox) or "content-box" - The mask is used inside(clipped) of the content box. MaskClip PropertyName = "mask-clip" // MaskOrigin is the constant for "mask-origin" property tag. // // Used by View. // Determines the mask's origin: from the border start, inside the border, or inside the padding. // // Supported types: int, string. // // Values: // - 0 (BorderBox) or "border-box" - The mask is positioned relative to the border box. // - 1 (PaddingBox) or "padding-box" - The mask is positioned relative to the padding box. // - 2 (ContentBox) or "content-box" - The mask is positioned relative to the content box. MaskOrigin PropertyName = "mask-origin" // Gradient is the constant for "gradient" property tag. // // Used by BackgroundElement. // Describe gradient stop points. This is a mandatory property while describing background gradients. // // Supported types: []BackgroundGradientPoint, []BackgroundGradientAngle, []GradientPoint, []Color, string. // // Internal type is []BackgroundGradientPoint or []BackgroundGradientAngle, other types converted to it during assignment. // See BackgroundGradientPoint, []BackgroundGradientAngle, []GradientPoint description for more details. // // Conversion rules: // - []BackgroundGradientPoint - stored as is, no conversion performed. Used to set gradient stop points for linear and radial gradients. // - []BackgroundGradientAngle - stored as is, no conversion performed. Used to set gradient stop points for conic gradient. // - []GradientPoint - converted to []BackgroundGradientPoint. Used to set gradient stop points for linear and radial gradients. Since GradientPoint contains values from 0 to 1.0 they will be converted to precent values. // - []Color - converted to []BackgroundGradientPoint. Used for setting gradient stop points which are uniformly distributed across gradient diretion. // - string - string representation of stop points or color values. Format: "color1 pos1,color2 pos2"... . Position of stop points can be described either in SizeUnit or AngleUnit string representations. Examples: "white 0deg, black 90deg, gray 360deg", "white 0%, black 100%". Gradient PropertyName = "gradient" // Direction is the constant for "direction" property tag. // // Used by BackgroundElement. // Used for linear gradient only. Defines the direction of the gradient line. Default is 4 (ToBottomGradient) or // "to-bottom". // // Supported types: AngleUnit, int, string. // // See AngleUnit description for more details. // // Values: // - 0 (ToTopGradient) or "to-top" - Line goes from bottom to top. // - 1 (ToRightTopGradient) or "to-right-top" - From bottom left to top right. // - 2 (ToRightGradient) or "to-right" - From left to right. // - 3 (ToRightBottomGradient) or "to-right-bottom" - From top left to bottom right. // - 4 (ToBottomGradient) or "to-bottom" - From top to bottom. // - 5 (ToLeftBottomGradient) or "to-left-bottom" - From the upper right corner to the lower left. // - 6 (ToLeftGradient) or "to-left" - From right to left. // - 7 (ToLeftTopGradient) or "to-left-top" - From the bottom right corner to the top left. Direction PropertyName = "direction" // Repeating is the constant for "repeating" property tag. // // Used by BackgroundElement. // Define whether stop points needs to be repeated after the last one. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Gradient will repeat after the last key point. // - false, 0, "false", "no", "off", or "0" - No repetition of gradient stop points. Value of the last point used will be extrapolated. Repeating PropertyName = "repeating" // From is the constant for "from" property tag. // // Used by BackgroundElement. // Used for conic gradient only. Start angle position of the gradient. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types converted to it during assignment. // See AngleUnit description for more details. From PropertyName = "from" // RadialGradientRadius is the constant for "radial-gradient-radius" property tag. // // Used by BackgroundElement. // Define radius of the radial gradient. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. RadialGradientRadius PropertyName = "radial-gradient-radius" // RadialGradientShape is the constant for "radial-gradient-shape" property tag. // // Used by BackgroundElement. // Define shape of the radial gradient. The default is 0 (EllipseGradient or "ellipse". // // Supported types: int, string. // // Values: // - EllipseGradient (0) or "ellipse" - The shape is an axis-aligned ellipse. // - CircleGradient (1) or "circle" - The shape is a circle with a constant radius. RadialGradientShape PropertyName = "radial-gradient-shape" // Shape is the constant for "shape" property tag. // // Used by BackgroundElement. // Same as "radial-gradient-shape". Shape PropertyName = "shape" // CenterX is the constant for "center-x" property tag. // // Used by BackgroundElement. // Used for conic and radial gradients only. Center X point of the gradient. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. CenterX PropertyName = "center-x" // CenterY is the constant for "center-y" property tag. // // Used by BackgroundElement. // Used for conic and radial gradients only. Center Y point of the gradient. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. CenterY PropertyName = "center-y" // AltText is the constant for "alt-text" property tag. // // Used by ImageView. // Set a description of the image. // // Supported types: string. AltText PropertyName = "alt-text" // AvoidBreak is the constant for "avoid-break" property tag. // // Used by ColumnLayout. // Controls how region breaks should behave inside a generated box. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Avoid any break from being inserted within the principal box. // - false, 0, "false", "no", "off", or "0" - Allow, but does not force, any break to be inserted within the principal box. AvoidBreak PropertyName = "avoid-break" // ItemWidth is the constant for "item-width" property tag. // // Used by ListView. // Fixed width of list elements. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. ItemWidth PropertyName = "item-width" // ItemHeight is the constant for "item-height" property tag. // // Used by ListView. // Fixed height of list elements. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. ItemHeight PropertyName = "item-height" // ListWrap is the constant for "list-wrap" property tag. // // Used by ListLayout, ListView. // // Usage in ListLayout: // Defines the position of elements in case of reaching the border of the container. // // Supported types: int, string. // // Values: // - 0 (ListWrapOff) or "off" - The column or row of elements continues and goes beyond the bounds of the visible area. // - 1 (ListWrapOn) or "on" - Starts a new column or row of elements as necessary. The new column is positioned towards the end. // - 2 (ListWrapReverse) or "reverse" - Starts a new column or row of elements as necessary. The new column is positioned towards the beginning. // // Usage in ListView: // Defines the position of elements in case of reaching the border of the container. // // Supported types: int, string. // // Values: // - 0 (ListWrapOff) or "off" - The column or row of elements continues and goes beyond the bounds of the visible area. // - 1 (ListWrapOn) or "on" - Starts a new column or row of elements as necessary. The new column is positioned towards the end. // - 2 (ListWrapReverse) or "reverse" - Starts a new column or row of elements as necessary. The new column is positioned towards the beginning. ListWrap PropertyName = "list-wrap" // EditWrap is the constant for "edit-wrap" property tag. // // Used by EditView. // Controls whether the text will wrap around when edit view border has been reached. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Text wrapped to the next line. // - false, 0, "false", "no", "off", or "0" - Do not wrap text. Horizontal scrolling will appear if necessary. EditWrap PropertyName = "edit-wrap" // CaretColor is the constant for "caret-color" property tag. // // Used by EditView. // // Sets the color of the insertion caret, the visible marker where the next character typed will be inserted. This is // sometimes referred to as the text input cursor. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See [Color] description for more details. CaretColor PropertyName = "caret-color" // Min is the constant for "min" property tag. // // Used by DatePicker, NumberPicker, TimePicker. // // Usage in DatePicker: // Same as "date-picker-min" [DatePickerMin]. // // Usage in NumberPicker: // Same as "number-picker-min" [NumberPickerMin]. // // Usage in TimePicker: // Same as "time-picker-min" [TimePickerMin]. Min PropertyName = "min" // Max is the constant for "max" property tag. // // Used by DatePicker, NumberPicker, ProgressBar, TimePicker. // // Usage in DatePicker: // Same as "date-picker-max" [DatePickerMax]. // // Usage in NumberPicker: // Same as "number-picker-max" [NumberPickerMax]. // // Usage in ProgressBar: // Same as "progress-max" [ProgressBarMax]. // // Usage in TimePicker: // Same as "time-picker-max" [TimePickerMax]. Max PropertyName = "max" // Step is the constant for "step" property tag. // // Used by DatePicker, NumberPicker, TimePicker. // // Usage in DatePicker: // Same as "date-picker-step" [DatePickerStep]. // // Usage in NumberPicker: // Same as "number-picker-step" [NumberPickerStep]. // // Usage in TimePicker: // Same as "time-picker-step" [TimePickerStep]. Step PropertyName = "step" // Value is the constant for "value" property tag. // // Used by DatePicker, NumberPicker, ProgressBar, TimePicker. // // Usage in DatePicker: // Same as "date-picker-value" [DatePickerValue]. // // Usage in NumberPicker: // Same as "number-picker-value" [NumberPickerValue]. // // Usage in ProgressBar: // Same as "progress-value" [ProgressBarValue]. // // Usage in TimePicker: // Same as "time-picker-value" [TimePickerValue]. Value PropertyName = "value" // Orientation is the constant for "orientation" property tag. // // Used by ListLayout, ListView. // // Specifies how the children will be positioned relative to each other. // // Supported types: int, string. // // Values: // - 0 (TopDownOrientation) or "up-down" - Child elements are arranged in a column from top to bottom. // - 1 (StartToEndOrientation) or "start-to-end" - Child elements are laid out in a row from beginning to end. // - 2 (BottomUpOrientation) or "bottom-up" - Child elements are arranged in a column from bottom to top. // - 3 (EndToStartOrientation) or "end-to-start" - Child elements are laid out in a line from end to beginning. Orientation PropertyName = "orientation" // Gap is the constant for "gap" property tag. // // Used by GridLayout, ListLayout, ListView, TableView. // // # Usage in GridLayout // // Specify both "grid-column-gap" and "grid-row-gap". // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in ListLayout and ListView // // Specify both "list-column-gap" and "list-row-gap". // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. // // # Usage in TableView // // Define the gap between rows and columns of a table. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. Gap PropertyName = "gap" // ListRowGap is the constant for "list-row-gap" property tag. // // Used by ListLayout, ListView. // // Set the distance between the rows of the ListLayout. Default value 0px. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. ListRowGap PropertyName = "list-row-gap" // ListColumnGap is the constant for "list-column-gap" property tag. // // Used by ListLayout, ListView. // // Set the distance between the columns of the ListLayout. Default value 0px. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See [SizeUnit] description for more details. ListColumnGap PropertyName = "list-column-gap" // Text is the constant for "text" property tag. // // Used by EditView, TextView. // // Usage in EditView: // Edit view text. // // Supported types: string. // // Usage in TextView: // Text to display. // // Supported types: string. Text PropertyName = "text" // VerticalAlign is the constant for "vertical-align" property tag. // // Used by Checkbox, ListLayout, ListView, Popup, SvgImageView. // // # Usage in Checkbox // // Sets the vertical alignment of the content inside a block element. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Content aligned to top side of the content area. // - 1 (BottomAlign) or "bottom" - Content aligned to bottom side of the content area. // - 2 (CenterAlign) or "center" - Content aligned in the center of the content area. // - 3 (StretchAlign) or "stretch" - Content relaxed to fill all content area. // // # Usage in ListLayout and ListView // // Sets the vertical alignment of the content inside a block element. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Height alignment. // // # Usage in Popup // // Vertical alignment of the popup on the screen. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Height alignment. // // # Usage in SvgImageView // // Sets the vertical alignment of the image relative to its bounds. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. VerticalAlign PropertyName = "vertical-align" // HorizontalAlign is the constant for "horizontal-align" property tag. // // Used by Checkbox, ListLayout, ListView, Popup, SvgImageView. // // # Usage in Checkbox // // Sets the horizontal alignment of the content inside a block element. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Content aligned to left side of the content area. // - 1 (RightAlign) or "right" - Content aligned to right side of the content area. // - 2 (CenterAlign) or "center" - Content aligned in the center of the content area. // - 3 (StretchAlign) or "stretch" - Content relaxed to fill all content area. // // # Usage in ListLayout and ListView // // Sets the horizontal alignment of the content inside a block element. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Width alignment. // // # Usage in Popup // // Horizontal alignment of the popup on the screen. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Width alignment. // // # Usage in SvgImageView // // Sets the horizontal alignment of the image relative to its bounds. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. HorizontalAlign PropertyName = "horizontal-align" // ImageVerticalAlign is the constant for "image-vertical-align" property tag. // // Used by ImageView. // Sets the vertical alignment of the image relative to its bounds. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. ImageVerticalAlign PropertyName = "image-vertical-align" // ImageHorizontalAlign is the constant for "image-horizontal-align" property tag. // // Used by ImageView. // Sets the horizontal alignment of the image relative to its bounds. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. ImageHorizontalAlign PropertyName = "image-horizontal-align" // Checked is the constant for "checked" property tag. // // Used by Checkbox, ListView. // // # Usage in Checkbox // // Current state of the checkbox. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - Checkbox is checked. // - false, 0, "false", "no", "off", or "0" - Checkbox is unchecked. // // # Usage in ListView // // Set or get the list of checked items. Stores array of indices of checked items. // // Supported types: []int, int, string. // // Internal type is []int, other types converted to it during assignment. // // Conversion rules: // - []int - contains indices of selected list items. Stored as is. // - int - contains index of one selected list item, converted to []int. // - string - contains one or several indices of selected list items separated by comma(,). Checked PropertyName = "checked" // ItemVerticalAlign is the constant for "item-vertical-align" property tag. // // Used by ListView. // Sets the vertical alignment of the contents of the list items. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Height alignment. ItemVerticalAlign PropertyName = "item-vertical-align" // ItemHorizontalAlign is the constant for "item-horizontal-align" property tag. // // Used by ListView. // Sets the horizontal alignment of the contents of the list items. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Left alignment. // - 1 (RightAlign) or "right" - Right alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Height alignment. ItemHorizontalAlign PropertyName = "item-horizontal-align" // ItemCheckbox is the constant for "checkbox" property tag. // // Used by ListView. // Style of checkbox used to mark items in a list. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneCheckbox) or "none" - There is no checkbox. // - 1 (SingleCheckbox) or "single" - A checkbox that allows you to mark only one item, example: ◉. // - 2 (MultipleCheckbox) or "multiple" - A checkbox that allows you to mark several items, example: ☑. ItemCheckbox PropertyName = "checkbox" // CheckboxHorizontalAlign is the constant for "checkbox-horizontal-align" property tag. // // Used by Checkbox, ListView. // // # Usage in Checkbox // // Horizontal alignment of checkbox inside the checkbox container. // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Checkbox on the left edge, content on the right. // - 1 (RightAlign) or "right" - Checkbox on the right edge, content on the left. // - 2 (CenterAlign) or "center" - Center horizontally. Content below or above. // // # Usage in ListView // // Checkbox horizontal alignment(if enabled by "checkbox" property). // // Supported types: int, string. // // Values: // - 0 (LeftAlign) or "left" - Checkbox on the left edge, content on the right. // - 1 (RightAlign) or "right" - Checkbox on the right edge, content on the left. // - 2 (CenterAlign) or "center" - Center horizontally. Content below or above. CheckboxHorizontalAlign PropertyName = "checkbox-horizontal-align" // CheckboxVerticalAlign is the constant for "checkbox-vertical-align" property tag. // // Used by Checkbox, ListView. // // # Usage in Checkbox // // Vertical alignment of checkbox inside the checkbox container. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Checkbox on the top, content on the bottom. // - 1 (BottomAlign) or "bottom" - Checkbox on the bottom, content on the top. // - 2 (CenterAlign) or "center" - Checkbox on the top, content on the bottom. // // # Usage in ListView // // Checkbox vertical alignment(if enabled by "checkbox" property). // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. CheckboxVerticalAlign PropertyName = "checkbox-vertical-align" // NotTranslate is the constant for "not-translate" property tag. // // Used by TextView, View. // // Controls whether the text set for the text view require translation. This is an inherited property, i.e. if it is not // defined, then the value of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - No need to lookup for text translation in resources. // - false, 0, "false", "no", "off", or "0" - Lookup for text translation. NotTranslate PropertyName = "not-translate" // Filter is the constant for "filter" property tag. // // Used by View. // Applies graphical effects to a view, such as blurring, color shifting, changing brightness/contrast, etc. // // Supported types: FilterProperty. // // See FilterProperty description for more details. Filter PropertyName = "filter" // BackdropFilter is the constant for "backdrop-filter" property tag. // // Used by View. // Applies graphical effects to the area behind a view, such as blurring, color shifting, changing brightness/contrast, // etc. // // Supported types: FilterProperty. // // See FilterProperty description for more details. BackdropFilter PropertyName = "backdrop-filter" // Clip is the constant for "clip" property tag. // // Used by View. // Creates a clipping region that sets what part of a view should be shown. // // Supported types: ClipShapeProperty, string. // // Internal type is ClipShapeProperty, other types converted to it during assignment. // See ClipShapeProperty description for more details. Clip PropertyName = "clip" // Points is the constant for "points" property tag. // // Used by ClipShapeProperty. // Points which describe polygon clip area. Values are in a sequence of pair like: x1, y1, x2, y2 ... // // Supported types: []SizeUnit, string. Points PropertyName = "points" // ShapeOutside is the constant for "shape-outside" property tag. // // Used by View. // __WARNING__ Currently not supported. Property defines a shape(which may be non-rectangular) around which adjacent // inline content should wrap. By default, inline content wraps around its margin box. Property provides a way to // customize this wrapping, making it possible to wrap text around complex objects rather than simple boxes. // // Supported types: ClipShapeProperty, string. // // Internal type is ClipShapeProperty, other types converted to it during assignment. // See ClipShapeProperty description for more details. ShapeOutside PropertyName = "shape-outside" // Float is the constant for "float" property tag. // // Used by View. // Places a view on the left or right side of its container, allowing text and inline views to wrap around it. // // Supported types: int, string. // // Values: // - 0 (NoneFloat) or "none" - Text and other views inside the container will not wrap around this view. // - 1 (LeftFloat) or "left" - Text and other views inside the container will wrap around this view on the right side. // - 2 (RightFloat) or "right" - Text and other views inside the container will wrap around this view on the left side. Float PropertyName = "float" // UserData is the constant for "user-data" property tag. // // Used by View. // Can contain any user data. // // Supported types: any. UserData PropertyName = "user-data" // Resize is the constant for "resize" property tag. // // Used by View. // Sets whether view is resizable, and if so, in which directions. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneResize) or "none" - View cannot be resized. // - 1 (BothResize) or "both" - The View displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically. // - 2 (HorizontalResize) or "horizontal" - The View displays a mechanism for allowing the user to resize it in the horizontal direction. // - 3 (VerticalResize) or "vertical" - The View displays a mechanism for allowing the user to resize it in the vertical direction. Resize PropertyName = "resize" // UserSelect is the constant for "user-select" property tag. // // Used by View. // Controls whether the user can select the text. This is an inherited property, i.e. if it is not defined, then the value // of the parent view is used. Default value is false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", or "1" - User can select the text. // - false, 0, "false", "no", "off", or "0" - Text is not selectable. UserSelect PropertyName = "user-select" // Order is the constant for "Order" property tag. // // Used by View. // // Set the order to layout an item in a ViewsContainer container. Items in a container are sorted by // ascending order value and then by their addition to container order. // // Supported types: int, string. // // Values: // - negative value - Views with lower value will be at the beginning. // - not negative value - Views with higher value will be at the end. Order PropertyName = "Order" // BackgroundBlendMode is the constant for "background-blend-mode" property tag. // // Used by View. // Sets how view's background images should blend with each other and with the view's background color. // // Supported types: int, string. // // Values: // - 0 (BlendNormal) or "normal" - The final color is the top color, regardless of what the bottom color is. // The effect is like two opaque pieces of paper overlapping. // - 1 (BlendMultiply) or "multiply" - The final color is the result of multiplying the top and bottom colors. // A black layer leads to a black final layer, and a white layer leads to no change. // The effect is like two images printed on transparent film overlapping. // - 2 (BlendScreen) or "screen" - The final color is the result of inverting the colors, multiplying them, // and inverting that value. A black layer leads to no change, and a white layer leads to a white final layer. // The effect is like two images shone onto a projection screen. // - 3 (BlendOverlay) or "overlay" - The final color is the result of multiply if the bottom color is darker, // or screen if the bottom color is lighter. This blend mode is equivalent to hard-light but with the layers swapped. // - 4 (BlendDarken) or "darken" - The final color is composed of the darkest values of each color channel. // - 5 (BlendLighten) or "lighten" - The final color is composed of the lightest values of each color channel. // - 6 (BlendColorDodge) or "color-dodge" - The final color is the result of dividing the bottom color by the inverse of the top color. // A black foreground leads to no change. A foreground with the inverse color of the backdrop leads to a fully lit color. // This blend mode is similar to screen, but the foreground need only be as light as the inverse of the backdrop to create a fully lit color. // - 7 (BlendColorBurn) or "color-burn" - The final color is the result of inverting the bottom color, dividing the value by the top color, // and inverting that value. A white foreground leads to no change. A foreground with the inverse color of the backdrop leads to a black final image. // This blend mode is similar to multiply, but the foreground need only be as dark as the inverse of the backdrop to make the final image black. // - 8 (BlendHardLight) or "hard-light" - The final color is the result of multiply if the top color is darker, or screen if the top color is lighter. // This blend mode is equivalent to overlay but with the layers swapped. The effect is similar to shining a harsh spotlight on the backdrop. // - 9 (BlendSoftLight) or "soft-light" - The final color is similar to hard-light, but softer. This blend mode behaves similar to hard-light. // The effect is similar to shining a diffused spotlight on the backdrop. // - 10 (BlendDifference) or "difference" - The final color is the result of subtracting the darker of the two colors from the lighter one. // A black layer has no effect, while a white layer inverts the other layer's color. // - 11 (BlendExclusion) or "exclusion" - The final color is similar to difference, but with less contrast. // As with difference, a black layer has no effect, while a white layer inverts the other layer's color. // - 12 (BlendHue) or "hue" - The final color has the hue of the top color, while using the saturation and luminosity of the bottom color. // - 13 (BlendSaturation) or "saturation" - The final color has the saturation of the top color, while using the hue and luminosity of the bottom color. // A pure gray backdrop, having no saturation, will have no effect. // - 14 (BlendColor) or "color" - The final color has the hue and saturation of the top color, while using the luminosity of the bottom color. // The effect preserves gray levels and can be used to colorize the foreground. // - 15 (BlendLuminosity) or "luminosity" - The final color has the luminosity of the top color, while using the hue and saturation of the bottom color. // This blend mode is equivalent to BlendColor, but with the layers swapped. BackgroundBlendMode PropertyName = "background-blend-mode" // MixBlendMode is the constant for "mix-blend-mode" property tag. // // Used by View. // Sets how view's content should blend with the content of the view's parent and the view's background. // // Supported types: int, string. // // Values: // - 0 (BlendNormal) or "normal" - The final color is the top color, regardless of what the bottom color is. // The effect is like two opaque pieces of paper overlapping. // - 1 (BlendMultiply) or "multiply" - The final color is the result of multiplying the top and bottom colors. // A black layer leads to a black final layer, and a white layer leads to no change. // The effect is like two images printed on transparent film overlapping. // - 2 (BlendScreen) or "screen" - The final color is the result of inverting the colors, multiplying them, // and inverting that value. A black layer leads to no change, and a white layer leads to a white final layer. // The effect is like two images shone onto a projection screen. // - 3 (BlendOverlay) or "overlay" - The final color is the result of multiply if the bottom color is darker, // or screen if the bottom color is lighter. This blend mode is equivalent to hard-light but with the layers swapped. // - 4 (BlendDarken) or "darken" - The final color is composed of the darkest values of each color channel. // - 5 (BlendLighten) or "lighten" - The final color is composed of the lightest values of each color channel. // - 6 (BlendColorDodge) or "color-dodge" - The final color is the result of dividing the bottom color by the inverse of the top color. // A black foreground leads to no change. A foreground with the inverse color of the backdrop leads to a fully lit color. // This blend mode is similar to screen, but the foreground need only be as light as the inverse of the backdrop to create a fully lit color. // - 7 (BlendColorBurn) or "color-burn" - The final color is the result of inverting the bottom color, dividing the value by the top color, // and inverting that value. A white foreground leads to no change. A foreground with the inverse color of the backdrop leads to a black final image. // This blend mode is similar to multiply, but the foreground need only be as dark as the inverse of the backdrop to make the final image black. // - 8 (BlendHardLight) or "hard-light" - The final color is the result of multiply if the top color is darker, or screen if the top color is lighter. // This blend mode is equivalent to overlay but with the layers swapped. The effect is similar to shining a harsh spotlight on the backdrop. // - 9 (BlendSoftLight) or "soft-light" - The final color is similar to hard-light, but softer. This blend mode behaves similar to hard-light. // The effect is similar to shining a diffused spotlight on the backdrop. // - 10 (BlendDifference) or "difference" - The final color is the result of subtracting the darker of the two colors from the lighter one. // A black layer has no effect, while a white layer inverts the other layer's color. // - 11 (BlendExclusion) or "exclusion" - The final color is similar to difference, but with less contrast. // As with difference, a black layer has no effect, while a white layer inverts the other layer's color. // - 12 (BlendHue) or "hue" - The final color has the hue of the top color, while using the saturation and luminosity of the bottom color. // - 13 (BlendSaturation) or "saturation" - The final color has the saturation of the top color, while using the hue and luminosity of the bottom color. // A pure gray backdrop, having no saturation, will have no effect. // - 14 (BlendColor) or "color" - The final color has the hue and saturation of the top color, while using the luminosity of the bottom color. // The effect preserves gray levels and can be used to colorize the foreground. // - 15 (BlendLuminosity) or "luminosity" - The final color has the luminosity of the top color, while using the hue and saturation of the bottom color. // This blend mode is equivalent to BlendColor, but with the layers swapped. MixBlendMode PropertyName = "mix-blend-mode" // TabIndex is the constant for "tabindex" property tag. // // Used by View. // Indicates that view can be focused, and where it participates in sequential keyboard navigation(usually with the Tab // key). // // Supported types: int, string. // // Values: // - negative value - View can be selected with the mouse or touch, but does not participate in sequential navigation. // - 0 - View can be selected and reached using sequential navigation, the order of navigation is determined by the browser(usually in order of addition). // - positive value - View will be reached(and selected) using sequential navigation, and navigation is performed by ascending "tabindex" value. TabIndex PropertyName = "tabindex" // Tooltip is the constant for "tooltip" property tag. // // Used by View. // Specifies the tooltip text. Tooltip pops up when hovering the mouse cursor over the view. HTML tags are supported when // formatting tooltip text. // // Supported types: string. Tooltip PropertyName = "tooltip" )
Constants for various properties and events of Views'.
const ( // Radius is the constant for "radius" property tag. // // Used by View, BackgroundElement, ClipShapeProperty. // // Usage in View: // Specifies the corners rounding radius of an element's outer border edge. // // Supported types: RadiusProperty, SizeUnit, SizeFunc, BoxRadius, string, float, int. // // Internal type is either RadiusProperty or SizeUnit, other types converted to them during assignment. // See RadiusProperty, SizeUnit, SizeFunc and BoxRadius description for more details. // // Conversion rules: // - RadiusProperty - stored as is, no conversion performed. // - SizeUnit - stored as is and set all corners to have the same value. // - BoxRadius - a new RadiusProperty will be created and all corresponding elliptical radius values will be set. // - string - if one value will be provided then it will be set as a radius for all corners. If two values will be provided divided by (/) then x and y radius will be set for all corners. Examples: "1em", "1em/0.5em", "2/4". Values which doesn't have size prefix will use size in pixels by default. // - float - values of this type will set radius for all corners in pixels. // - int - values of this type will set radius for all corners in pixels. // // Usage in BackgroundElement: // Same as "radial-gradient-radius". // // Usage in ClipShapeProperty: // Specifies the radius of the corners or the radius of the cropping area. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. Radius PropertyName = "radius" // RadiusX is the constant for "radius-x" property tag. // // Used by View, ClipShapeProperty. // // Usage in View: // Specifies the x-axis corners elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. // // Usage in ClipShapeProperty: // Specifies the x-axis corners elliptic rounding radius of the elliptic clip shape. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusX PropertyName = "radius-x" // RadiusY is the constant for "radius-y" property tag. // // Used by View, ClipShapeProperty. // // Usage in View: // Specifies the y-axis corners elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. // // Usage in ClipShapeProperty: // Specifies the y-axis corners elliptic rounding radius of of the elliptic clip shape. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusY PropertyName = "radius-y" // RadiusTopLeft is the constant for "radius-top-left" property tag. // // Used by View. // Specifies the top-left corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusTopLeft PropertyName = "radius-top-left" // RadiusTopLeftX is the constant for "radius-top-left-x" property tag. // // Used by View. // Specifies the x-axis top-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusTopLeftX PropertyName = "radius-top-left-x" // RadiusTopLeftY is the constant for "radius-top-left-y" property tag. // // Used by View. // Specifies the y-axis top-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusTopLeftY PropertyName = "radius-top-left-y" // RadiusTopRight is the constant for "radius-top-right" property tag. // // Used by View. // Specifies the top-right corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusTopRight PropertyName = "radius-top-right" // RadiusTopRightX is the constant for "radius-top-right-x" property tag. // // Used by View. // Specifies the x-axis top-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusTopRightX PropertyName = "radius-top-right-x" // RadiusTopRightY is the constant for "radius-top-right-y" property tag. // // Used by View. // Specifies the y-axis top-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusTopRightY PropertyName = "radius-top-right-y" // RadiusBottomLeft is the constant for "radius-bottom-left" property tag. // // Used by View. // Specifies the bottom-left corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusBottomLeft PropertyName = "radius-bottom-left" // RadiusBottomLeftX is the constant for "radius-bottom-left-x" property tag. // // Used by View. // Specifies the x-axis bottom-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusBottomLeftX PropertyName = "radius-bottom-left-x" // RadiusBottomLeftY is the constant for "radius-bottom-left-y" property tag. // // Used by View. // Specifies the y-axis bottom-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusBottomLeftY PropertyName = "radius-bottom-left-y" // RadiusBottomRight is the constant for "radius-bottom-right" property tag. // // Used by View. // Specifies the bottom-right corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusBottomRight PropertyName = "radius-bottom-right" // RadiusBottomRightX is the constant for "radius-bottom-right-x" property tag. // // Used by View. // Specifies the x-axis bottom-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusBottomRightX PropertyName = "radius-bottom-right-x" // RadiusBottomRightY is the constant for "radius-bottom-right-y" property tag. // // Used by View. // Specifies the y-axis bottom-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. RadiusBottomRightY PropertyName = "radius-bottom-right-y" // X is the constant for "x" property tag. // // Used by ClipShapeProperty, RadiusProperty. // // Usage in ClipShapeProperty: // Specifies x-axis position of the clip shape center. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. // // Usage in RadiusProperty: // Determines the x-axis elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. X PropertyName = "x" // Y is the constant for "y" property tag. // // Used by ClipShapeProperty, RadiusProperty. // // Usage in ClipShapeProperty: // Specifies y-axis position of the clip shape center. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. // // Usage in RadiusProperty: // Determines the y-axis elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. Y PropertyName = "y" // TopLeft is the constant for "top-left" property tag. // // Used by RadiusProperty. // Determines the top-left corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TopLeft PropertyName = "top-left" // TopLeftX is the constant for "top-left-x" property tag. // // Used by RadiusProperty. // Determines the x-axis top-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TopLeftX PropertyName = "top-left-x" // TopLeftY is the constant for "top-left-y" property tag. // // Used by RadiusProperty. // Determines the y-axis top-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TopLeftY PropertyName = "top-left-y" // TopRight is the constant for "top-right" property tag. // // Used by RadiusProperty. // Determines the top-right corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TopRight PropertyName = "top-right" // TopRightX is the constant for "top-right-x" property tag. // // Used by RadiusProperty. // Determines the x-axis top-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TopRightX PropertyName = "top-right-x" // TopRightY is the constant for "top-right-y" property tag. // // Used by RadiusProperty. // Determines the y-axis top-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TopRightY PropertyName = "top-right-y" // BottomLeft is the constant for "bottom-left" property tag. // // Used by RadiusProperty. // Determines the bottom-left corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BottomLeft PropertyName = "bottom-left" // BottomLeftX is the constant for "bottom-left-x" property tag. // // Used by RadiusProperty. // Determines the x-axis bottom-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BottomLeftX PropertyName = "bottom-left-x" // BottomLeftY is the constant for "bottom-left-y" property tag. // // Used by RadiusProperty. // Determines the y-axis bottom-left corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BottomLeftY PropertyName = "bottom-left-y" // BottomRight is the constant for "bottom-right" property tag. // // Used by RadiusProperty. // Determines the bottom-right corner rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BottomRight PropertyName = "bottom-right" // BottomRightX is the constant for "bottom-right-x" property tag. // // Used by RadiusProperty. // Determines the x-axis bottom-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BottomRightX PropertyName = "bottom-right-x" // BottomRightY is the constant for "bottom-right-y" property tag. // // Used by RadiusProperty. // Determines the y-axis bottom-right corner elliptic rounding radius of an element's outer border edge. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BottomRightY PropertyName = "bottom-right-y" )
Constants for RadiusProperty specific properties
const ( // ColorTag is the constant for "color" property tag. // // Used by ColumnSeparatorProperty, BorderProperty, OutlineProperty, ShadowProperty. // // # Usage in ColumnSeparatorProperty // // Line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. // // # Usage in BorderProperty // // Border line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. // // # Usage in OutlineProperty // // Outline line color. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. // // # Usage in ShadowProperty // // Color property of the shadow. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. ColorTag PropertyName = "color" // Inset is the constant for "inset" property tag. // // Used by ShadowProperty. // Controls whether to draw shadow inside the frame or outside. Inset shadows are drawn inside the border(even transparent // ones), above the background, but below content. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Drop shadow inside the frame(as if the content was depressed inside the box). // - false, 0, "false", "no", "off", "0" - Shadow is assumed to be a drop shadow(as if the box were raised above the content). Inset PropertyName = "inset" // XOffset is the constant for "x-offset" property tag. // // Used by ShadowProperty. // Determines the shadow horizontal offset. Negative values place the shadow to the left of the element. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. XOffset PropertyName = "x-offset" // YOffset is the constant for "y-offset" property tag. // // Used by ShadowProperty. // Determines the shadow vertical offset. Negative values place the shadow above the element. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. YOffset PropertyName = "y-offset" // BlurRadius is the constant for "blur" property tag. // // Used by ShadowProperty. // Determines the radius of the blur effect. The larger this value, the bigger the blur, so the shadow becomes bigger and // lighter. Negative values are not allowed. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. BlurRadius PropertyName = "blur" // SpreadRadius is the constant for "spread-radius" property tag. // // Used by ShadowProperty. // Positive values will cause the shadow to expand and grow bigger, negative values will cause the shadow to shrink. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. SpreadRadius PropertyName = "spread-radius" )
Constants for ShadowProperty specific properties
const ( // PushTransform is the constant for "push-transform" property tag. // // Used by StackLayout. // Specify start translation, scale and rotation over x, y and z axes as well as a distortion // for an animated pushing of a child view. // // Supported types: TransformProperty, string. // // See TransformProperty description for more details. // // Conversion rules: // - TransformProperty - stored as is, no conversion performed. // - string - string representation of Transform interface. Example: "_{translate-x = 10px, scale-y = 1.1}". PushTransform = "push-transform" // PushDuration is the constant for "push-duration" property tag. // // Used by StackLayout. // Sets the length of time in seconds that an push/pop animation takes to complete. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushDuration = "push-duration" // PushTiming is the constant for "push-timing" property tag. // // Used by StackLayout. // Set how an push/pop animation progresses through the duration of each cycle. // // Supported types: string. // // Values: // - "ease" (EaseTiming) - Speed increases towards the middle and slows down at the end. // - "ease-in" (EaseInTiming) - Speed is slow at first, but increases in the end. // - "ease-out" (EaseOutTiming) - Speed is fast at first, but decreases in the end. // - "ease-in-out" (EaseInOutTiming) - Speed is slow at first, but quickly increases and at the end it decreases again. // - "linear" (LinearTiming) - Constant speed. // - "step(n)" (StepTiming(n int) function) - Timing function along stepCount stops along the transition, displaying each stop for equal lengths of time. // - "cubic-bezier(x1, y1, x2, y2)" (CubicBezierTiming(x1, y1, x2, y2 float64) function) - Cubic-Bezier curve timing function. x1 and x2 must be in the range [0, 1]. PushTiming = "push-timing" // MoveToFrontAnimation is the constant for "move-to-front-animation" property tag. // // Used by StackLayout. // Specifies whether animation is used when calling the MoveToFront/MoveToFrontByID method of StackLayout interface. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - animation is used (default value). // - false, 0, "false", "no", "off", "0" - animation is not used. MoveToFrontAnimation = "move-to-front-animation" // PushPerspective is the constant for "push-perspective" property tag. // // Used by StackLayout. // // Used to access the "perspective" property of StackLayout "push-transform" property: // Distance between the z-plane and the user in order to give a 3D-positioned element some perspective. Each 3D element // with z > 0 becomes larger, each 3D-element with z < 0 becomes smaller. The default value is 0 (no 3D effects). // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. PushPerspective PropertyName = "push-perspective" // PushTranslateX is the constant for "push-translate-x" property tag. // // Used by StackLayout. // // Used to access the "translate-x" property of StackLayout "push-transform" property: // x-axis translation value of a 2D/3D translation. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. PushTranslateX PropertyName = "push-translate-x" // PushTranslateY is the constant for "push-translate-y" property tag. // // Used by StackLayout. // // Used to access the "translate-y" property of StackLayout "push-transform" property: // y-axis translation value of a 2D/3D translation. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. PushTranslateY PropertyName = "push-translate-y" // PushTranslateZ is the constant for "push-translate-z" property tag. // // Used by StackLayout. // // Used to access the "translate-z" property of StackLayout "push-transform" property: // z-axis translation value of a 3D translation. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. PushTranslateZ PropertyName = "push-translate-z" // PushScaleX is the constant for "push-scale-x" property tag. // // Used by StackLayout. // // Used to access the "scale-x" property of StackLayout "push-transform" property: // x-axis scaling value of a 2D/3D scale. The original scale is 1. Values between 0 and 1 are used to decrease original // scale, more than 1 - to increase. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushScaleX PropertyName = "push-scale-x" // PushScaleY is the constant for "push-scale-y" property tag. // // Used by StackLayout. // // Used to access the "scale-y" property of StackLayout "push-transform" property: // y-axis scaling value of a 2D/3D scale. The original scale is 1. Values between 0 and 1 are used to decrease original // scale, more than 1 - to increase. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushScaleY PropertyName = "push-scale-y" // PushScaleZ is the constant for "push-scale-z" property tag. // // Used by StackLayout. // // Used to access the "scale-z" property of StackLayout "push-transform" property: // z-axis scaling value of a 3D scale. The original scale is 1. Values between 0 and 1 are used to decrease original // scale, more than 1 - to increase. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushScaleZ PropertyName = "push-scale-z" // PushRotate is the constant for "push-rotate" property tag. // // Used by StackLayout. // // Used to access the "rotate" property of StackLayout "push-transform" property: // Angle of the view rotation. A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. PushRotate PropertyName = "push-rotate" // PushRotateX is the constant for "push-rotate-x" property tag. // // Used by StackLayout. // // Used to access the "rotate-x" property of StackLayout "push-transform" property: // x-coordinate of the vector denoting the axis of rotation in range 0 to 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushRotateX PropertyName = "push-rotate-x" // PushRotateY is the constant for "push-rotate-y" property tag. // // Used by StackLayout. // // Used to access the "rotate-y" property of StackLayout "push-transform" property: // y-coordinate of the vector denoting the axis of rotation in range 0 to 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushRotateY PropertyName = "push-rotate-y" // PushRotateZ is the constant for "push-rotate-z" property tag. // // Used by StackLayout. // // Used to access the "rotate-z" property of StackLayout "push-transform" property: // z-coordinate of the vector denoting the axis of rotation in range 0 to 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. PushRotateZ PropertyName = "push-rotate-z" // PushSkewX is the constant for "push-skew-x" property tag. // // Used by StackLayout. // // Used to access the "skew-x" property of StackLayout "push-transform" property: // Angle to use to distort the element along the abscissa. The default value is 0. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. PushSkewX PropertyName = "push-skew-x" // PushSkewY is the constant for "push-skew-y" property tag. // // Used by StackLayout. // // Used to access the "skew-y" property of StackLayout "push-transform" property: // Angle to use to distort the element along the ordinate. The default value is 0. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. PushSkewY PropertyName = "push-skew-y" )
Constants which represent StackLayout animation type during pushing or popping views
const ( // TableVerticalAlign is the constant for "table-vertical-align" property tag. // // Used by TableView. // Set the vertical alignment of the content inside a table cell. // // Supported types: int, string. // // Values: // - 0 (TopAlign) or "top" - Top alignment. // - 1 (BottomAlign) or "bottom" - Bottom alignment. // - 2 (CenterAlign) or "center" - Center alignment. // - 3 (StretchAlign) or "stretch" - Work as baseline alignment, see below. // - 4 (BaselineAlign) or "baseline" - Baseline alignment. TableVerticalAlign PropertyName = "table-vertical-align" // HeadHeight is the constant for "head-height" property tag. // // Used by TableView. // Sets the number of rows in the table header. The default value is 0 (no header). // // Supported types: int, string. // // Values: // - 0 or "0" - No header. // - positive value - Number of rows act as a header. HeadHeight PropertyName = "head-height" // HeadStyle is the constant for "head-style" property tag. // // Used by TableView. // Set the header style name or description of style properties. // // Supported types: string, Params. // // Internal type is either string or Params. // // Conversion rules: // - string - must contain style name defined in resources. // - Params - must contain style properties. HeadStyle PropertyName = "head-style" // FootHeight is the constant for "foot-height" property tag. // // Used by TableView. // Sets the number of rows in the table footer. The default value is 0 (no footer). // // Supported types: int, string. // // Values: // - 0 or "0" - No footer. // - positive value - Number of rows act as a footer. FootHeight PropertyName = "foot-height" // FootStyle is the constant for "foot-style" property tag. // // Used by TableView. // Set the footer style name or description of style properties. // // Supported types: string, Params. // // Internal type is either string or Params. // // Conversion rules: // - string - must contain style name defined in resources. // - Params - must contain style properties. FootStyle PropertyName = "foot-style" // RowSpan is the constant for "row-span" property tag. // // Used by TableView. // Set the number of table row to span. Used only when specifying cell parameters in the implementation of // TableCellStyle. // // Supported types: int, string. // // Values: // - 0 or "0" - No merging will be applied. // - positive value - Number of rows including current one to be merged together. RowSpan PropertyName = "row-span" // ColumnSpan is the constant for "column-span" property tag. // // Used by TableView. // Sets the number of table column cells to be merged together. Used only when specifying cell parameters in the // implementation of TableCellStyle. // // Supported types: int, string. // // Values: // - 0 or "0" - No merging will be applied. // - positive value - Number of columns including current one to be merged together. ColumnSpan PropertyName = "column-span" // RowStyle is the constant for "row-style" property tag. // // Used by TableView. // Set the adapter which specifies styles of each table row. // // Supported types: TableRowStyle, []Params. // // Internal type is TableRowStyle, other types converted to it during assignment. // See TableRowStyle description for more details. RowStyle PropertyName = "row-style" // ColumnStyle is the constant for "column-style" property tag. // // Used by TableView. // Set the adapter which specifies styles of each table column. // // Supported types: TableColumnStyle, []Params. // // Internal type is TableColumnStyle, other types converted to it during assignment. // See TableColumnStyle description for more details. ColumnStyle PropertyName = "column-style" // CellStyle is the constant for "cell-style" property tag. // // Used by TableView. // Set the adapter which specifies styles of each table cell. This property can be assigned only by an implementation of // TableCellStyle interface. // // Supported types: TableCellStyle. CellStyle PropertyName = "cell-style" // CellPadding is the constant for "cell-padding" property tag. // // Used by TableView. // Sets the padding area on all four sides of a table cell at once. An element's padding area is the space between its // content and its border. // // Supported types: BoundsProperty, Bounds, SizeUnit, float32, float64, int. // // Internal type is BoundsProperty, other types converted to it during assignment. // See BoundsProperty, Bounds and SizeUnit description for more details. CellPadding PropertyName = "cell-padding" // CellPaddingLeft is the constant for "cell-padding-left" property tag. // // Used by TableView. // Set the width of the padding area to the left of a cell content. An element's padding area is the space between its // content and its border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellPaddingLeft PropertyName = "cell-padding-left" // CellPaddingRight is the constant for "cell-padding-right" property tag. // // Used by TableView. // Set the width of the padding area to the left of a cell content. An element's padding area is the space between its // content and its border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellPaddingRight PropertyName = "cell-padding-right" // CellPaddingTop is the constant for "cell-padding-top" property tag. // // Used by TableView. // Set the height of the padding area to the top of a cell content. An element's padding area is the space between its // content and its border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellPaddingTop PropertyName = "cell-padding-top" // CellPaddingBottom is the constant for "cell-padding-bottom" property tag. // // Used by TableView. // Set the height of the padding area to the bottom of a cell content. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellPaddingBottom PropertyName = "cell-padding-bottom" // CellBorder is the constant for "cell-border" property tag. // // Used by TableView. // Set a table cell's border. It sets the values of a border width, style, and color. Can also be used when setting // parameters in properties "row-style", "column-style", "foot-style" and "head-style". // // Supported types: BorderProperty, ViewBorder, ViewBorders. // // Internal type is BorderProperty, other types converted to it during assignment. // See BorderProperty, ViewBorder and ViewBorders description for more details. CellBorder PropertyName = "cell-border" // CellBorderLeft is the constant for "cell-border-left" property tag. // // Used by TableView. // Set a view's left border. It sets the values of a border width, style, and color. This property can be assigned a value // of BorderProperty, ViewBorder types or BorderProperty text representation. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder and BorderProperty description for more details. CellBorderLeft PropertyName = "cell-border-left" // CellBorderRight is the constant for "cell-border-right" property tag. // // Used by TableView. // Set a view's right border. It sets the values of a border width, style, and color. This property can be assigned a // value of BorderProperty, ViewBorder types or BorderProperty text representation. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder and BorderProperty description for more details. CellBorderRight PropertyName = "cell-border-right" // CellBorderTop is the constant for "cell-border-top" property tag. // // Used by TableView. // Set a view's top border. It sets the values of a border width, style, and color. This property can be assigned a value // of BorderProperty, ViewBorder types or BorderProperty text representation. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder and BorderProperty description for more details. CellBorderTop PropertyName = "cell-border-top" // CellBorderBottom is the constant for "cell-border-bottom" property tag. // // Used by TableView. // Set a view's bottom border. It sets the values of a border width, style, and color. // // Supported types: ViewBorder, BorderProperty, string. // // Internal type is BorderProperty, other types converted to it during assignment. // See ViewBorder and BorderProperty description for more details. CellBorderBottom PropertyName = "cell-border-bottom" // CellBorderStyle is the constant for "cell-border-style" property tag. // // Used by TableView. // Set the line style for all four sides of a table cell's border. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. CellBorderStyle PropertyName = "cell-border-style" // CellBorderLeftStyle is the constant for "cell-border-left-style" property tag. // // Used by TableView. // Set the line style of a table cell's left border. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. CellBorderLeftStyle PropertyName = "cell-border-left-style" // CellBorderRightStyle is the constant for "cell-border-right-style" property tag. // // Used by TableView. // Set the line style of a table cell's right border. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. CellBorderRightStyle PropertyName = "cell-border-right-style" // CellBorderTopStyle is the constant for "cell-border-top-style" property tag. // // Used by TableView. // Set the line style of a table cell's top border. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. CellBorderTopStyle PropertyName = "cell-border-top-style" // CellBorderBottomStyle is the constant for "cell-border-bottom-style" property tag. // // Used by TableView. // Sets the line style of a table cell's bottom border. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneLine) or "none" - The border will not be drawn. // - 1 (SolidLine) or "solid" - Solid line as a border. // - 2 (DashedLine) or "dashed" - Dashed line as a border. // - 3 (DottedLine) or "dotted" - Dotted line as a border. // - 4 (DoubleLine) or "double" - Double line as a border. CellBorderBottomStyle PropertyName = "cell-border-bottom-style" // CellBorderWidth is the constant for "cell-border-width" property tag. // // Used by TableView. // Set the line width for all four sides of a table cell's border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellBorderWidth PropertyName = "cell-border-width" // CellBorderLeftWidth is the constant for "cell-border-left-width" property tag. // // Used by TableView. // Set the line width of a table cell's left border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellBorderLeftWidth PropertyName = "cell-border-left-width" // CellBorderRightWidth is the constant for "cell-border-right-width" property tag. // // Used by TableView. // Set the line width of a table cell's right border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellBorderRightWidth PropertyName = "cell-border-right-width" // CellBorderTopWidth is the constant for "cell-border-top-width" property tag. // // Used by TableView. // Set the line width of a table cell's top border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellBorderTopWidth PropertyName = "cell-border-top-width" // CellBorderBottomWidth is the constant for "cell-border-bottom-width" property tag. // // Used by TableView. // Set the line width of a table cell's bottom border. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. CellBorderBottomWidth PropertyName = "cell-border-bottom-width" // CellBorderColor is the constant for "cell-border-color" property tag. // // Used by TableView. // Set the line color for all four sides of a table cell's border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. CellBorderColor PropertyName = "cell-border-color" // CellBorderLeftColor is the constant for "cell-border-left-color" property tag. // // Used by TableView. // Set the line color of a table cell's left border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. CellBorderLeftColor PropertyName = "cell-border-left-color" // CellBorderRightColor is the constant for "cell-border-right-color" property tag. // // Used by TableView. // Set the line color of a table cell's right border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. CellBorderRightColor PropertyName = "cell-border-right-color" // CellBorderTopColor is the constant for "cell-border-top-color" property tag. // // Used by TableView. // Set the line color of a table cell's top border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. CellBorderTopColor PropertyName = "cell-border-top-color" // CellBorderBottomColor is the constant for "cell-border-bottom-color" property tag. // // Used by TableView. // Set the line color of a table cell's bottom border. // // Supported types: Color, string. // // Internal type is Color, other types converted to it during assignment. // See Color description for more details. CellBorderBottomColor PropertyName = "cell-border-bottom-color" // SelectionMode is the constant for "selection-mode" property tag. // // Used by TableView. // Sets the mode of the table elements selection. Default value is "none". // // Supported types: int, string. // // Values: // - 0 (NoneSelection) or "none" - Table elements are not selectable. The table cannot receive input focus. // - 1 (CellSelection) or "cell" - One table cell can be selected(highlighted). The cell is selected interactively using the mouse or keyboard(using the cursor keys). // - 2 (RowSelection) or "row" - The entire table row can be selected (highlighted). The row is selected interactively using the mouse or keyboard (using the cursor keys). SelectionMode PropertyName = "selection-mode" // TableCellClickedEvent is the constant for "table-cell-clicked" property tag. // // Used by TableView. // Occur when the user clicks on a table cell. // // General listener format: // // func(table rui.TableView, row, col int) // // where: // - table - Interface of a table view which generated this event, // - row - Row of the clicked cell, // - col - Column of the clicked cell. // // Allowed listener formats: // // func(row, col int) TableCellClickedEvent PropertyName = "table-cell-clicked" // TableCellSelectedEvent is the constant for "table-cell-selected" property tag. // // Used by TableView. // Occur when a table cell becomes selected. // // General listener format: // // func(table rui.TableView, row, col int) // // where: // - table - Interface of a table view which generated this event, // - row - Row of the selected cell, // - col - Column of the selected cell. // // Allowed listener formats: // // func(row, col int) TableCellSelectedEvent PropertyName = "table-cell-selected" // TableRowClickedEvent is the constant for "table-row-clicked" property tag. // // Used by TableView. // Occur when the user clicks on a table row. // // General listener format: // // func(table rui.TableView, row int) // // where: // - table - Interface of a table view which generated this event, // - row - Clicked row. // // Allowed listener formats: // // func(row int) TableRowClickedEvent PropertyName = "table-row-clicked" // TableRowSelectedEvent is the constant for "table-row-selected" property tag. // // Used by TableView. // Occur when a table row becomes selected. // // General listener format: // // func(table rui.TableView, row int) // // where: // - table - Interface of a table view which generated this event, // - row - Selected row. // // Allowed listener formats: // // func(row int) TableRowSelectedEvent PropertyName = "table-row-selected" // AllowSelection is the constant for "allow-selection" property tag. // // Used by TableView. // Set the adapter which specifies whether cell/row selection is allowed. This property can be assigned by an // implementation of TableAllowCellSelection or TableAllowRowSelection interface. // // Supported types: TableAllowCellSelection, TableAllowRowSelection. // // Internal type is either TableAllowCellSelection, TableAllowRowSelection, see their description for more details. AllowSelection PropertyName = "allow-selection" )
Constants for TableView specific properties and events
const ( // CurrentTabChangedEvent is the constant for "current-tab-changed" property tag. // // Used by TabsLayout. // Occur when the new tab becomes active. // // General listener format: // // func(tabsLayout rui.TabsLayout, newTab, oldTab int) // // where: // - tabsLayout - Interface of a tabs layout which generated this event, // - newTab - Index of a new active tab, // - oldTab - Index of an old active tab. // // Allowed listener formats: // // func(tabsLayout rui.TabsLayout, newTab int) // func(newTab, oldTab int) // func(newTab int) // func() CurrentTabChangedEvent PropertyName = "current-tab-changed" // Icon is the constant for "icon" property tag. // // Used by TabsLayout. // Defines the icon name that is displayed in the tab. The property is set for the child view of TabsLayout. // // Supported types: string. Icon = "icon" // TabCloseButton is the constant for "tab-close-button" property tag. // // Used by TabsLayout. // Controls whether to add close button to a tab(s). This property can be set separately for each child view or for tabs // layout itself. Property set for child view takes precedence over the value set for tabs layout. Default value is // false. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Tab(s) has close button. // - false, 0, "false", "no", "off", "0" - No close button in tab(s). TabCloseButton PropertyName = "tab-close-button" // TabCloseEvent is the constant for "tab-close-event" property tag. // // Used by TabsLayout. // Occurs when the user clicks on the tab close button. // // General listener format: // // func(tabsLayout rui.TabsLayout, tab int) // // where: // - tabsLayout - Interface of a tabs layout which generated this event, // - tab - Index of the tab. // // Allowed listener formats: // // func(tab int) // func(tabsLayout rui.TabsLayout) // func() TabCloseEvent PropertyName = "tab-close-event" // Tabs is the constant for "tabs" property tag. // // Used by TabsLayout. // Sets where the tabs are located. Default value is "top". // // Supported types: int, string. // // Values: // - 0 (TopTabs) or "top" - Tabs on the top. // - 1 (BottomTabs) or "bottom" - Tabs on the bottom. // - 2 (LeftTabs) or "left" - Tabs on the left. Each tab is rotated 90° counterclockwise. // - 3 (RightTabs) or "right" - Tabs located on the right. Each tab is rotated 90° clockwise. // - 4 (LeftListTabs) or "left-list" - Tabs on the left. The tabs are displayed as a list. // - 5 (RightListTabs) or "right-list" - Tabs on the right. The tabs are displayed as a list. // - 6 (HiddenTabs) or "hidden" - Tabs are hidden. Tabs PropertyName = "tabs" // TabBarStyle is the constant for "tab-bar-style" property tag. // // Used by TabsLayout. // Set the style for the display of the tab bar. The default value is "ruiTabBar". // // Supported types: string. TabBarStyle PropertyName = "tab-bar-style" // TabStyle is the constant for "tab-style" property tag. // // Used by TabsLayout. // Set the style for the display of the tab. The default value is "ruiTab" or "ruiVerticalTab". // // Supported types: string. TabStyle PropertyName = "tab-style" // CurrentTabStyle is the constant for "current-tab-style" property tag. // // Used by TabsLayout. // Set the style for the display of the current(selected) tab. The default value is "ruiCurrentTab" or // "ruiCurrentVerticalTab". // // Supported types: string. CurrentTabStyle PropertyName = "current-tab-style" )
Constants for TabsLayout specific view and events
const ( // TimeChangedEvent is the constant for "time-changed" property tag. // // Used by TimePicker. // Occur when current time of the time picker has been changed. // // General listener format: // func(picker rui.TimePicker, newTime time.Time, oldTime time.Time). // // where: // - picker - Interface of a time picker which generated this event, // - newTime - New time value, // - oldTime - Old time value. // // Allowed listener formats: // func(picker rui.TimePicker, newTime time.Time), // func(newTime time.Time, oldTime time.Time), // func(newTime time.Time), // func(picker rui.TimePicker), // func(). TimeChangedEvent PropertyName = "time-changed" // TimePickerMin is the constant for "time-picker-min" property tag. // // Used by TimePicker. // The minimum value of the time. // // Supported types: time.Time, string. // // Internal type is time.Time, other types converted to it during assignment. // // Conversion rules: // string - values of this type parsed and converted to time.Time. The following formats are supported: // - "HH:MM:SS" - "08:15:00". // - "HH:MM:SS PM" - "08:15:00 AM". // - "HH:MM" - "08:15". // - "HH:MM PM" - "08:15 AM". TimePickerMin PropertyName = "time-picker-min" // TimePickerMax is the constant for "time-picker-max" property tag. // // Used by TimePicker. // The maximum value of the time. // // Supported types: time.Time, string. // // Internal type is time.Time, other types converted to it during assignment. // // Conversion rules: // string - values of this type parsed and converted to time.Time. The following formats are supported: // - "HH:MM:SS" - "08:15:00". // - "HH:MM:SS PM" - "08:15:00 AM". // - "HH:MM" - "08:15". // - "HH:MM PM" - "08:15 AM". TimePickerMax PropertyName = "time-picker-max" // TimePickerStep is the constant for "time-picker-step" property tag. // // Used by TimePicker. // Time step in seconds. // // Supported types: int, string. // // Values: // positive value - Step value in seconds used to increment or decrement time. TimePickerStep PropertyName = "time-picker-step" // TimePickerValue is the constant for "time-picker-value" property tag. // // Used by TimePicker. // Current value. // // Supported types: time.Time, string. // // Internal type is time.Time, other types converted to it during assignment. // // Conversion rules: // string - values of this type parsed and converted to time.Time. The following formats are supported: // - "HH:MM:SS" - "08:15:00". // - "HH:MM:SS PM" - "08:15:00 AM". // - "HH:MM" - "08:15". // - "HH:MM PM" - "08:15 AM". TimePickerValue PropertyName = "time-picker-value" )
Constants for TimePicker specific properties and events.
const ( // TouchStart is the constant for "touch-start" property tag. // // Used by View. // Is fired when one or more touch points are placed on the touch surface. // // General listener format: // // func(view rui.View, event rui.TouchEvent) // // where: // - view - Interface of a view which generated this event, // - event - Touch event. // // Allowed listener formats: // // func(event rui.TouchEvent) // func(view rui.View) // func() TouchStart PropertyName = "touch-start" // TouchEnd is the constant for "touch-end" property tag. // // Used by View. // Fired when one or more touch points are removed from the touch surface. // // General listener format: // // func(view rui.View, event rui.TouchEvent) // // where: // - view - Interface of a view which generated this event, // - event - Touch event. // // Allowed listener formats: // // func(event rui.TouchEvent) // func(view rui.View) // func() TouchEnd PropertyName = "touch-end" // TouchMove is the constant for "touch-move" property tag. // // Used by View. // Is fired when one or more touch points are moved along the touch surface. // // General listener format: // // func(view rui.View, event rui.TouchEvent) // // where: // - view - Interface of a view which generated this event, // - event - Touch event. // // Allowed listener formats: // // func(event rui.TouchEvent) // func(view rui.View) // func() TouchMove PropertyName = "touch-move" // TouchCancel is the constant for "touch-cancel" property tag. // // Used by View. // Is fired when one or more touch points have been disrupted in an implementation-specific manner (for example, too many // touch points are created). // // General listener format: // // func(view rui.View, event rui.TouchEvent) // // where: // - view - Interface of a view which generated this event, // - event - Touch event. // // Allowed listener formats: // // func(event rui.TouchEvent) // func(view rui.View) // func() TouchCancel PropertyName = "touch-cancel" )
Constants which represent View specific touch events properties
const ( // Transform is the constant for "transform" property tag. // // Used by View. // Specify translation, scale and rotation over x, y and z axes as well as a distortion of a view along x and y axes. // // Supported types: TransformProperty, string. // // See TransformProperty description for more details. // // Conversion rules: // - TransformProperty - stored as is, no conversion performed. // - string - string representation of TransformProperty interface. Example: "_{translate-x = 10px, scale-y = 1.1}". Transform PropertyName = "transform" // Perspective is the constant for "perspective" property tag. // // Used by View, TransformProperty. // Distance between the z-plane and the user in order to give a 3D-positioned element some perspective. Each 3D element // with z > 0 becomes larger, each 3D-element with z < 0 becomes smaller. The default value is 0 (no 3D effects). // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. Perspective PropertyName = "perspective" // PerspectiveOriginX is the constant for "perspective-origin-x" property tag. // // Used by View. // x-coordinate of the position at which the viewer is looking. It is used as the vanishing point by the "perspective" // property. The default value is 50%. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. PerspectiveOriginX PropertyName = "perspective-origin-x" // PerspectiveOriginY is the constant for "perspective-origin-y" property tag. // // Used by View. // y-coordinate of the position at which the viewer is looking. It is used as the vanishing point by the "perspective" // property. The default value is 50%. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. PerspectiveOriginY PropertyName = "perspective-origin-y" // BackfaceVisible is the constant for "backface-visibility" property tag. // // Used by View. // Controls whether the back face of a view is visible when turned towards the user. Default value is true. // // Supported types: bool, int, string. // // Values: // - true, 1, "true", "yes", "on", "1" - Back face is visible when turned towards the user. // - false, 0, "false", "no", "off", "0" - Back face is hidden, effectively making the view invisible when turned away from the user. BackfaceVisible PropertyName = "backface-visibility" // TransformOriginX is the constant for "transform-origin-x" property tag. // // Used by View. // x-coordinate of the point around which a view transformation is applied. The default value is 50%. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TransformOriginX PropertyName = "transform-origin-x" // TransformOriginY is the constant for "transform-origin-y" property tag. // // Used by View. // y-coordinate of the point around which a view transformation is applied. The default value is 50%. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TransformOriginY PropertyName = "transform-origin-y" // TransformOriginZ is the constant for "transform-origin-z" property tag. // // Used by View. // z-coordinate of the point around which a view transformation is applied. The default value is 50%. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TransformOriginZ PropertyName = "transform-origin-z" // TranslateX is the constant for "translate-x" property tag. // // Used by View, TransformProperty. // // x-axis translation value of a 2D/3D translation. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TranslateX PropertyName = "translate-x" // TranslateY is the constant for "translate-y" property tag. // // Used by View, TransformProperty. // // x-axis translation value of a 2D/3D translation. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TranslateY PropertyName = "translate-y" // TranslateZ is the constant for "translate-z" property tag. // // Used by View, TransformProperty. // // z-axis translation value of a 3D translation. // // Supported types: SizeUnit, SizeFunc, string, float, int. // // Internal type is SizeUnit, other types converted to it during assignment. // See SizeUnit description for more details. TranslateZ PropertyName = "translate-z" // ScaleX is the constant for "scale-x" property tag. // // Used by View, TransformProperty. // // x-axis scaling value of a 2D/3D scale. The original scale is 1. Values between 0 and 1 are used to decrease original // scale, more than 1 - to increase. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ScaleX PropertyName = "scale-x" // ScaleY is the constant for "scale-y" property tag. // // Used by View, TransformProperty. // // y-axis scaling value of a 2D/3D scale. The original scale is 1. Values between 0 and 1 are used to decrease original // scale, more than 1 - to increase. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ScaleY PropertyName = "scale-y" // ScaleZ is the constant for "scale-z" property tag. // // Used by View, TransformProperty. // // z-axis scaling value of a 3D scale. The original scale is 1. Values between 0 and 1 are used to decrease original // scale, more than 1 - to increase. The default value is 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. ScaleZ PropertyName = "scale-z" // Rotate is the constant for "rotate" property tag. // // Used by View, TransformProperty. // // Angle of the view rotation. A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. Rotate PropertyName = "rotate" // RotateX is the constant for "rotate-x" property tag. // // Used by View, TransformProperty. // // x-coordinate of the vector denoting the axis of rotation in range 0 to 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. RotateX PropertyName = "rotate-x" // RotateY is the constant for "rotate-y" property tag. // // Used by View, TransformProperty. // // y-coordinate of the vector denoting the axis of rotation in range 0 to 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. RotateY PropertyName = "rotate-y" // RotateZ is the constant for "rotate-z" property tag. // // Used by View, TransformProperty. // // z-coordinate of the vector denoting the axis of rotation in range 0 to 1. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. RotateZ PropertyName = "rotate-z" // SkewX is the constant for "skew-x" property tag. // // Used by View, TransformProperty. // // Angle to use to distort the element along the abscissa. The default value is 0. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. SkewX PropertyName = "skew-x" // SkewY is the constant for "skew-y" property tag. // // Used by View, TransformProperty. // // Angle to use to distort the element along the ordinate. The default value is 0. // // Supported types: AngleUnit, string, float, int. // // Internal type is AngleUnit, other types will be converted to it during assignment. // See AngleUnit description for more details. // // Conversion rules: // - AngleUnit - stored as is, no conversion performed. // - string - must contain string representation of AngleUnit. If numeric value will be provided without any suffix then AngleUnit with value and Radian value type will be created. // - float - a new AngleUnit value will be created with Radian as a type. // - int - a new AngleUnit value will be created with Radian as a type. SkewY PropertyName = "skew-y" )
Constants for TransformProperty specific properties
const ( // VideoWidth is the constant for "video-width" property tag. // // Used by VideoPlayer. // Defines the width of the video's display area in pixels. // // Supported types: float, int, string. // // Values: // Internal type is float, other types converted to it during assignment. VideoWidth PropertyName = "video-width" // VideoHeight is the constant for "video-height" property tag. // // Used by VideoPlayer. // Defines the height of the video's display area in pixels. // // Supported types: float, int, string. // // Internal type is float, other types converted to it during assignment. VideoHeight PropertyName = "video-height" // Poster is the constant for "poster" property tag. // // Used by VideoPlayer. // Defines an URL for an image to be shown while the video is downloading. If this attribute isn't specified, nothing is // displayed until the first frame is available, then the first frame is shown as the poster frame. // // Supported types: string. Poster PropertyName = "poster" )
Constants for VideoPlayer specific properties and events
const CheckboxChangedEvent PropertyName = "checkbox-event"
CheckboxChangedEvent is the constant for "checkbox-event" property tag.
Used by `Checkbox`. Event occurs when the checkbox becomes checked/unchecked.
General listener format:
func(checkbox rui.Checkbox, checked bool)
where:
- checkbox - Interface of a checkbox which generated this event,
- checked - Checkbox state.
Allowed listener formats:
func(checkbox rui.Checkbox) func(checked bool) func()
const ( // DataList is the constant for "data-list" property tag. // // Used by ColorPicker, DatePicker, EditView, NumberPicker, TimePicker. // // # Usage in ColorPicker // // List of pre-defined colors. // // Supported types: []string, string, []fmt.Stringer, []Color, []any containing // elements of string, fmt.Stringer, int, int8…int64, uint, uint8…uint64. // // Internal type is []string, other types converted to it during assignment. // // Conversion rules: // - string - contain single item. // - []string - an array of items. // - []fmt.Stringer - an array of objects convertible to a string. // - []Color - An array of color values which will be converted to a string array. // - []any - this array must contain only types which were listed in Types section. // // # Usage in DatePicker // // List of predefined dates. If we set this property, date picker may have a drop-down menu with a list of these values. // Some browsers may ignore this property, such as Safari for macOS. The value of this property must be an array of // strings in the format "YYYY-MM-DD". // // Supported types: []string, string, []fmt.Stringer, []time.Time, []any containing elements of string, fmt.Stringer, time.Time. // // Internal type is []string, other types converted to it during assignment. // // Conversion rules: // - string - contain single item. // - []string - an array of items. // - []fmt.Stringer - an array of objects convertible to a string. // - []time.Time - an array of Time values which will be converted to a string array. // - []any - this array must contain only types which were listed in Types section. // // # Usage in EditView // // Array of recommended values. // // Supported types: []string, string, []fmt.Stringer, and []any containing // elements of string, fmt.Stringer, bool, rune, float32, float64, int, int8…int64, uint, uint8…uint64. // // Internal type is []string, other types converted to it during assignment. // // Conversion rules: // - string - contain single item. // - []string - an array of items. // - []fmt.Stringer - an array of objects convertible to a string. // - []any - this array must contain only types which were listed in Types section. // // # Usage in NumberPicker // // Specify an array of recommended values. // // Supported types: []string, string, []fmt.Stringer, []float, []int, []bool, []any containing elements // of string, fmt.Stringer, rune, float32, float64, int, int8…int64, uint, uint8…uint64. // // Internal type is []string, other types converted to it during assignment. // // Conversion rules: // - string - must contain integer or floating point number, converted to []string. // - []string - an array of strings which must contain integer or floating point numbers, stored as is. // - []fmt.Stringer - object which implement this interface must contain integer or floating point numbers, converted to a []string. // - []float - converted to []string. // - []int - converted to []string. // - []any - an array which may contain types listed in Types section above, each value will be converted to a string and wrapped to array. // // # Usage in TimePicker // // An array of recommended values. The value of this property must be an array of strings in the format "HH:MM:SS" or // "HH:MM". // // Supported types: []string, string, []fmt.Stringer, []time.Time, []any containing elements of string, fmt.Stringer, time.Time. // // Internal type is []string, other types converted to it during assignment. // // Conversion rules: // - string - contain single item. // - []string - an array of items. // - []fmt.Stringer - an array of objects convertible to a string. // - []time.Time - An array of Time values which will be converted to a string array. // - []any - this array must contain only types which were listed in Types section. DataList PropertyName = "data-list" )
const DrawFunction PropertyName = "draw-function"
DrawFunction is the constant for "draw-function" property tag.
Used by `CanvasView`. Property sets the draw function of `CanvasView`.
Supported types: `func(Canvas)`.
const DropDownEvent PropertyName = "drop-down-event"
DropDownEvent is the constant for "drop-down-event" property tag.
Used by DropDownList. Occur when a list item becomes selected.
General listener format:
func(list rui.DropDownList, index int)
where:
- list - Interface of a drop down list which generated this event,
- index - Index of a newly selected item.
Allowed listener formats:
func(index int) func(list rui.DropDownList) func()
const ResizeEvent PropertyName = "resize-event"
ResizeEvent is the constant for "resize-event" property tag.
Used by View. Is fired when the view changes its size.
General listener format:
func(view rui.View, frame rui.Frame)
where:
- view - Interface of a view which generated this event,
- frame - New offset and size of the view's visible area.
Allowed listener formats:
func(frame rui.Frame) func(view rui.View) func()
const ScrollEvent PropertyName = "scroll-event"
ScrollEvent is the constant for "scroll-event" property tag.
Used by View. Is fired when the content of the view is scrolled.
General listener format:
func(view rui.View, frame rui.Frame)
where:
- view - Interface of a view which generated this event,
- frame - New offset and size of the view's visible area.
Allowed listener formats:
func(frame rui.Frame) func(view rui.View) func()
type RadialGradientRadiusType ¶ added in v0.18.0
type RadialGradientRadiusType int
const ( // EllipseGradient is value of the Shape property of a radial gradient background: // the shape is an axis-aligned ellipse EllipseGradient = 0 // CircleGradient is value of the Shape property of a radial gradient background: // the gradient's shape is a circle with constant radius CircleGradient = 1 // ClosestSideGradient is value of the Radius property of a radial gradient background: // The gradient's ending shape meets the side of the box closest to its center (for circles) // or meets both the vertical and horizontal sides closest to the center (for ellipses). ClosestSideGradient RadialGradientRadiusType = 0 // ClosestCornerGradient is value of the Radius property of a radial gradient background: // The gradient's ending shape is sized so that it exactly meets the closest corner // of the box from its center. ClosestCornerGradient RadialGradientRadiusType = 1 // FarthestSideGradient is value of the Radius property of a radial gradient background: // Similar to closest-side, except the ending shape is sized to meet the side of the box // farthest from its center (or vertical and horizontal sides). FarthestSideGradient RadialGradientRadiusType = 2 // FarthestCornerGradient is value of the Radius property of a radial gradient background: // The default value, the gradient's ending shape is sized so that it exactly meets // the farthest corner of the box from its center. FarthestCornerGradient RadialGradientRadiusType = 3 )
Constants related to view's background gradient description
type RadiusProperty ¶
type RadiusProperty interface { Properties fmt.Stringer // BoxRadius returns x and y radius of the corners of the element BoxRadius(session Session) BoxRadius // contains filtered or unexported methods }
RadiusProperty is a description of the View (shape) elliptical corner radius.
func NewEllipticRadius ¶ added in v0.18.0
func NewEllipticRadius[xType SizeUnit | int | float64, yType SizeUnit | int | float64](x xType, y yType) RadiusProperty
NewRadiusProperty creates the new RadiusProperty which having the same elliptical radii for all angles.
Arguments determines the x- and y-axis elliptic rounding radius. if an argument is specified as int or float64, the value is considered to be in pixels
func NewRadii ¶ added in v0.18.0
func NewRadii[topRightType SizeUnit | int | float64, bottomRightType SizeUnit | int | float64, bottomLeftType SizeUnit | int | float64, topLeftType SizeUnit | int | float64]( topRight topRightType, bottomRight bottomRightType, bottomLeft bottomLeftType, topLeft topLeftType) RadiusProperty
NewRadius creates the new RadiusProperty.
The arguments specify the radii in a clockwise direction: "top-right", "bottom-right", "bottom-left", and "top-left".
if an argument is specified as int or float64, the value is considered to be in pixels
func NewRadiusProperty ¶
func NewRadiusProperty(params Params) RadiusProperty
NewRadiusProperty creates the new RadiusProperty
The following properties can be used:
- "x" (X) - Determines the x-axis elliptic rounding radius of an element's outer border edge.
- "y" (Y) - Determines the y-axis corner elliptic rounding radius of an element's outer border edge.
- "top-left" (TopLeft) - Determines the top-left corner rounding radius of an element's outer border edge.
- "top-left-x" (TopLeftX) - Determines the x-axis top-left corner elliptic rounding radius of an element's outer border edge.
- "top-left-y" (TopLeftY) - Determines the y-axis top-left corner elliptic rounding radius of an element's outer border edge.
- "top-right" (TopRight) - Determines the top-right corner rounding radius of an element's outer border edge.
- "top-right-x" (TopRightX) - Determines the x-axis top-right corner elliptic rounding radius of an element's outer border edge.
- "top-right-y" (TopRightY) - Determines the y-axis top-right corner elliptic rounding radius of an element's outer border edge.
- "bottom-left" (BottomLeft) - Determines the bottom-left corner rounding radius of an element's outer border edge.
- "bottom-left-x" (BottomLeftX) - Determines the x-axis bottom-left corner elliptic rounding radius of an element's outer border edge.
- "bottom-left-y" (BottomLeftY) - Determines the y-axis bottom-left corner elliptic rounding radius of an element's outer border edge.
- "bottom-right" (BottomRight) - Determines the bottom-right corner rounding radius of an element's outer border edge.
- "bottom-right-x" (BottomRightX) - Determines the x-axis bottom-right corner elliptic rounding radius of an element's outer border edge.
- "bottom-right-y" (BottomRightY) - Determines the y-axis bottom-right corner elliptic rounding radius of an element's outer border edge.
type Range ¶
type Range struct {
First, Last int
}
Range defines range limits. The First and Last value are included in the range
func GetColumn ¶
GetColumn returns the range of column numbers of a GridLayout in which the subview is placed. If the second argument (subviewID) is not specified or it is "" then a values from the first argument (view) is returned.
type Resizable ¶
type Resizable interface { View ParentView }
Resizable represents a Resizable view
func NewResizable ¶
NewResizable create new Resizable object and return it
type Session ¶
type Session interface { // App return the current application interface App() Application // ID return the id of the session ID() int // DarkTheme returns "true" if the dark theme is used DarkTheme() bool // Mobile returns "true" if current session is displayed on a touch screen device TouchScreen() bool // PixelRatio returns the ratio of the resolution in physical pixels to the resolution // in logical pixels for the current display device. PixelRatio() float64 // TextDirection returns the default text direction (LeftToRightDirection (1) or RightToLeftDirection (2)) TextDirection() int // Constant returns the constant with "tag" name or "" if it is not exists Constant(tag string) (string, bool) // Color returns the color with "tag" name or 0 if it is not exists Color(tag string) (Color, bool) // ImageConstant returns the image constant with "tag" name or "" if it is not exists ImageConstant(tag string) (string, bool) // SetCustomTheme set the custom theme SetCustomTheme(name string) bool // UserAgent returns the "user-agent" text of the client browser UserAgent() string // RemoteAddr returns the client address. RemoteAddr() string // Language returns the current session language Language() string // SetLanguage set the current session language SetLanguage(lang string) // GetString returns the text for the current language GetString(tag string) (string, bool) // Content returns the SessionContent of session Content() SessionContent // SetTitle sets the text of the browser title/tab SetTitle(title string) // SetTitleColor sets the color of the browser navigation bar. Supported only in Safari and Chrome for android SetTitleColor(color Color) // RootView returns the root view of the session RootView() View // Get returns a value of the view (with id defined by the first argument) property with name defined by the second argument. // The type of return value depends on the property. If the property is not set then nil is returned. Get(viewID string, tag PropertyName) any // Set sets the value (third argument) of the property (second argument) of the view with id defined by the first argument. // Return "true" if the value has been set, in the opposite case "false" are returned and // a description of the error is written to the log Set(viewID string, tag PropertyName, value any) bool // DownloadFile downloads (saves) on the client side the file located at the specified path on the server. DownloadFile(path string) //DownloadFileData downloads (saves) on the client side a file with a specified name and specified content. DownloadFileData(filename string, data []byte) // OpenURL opens the url in the new browser tab OpenURL(url string) // ClientItem reads value by key from the client-side storage ClientItem(key string) (string, bool) // SetClientItem stores a key-value pair in the client-side storage SetClientItem(key, value string) // RemoveClientItem removes a key-value pair in the client-side storage RemoveClientItem(key string) // RemoveAllClientItems removes all key-value pair from the client-side storage RemoveAllClientItems() // SetHotKey sets the function that will be called when the given hotkey is pressed. // Invoke SetHotKey(..., ..., nil) for remove hotkey function. SetHotKey(keyCode KeyCode, controlKeys ControlKeyMask, fn func(Session)) // StartTimer starts a timer on the client side. // The first argument specifies the timer period in milliseconds. // The second argument specifies a function that will be called on each timer event. // The result is the id of the timer, which is used to stop the timer StartTimer(ms int, timerFunc func(Session)) int // StopTimer the timer with the given id StopTimer(timerID int) // contains filtered or unexported methods }
Session provide interface to session parameters assess
type SessionContent ¶
type SessionContent interface { // CreateRootView will be called by the library to create a root view of the application CreateRootView(session Session) View }
SessionContent is the interface of a session content
type SessionDisconnectListener ¶
type SessionDisconnectListener interface { // OnDisconnect is a function that is called by the library if the server loses connection with the client and // this happens when the connection is broken OnDisconnect(session Session) }
SessionPauseListener is the listener interface of a session disconnect event
type SessionFinishListener ¶
type SessionFinishListener interface { // OnFinish is a function that is called by the library when the user closes the application page in the browser OnFinish(session Session) }
SessionFinishListener is the listener interface of a session start event
type SessionPauseListener ¶
type SessionPauseListener interface { // OnPause is a function that is called by the library when the application page in the client's browser becomes // inactive and is also called when the user switches to a different browser tab/window, minimizes the browser, // or switches to another application OnPause(session Session) }
SessionPauseListener is the listener interface of a session pause event
type SessionReconnectListener ¶
type SessionReconnectListener interface { // OnReconnect is a function that is called by the library after the server reconnects with the client // and this happens when the connection is restored OnReconnect(session Session) }
SessionPauseListener is the listener interface of a session reconnect event
type SessionResumeListener ¶
type SessionResumeListener interface { // OnResume is a function that is called by the library when the application page in the client's browser becomes // active and is also called immediately after OnStart OnResume(session Session) }
SessionResumeListener is the listener interface of a session resume event
type SessionStartListener ¶
type SessionStartListener interface { // OnStart is a function that is called by the library after the creation of the root view of the application OnStart(session Session) }
SessionStartListener is the listener interface of a session start event
type ShadowProperty ¶ added in v0.18.0
type ShadowProperty interface { Properties fmt.Stringer // contains filtered or unexported methods }
ShadowProperty contains attributes of the view shadow
func GetShadowPropertys ¶ added in v0.18.0
func GetShadowPropertys(view View, subviewID ...string) []ShadowProperty
GetShadowPropertys returns shadows of the subview. If the second argument (subviewID) is not specified or it is "" then shadows of the first argument (view) is returned.
func GetTextShadows ¶
func GetTextShadows(view View, subviewID ...string) []ShadowProperty
GetTextShadows returns text shadows of the subview. If the second argument (subviewID) is not specified or it is "" then shadows of the first argument (view) is returned.
func NewInsetShadow ¶ added in v0.18.0
func NewInsetShadow[xOffsetType SizeUnit | int | float64, yOffsetType SizeUnit | int | float64, blurType SizeUnit | int | float64, spreadType SizeUnit | int | float64]( xOffset xOffsetType, yOffset yOffsetType, blurRadius blurType, spreadRadius spreadType, color Color) ShadowProperty
NewInsetShadow create the new inset shadow property for a view. Arguments:
- offsetX, offsetY is x and y offset of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- blurRadius is the blur radius of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- spreadRadius is the spread radius of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- color is the color of the shadow.
func NewShadow ¶ added in v0.18.0
func NewShadow[xOffsetType SizeUnit | int | float64, yOffsetType SizeUnit | int | float64, blurType SizeUnit | int | float64, spreadType SizeUnit | int | float64]( xOffset xOffsetType, yOffset yOffsetType, blurRadius blurType, spreadRadius spreadType, color Color) ShadowProperty
NewShadow create the new shadow property for a view. Arguments:
- offsetX, offsetY is x and y offset of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- blurRadius is the blur radius of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- spreadRadius is the spread radius of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- color is the color of the shadow.
func NewShadowProperty ¶ added in v0.18.0
func NewShadowProperty(params Params) ShadowProperty
NewShadowProperty create the new shadow property for a view.
The following properties can be used:
- "color" (ColorTag). Determines the color of the shadow (Color);
- "x-offset" (XOffset). Determines the shadow horizontal offset (SizeUnit);
- "y-offset" (YOffset). Determines the shadow vertical offset (SizeUnit);
- "blur" (BlurRadius). Determines the radius of the blur effect (SizeUnit);
- "spread-radius" (SpreadRadius). Positive values (SizeUnit) will cause the shadow to expand and grow bigger, negative values will cause the shadow to shrink;
- "inset" (Inset). Controls (bool) whether to draw shadow inside the frame or outside.
func NewTextShadow ¶
func NewTextShadow[xOffsetType SizeUnit | int | float64, yOffsetType SizeUnit | int | float64, blurType SizeUnit | int | float64]( xOffset xOffsetType, yOffset yOffsetType, blurRadius blurType, color Color) ShadowProperty
NewTextShadow create the new text shadow property. Arguments:
- offsetX, offsetY is the x- and y-offset of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- blurRadius is the blur radius of the shadow (if the argument is specified as int or float64, the value is considered to be in pixels);
- color is the color of the shadow.
type SimpleTableAdapter ¶
type SimpleTableAdapter interface { TableAdapter TableCellStyle }
SimpleTableAdapter is implementation of TableAdapter where the content defines as [][]any.
When you assign [][]any value to the "content" property, it is converted to SimpleTableAdapter
func NewSimpleTableAdapter ¶
func NewSimpleTableAdapter(content [][]any) SimpleTableAdapter
NewSimpleTableAdapter creates the new SimpleTableAdapter
type SizeFunc ¶ added in v0.9.0
type SizeFunc interface { fmt.Stringer // Name() returns the function name: "min", "max", "clamp", "sum", "sub", "mul", // "div", "mod", "rem", "round", "round-up", "round-down" or "round-to-zero" Name() string // Args() returns a list of function arguments Args() []any // contains filtered or unexported methods }
SizeFunc describes a function that calculates the SizeUnit size.
Used as the value of the SizeUnit properties.
"min", "max", "clamp", "sum", "sub", "mul", "div", mod, "round", "round-up", "round-down" and "round-to-zero" functions are available.
func ClampSize ¶ added in v0.9.0
ClampSize creates a SizeUnit function whose the result is calculated as follows:
min ≤ value ≤ max -> value; value < min -> min; max < value -> max;
Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc.
func DivSize ¶ added in v0.9.0
DivSize creates a SizeUnit function that calculates the result of dividing the arguments (arg1 / arg2). Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func MaxSize ¶ added in v0.9.0
MaxSize creates a SizeUnit function that calculates the maximum argument. Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc
func MinSize ¶ added in v0.9.0
MinSize creates a SizeUnit function that calculates the minimum argument. Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc.
func ModSize ¶ added in v0.17.0
ModSize creates a SizeUnit function that calculates the remainder of a division operation with the same sign as the divisor (arg1 % arg2). Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func MulSize ¶ added in v0.9.0
MulSize creates a SizeUnit function that calculates the result of multiplying the arguments (arg1 * arg2). Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func RemSize ¶ added in v0.17.0
RemSize creates a SizeUnit function that calculates the remainder of a division operation with the same sign as the dividend (arg1 % arg2). Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func RoundDownSize ¶ added in v0.17.0
RoundDownSize creates a SizeUnit function that calculates a rounded number. The function rounds valueToRound (first argument) down to the nearest integer multiple of roundingInterval (second argument) (if the value is negative, it will become "more negative"). Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func RoundSize ¶ added in v0.17.0
RoundSize creates a SizeUnit function that calculates a rounded number. The function rounds valueToRound (first argument) to the nearest integer multiple of roundingInterval (second argument), which may be either above or below the value. If the valueToRound is half way between the rounding targets above and below (neither is "nearest"), it will be rounded up. Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func RoundToZeroSize ¶ added in v0.17.0
RoundToZeroSize creates a SizeUnit function that calculates a rounded number. The function rounds valueToRound (first argument) to the nearest integer multiple of roundingInterval (second argument), which may be either above or below the value. If the valueToRound is half way between the rounding targets above and below. Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
func RoundUpSize ¶ added in v0.17.0
RoundUpSize creates a SizeUnit function that calculates a rounded number. The function rounds valueToRound (first argument) up to the nearest integer multiple of roundingInterval (second argument) (if the value is negative, it will become "more positive"). Valid arguments types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc. The second argument can also be a number (float32, float32, int, int8...int64, uint, uint8...unit64) or a string which is a text representation of a number.
type SizeUnit ¶
type SizeUnit struct { // Type or dimension of the value Type SizeUnitType // Value of the size in Type units Value float64 // Function representation of a size unit. // When setting this value type should be set to SizeFunction Function SizeFunc }
SizeUnit describe a size (Value field) and size unit (Type field).
func Cm ¶
func Cm[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Cm creates SizeUnit with SizeInCM type
func Em ¶
func Em[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Em creates SizeUnit with SizeInEM type
func Ex ¶
func Ex[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Ex creates SizeUnit with SizeInEX type
func Fr ¶
func Fr[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Fr creates SizeUnit with SizeInFraction type
func GetBottom ¶
GetBottom returns a top position of the subview in an AbsoluteLayout container. If a parent view is not an AbsoluteLayout container then this value is ignored. If the second argument (subviewID) is not specified or it is "" then a bottom position of the first argument (view) is returned
func GetCellHeight ¶
GetCellHeight returns the height of a GridLayout cell. If the result is an empty array, then the height is not set. If the result is a single value array, then the height of all cell is equal. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetCellWidth ¶
GetCellWidth returns the width of a GridLayout cell. If the result is an empty array, then the width is not set. If the result is a single value array, then the width of all cell is equal. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetColumnGap ¶
GetColumnGap returns SizeUnit property which specifies the size of the gap (gutter) between columns of ColumnLayout. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetColumnSeparatorWidth ¶
ColumnSeparatorWidth returns SizeUnit value which specifies the width of the line drawn between columns in a multi-column layout. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetColumnWidth ¶
GetColumnWidth returns SizeUnit value which specifies the width of each column of ColumnLayout. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetGridColumnGap ¶
GetGridColumnGap returns the gap between GridLayout columns. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetGridRowGap ¶
GetGridRowGap returns the gap between GridLayout rows. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetHeight ¶
GetHeight returns the subview height. If the second argument (subviewID) is not specified or it is "" then a height of the first argument (view) is returned
func GetLeft ¶
GetLeft returns a left position of the subview in an AbsoluteLayout container. If a parent view is not an AbsoluteLayout container then this value is ignored. If the second argument (subviewID) is not specified or it is "" then a left position of the first argument (view) is returned
func GetLetterSpacing ¶
GetLetterSpacing returns a letter spacing of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetLineHeight ¶
GetLineHeight returns a height of a text line of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListColumnGap ¶ added in v0.9.0
GetListColumnGap returns the gap between ListLayout or ListView columns. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemHeight ¶
GetListItemHeight returns the height of a ListView item. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListItemWidth ¶
GetListItemWidth returns the width of a ListView item. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetListRowGap ¶ added in v0.9.0
GetListRowGap returns the gap between ListLayout or ListView rows. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetMaxHeight ¶
GetMaxHeight returns a maximal subview height. If the second argument (subviewID) is not specified or it is "" then a maximal height of the first argument (view) is returned
func GetMaxWidth ¶
GetMaxWidth returns a maximal subview width. If the second argument (subviewID) is not specified or it is "" then a maximal width of the first argument (view) is returned
func GetMinHeight ¶
GetMinHeight returns a minimal subview height. If the second argument (subviewID) is not specified or it is "" then a minimal height of the first argument (view) is returned
func GetMinWidth ¶
GetMinWidth returns a minimal subview width. If the second argument (subviewID) is not specified or it is "" then a minimal width of the first argument (view) is returned
func GetOutlineOffset ¶ added in v0.13.0
GetOutlineOffset returns the subview outline offset. If the second argument (subviewID) is not specified or it is "" then a offset of the first argument (view) is returned
func GetPerspective ¶
GetPerspective returns a distance between the z = 0 plane and the user in order to give a 3D-positioned element some perspective. Each 3D element with z > 0 becomes larger; each 3D-element with z < 0 becomes smaller. The default value is 0 (no 3D effects). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetRight ¶
GetRight returns a right position of the subview in an AbsoluteLayout container. If a parent view is not an AbsoluteLayout container then this value is ignored. If the second argument (subviewID) is not specified or it is "" then a right position of the first argument (view) is returned
func GetTextIndent ¶
GetTextIndent returns a text indent of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextLineThickness ¶
GetTextLineThickness returns the stroke thickness of the decoration line that is used on text in an element, such as a line-through, underline, or overline. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTextSize ¶
GetTextSize returns a text size of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTop ¶
GetTop returns a top position of the subview in an AbsoluteLayout container. If a parent view is not an AbsoluteLayout container then this value is ignored. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
func GetWidth ¶
GetWidth returns the subview width. If the second argument (subviewID) is not specified or it is "" then a width of the first argument (view) is returned
func GetWordSpacing ¶
GetWordSpacing returns a word spacing of the subview. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func Inch ¶
func Inch[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Inch creates SizeUnit with SizeInInch type
func Mm ¶
func Mm[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Mm creates SizeUnit with SizeInMM type
func Pc ¶
func Pc[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Pc creates SizeUnit with SizeInPc type
func Percent ¶
func Percent[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Percent creates SizeUnit with SizeInDIP type
func Pt ¶
func Pt[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Pt creates SizeUnit with SizeInPt type
func Px ¶
func Px[T float64 | float32 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64](value T) SizeUnit
Px creates SizeUnit with SizeInPixel type
func StringToSizeUnit ¶
StringToSizeUnit converts the string argument to SizeUnit
type SizeUnitType ¶
type SizeUnitType uint8
SizeUnitType : type of enumerated constants for define a type of SizeUnit value.
Can take the following values: Auto, SizeInPixel, SizeInPercent, SizeInDIP, SizeInPt, SizeInInch, SizeInMM, SizeInFraction
const ( // Auto is the SizeUnit type: default value. Auto SizeUnitType = 0 // SizeInPixel is the SizeUnit type: the Value field specifies the size in pixels. SizeInPixel SizeUnitType = 1 // SizeInEM is the SizeUnit type: the Value field specifies the size in em. SizeInEM SizeUnitType = 2 // SizeInEX is the SizeUnit type: the Value field specifies the size in em. SizeInEX SizeUnitType = 3 // SizeInPercent is the SizeUnit type: the Value field specifies the size in percents of the parent size. SizeInPercent SizeUnitType = 4 // SizeInPt is the SizeUnit type: the Value field specifies the size in pt (1/72 inch). SizeInPt SizeUnitType = 5 // SizeInPc is the SizeUnit type: the Value field specifies the size in pc (1pc = 12pt). SizeInPc SizeUnitType = 6 // SizeInInch is the SizeUnit type: the Value field specifies the size in inches. SizeInInch SizeUnitType = 7 // SizeInMM is the SizeUnit type: the Value field specifies the size in millimeters. SizeInMM SizeUnitType = 8 // SizeInCM is the SizeUnit type: the Value field specifies the size in centimeters. SizeInCM SizeUnitType = 9 // SizeInFraction is the SizeUnit type: the Value field specifies the size in fraction. // Used only for "cell-width" and "cell-height" property. SizeInFraction SizeUnitType = 10 // SizeFunction is the SizeUnit type: the Function field specifies the size function. // "min", "max", "clamp", "sum", "sub", "mul", and "div" functions are available. SizeFunction = 11 )
Constants which represent values of a SizeUnitType
type StackLayout ¶
type StackLayout interface { ViewsContainer // Peek returns the current (visible) View. If StackLayout is empty then it returns nil. Peek() View // RemovePeek removes the current View and returns it. If StackLayout is empty then it doesn't do anything and returns nil. RemovePeek() View // MoveToFront makes the given View current. // // The second argument is a function called after the move to front animation ends. // // Returns true if successful, false otherwise. MoveToFront(view View, onShown ...func(View)) bool // MoveToFrontByID makes the View current by viewID. // // The second argument is a function called after the move to front animation ends. // // Returns true if successful, false otherwise. MoveToFrontByID(viewID string, onShown ...func(View)) bool // Push adds a new View to the container and makes it current. // // It is similar to Append, but the addition is done using an animation effect. // // The animation type is specified by the second argument and can take the following values: // - DefaultAnimation (0) - Default animation. For the Push function it is EndToStartAnimation, for Pop - StartToEndAnimation; // - StartToEndAnimation (1) - Animation from beginning to end. The beginning and the end are determined by the direction of the text output; // - EndToStartAnimation (2) - End-to-Beginning animation; // - TopDownAnimation (3) - Top-down animation; // - BottomUpAnimation (4) - Bottom up animation. // The second argument `onPushFinished` is the function to be called when the animation ends. Push(view View, onPushFinished ...func()) // Pop removes the current View from the container using animation. // // The argument `onPopFinished` is the function to be called when the animation ends. // // The function will return false if the StackLayout is empty and true if the current item has been removed. Pop(onPopFinished ...func(View)) bool }
StackLayout represents a StackLayout view
func NewStackLayout ¶
func NewStackLayout(session Session, params Params) StackLayout
NewStackLayout create new StackLayout object and return it
func StackLayoutByID ¶
func StackLayoutByID(rootView View, id string, ids ...string) StackLayout
StackLayoutByID return the StackLayout path to which is specified using the arguments id, ids. Example
view := StackLayoutByID(rootView, "id1", "id2", "id3") view := StackLayoutByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not StackLayout, the function will return nil
type SvgImageView ¶ added in v0.12.0
type SvgImageView interface { View }
SvgImageView represents an SvgImageView view
func NewSvgImageView ¶ added in v0.12.0
func NewSvgImageView(session Session, params Params) SvgImageView
NewSvgImageView create new SvgImageView object and return it
type TableAdapter ¶
type TableAdapter interface { // RowCount returns number of rows in the table RowCount() int // ColumnCount returns number of columns in the table ColumnCount() int // Cell returns the contents of a table cell. The function can return elements of the following types: // - string // - rune // - float32, float64 // - integer values: int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64 // - bool // - rui.Color // - rui.View // - fmt.Stringer // - rui.VerticalTableJoin, rui.HorizontalTableJoin Cell(row, column int) any }
TableAdapter describes the TableView content
func GetTableContent ¶ added in v0.5.0
func GetTableContent(view View, subviewID ...string) TableAdapter
GetTableContent returns a TableAdapter which defines the TableView content. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
type TableAllowCellSelection ¶ added in v0.5.0
type TableAllowCellSelection interface { // AllowCellSelection returns "true" if we allow the user to select particular cell at specific rows and columns AllowCellSelection(row, column int) bool }
TableAllowCellSelection determines whether TableView cell selection is allowed.
It is only used if the "selection-mode" property is set to CellSelection (1).
To set cell selection allowing, you must either implement the TableAllowCellSelection interface in the table adapter or assign its separate implementation to the "allow-selection" property.
type TableAllowRowSelection ¶ added in v0.5.0
type TableAllowRowSelection interface { // AllowRowSelection returns "true" if we allow the user to select particular row in the table AllowRowSelection(row int) bool }
TableAllowRowSelection determines whether TableView row selection is allowed.
It is only used if the "selection-mode" property is set to RowSelection (2).
To set row selection allowing, you must either implement the TableAllowRowSelection interface in the table adapter or assign its separate implementation to the "allow-selection" property.
type TableCellStyle ¶
type TableCellStyle interface { // CellStyle returns a map of properties which describe the style of the cell CellStyle(row, column int) Params }
TableCellStyle describes the style of TableView cells.
To set row cells, you must either implement the TableCellStyle interface in the table adapter or assign its separate implementation to the "cell-style" property.
func GetTableCellStyle ¶ added in v0.5.0
func GetTableCellStyle(view View, subviewID ...string) TableCellStyle
GetTableCellStyle returns a TableCellStyle which defines styles of TableView cells. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
type TableColumnStyle ¶
type TableColumnStyle interface { // ColumnStyle returns a map of properties which describe the style of the column ColumnStyle(column int) Params }
TableColumnStyle describes the style of TableView columns.
To set column styles, you must either implement the TableColumnStyle interface in the table adapter or assign its separate implementation to the "column-style" property.
func GetTableColumnStyle ¶ added in v0.5.0
func GetTableColumnStyle(view View, subviewID ...string) TableColumnStyle
GetTableColumnStyle returns a TableColumnStyle which defines styles of TableView columns. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
type TableRowStyle ¶
type TableRowStyle interface { // RowStyle returns a map of properties which describe the style of the row RowStyle(row int) Params }
TableRowStyle describes the style of TableView rows.
To set row styles, you must either implement the TableRowStyle interface in the table adapter or assign its separate implementation to the "row-style" property.
func GetTableRowStyle ¶ added in v0.5.0
func GetTableRowStyle(view View, subviewID ...string) TableRowStyle
GetTableRowStyle returns a TableRowStyle which defines styles of TableView rows. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
type TableView ¶
type TableView interface { View ParentView // ReloadTableData forces the table view to reload all data and redraw the entire table ReloadTableData() // ReloadCell forces the table view to reload the data for a specific cell and redraw it ReloadCell(row, column int) // CellFrame returns the frame of a specific cell, describing its position and size within the table view CellFrame(row, column int) Frame }
TableView represents a TableView view
func NewTableView ¶
NewTableView create new TableView object and return it
func TableViewByID ¶ added in v0.3.0
TableViewByID return the TableView path to which is specified using the arguments id, ids. Example
view := TableViewByID(rootView, "id1", "id2", "id3") view := TableViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not TableView, the function will return nil
type TabsLayout ¶
type TabsLayout interface { ViewsContainer ListAdapter }
TabsLayout represents a TabsLayout view
func NewTabsLayout ¶
func NewTabsLayout(session Session, params Params) TabsLayout
NewTabsLayout create new TabsLayout object and return it
func TabsLayoutByID ¶
func TabsLayoutByID(rootView View, id string, ids ...string) TabsLayout
TabsLayoutByID return the TabsLayout path to which is specified using the arguments id, ids. Example
view := TabsLayoutByID(rootView, "id1", "id2", "id3") view := TabsLayoutByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not TabsLayout, the function will return nil
type TextMetrics ¶ added in v0.10.0
type TextMetrics struct { // Width is the calculated width of a segment of inline text in pixels Width float64 // Ascent is the distance from the horizontal baseline to the top of the bounding rectangle used to render the text, in pixels. Ascent float64 // Descent is the distance from the horizontal baseline to the bottom of the bounding rectangle used to render the text, in pixels. Descent float64 // Left is the distance to the left side of the bounding rectangle of the given text, in pixels; // positive numbers indicating a distance going left from the given alignment point. Left float64 // Right is the distance to the right side of the bounding rectangle of the given text, CSS pixels. Right float64 }
TextMetrics is the result of the Canvas.TextMetrics function
type TextTableAdapter ¶
type TextTableAdapter interface { TableAdapter }
TextTableAdapter is implementation of TableAdapter where the content defines as [][]string. When you assign [][]string value to the "content" property, it is converted to TextTableAdapter
func NewTextTableAdapter ¶
func NewTextTableAdapter(content [][]string) TextTableAdapter
NewTextTableAdapter creates the new TextTableAdapter
type TextView ¶
type TextView interface { View }
TextView represents a TextView view
func NewTextView ¶
NewTextView create new TextView object and return it
func TextViewByID ¶
TextViewByID return the TextView path to which is specified using the arguments id, ids. Example
view := TextViewByID(rootView, "id1", "id2", "id3") view := TextViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not TextView, the function will return nil
type Theme ¶ added in v0.6.0
type Theme interface { fmt.Stringer // Name returns a name of the theme Name() string // Constant returns normal and touch theme constant value with specific tag Constant(tag string) (string, string) // SetConstant sets a value for a constant SetConstant(tag string, value, touchUIValue string) // ConstantTags returns the list of all available constants ConstantTags() []string // Color returns normal and dark theme color constant value with specific tag Color(tag string) (string, string) // SetColor sets normal and dark theme color constant value with specific tag SetColor(tag, color, darkUIColor string) // ColorTags returns the list of all available color constants ColorTags() []string // Image returns normal and dark theme image constant value with specific tag Image(tag string) (string, string) // SetImage sets normal and dark theme image constant value with specific tag SetImage(tag, image, darkUIImage string) // ImageConstantTags returns the list of all available image constants ImageConstantTags() []string // Style returns view style by its tag Style(tag string) ViewStyle // SetStyle sets style for a tag SetStyle(tag string, style ViewStyle) // RemoveStyle removes style with provided tag RemoveStyle(tag string) // MediaStyle returns media style which correspond to provided media style parameters MediaStyle(tag string, params MediaStyleParams) ViewStyle // SetMediaStyle sets media style with provided media style parameters and a tag SetMediaStyle(tag string, params MediaStyleParams, style ViewStyle) // StyleTags returns all tags which describe a style StyleTags() []string // MediaStyles returns all media style settings which correspond to a style tag MediaStyles(tag string) []struct { Selectors string Params MediaStyleParams } // Append theme to a list of themes Append(anotherTheme Theme) // contains filtered or unexported methods }
Theme interface to describe application's theme
func CreateThemeFromText ¶ added in v0.6.0
CreateThemeFromText creates a new theme from text and return its interface on success.
type TimePicker ¶
type TimePicker interface { View }
TimePicker represents a TimePicker view
func NewTimePicker ¶
func NewTimePicker(session Session, params Params) TimePicker
NewTimePicker create new TimePicker object and return it
func TimePickerByID ¶ added in v0.3.0
func TimePickerByID(rootView View, id string, ids ...string) TimePicker
TimePickerByID return the TimePicker path to which is specified using the arguments id, ids. Example
view := TimePickerByID(rootView, "id1", "id2", "id3") view := TimePickerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not TimePicker, the function will return nil
type Touch ¶
type Touch struct { // Identifier is a unique identifier for this Touch object. A given touch point (say, by a finger) // will have the same identifier for the duration of its movement around the surface. // This lets you ensure that you're tracking the same touch all the time. Identifier int // X provides the horizontal coordinate within the view's viewport. X float64 // Y provides the vertical coordinate within the view's viewport. Y float64 // ClientX provides the horizontal coordinate within the application's viewport at which the event occurred. ClientX float64 // ClientY provides the vertical coordinate within the application's viewport at which the event occurred. ClientY float64 // ScreenX provides the horizontal coordinate (offset) of the touch pointer in global (screen) coordinates. ScreenX float64 // ScreenY provides the vertical coordinate (offset) of the touch pointer in global (screen) coordinates. ScreenY float64 // RadiusX is the X radius of the ellipse that most closely circumscribes the area of contact with the screen. // The value is in pixels of the same scale as screenX. RadiusX float64 // RadiusY is the Y radius of the ellipse that most closely circumscribes the area of contact with the screen. // The value is in pixels of the same scale as screenX. RadiusY float64 // RotationAngle is the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, // clockwise, to most accurately cover the area of contact between the user and the surface. RotationAngle float64 // Force is the amount of pressure being applied to the surface by the user, as a float // between 0.0 (no pressure) and 1.0 (maximum pressure). Force float64 }
Touch contains parameters of a single touch of a touch event
type TouchEvent ¶
type TouchEvent struct { // TimeStamp is the time at which the event was created (in milliseconds). // This value is time since epoch—but in reality, browsers' definitions vary. TimeStamp uint64 // Touches is the array of all the Touch objects representing all current points // of contact with the surface, regardless of target or changed status. Touches []Touch // CtrlKey == true if the control key was down when the event was fired. false otherwise. CtrlKey bool // ShiftKey == true if the shift key was down when the event was fired. false otherwise. ShiftKey bool // AltKey == true if the alt key was down when the event was fired. false otherwise. AltKey bool // MetaKey == true if the meta key was down when the event was fired. false otherwise. MetaKey bool }
TouchEvent contains parameters of a touch event
type TransformProperty ¶ added in v0.18.0
type TransformProperty interface { Properties fmt.Stringer // contains filtered or unexported methods }
TransformProperty interface specifies view transformation parameters: the x-, y-, and z-axis translation values, the x-, y-, and z-axis scaling values, the angle to use to distort the element along the abscissa and ordinate, the angle of the view rotation.
Valid property tags: Perspective ("perspective"), TranslateX ("translate-x"), TranslateY ("translate-y"), TranslateZ ("translate-z"), ScaleX ("scale-x"), ScaleY ("scale-y"), ScaleZ ("scale-z"), Rotate ("rotate"), RotateX ("rotate-x"), RotateY ("rotate-y"), RotateZ ("rotate-z"), SkewX ("skew-x"), and SkewY ("skew-y")
func GetPushTransform ¶ added in v0.18.0
func GetPushTransform(view View, subviewID ...string) TransformProperty
GetPushTransform returns the start transform (translation, scale and rotation over x, y and z axes as well as a distortion) for an animated pushing of a child view. The default value is nil (no transform). If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func GetTransform ¶ added in v0.18.0
func GetTransform(view View, subviewID ...string) TransformProperty
GetTransform returns a view transform: translation, scale and rotation over x, y and z axes as well as a distortion of a view along x and y axes. The default value is nil (no transform) If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func NewTransformProperty ¶ added in v0.18.0
func NewTransformProperty(params Params) TransformProperty
NewTransform creates a new transform property data and return its interface
The following properties can be used:
Perspective ("perspective"), TranslateX ("translate-x"), TranslateY ("translate-y"), TranslateZ ("translate-z"), ScaleX ("scale-x"), ScaleY ("scale-y"), ScaleZ ("scale-z"), Rotate ("rotate"), RotateX ("rotate-x"), RotateY ("rotate-y"), RotateZ ("rotate-z"), SkewX ("skew-x"), and SkewY ("skew-y")
type VerticalTableJoin ¶
type VerticalTableJoin struct { }
NewTextTableAdapter is an auxiliary structure. It used as cell content and specifies that the cell should be merged with the one above it
type VideoPlayer ¶
type VideoPlayer interface { MediaPlayer }
VideoPlayer is a type of a View which can play video files
func NewVideoPlayer ¶
func NewVideoPlayer(session Session, params Params) VideoPlayer
NewVideoPlayer create new MediaPlayer object and return it
func VideoPlayerByID ¶
func VideoPlayerByID(rootView View, id string, ids ...string) VideoPlayer
VideoPlayerByID return the VideoPlayer path to which is specified using the arguments id, ids. Example
view := VideoPlayerByID(rootView, "id1", "id2", "id3") view := VideoPlayerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not VideoPlayer, the function will return nil
type View ¶
type View interface { ViewStyle fmt.Stringer // Session returns the current Session interface Session() Session // Parent returns the parent view Parent() View // Tag returns the tag of View interface Tag() string // ID returns the id of the view ID() string // Focusable returns true if the view receives the focus Focusable() bool // Frame returns the location and size of the view in pixels Frame() Frame // Scroll returns the location size of the scrollable view in pixels Scroll() Frame // SetParams sets properties with name "tag" of the "rootView" subview. Result: // - true - all properties were set successful, // - false - error (incompatible type or invalid format of a string value, see AppLog). SetParams(params Params) bool // SetAnimated sets the value (second argument) of the property with name defined by the first argument. // Return "true" if the value has been set, in the opposite case "false" are returned and // a description of the error is written to the log SetAnimated(tag PropertyName, value any, animation AnimationProperty) bool // SetChangeListener set the function to track the change of the View property SetChangeListener(tag PropertyName, listener func(View, PropertyName)) // HasFocus returns 'true' if the view has focus HasFocus() bool // contains filtered or unexported methods }
View represents a base view interface
func CreateViewFromObject ¶
func CreateViewFromObject(session Session, object DataObject) View
CreateViewFromObject create new View and initialize it by Node data
func CreateViewFromResources ¶
CreateViewFromResources create new View and initialize it by the content of the resource file from "views" directory
func CreateViewFromText ¶
CreateViewFromText create new View and initialize it by content of text
func GetDetailsSummary ¶
GetDetailsSummary returns a value of the Summary property of DetailsView. If the second argument (subviewID) is not specified or it is "" then a value from the first argument (view) is returned.
func RemoveView ¶
Remove removes a view from the list of a view children and return it
func ViewByID ¶
ViewByID returns the child View path to which is specified using the arguments id, ids. Example
view := ViewByID(rootView, "id1", "id2", "id3") view := ViewByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found, the function will return nil
type ViewBorder ¶
type ViewBorder struct { // Style of the border line Style int // Color of the border line Color Color // Width of the border line Width SizeUnit }
ViewBorder describes parameters of a view border
func GetColumnSeparator ¶
func GetColumnSeparator(view View, subviewID ...string) ViewBorder
GetColumnSeparator returns ViewBorder struct which specifies the line drawn between columns in a multi-column ColumnLayout. If the second argument (subviewID) is not specified or it is "" then a top position of the first argument (view) is returned
type ViewBorders ¶
type ViewBorders struct {
Top, Right, Bottom, Left ViewBorder
}
ViewBorders describes the top, right, bottom, and left border of a view
func GetBorder ¶
func GetBorder(view View, subviewID ...string) ViewBorders
GetBorder returns ViewBorders of the subview. If the second argument (subviewID) is not specified or it is "" then a ViewBorders of the first argument (view) is returned.
func (*ViewBorders) AllTheSame ¶
func (border *ViewBorders) AllTheSame() bool
AllTheSame returns true if all borders are the same
type ViewOutline ¶
type ViewOutline struct { // Style of the outline line Style int // Color of the outline line Color Color // Width of the outline line Width SizeUnit }
ViewOutline describes parameters of a view border
func GetOutline ¶
func GetOutline(view View, subviewID ...string) ViewOutline
GetOutline returns ViewOutline of the subview. If the second argument (subviewID) is not specified or it is "" then a ViewOutline of the first argument (view) is returned.
type ViewStyle ¶
type ViewStyle interface { Properties // Transition returns the transition animation of the property. Returns nil is there is no transition animation. Transition(tag PropertyName) AnimationProperty // Transitions returns the map of transition animations. The result is always non-nil. Transitions() map[PropertyName]AnimationProperty // SetTransition sets the transition animation for the property if "animation" argument is not nil, and // removes the transition animation of the property if "animation" argument is nil. // The "tag" argument is the property name. SetTransition(tag PropertyName, animation AnimationProperty) // contains filtered or unexported methods }
ViewStyle interface of the style of view
func NewViewStyle ¶
NewViewStyle create new ViewStyle object
type ViewsContainer ¶
type ViewsContainer interface { View ParentView // Append appends a view to the end of the list of a view children Append(view View) // Insert inserts a view to the "index" position in the list of a view children Insert(view View, index int) // Remove removes a view from the list of a view children and return it RemoveView(index int) View // ViewIndex returns the index of view, -1 overwise ViewIndex(view View) int // contains filtered or unexported methods }
ViewsContainer represent a mutable list-container of views
func ViewsContainerByID ¶
func ViewsContainerByID(rootView View, id string, ids ...string) ViewsContainer
ViewsContainerByID return the ViewsContainer path to which is specified using the arguments id, ids. Example
view := ViewsContainerByID(rootView, "id1", "id2", "id3") view := ViewsContainerByID(rootView, "id1/id2/id3")
These two function calls are equivalent. If a View with this path is not found or View is not ViewsContainer, the function will return nil
Source Files ¶
- absoluteLayout.go
- angleUnit.go
- animation.go
- animationEvents.go
- animationRun.go
- appLog.go
- appServer.go
- application.go
- audioPlayer.go
- background.go
- backgroundConicGradient.go
- backgroundImage.go
- backgroundLinearGradient.go
- backgroundRadialGradient.go
- border.go
- bounds.go
- button.go
- canvas.go
- canvasView.go
- checkbox.go
- clipShape.go
- color.go
- colorConstants.go
- colorPicker.go
- columnLayout.go
- columnSeparator.go
- cssBuilder.go
- customView.go
- data.go
- dataList.go
- datePicker.go
- detailsView.go
- downloadFile.go
- dropDownList.go
- editView.go
- events.go
- filePicker.go
- filter.go
- focusEvents.go
- gridLayout.go
- httpHandler.go
- image.go
- imageView.go
- init.go
- keyEvents.go
- listAdapter.go
- listLayout.go
- listView.go
- mediaPlayer.go
- mouseEvents.go
- numberPicker.go
- outline.go
- params.go
- path.go
- pointerEvents.go
- popup.go
- popupUtils.go
- progressBar.go
- properties.go
- propertyGet.go
- propertyNames.go
- propertySet.go
- propertyValues.go
- radius.go
- range.go
- resizable.go
- resizeEvent.go
- resources.go
- ruiWriter.go
- scrollEvent.go
- session.go
- sessionEvents.go
- sessionTheme.go
- sessionUtils.go
- shadow.go
- sizeFunc.go
- sizeUnit.go
- stackLayout.go
- strings.go
- svgImageView.go
- tableAdapter.go
- tableView.go
- tableViewUtils.go
- tabsLayout.go
- textView.go
- theme.go
- timePicker.go
- touchEvents.go
- transform.go
- utils.go
- videoPlayer.go
- view.go
- viewByID.go
- viewFactory.go
- viewStyle.go
- viewStyleSet.go
- viewUtils.go
- viewsContainer.go
- webBridge.go