Documentation ¶
Index ¶
- Constants
- Variables
- func AddEmbedResources(fs *embed.FS)
- func AddTheme(theme Theme)
- func AddTransition(view View, subviewID, tag string, animation Animation) 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 CreateSocketBridge(w http.ResponseWriter, req *http.Request) webBridge
- 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, tag string) 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 GetCellHorizontalAlign(view View, subviewID ...string) int
- func GetCellVerticalAlign(view View, subviewID ...string) int
- 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 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 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 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 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 GetOrigin(view View, subviewID ...string) (SizeUnit, SizeUnit, SizeUnit)
- 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 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 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 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[string]Animation
- 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 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 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 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, tag string, value any) bool
- func SetAnimated(rootView View, viewID, tag string, value any, animation Animation) bool
- func SetChangeListener(view View, viewID, tag string, listener func(View, string))
- 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 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
- type AbsoluteLayout
- type AngleUnit
- type AngleUnitType
- type AnimatedProperty
- type Animation
- type AppParams
- type Application
- type AudioPlayer
- type 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
- func CircleClip(x, y, radius SizeUnit) ClipShape
- func EllipseClip(x, y, rx, ry SizeUnit) ClipShape
- func GetClip(view View, subviewID ...string) ClipShape
- func GetShapeOutside(view View, subviewID ...string) ClipShape
- func InsetClip(top, right, bottom, left SizeUnit, radius RadiusProperty) ClipShape
- func PolygonClip(points []any) ClipShape
- func PolygonPointsClip(points []SizeUnit) ClipShape
- type 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 StringToColor(text string) (Color, bool)
- type ColorPicker
- type ColumnLayout
- type ColumnSeparatorProperty
- type ControlKeyMask
- type CustomView
- type CustomViewData
- func (customView *CustomViewData) AllTags() []string
- 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 string) 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 string)
- func (customView *CustomViewData) RemoveView(index int) View
- func (customView *CustomViewData) Scroll() Frame
- func (customView *CustomViewData) Session() Session
- func (customView *CustomViewData) Set(tag string, value any) bool
- func (customView *CustomViewData) SetAnimated(tag string, value any, animation Animation) bool
- func (customView *CustomViewData) SetChangeListener(tag string, listener func(View, string))
- func (customView *CustomViewData) SetTransition(tag string, animation Animation)
- func (customView *CustomViewData) String() string
- func (customView *CustomViewData) SuperView() View
- func (customView *CustomViewData) Tag() string
- func (customView *CustomViewData) Transition(tag string) Animation
- func (customView *CustomViewData) Transitions() map[string]Animation
- 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 FontParams
- type Frame
- type GradientPoint
- type GridLayout
- type HorizontalTableJoin
- type Image
- type ImageView
- type KeyCode
- type KeyEvent
- type ListAdapter
- 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 RadiusProperty
- type Range
- type Resizable
- type Session
- type SessionContent
- type SessionDisconnectListener
- type SessionFinishListener
- type SessionPauseListener
- type SessionReconnectListener
- type SessionResumeListener
- type SessionStartListener
- 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 MulSize(arg0, arg1 any) SizeFunc
- func SubSize(arg0, arg1 any) SizeFunc
- func SumSize(arg0, arg1 any, args ...any) SizeFunc
- type SizeUnit
- func AutoSize() SizeUnit
- func Cm(value float64) SizeUnit
- func Em(value float64) SizeUnit
- func Ex(value float64) SizeUnit
- func Fr(value float64) 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 float64) SizeUnit
- func Mm(value float64) SizeUnit
- func Pc(value float64) SizeUnit
- func Percent(value float64) SizeUnit
- func Pt(value float64) SizeUnit
- func Px(value float64) 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 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) View
- type ViewBorder
- type ViewBorders
- type ViewFilter
- type ViewOutline
- type ViewShadow
- func GetTextShadows(view View, subviewID ...string) []ViewShadow
- func GetViewShadows(view View, subviewID ...string) []ViewShadow
- func NewInsetViewShadow(offsetX, offsetY, blurRadius, spreadRadius SizeUnit, color Color) ViewShadow
- func NewShadowWithParams(params Params) ViewShadow
- func NewTextShadow(offsetX, offsetY, blurRadius SizeUnit, color Color) ViewShadow
- func NewViewShadow(offsetX, offsetY, blurRadius, spreadRadius SizeUnit, color Color) ViewShadow
- type ViewStyle
- type ViewsContainer
Constants ¶
const ( // AnimationTag is the constant for the "animation" property tag. // The "animation" property sets and starts animations. // Valid types of value are []Animation and Animation AnimationTag = "animation" // AnimationPause is the constant for the "animation-pause" property tag. // The "animation-pause" property sets whether an animation is running or paused. AnimationPaused = "animation-paused" // TransitionTag is the constant for the "transition" property tag. // The "transition" property sets transition animation of view properties. // Valid type of "transition" property value is Params. Valid type of Params value is Animation. Transition = "transition" // PropertyTag is the constant for the "property" animation property tag. // The "property" property describes a scenario for changing a View property. // Valid types of value are []AnimatedProperty and AnimatedProperty PropertyTag = "property" // Duration is the constant for the "duration" animation property tag. // The "duration" float property sets the length of time in seconds that an animation takes to complete one cycle. Duration = "duration" // Delay is the constant for the "delay" animation property tag. // The "delay" float property 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. Delay = "delay" // TimingFunction is the constant for the "timing-function" animation property tag. // The "timing-function" property sets how an animation progresses through the duration of each cycle. TimingFunction = "timing-function" // IterationCount is the constant for the "iteration-count" animation property tag. // The "iteration-count" int property sets the number of times an animation sequence // should be played before stopping. IterationCount = "iteration-count" // AnimationDirection is the constant for the "animation-direction" animation property tag. //The "animation-direction" property sets whether an animation should play forward, backward, // or alternate back and forth between playing the sequence forward and backward. AnimationDirection = "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" )
const ( // TransitionRunEvent is the constant for "transition-run-event" property tag. // The "transition-run-event" is fired when a transition is first created, // i.e. before any transition delay has begun. TransitionRunEvent = "transition-run-event" // TransitionStartEvent is the constant for "transition-end-event" property tag. // The "transition-start-event" is fired when a transition has actually started, // i.e., after "delay" has ended. TransitionStartEvent = "transition-start-event" // TransitionEndEvent is the constant for "transition-end-event" property tag. // The "transition-end-event" is fired when a transition has completed. TransitionEndEvent = "transition-end-event" // TransitionCancelEvent is the constant for "transition-cancel-event" property tag. // The "transition-cancel-event" 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. TransitionCancelEvent = "transition-cancel-event" // AnimationStartEvent is the constant for "animation-start-event" property tag. // The "animation-start-event" is fired when an animation has started. // If there is an animation-delay, this event will fire once the delay period has expired. AnimationStartEvent = "animation-start-event" // AnimationEndEvent is the constant for "animation-end-event" property tag. // The "animation-end-event" is 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. AnimationEndEvent = "animation-end-event" // AnimationCancelEvent is the constant for "animation-cancel-event" property tag. // The "animation-cancel-event" is 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. AnimationCancelEvent = "animation-cancel-event" // AnimationIterationEvent is the constant for "animation-iteration-event" property tag. // The "animation-iteration-event" is 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. AnimationIterationEvent = "animation-iteration-event" )
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 // BorderBoxClip is value of the BackgroundClip property: // The background extends to the outside edge of the border (but underneath the border in z-ordering). BorderBoxClip = 0 // PaddingBoxClip is value of the BackgroundClip property: // The background extends to the outside edge of the padding. No background is drawn beneath the border. PaddingBoxClip = 1 // ContentBoxClip is value of the BackgroundClip property: // The background is painted within (clipped to) the content box. ContentBoxClip = 2 )
const ( // ToTopGradient is value of the Direction property of a linear gradient. The value is equivalent to the 0deg angle ToTopGradient = 0 // ToRightTopGradient is value of the Direction property of a linear gradient. ToRightTopGradient = 1 // ToRightGradient is value of the Direction property of a linear gradient. The value is equivalent to the 90deg angle ToRightGradient = 2 // ToRightBottomGradient is value of the Direction property of a linear gradient. ToRightBottomGradient = 3 // ToBottomGradient is value of the Direction property of a linear gradient. The value is equivalent to the 180deg angle ToBottomGradient = 4 // ToLeftBottomGradient is value of the Direction property of a linear gradient. ToLeftBottomGradient = 5 // ToLeftGradient is value of the Direction property of a linear gradient. The value is equivalent to the 270deg angle ToLeftGradient = 6 // ToLeftTopGradient is value of the Direction property of a linear gradient. ToLeftTopGradient = 7 // 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 = 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 = 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 = 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 = 3 )
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. LeftStyle = "left-style" // RightStyle is the constant for "-right-style" property tag. RightStyle = "right-style" // TopStyle is the constant for "top-style" property tag. TopStyle = "top-style" // BottomStyle is the constant for "bottom-style" property tag. BottomStyle = "bottom-style" // LeftWidth is the constant for "left-width" property tag. LeftWidth = "left-width" // RightWidth is the constant for "-right-width" property tag. RightWidth = "right-width" // TopWidth is the constant for "top-width" property tag. TopWidth = "top-width" // BottomWidth is the constant for "bottom-width" property tag. BottomWidth = "bottom-width" // LeftColor is the constant for "left-color" property tag. LeftColor = "left-color" // RightColor is the constant for "-right-color" property tag. RightColor = "right-color" // TopColor is the constant for "top-color" property tag. TopColor = "top-color" // BottomColor is the constant for "bottom-color" property tag. BottomColor = "bottom-color" )
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 = 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 = 1 // BevelJoin - Fills an additional triangular area between the common endpoint // of connected segments, and the separate outside rectangular corners of each segment. BevelJoin = 2 // ButtCap - the ends of lines are squared off at the endpoints. Default value. ButtCap = 0 // RoundCap - the ends of lines are rounded. RoundCap = 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 = 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 )
const ( ColorChangedEvent = "color-changed" ColorPickerValue = "color-picker-value" )
const ( // ColumnCount is the constant for the "column-count" property tag. // The "column-count" int property specifies number of columns into which the content is break // Values less than zero are not valid. if the "column-count" property value is 0 then // the number of columns is calculated based on the "column-width" property ColumnCount = "column-count" // ColumnWidth is the constant for the "column-width" property tag. // The "column-width" SizeUnit property specifies the width of each column. ColumnWidth = "column-width" // ColumnGap is the constant for the "column-gap" property tag. // The "column-width" SizeUnit property sets the size of the gap (gutter) between columns. ColumnGap = "column-gap" // ColumnSeparator is the constant for the "column-separator" property tag. // The "column-separator" property specifies the line drawn between columns in a multi-column layout. ColumnSeparator = "column-separator" // ColumnSeparatorStyle is the constant for the "column-separator-style" property tag. // The "column-separator-style" int property sets 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). ColumnSeparatorStyle = "column-separator-style" // ColumnSeparatorWidth is the constant for the "column-separator-width" property tag. // The "column-separator-width" SizeUnit property sets the width of the line drawn between // columns in a multi-column layout. ColumnSeparatorWidth = "column-separator-width" // ColumnSeparatorColor is the constant for the "column-separator-color" property tag. // The "column-separator-color" Color property sets the color of the line drawn between // columns in a multi-column layout. ColumnSeparatorColor = "column-separator-color" // ColumnFill is the constant for the "column-fill" property tag. // The "column-fill" int property controls how an ColumnLayout's contents are balanced when broken into columns. // Valid values are // * ColumnFillBalance (0) - Content is equally divided between columns (default value); // * ColumnFillAuto (1) - Columns are filled sequentially. Content takes up only the room it needs, possibly resulting in some columns remaining empty. ColumnFill = "column-fill" // ColumnSpanAll is the constant for the "column-span-all" property tag. // The "column-span-all" bool property makes it possible for a view to span across all columns when its value is set to true. ColumnSpanAll = "column-span-all" )
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 )
const ( DateChangedEvent = "date-changed" DatePickerMin = "date-picker-min" DatePickerMax = "date-picker-max" DatePickerStep = "date-picker-step" DatePickerValue = "date-picker-value" )
const ( // Summary is the constant for the "summary" property tag. // The contents of the "summary" property are used as the label for the disclosure widget. Summary = "summary" // Expanded is the constant for the "expanded" property tag. // If the "expanded" boolean property is "true", then the content of view is visible. // If the value is "false" then the content is collapsed. Expanded = "expanded" )
const ( // EditTextChangedEvent is the constant for the "edit-text-changed" property tag. EditTextChangedEvent = "edit-text-changed" // EditViewType is the constant for the "edit-view-type" property tag. EditViewType = "edit-view-type" // EditViewPattern is the constant for the "edit-view-pattern" property tag. EditViewPattern = "edit-view-pattern" // Spellcheck is the constant for the "spellcheck" property tag. Spellcheck = "spellcheck" )
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 )
const ( // FileSelectedEvent is the constant for "file-selected-event" property tag. // The "file-selected-event" is fired when user selects file(s) in the FilePicker. FileSelectedEvent = "file-selected-event" // Accept is the constant for "accept" property tag. // The "accept" property of the FilePicker sets the list of allowed file extensions or MIME types. Accept = "accept" // Multiple is the constant for "multiple" property tag. // The "multiple" bool property of the FilePicker sets whether multiple files can be selected Multiple = "multiple" )
const ( // FocusEvent is the constant for "focus-event" property tag. // The "focus-event" event occurs when the View takes input focus. // The main listener format: // func(View). // The additional listener format: // func(). FocusEvent = "focus-event" // LostFocusEvent is the constant for "lost-focus-event" property tag. // The "lost-focus-event" event occurs when the View lost input focus. // The main listener format: // func(View). // The additional listener format: // func(). LostFocusEvent = "lost-focus-event" )
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 )
const ( // LoadedEvent is the constant for the "loaded-event" property tag. // The "loaded-event" event occurs event occurs when the image has been loaded. LoadedEvent = "loaded-event" // ErrorEvent is the constant for the "error-event" property tag. // The "error-event" event occurs event occurs when the image loading failed. ErrorEvent = "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 )
const ( // KeyDown is the constant for "key-down-event" property tag. // The "key-down-event" event is fired when a key is pressed. // The main listener format: // func(View, KeyEvent). // The additional listener formats: // func(KeyEvent), func(View), and func(). KeyDownEvent = "key-down-event" // KeyPp is the constant for "key-up-event" property tag. // The "key-up-event" event is fired when a key is released. // The main listener format: // func(View, KeyEvent). // The additional listener formats: // func(KeyEvent), func(View), and func(). KeyUpEvent = "key-up-event" )
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 KeyCode = "KeyA" KeyB KeyCode = "KeyB" KeyC KeyCode = "KeyC" KeyD KeyCode = "KeyD" KeyE KeyCode = "KeyE" KeyF KeyCode = "KeyF" KeyG KeyCode = "KeyG" KeyH KeyCode = "KeyH" KeyI KeyCode = "KeyI" KeyJ KeyCode = "KeyJ" KeyK KeyCode = "KeyK" KeyL KeyCode = "KeyL" KeyM KeyCode = "KeyM" KeyN KeyCode = "KeyN" KeyO KeyCode = "KeyO" KeyP KeyCode = "KeyP" KeyQ KeyCode = "KeyQ" KeyR KeyCode = "KeyR" KeyS KeyCode = "KeyS" KeyT KeyCode = "KeyT" KeyU KeyCode = "KeyU" KeyV KeyCode = "KeyV" KeyW KeyCode = "KeyW" KeyX KeyCode = "KeyX" KeyY KeyCode = "KeyY" KeyZ KeyCode = "KeyZ" Digit0Key KeyCode = "Digit0" Digit1Key KeyCode = "Digit1" Digit2Key KeyCode = "Digit2" Digit3Key KeyCode = "Digit3" Digit4Key KeyCode = "Digit4" Digit5Key KeyCode = "Digit5" Digit6Key KeyCode = "Digit6" Digit7Key KeyCode = "Digit7" Digit8Key KeyCode = "Digit8" Digit9Key KeyCode = "Digit9" SpaceKey KeyCode = "Space" MinusKey KeyCode = "Minus" EqualKey KeyCode = "Equal" IntlBackslashKey KeyCode = "IntlBackslash" BracketLeftKey KeyCode = "BracketLeft" BracketRightKey KeyCode = "BracketRight" SemicolonKey KeyCode = "Semicolon" CommaKey KeyCode = "Comma" PeriodKey KeyCode = "Period" QuoteKey KeyCode = "Quote" BackquoteKey KeyCode = "Backquote" SlashKey KeyCode = "Slash" EscapeKey KeyCode = "Escape" EnterKey KeyCode = "Enter" TabKey KeyCode = "Tab" CapsLockKey KeyCode = "CapsLock" DeleteKey KeyCode = "Delete" InsertKey KeyCode = "Insert" HelpKey KeyCode = "Help" BackspaceKey KeyCode = "Backspace" PrintScreenKey KeyCode = "PrintScreen" ScrollLockKey KeyCode = "ScrollLock" PauseKey KeyCode = "Pause" ContextMenuKey KeyCode = "ContextMenu" ArrowLeftKey KeyCode = "ArrowLeft" ArrowRightKey KeyCode = "ArrowRight" ArrowUpKey KeyCode = "ArrowUp" ArrowDownKey KeyCode = "ArrowDown" HomeKey KeyCode = "Home" EndKey KeyCode = "End" PageUpKey KeyCode = "PageUp" PageDownKey KeyCode = "PageDown" F1Key KeyCode = "F1" F2Key KeyCode = "F2" F3Key KeyCode = "F3" F4Key KeyCode = "F4" F5Key KeyCode = "F5" F6Key KeyCode = "F6" F7Key KeyCode = "F7" F8Key KeyCode = "F8" F9Key KeyCode = "F9" F10Key KeyCode = "F10" F11Key KeyCode = "F11" F12Key KeyCode = "F12" F13Key KeyCode = "F13" NumLockKey KeyCode = "NumLock" NumpadKey0 KeyCode = "Numpad0" NumpadKey1 KeyCode = "Numpad1" NumpadKey2 KeyCode = "Numpad2" NumpadKey3 KeyCode = "Numpad3" NumpadKey4 KeyCode = "Numpad4" NumpadKey5 KeyCode = "Numpad5" NumpadKey6 KeyCode = "Numpad6" NumpadKey7 KeyCode = "Numpad7" NumpadKey8 KeyCode = "Numpad8" NumpadKey9 KeyCode = "Numpad9" NumpadDecimalKey KeyCode = "NumpadDecimal" NumpadEnterKey KeyCode = "NumpadEnter" NumpadAddKey KeyCode = "NumpadAdd" NumpadSubtractKey KeyCode = "NumpadSubtract" NumpadMultiplyKey KeyCode = "NumpadMultiply" NumpadDivideKey KeyCode = "NumpadDivide" ShiftLeftKey KeyCode = "ShiftLeft" ShiftRightKey KeyCode = "ShiftRight" ControlLeftKey KeyCode = "ControlLeft" ControlRightKey KeyCode = "ControlRight" AltLeftKey KeyCode = "AltLeft" AltRightKey KeyCode = "AltRight" MetaLeftKey KeyCode = "MetaLeft" MetaRightKey KeyCode = "MetaRight" )
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 // 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 )
const ( // ListItemClickedEvent is the constant for "list-item-clicked" property tag. // The "list-item-clicked" event occurs when the user clicks on an item in the list. // The main listener format: func(ListView, int), where the second argument is the item index. ListItemClickedEvent = "list-item-clicked" // ListItemSelectedEvent is the constant for "list-item-selected" property tag. // The "list-item-selected" event occurs when a list item becomes selected. // The main listener format: func(ListView, int), where the second argument is the item index. ListItemSelectedEvent = "list-item-selected" // ListItemCheckedEvent is the constant for "list-item-checked" property tag. // The "list-item-checked" event occurs when a list item checkbox becomes checked/unchecked. // The main listener format: func(ListView, []int), where the second argument is the array of checked item indexes. ListItemCheckedEvent = "list-item-checked" // ListItemStyle is the constant for "list-item-style" property tag. // The "list-item-style" string property defines the style of an unselected item ListItemStyle = "list-item-style" // CurrentStyle is the constant for "current-style" property tag. // The "current-style" string property defines the style of the selected item when the ListView is focused. CurrentStyle = "current-style" // CurrentInactiveStyle is the constant for "current-inactive-style" property tag. // The "current-inactive-style" string property defines the style of the selected item when the ListView is unfocused. CurrentInactiveStyle = "current-inactive-style" )
const ( // VerticalOrientation is the vertical ListView orientation VerticalOrientation = 0 // HorizontalOrientation is the horizontal ListView orientation HorizontalOrientation = 1 // 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 )
const ( // Controls is the constant for the "autoplay" controls tag. // If the "controls" bool property is "true", the browser will offer controls to allow the user // to control audio/video playback, including volume, seeking, and pause/resume playback. // Its default value is false. Controls = "controls" // Loop is the constant for the "loop" property tag. // If the "loop" bool property is "true", the audio/video player will automatically seek back // to the start upon reaching the end of the audio/video. // Its default value is false. Loop = "loop" // Muted is the constant for the "muted" property tag. // The "muted" bool property indicates whether the audio/video will be initially silenced. // Its default value is false. Muted = "muted" // Preload is the constant for the "preload" property tag. // The "preload" int property is intended to provide a hint to the browser about what // the author thinks will lead to the best user experience. It may have one of the following values: // PreloadNone (0), PreloadMetadata (1), and PreloadAuto (2) // The default value is different for each browser. Preload = "preload" // AbortEvent is the constant for the "abort-event" property tag. // The "abort-event" event fired when the resource was not fully loaded, but not as the result of an error. AbortEvent = "abort-event" // CanPlayEvent is the constant for the "can-play-event" property tag. // The "can-play-event" event occurs 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. CanPlayEvent = "can-play-event" // CanPlayThroughEvent is the constant for the "can-play-through-event" property tag. // The "can-play-through-event" event occurs when the browser estimates it can play the media up // to its end without stopping for content buffering. CanPlayThroughEvent = "can-play-through-event" // CompleteEvent is the constant for the "complete-event" property tag. // The "complete-event" event occurs when the rendering of an OfflineAudioContext is terminated. CompleteEvent = "complete-event" // DurationChangedEvent is the constant for the "duration-changed-event" property tag. // The "duration-changed-event" event occurs when the duration attribute has been updated. DurationChangedEvent = "duration-changed-event" // EmptiedEvent is the constant for the "emptied-event" property tag. // The "emptied-event" event occurs 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. EmptiedEvent = "emptied-event" // EndedEvent is the constant for the "ended-event" property tag. // The "ended-event" event occurs when the playback has stopped because the end of the media was reached. EndedEvent = "ended-event" // LoadedDataEvent is the constant for the "loaded-data-event" property tag. // The "loaded-data-event" event occurs when the first frame of the media has finished loading. LoadedDataEvent = "loaded-data-event" // LoadedMetadataEvent is the constant for the "loaded-metadata-event" property tag. // The "loaded-metadata-event" event occurs when the metadata has been loaded. LoadedMetadataEvent = "loaded-metadata-event" // LoadStartEvent is the constant for the "load-start-event" property tag. // The "load-start-event" event is fired when the browser has started to load a resource. LoadStartEvent = "load-start-event" // PauseEvent is the constant for the "pause-event" property tag. // The "pause-event" event occurs when the playback has been paused. PauseEvent = "pause-event" // PlayEvent is the constant for the "play-event" property tag. // The "play-event" event occurs when the playback has begun. PlayEvent = "play-event" // PlayingEvent is the constant for the "playing-event" property tag. // The "playing-event" event occurs when the playback is ready to start after having been paused or delayed due to lack of data. PlayingEvent = "playing-event" // ProgressEvent is the constant for the "progress-event" property tag. // The "progress-event" event is fired periodically as the browser loads a resource. ProgressEvent = "progress-event" // RateChangeEvent is the constant for the "rate-change-event" property tag. // The "rate-change-event" event occurs when the playback rate has changed. RateChangedEvent = "rate-changed-event" // SeekedEvent is the constant for the "seeked-event" property tag. // The "seeked-event" event occurs when a seek operation completed. SeekedEvent = "seeked-event" // SeekingEvent is the constant for the "seeking-event" property tag. // The "seeking-event" event occurs when a seek operation began. SeekingEvent = "seeking-event" // StalledEvent is the constant for the "stalled-event" property tag. // The "stalled-event" event occurs when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming. StalledEvent = "stalled-event" // SuspendEvent is the constant for the "suspend-event" property tag. // The "suspend-event" event occurs when the media data loading has been suspended. SuspendEvent = "suspend-event" // TimeUpdateEvent is the constant for the "time-update-event" property tag. // The "time-update-event" event occurs when the time indicated by the currentTime attribute has been updated. TimeUpdateEvent = "time-update-event" // VolumeChangedEvent is the constant for the "volume-change-event" property tag. // The "volume-change-event" event occurs when the volume has changed. VolumeChangedEvent = "volume-changed-event" // WaitingEvent is the constant for the "waiting-event" property tag. // The "waiting-event" event occurs when the playback has stopped because of a temporary lack of data WaitingEvent = "waiting-event" // PlayerErrorEvent is the constant for the "player-error-event" property tag. // The "player-error-event" event is fired when the resource could not be loaded due to an error // (for example, a network connectivity problem). PlayerErrorEvent = "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 )
const ( // ClickEvent is the constant for "click-event" property tag. // The "click-event" event occurs when the user clicks on the View. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). ClickEvent = "click-event" // DoubleClickEvent is the constant for "double-click-event" property tag. // The "double-click-event" event occurs when the user double clicks on the View. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). DoubleClickEvent = "double-click-event" // MouseDown is the constant for "mouse-down" property tag. // The "mouse-down" event is fired at a View when a pointing device button is pressed // while the pointer is inside the view. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). MouseDown = "mouse-down" // MouseUp is the constant for "mouse-up" property tag. // The "mouse-up" event 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. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). MouseUp = "mouse-up" // MouseMove is the constant for "mouse-move" property tag. // The "mouse-move" event is fired at a view when a pointing device (usually a mouse) is moved // while the cursor's hotspot is inside it. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). MouseMove = "mouse-move" // MouseOut is the constant for "mouse-out" property tag. // The "mouse-out" event 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. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). // The additional listener formats: // func(MouseEvent), func(View), and func(). MouseOut = "mouse-out" // MouseOver is the constant for "mouse-over" property tag. // The "mouse-over" event 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. // The main listener formats: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). MouseOver = "mouse-over" // ContextMenuEvent is the constant for "context-menu-event" property tag. // The "context-menu-event" event occurs when the user calls the context menu by the right mouse clicking. // The main listener format: // func(View, MouseEvent). // The additional listener formats: // func(MouseEvent), func(View), and func(). ContextMenuEvent = "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 )
const ( NumberChangedEvent = "number-changed" NumberPickerType = "number-picker-type" NumberPickerMin = "number-picker-min" NumberPickerMax = "number-picker-max" NumberPickerStep = "number-picker-step" NumberPickerValue = "number-picker-value" )
const ( // NumberEditor - type of NumberPicker. NumberPicker is presented by editor NumberEditor = 0 // NumberSlider - type of NumberPicker. NumberPicker is presented by slider NumberSlider = 1 )
const ( // PointerDown is the constant for "pointer-down" property tag. // The "pointer-down" event is 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. // The main listener format: func(View, PointerEvent). // The additional listener formats: func(PointerEvent), func(View), and func(). PointerDown = "pointer-down" // PointerUp is the constant for "pointer-up" property tag. // The "pointer-up" event is fired when a pointer is no longer active. // The main listener format: func(View, PointerEvent). // The additional listener formats: func(PointerEvent), func(View), and func(). PointerUp = "pointer-up" // PointerMove is the constant for "pointer-move" property tag. // The "pointer-move" event is fired when a pointer changes coordinates. // The main listener format: func(View, PointerEvent). // The additional listener formats: func(PointerEvent), func(View), and func(). PointerMove = "pointer-move" // PointerCancel is the constant for "pointer-cancel" property tag. // The "pointer-cancel" event is fired if the pointer will no longer be able to generate events // (for example the related device is deactivated). // The main listener format: func(View, PointerEvent). // The additional listener formats: func(PointerEvent), func(View), and func(). PointerCancel = "pointer-cancel" // PointerOut is the constant for "pointer-out" property tag. // The "pointer-out" event is fired for several reasons including: pointing device is moved out // of the hit test boundaries of an element; firing the pointerup event for a device // that does not support hover (see "pointer-up"); after firing the pointercancel event (see "pointer-cancel"); // when a pen stylus leaves the hover range detectable by the digitizer. // The main listener format: func(View, PointerEvent). // The additional listener formats: func(PointerEvent), func(View), and func(). PointerOut = "pointer-out" // PointerOver is the constant for "pointer-over" property tag. // The "pointer-over" event is fired when a pointing device is moved into an view's hit test boundaries. // The main listener format: func(View, PointerEvent). // The additional listener formats: func(PointerEvent), func(View), and func(). PointerOver = "pointer-over" )
const ( // Title is the constant for the "title" property tag. // The "title" property is defined the Popup/Tabs title Title = "title" // TitleStyle is the constant for the "title-style" property tag. // The "title-style" string property is used to set the title style of the Popup. TitleStyle = "title-style" // CloseButton is the constant for the "close-button" property tag. // The "close-button" bool property allow to add the close button to the Popup. // Setting this property to "true" adds a window close button to the title bar (the default value is "false"). CloseButton = "close-button" // OutsideClose is the constant for the "outside-close" property tag. // The "outside-close" is a bool property. If it is set to "true", // then clicking outside the popup window automatically calls the Dismiss() method. OutsideClose = "outside-close" // Buttons is the constant for the "buttons" property tag. // Using the "buttons" property you can add buttons that will be placed at the bottom of the Popup. // The "buttons" property can be assigned the following data types: PopupButton and []PopupButton Buttons = "buttons" // ButtonsAlign is the constant for the "buttons-align" property tag. // The "buttons-align" int property is used for set the horizontal alignment of Popup buttons. // Valid values: LeftAlign (0), RightAlign (1), CenterAlign (2), and StretchAlign (3) ButtonsAlign = "buttons-align" // DismissEvent is the constant for the "dismiss-event" property tag. // The "dismiss-event" event is used to track the closing of the Popup. // It occurs after the Popup disappears from the screen. // The main listener for this event has the following format: func(Popup) DismissEvent = "dismiss-event" // Arrow is the constant for the "arrow" property tag. // Using the "popup-arrow" int property you can add ... Arrow = "arrow" // ArrowAlign is the constant for the "arrow-align" property tag. // The "arrow-align" int property is used for set the horizontal alignment of the Popup arrow. // Valid values: LeftAlign (0), RightAlign (1), TopAlign (0), BottomAlign (1), CenterAlign (2) ArrowAlign = "arrow-align" // ArrowSize is the constant for the "arrow-size" property tag. // The "arrow-size" SizeUnit property is used for set the size (length) of the Popup arrow. ArrowSize = "arrow-size" // ArrowWidth is the constant for the "arrow-width" property tag. // The "arrow-width" SizeUnit property is used for set the width of the Popup arrow. ArrowWidth = "arrow-width" // ArrowOffset is the constant for the "arrow-offset" property tag. // The "arrow-offset" SizeUnit property is used for set the offset of the Popup arrow. ArrowOffset = "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 // 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 )
const ( ProgressBarMax = "progress-max" ProgressBarValue = "progress-value" )
const ( // ID is the constant for the "id" property tag. // The "id" property is an optional textual identifier for the View. ID = "id" // Style is the constant for the "style" property tag. // The string "style" property 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. Style = "style" // StyleDisabled is the constant for the "style-disabled" property tag. // The string "style-disabled" property sets the name of the style that is applied to the View when the "disabled" property is set to true. StyleDisabled = "style-disabled" // Disabled is the constant for the "disabled" property tag. // The bool "disabled" property allows/denies the View to receive focus. Disabled = "disabled" // Focusable is the constant for the "disabled" property tag. // The bool "focusable" determines whether the view will receive focus. Focusable = "focusable" // Semantics is the constant for the "semantics" property tag. // The "semantics" property 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. Semantics = "semantics" // Visibility is the constant for the "visibility" property tag. // The "visibility" int property specifies the visibility of the View. Valid values are // * Visible (0) - the View is visible (default value); // * Invisible (1) - the View is invisible but takes up space; // * Gone (2) - the View is invisible and does not take up space. Visibility = "visibility" // ZIndex is the constant for the "z-index" property tag. // The int "z-index" property sets the z-order of a positioned view. // Overlapping views with a larger z-index cover those with a smaller one. ZIndex = "z-index" // Opacity is the constant for the "opacity" property tag. // The float "opacity" property in [1..0] range sets the opacity of an element. // Opacity is the degree to which content behind an element is hidden, and is the opposite of transparency. Opacity = "opacity" // Overflow is the constant for the "overflow" property tag. // The "overflow" int property sets 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. // Valid values: OverflowHidden (0), OverflowVisible (1), OverflowScroll (2), OverflowAuto (3) Overflow = "overflow" // Row is the constant for the "row" property tag. Row = "row" // Column is the constant for the "column" property tag. Column = "column" // Left is the constant for the "left" property tag. // The "left" SizeUnit property participates in specifying the left border position of a positioned view. // Used only for views placed in an AbsoluteLayout. Left = "left" // Right is the constant for the "right" property tag. // The "right" SizeUnit property participates in specifying the right border position of a positioned view. // Used only for views placed in an AbsoluteLayout. Right = "right" // Top is the constant for the "top" property tag. // The "top" SizeUnit property participates in specifying the top border position of a positioned view. // Used only for views placed in an AbsoluteLayout. Top = "top" // Bottom is the constant for the "bottom" property tag. // The "bottom" SizeUnit property participates in specifying the bottom border position of a positioned view. // Used only for views placed in an AbsoluteLayout. Bottom = "bottom" // Width is the constant for the "width" property tag. // The "width" SizeUnit property sets an view's width. Width = "width" // Height is the constant for the "height" property tag. // The "height" SizeUnit property sets an view's height. Height = "height" // MinWidth is the constant for the "min-width" property tag. // The "width" SizeUnit property sets an view's minimal width. MinWidth = "min-width" // MinHeight is the constant for the "min-height" property tag. // The "height" SizeUnit property sets an view's minimal height. MinHeight = "min-height" // MaxWidth is the constant for the "max-width" property tag. // The "width" SizeUnit property sets an view's maximal width. MaxWidth = "max-width" // MaxHeight is the constant for the "max-height" property tag. // The "height" SizeUnit property sets an view's maximal height. MaxHeight = "max-height" // Margin is the constant for the "margin" property tag. // The "margin" property sets the margin area on all four sides of an element. // ... Margin = "margin" // MarginLeft is the constant for the "margin-left" property tag. // The "margin-left" SizeUnit property sets 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. MarginLeft = "margin-left" // MarginRight is the constant for the "margin-right" property tag. // The "margin-right" SizeUnit property sets 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. MarginRight = "margin-right" // MarginTop is the constant for the "margin-top" property tag. // The "margin-top" SizeUnit property sets 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. MarginTop = "margin-top" // MarginBottom is the constant for the "margin-bottom" property tag. // The "margin-bottom" SizeUnit property sets 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. MarginBottom = "margin-bottom" // Padding is the constant for the "padding" property tag. // The "padding" Bounds property 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. Padding = "padding" // PaddingLeft is the constant for the "padding-left" property tag. // The "padding-left" SizeUnit property sets the width of the padding area to the left of a view. PaddingLeft = "padding-left" // PaddingRight is the constant for the "padding-right" property tag. // The "padding-right" SizeUnit property sets the width of the padding area to the right of a view. PaddingRight = "padding-right" // PaddingTop is the constant for the "padding-top" property tag. // The "padding-top" SizeUnit property sets the height of the padding area to the top of a view. PaddingTop = "padding-top" // PaddingBottom is the constant for the "padding-bottom" property tag. // The "padding-bottom" SizeUnit property sets the height of the padding area to the bottom of a view. PaddingBottom = "padding-bottom" // AccentColor is the constant for the "accent-color" property tag. // The "accent-color" property sets sets the accent color for UI controls generated by some elements. AccentColor = "accent-color" // BackgroundColor is the constant for the "background-color" property tag. // The "background-color" property sets the background color of a view. BackgroundColor = "background-color" // Background is the constant for the "background" property tag. // The "background" property sets one or more background images and/or gradients on a view. // ... Background = "background" // Cursor is the constant for the "cursor" property tag. // The "cursor" int property sets the type of mouse cursor, if any, to show when the mouse pointer is over a view // Valid values are "auto" (0), "default" (1), "none" (2), "context-menu" (3), "help" (4), "pointer" (5), // "progress" (6), "wait" (7), "cell" (8), "crosshair" (9), "text" (10), "vertical-text" (11), "alias" (12), // "copy" (13), "move" (14), "no-drop" (15), "not-allowed" (16), "e-resize" (17), "n-resize" (18), // "ne-resize" (19), "nw-resize" (20), "s-resize" (21), "se-resize" (22), "sw-resize" (23), "w-resize" (24), // "ew-resize" (25), "ns-resize" (26), "nesw-resize" (27), "nwse-resize" (28), "col-resize" (29), // "row-resize" (30), "all-scroll" (31), "zoom-in" (32), "zoom-out" (33), "grab" (34), "grabbing" (35). Cursor = "cursor" // Border is the constant for the "border" property tag. // The "border" property sets a view's border. It sets the values of a border width, style, and color. // This property can be assigned a value of BorderProperty type, or ViewBorder type, or BorderProperty text representation. Border = "border" // BorderLeft is the constant for the "border-left" property tag. // The "border-left" property sets 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 type, or ViewBorder type, or BorderProperty text representation. BorderLeft = "border-left" // BorderRight is the constant for the "border-right" property tag. // The "border-right" property sets 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 type, or ViewBorder type, or BorderProperty text representation. BorderRight = "border-right" // BorderTop is the constant for the "border-top" property tag. // The "border-top" property sets 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 type, or ViewBorder type, or BorderProperty text representation. BorderTop = "border-top" // BorderBottom is the constant for the "border-bottom" property tag. // The "border-bottom" property sets a view's bottom border. It sets the values of a border width, style, and color. // This property can be assigned a value of BorderProperty type, or ViewBorder type, or BorderProperty text representation. BorderBottom = "border-bottom" // BorderStyle is the constant for the "border-style" property tag. // The "border-style" property sets the line style for all four sides of a view's border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). BorderStyle = "border-style" // BorderLeftStyle is the constant for the "border-left-style" property tag. // The "border-left-style" int property sets the line style of a view's left border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). BorderLeftStyle = "border-left-style" // BorderRightStyle is the constant for the "border-right-style" property tag. // The "border-right-style" int property sets the line style of a view's right border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). BorderRightStyle = "border-right-style" // BorderTopStyle is the constant for the "border-top-style" property tag. // The "border-top-style" int property sets the line style of a view's top border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). BorderTopStyle = "border-top-style" // BorderBottomStyle is the constant for the "border-bottom-style" property tag. // The "border-bottom-style" int property sets the line style of a view's bottom border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). BorderBottomStyle = "border-bottom-style" // BorderWidth is the constant for the "border-width" property tag. // The "border-width" property sets the line width for all four sides of a view's border. BorderWidth = "border-width" // BorderLeftWidth is the constant for the "border-left-width" property tag. // The "border-left-width" SizeUnit property sets the line width of a view's left border. BorderLeftWidth = "border-left-width" // BorderRightWidth is the constant for the "border-right-width" property tag. // The "border-right-width" SizeUnit property sets the line width of a view's right border. BorderRightWidth = "border-right-width" // BorderTopWidth is the constant for the "border-top-width" property tag. // The "border-top-width" SizeUnit property sets the line width of a view's top border. BorderTopWidth = "border-top-width" // BorderBottomWidth is the constant for the "border-bottom-width" property tag. // The "border-bottom-width" SizeUnit property sets the line width of a view's bottom border. BorderBottomWidth = "border-bottom-width" // BorderColor is the constant for the "border-color" property tag. // The "border-color" property sets the line color for all four sides of a view's border. BorderColor = "border-color" // BorderLeftColor is the constant for the "border-left-color" property tag. // The "border-left-color" property sets the line color of a view's left border. BorderLeftColor = "border-left-color" // BorderRightColor is the constant for the "border-right-color" property tag. // The "border-right-color" property sets the line color of a view's right border. BorderRightColor = "border-right-color" // BorderTopColor is the constant for the "border-top-color" property tag. // The "border-top-color" property sets the line color of a view's top border. BorderTopColor = "border-top-color" // BorderBottomColor is the constant for the "border-bottom-color" property tag. // The "border-bottom-color" property sets the line color of a view's bottom border. BorderBottomColor = "border-bottom-color" // Outline is the constant for the "outline" property tag. // The "border" property sets a view's outline. It sets the values of an outline width, style, and color. Outline = "outline" // OutlineStyle is the constant for the "outline-style" property tag. // The "outline-style" int property sets the style of an view's outline. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). OutlineStyle = "outline-style" // OutlineColor is the constant for the "outline-color" property tag. // The "outline-color" property sets the color of an view's outline. OutlineColor = "outline-color" // OutlineWidth is the constant for the "outline-width" property tag. // The "outline-width" SizeUnit property sets the width of an view's outline. OutlineWidth = "outline-width" // OutlineWidth is the constant for the "outline-offset" property tag. // The "outline-offset" SizeUnit property sets the amount of space between an outline and the edge or border of an element.. OutlineOffset = "outline-offset" // Shadow is the constant for the "shadow" property tag. // The "shadow" property adds shadow effects around a view's frame. A shadow is described // by X and Y offsets relative to the element, blur and spread radius, and color. // ... Shadow = "shadow" // FontName is the constant for the "font-name" property tag. // The "font-name" string property specifies a prioritized list of one or more font family names and/or // generic family names for the selected 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. FontName = "font-name" // TextColor is the constant for the "text-color" property tag. // The "color" property sets 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. TextColor = "text-color" // TextSize is the constant for the "text-size" property tag. // The "text-size" SizeUnit property sets 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. TextSize = "text-size" // Italic is the constant for the "italic" property tag. // The "italic" is the bool property. If it is "true" then a 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. Italic = "italic" // SmallCaps is the constant for the "small-caps" property tag. // The "small-caps" is the bool property. If it is "true" then a text is displayed in small caps. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. SmallCaps = "small-caps" // Strikethrough is the constant for the "strikethrough" property tag. // The "strikethrough" is the bool property. If it is "true" then a text is displayed strikethrough. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. Strikethrough = "strikethrough" // Overline is the constant for the "overline" property tag. // The "overline" is the bool property. If it is "true" then a text is displayed overlined. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. Overline = "overline" // Underline is the constant for the "underline" property tag. // The "underline" is the bool property. If it is "true" then a text is displayed underlined. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. Underline = "underline" // TextLineThickness is the constant for the "text-line-thickness" property tag. // The "text-line-thickness" SizeUnit property sets the stroke thickness of the decoration line that // is used on text in an element, such as a line-through, underline, or overline. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextLineThickness = "text-line-thickness" // TextLineStyle is the constant for the "text-line-style" property tag. // The "text-line-style" int property sets the style of the lines specified by "text-decoration" property. // The style applies to all lines that are set with "text-decoration" property. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextLineStyle = "text-line-style" // TextLineColor is the constant for the "text-line-color" property tag. // The "text-line-color" Color property sets the color of the lines specified by "text-decoration" property. // The color applies to all lines that are set with "text-decoration" property. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextLineColor = "text-line-color" // TextWeight is the constant for the "text-weight" property tag. // Valid values are SolidLine (1), DashedLine (2), DottedLine (3), DoubleLine (4) and WavyLine (5). // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextWeight = "text-weight" // TextAlign is the constant for the "text-align" property tag. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextAlign = "text-align" // TextIndent is the constant for the "text-indent" property tag. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextIndent = "text-indent" // TextShadow is the constant for the "text-shadow" property tag. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextShadow = "text-shadow" // TabSize is the constant for the "tab-size" property tag. // The "tab-size" int property sets 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. TabSize = "tab-size" // LetterSpacing is the constant for the "letter-spacing" property tag. // The "letter-spacing" SizeUnit property sets 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. LetterSpacing = "letter-spacing" // WordSpacing is the constant for the "word-spacing" property tag. // The "word-spacing" SizeUnit property sets 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. WordSpacing = "word-spacing" // LineHeight is the constant for the "line-height" property tag. // The "line-height" SizeUnit property sets 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. LineHeight = "line-height" // WhiteSpace is the constant for the "white-space" property tag. // The "white-space" int property sets how white space inside an element is handled. // Valid values are WhiteSpaceNormal (0), WhiteSpaceNowrap (1), WhiteSpacePre (2), // WhiteSpacePreWrap (3), WhiteSpacePreLine (4), WhiteSpaceBreakSpaces (5) // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. WhiteSpace = "white-space" // WordBreak is the constant for the "word-break" property tag. // The "word-break" int property sets 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. WordBreak = "word-break" // TextTransform is the constant for the "text-transform" property tag. // The "text-transform" int property 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. TextTransform = "text-transform" // TextDirection is the constant for the "text-direction" property tag. // The "text-direction" int property sets the direction of text, table columns, and horizontal overflow. // Use 1 (LeftToRightDirection) for languages written from right to left (like Hebrew or Arabic), // and 2 (RightToLeftDirection) for those written from left to right (like English and most other languages). // The default value of the property is 0 (SystemTextDirection): use the system text direction. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextDirection = "text-direction" // WritingMode is the constant for the "writing-mode" property tag. // The "writing-mode" int property sets 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. WritingMode = "writing-mode" // VerticalTextOrientation is the constant for the "vertical-text-orientation" property tag. // The "vertical-text-orientation" int property sets 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. VerticalTextOrientation = "vertical-text-orientation" // TextOverflow is the constant for the "text-overflow" property tag. // The "text-overflow" int property sets how hidden overflow content is signaled to users. // It can be clipped or display an ellipsis ('…'). Valid values are TextOverflow = "text-overflow" // Hint is the constant for the "hint" property tag. // The "hint" string property sets a hint to the user of what can be entered in the control. Hint = "hint" // MaxLength is the constant for the "max-length" property tag. // The "max-length" int property sets the maximum number of characters that the user can enter MaxLength = "max-length" // ReadOnly is the constant for the "readonly" property tag. // This bool property indicates that the user cannot modify the value of the EditView. ReadOnly = "readonly" // Content is the constant for the "content" property tag. Content = "content" // Items is the constant for the "items" property tag. Items = "items" // DisabledItems is the constant for the "disabled-items" property tag. DisabledItems = "disabled-items" // Current is the constant for the "current" property tag. Current = "current" // Type is the constant for the "type" property tag. Type = "type" // Pattern is the constant for the "pattern" property tag. Pattern = "pattern" // GridAutoFlow is the constant for the "grid-auto-flow" property tag. // The "grid-auto-flow" int property controls how the GridLayout auto-placement algorithm works, // specifying exactly how auto-placed items get flowed into the grid. // Valid values are RowAutoFlow (0), ColumnAutoFlow (1), RowDenseAutoFlow (2), and ColumnDenseAutoFlow (3) GridAutoFlow = "grid-auto-flow" // CellWidth is the constant for the "cell-width" property tag. // The "cell-width" properties allow to set a fixed width of GridLayout cells regardless of the size of the child elements. // These properties are of type []SizeUnit. Each element in the array determines the size of the corresponding column. CellWidth = "cell-width" // CellHeight is the constant for the "cell-height" property tag. // The "cell-height" properties allow to set a fixed height of GridLayout cells regardless of the size of the child elements. // These properties are of type []SizeUnit. Each element in the array determines the size of the corresponding row. CellHeight = "cell-height" // GridRowGap is the constant for the "grid-row-gap" property tag. // The "grid-row-gap" SizeUnit properties allow to set the distance between the rows of the GridLayout container. // The default is 0px. GridRowGap = "grid-row-gap" // GridColumnGap is the constant for the "grid-column-gap" property tag. // The "grid-column-gap" SizeUnit properties allow to set the distance between the columns of the GridLayout container. // The default is 0px. GridColumnGap = "grid-column-gap" // Source is the constant for the "src" property tag. // The "src" property specifies the image to display in the ImageView. Source = "src" // SrcSet is the constant for the "srcset" property tag. // The "srcset" property is a string which identifies one or more image candidate strings, separated using commas (,) // each specifying image resources to use under given screen density. // This property is only used if you are building an application for js/wasm platform SrcSet = "srcset" // Fit is the constant for the "fit" property tag. Fit = "fit" // Repeat is the constant for the "repeat" property tag. Repeat = "repeat" // Attachment is the constant for the "attachment" property tag. Attachment = "attachment" // BackgroundClip is the constant for the "background-clip" property tag. BackgroundClip = "background-clip" // Gradient is the constant for the "gradient" property tag. Gradient = "gradient" // Direction is the constant for the "direction" property tag. Direction = "direction" // Repeating is the constant for the "repeating" property tag. Repeating = "repeating" // Repeating is the constant for the "repeating" property tag. From = "from" // RadialGradientRadius is the constant for the "radial-gradient-radius" property tag. RadialGradientRadius = "radial-gradient-radius" // RadialGradientShape is the constant for the "radial-gradient-shape" property tag. RadialGradientShape = "radial-gradient-shape" // Shape is the constant for the "shape" property tag. It's a short form of "radial-gradient-shape" Shape = "shape" // CenterX is the constant for the "center-x" property tag. CenterX = "center-x" // CenterY is the constant for the "center-x" property tag. CenterY = "center-y" // AltText is the constant for the "alt-text" property tag. AltText = "alt-text" // AvoidBreak is the constant for the "avoid-break" property tag. // The "avoid-break" bool property sets how region breaks should behave inside a generated box. // If the property value is "true" then avoids any break from being inserted within the principal box. // If the property value is "false" then allows, but does not force, any break to be inserted within // the principal box. AvoidBreak = "avoid-break" // ItemWidth is the constant for the "item-width" property tag. ItemWidth = "item-width" // ItemHeight is the constant for the "item-height" property tag. ItemHeight = "item-height" // ListWrap is the constant for the "wrap" property tag. ListWrap = "list-wrap" // EditWrap is the constant for the "wrap" property tag. EditWrap = "edit-wrap" // CaretColor is the constant for the "caret-color" property tag. // The "caret-color" Color property 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. CaretColor = "caret-color" // Min is the constant for the "min" property tag. Min = "min" // Max is the constant for the "max" property tag. Max = "max" // Step is the constant for the "step" property tag. Step = "step" // Value is the constant for the "value" property tag. Value = "value" // Orientation is the constant for the "orientation" property tag. Orientation = "orientation" // Gap is t he constant for the "gap" property tag. Gap = "gap" // ListRowGap is the constant for the "list-row-gap" property tag. // The "list-row-gap" SizeUnit properties allow to set the distance between the rows of the ListLayout or ListView. // The default is 0px. ListRowGap = "list-row-gap" // ListColumnGap is the constant for the "list-column-gap" property tag. // The "list-column-gap" SizeUnit properties allow to set the distance between the columns of the GridLayout or ListView. // The default is 0px. ListColumnGap = "list-column-gap" // Text is the constant for the "text" property tag. Text = "text" // VerticalAlign is the constant for the "vertical-align" property tag. VerticalAlign = "vertical-align" // HorizontalAlign is the constant for the "horizontal-align" property tag. // The "horizontal-align" int property sets the horizontal alignment of the content inside a block element HorizontalAlign = "horizontal-align" // ImageVerticalAlign is the constant for the "image-vertical-align" property tag. ImageVerticalAlign = "image-vertical-align" // ImageHorizontalAlign is the constant for the "image-horizontal-align" property tag. ImageHorizontalAlign = "image-horizontal-align" // Checked is the constant for the "checked" property tag. Checked = "checked" // ItemVerticalAlign is the constant for the "item-vertical-align" property tag. ItemVerticalAlign = "item-vertical-align" // ItemHorizontalAlign is the constant for the "item-horizontal-align" property tag. ItemHorizontalAlign = "item-horizontal-align" // ItemCheckbox is the constant for the "checkbox" property tag. ItemCheckbox = "checkbox" // CheckboxHorizontalAlign is the constant for the "checkbox-horizontal-align" property tag. CheckboxHorizontalAlign = "checkbox-horizontal-align" // CheckboxVerticalAlign is the constant for the "checkbox-vertical-align" property tag. CheckboxVerticalAlign = "checkbox-vertical-align" // NotTranslate is the constant for the "not-translate" property tag. // This bool property indicates that no need to translate the text. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. NotTranslate = "not-translate" // Filter is the constant for the "filter" property tag. // The "filter" property applies graphical effects to a View, // such as such as blurring, color shifting, changing brightness/contrast, etc. Filter = "filter" // BackdropFilter is the constant for the "backdrop-filter" property tag. // The "backdrop-filter" property applies graphical effects to the area behind a View, // such as such as blurring, color shifting, changing brightness/contrast, etc. BackdropFilter = "backdrop-filter" // Clip is the constant for the "clip" property tag. // The "clip" property creates a clipping region that sets what part of a View should be shown. Clip = "clip" // Points is the constant for the "points" property tag. Points = "points" // ShapeOutside is the constant for the "shape-outside" property tag. // The "shape-outside" 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; // "shape-outside" provides a way to customize this wrapping, making it possible to wrap text around // complex objects rather than simple boxes. ShapeOutside = "shape-outside" // Float is the constant for the "float" property tag. // The "float" property places a View on the left or right side of its container, // allowing text and inline Views to wrap around it. Float = "float" // UserData is the constant for the "user-data" property tag. // The "user-data" property can contain any user data UserData = "user-data" // Resize is the constant for the "resize" property tag. // The "resize" int property sets whether an element is resizable, and if so, in which directions. // Valid values are "none" (0), "both" (1), horizontal (2), and "vertical" (3) Resize = "resize" // UserSelect is the constant for the "user-select" property tag. // The "user-select" bool property controls whether the user can select text. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. UserSelect = "user-select" // Order is the constant for the "Order" property tag. // The "Order" int property sets the order to layout an item in a ListLayout or GridLayout container. // Items in a container are sorted by ascending order value and then by their source code order. Order = "Order" // BackgroundBlendMode is the constant for the "background-blend-mode" property tag. // The "background-blend-mode" int property sets how an view's background images should blend // with each other and with the view's background color. // Valid values are "normal" (0), "multiply" (1), "screen" (2), "overlay" (3), "darken" (4), "lighten" (5), // "color-dodge" (6), "color-burn" (7), "hard-light" (8), "soft-light" (9), "difference" (10), // "exclusion" (11), "hue" (12), "saturation" (13), "color" (14), "luminosity" (15). BackgroundBlendMode = "background-blend-mode" // MixBlendMode is the constant for the "mix-blend-mode" property tag. // The "mix-blend-mode" int property sets how a view's content should blend // with the content of the view's parent and the view's background. // Valid values are "normal" (0), "multiply" (1), "screen" (2), "overlay" (3), "darken" (4), "lighten" (5), // "color-dodge" (6), "color-burn" (7), "hard-light" (8), "soft-light" (9), "difference" (10), // "exclusion" (11), "hue" (12), "saturation" (13), "color" (14), "luminosity" (15). MixBlendMode = "mix-blend-mode" // TabIndex is the constant for the "tabindex" property tag. // The "tabindex" int property indicates that View can be focused, and where it participates in sequential keyboard navigation // (usually with the Tab key, hence the name). // * A negative value means that View is not reachable via sequential keyboard navigation, but could be focused by clicking with the mouse or touching. // * tabindex="0" means that View should be focusable in sequential keyboard navigation, after any positive tabindex values and its order is defined in order of its addition. // * A positive value means View should be focusable in sequential keyboard navigation, with its order defined by the value of the number. TabIndex = "tabindex" Tooltip = "tooltip" )
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 )
const ( // Radius is the SizeUnit view property that determines the corners rounding radius // of an element's outer border edge. Radius = "radius" // RadiusX is the SizeUnit view property that determines the x-axis corners elliptic rounding // radius of an element's outer border edge. RadiusX = "radius-x" // RadiusY is the SizeUnit view property that determines the y-axis corners elliptic rounding // radius of an element's outer border edge. RadiusY = "radius-y" // RadiusTopLeft is the SizeUnit view property that determines the top-left corner rounding radius // of an element's outer border edge. RadiusTopLeft = "radius-top-left" // RadiusTopLeftX is the SizeUnit view property that determines the x-axis top-left corner elliptic // rounding radius of an element's outer border edge. RadiusTopLeftX = "radius-top-left-x" // RadiusTopLeftY is the SizeUnit view property that determines the y-axis top-left corner elliptic // rounding radius of an element's outer border edge. RadiusTopLeftY = "radius-top-left-y" // RadiusTopRight is the SizeUnit view property that determines the top-right corner rounding radius // of an element's outer border edge. RadiusTopRight = "radius-top-right" // RadiusTopRightX is the SizeUnit view property that determines the x-axis top-right corner elliptic // rounding radius of an element's outer border edge. RadiusTopRightX = "radius-top-right-x" // RadiusTopRightY is the SizeUnit view property that determines the y-axis top-right corner elliptic // rounding radius of an element's outer border edge. RadiusTopRightY = "radius-top-right-y" // RadiusBottomLeft is the SizeUnit view property that determines the bottom-left corner rounding radius // of an element's outer border edge. RadiusBottomLeft = "radius-bottom-left" // RadiusBottomLeftX is the SizeUnit view property that determines the x-axis bottom-left corner elliptic // rounding radius of an element's outer border edge. RadiusBottomLeftX = "radius-bottom-left-x" // RadiusBottomLeftY is the SizeUnit view property that determines the y-axis bottom-left corner elliptic // rounding radius of an element's outer border edge. RadiusBottomLeftY = "radius-bottom-left-y" // RadiusBottomRight is the SizeUnit view property that determines the bottom-right corner rounding radius // of an element's outer border edge. RadiusBottomRight = "radius-bottom-right" // RadiusBottomRightX is the SizeUnit view property that determines the x-axis bottom-right corner elliptic // rounding radius of an element's outer border edge. RadiusBottomRightX = "radius-bottom-right-x" // RadiusBottomRightY is the SizeUnit view property that determines the y-axis bottom-right corner elliptic // rounding radius of an element's outer border edge. RadiusBottomRightY = "radius-bottom-right-y" // X is the SizeUnit property of the ShadowProperty that determines the x-axis corners elliptic rounding // radius of an element's outer border edge. X = "x" // Y is the SizeUnit property of the ShadowProperty that determines the y-axis corners elliptic rounding // radius of an element's outer border edge. Y = "y" // TopLeft is the SizeUnit property of the ShadowProperty that determines the top-left corner rounding radius // of an element's outer border edge. TopLeft = "top-left" // TopLeftX is the SizeUnit property of the ShadowProperty that determines the x-axis top-left corner elliptic // rounding radius of an element's outer border edge. TopLeftX = "top-left-x" // TopLeftY is the SizeUnit property of the ShadowProperty that determines the y-axis top-left corner elliptic // rounding radius of an element's outer border edge. TopLeftY = "top-left-y" // TopRight is the SizeUnit property of the ShadowProperty that determines the top-right corner rounding radius // of an element's outer border edge. TopRight = "top-right" // TopRightX is the SizeUnit property of the ShadowProperty that determines the x-axis top-right corner elliptic // rounding radius of an element's outer border edge. TopRightX = "top-right-x" // TopRightY is the SizeUnit property of the ShadowProperty that determines the y-axis top-right corner elliptic // rounding radius of an element's outer border edge. TopRightY = "top-right-y" // BottomLeft is the SizeUnit property of the ShadowProperty that determines the bottom-left corner rounding radius // of an element's outer border edge. BottomLeft = "bottom-left" // BottomLeftX is the SizeUnit property of the ShadowProperty that determines the x-axis bottom-left corner elliptic // rounding radius of an element's outer border edge. BottomLeftX = "bottom-left-x" // BottomLeftY is the SizeUnit property of the ShadowProperty that determines the y-axis bottom-left corner elliptic // rounding radius of an element's outer border edge. BottomLeftY = "bottom-left-y" // BottomRight is the SizeUnit property of the ShadowProperty that determines the bottom-right corner rounding radius // of an element's outer border edge. BottomRight = "bottom-right" // BottomRightX is the SizeUnit property of the ShadowProperty that determines the x-axis bottom-right corner elliptic // rounding radius of an element's outer border edge. BottomRightX = "bottom-right-x" // BottomRightY is the SizeUnit property of the ShadowProperty that determines the y-axis bottom-right corner elliptic // rounding radius of an element's outer border edge. BottomRightY = "bottom-right-y" )
const ( // Side is the constant for the "side" property tag. // The "side" int property determines which side of the container is used to resize. // The value of property is or-combination of TopSide (1), RightSide (2), BottomSide (4), and LeftSide (8) Side = "side" // ResizeBorderWidth is the constant for the "resize-border-width" property tag. // The "ResizeBorderWidth" SizeUnit property determines the width of the resizing border ResizeBorderWidth = "resize-border-width" // CellVerticalAlign is the constant for the "cell-vertical-align" property tag. CellVerticalAlign = "cell-vertical-align" // CellHorizontalAlign is the constant for the "cell-horizontal-align" property tag. CellHorizontalAlign = "cell-horizontal-align" // 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 )
const ( // ColorTag is the name of the color property of the shadow. ColorTag = "color" // Inset is the name of bool property of the shadow. If it is set to "false" (default) then the shadow // is assumed to be a drop shadow (as if the box were raised above the content). // If it is set to "true" then the shadow to one inside the frame (as if the content was depressed inside the box). // Inset shadows are drawn inside the border (even transparent ones), above the background, but below content. Inset = "inset" // XOffset is the name of the SizeUnit property of the shadow that determines the shadow horizontal offset. // Negative values place the shadow to the left of the element. XOffset = "x-offset" // YOffset is the name of the SizeUnit property of the shadow that determines the shadow vertical offset. // Negative values place the shadow above the element. YOffset = "y-offset" // BlurRadius is the name of the SizeUnit property of the shadow that 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. BlurRadius = "blur" // SpreadRadius is the name of the SizeUnit property of the shadow. Positive values will cause the shadow to expand // and grow bigger, negative values will cause the shadow to shrink. SpreadRadius = "spread-radius" )
const ( // DefaultAnimation - default animation of StackLayout push DefaultAnimation = 0 // StartToEndAnimation - start to end animation of StackLayout push StartToEndAnimation = 1 // EndToStartAnimation - end to start animation of StackLayout push EndToStartAnimation = 2 // TopDownAnimation - top down animation of StackLayout push TopDownAnimation = 3 // BottomUpAnimation - bottom up animation of StackLayout push BottomUpAnimation = 4 )
const ( // TableVerticalAlign is the constant for the "table-vertical-align" property tag. // The "table-vertical-align" int property sets the vertical alignment of the content inside a table cell. // Valid values are TopAlign (0), BottomAlign (1), CenterAlign (2), and BaselineAlign (3, 4) TableVerticalAlign = "table-vertical-align" // HeadHeight is the constant for the "head-height" property tag. // The "head-height" int property sets the number of rows in the table header. // The default value is 0 (no header) HeadHeight = "head-height" // HeadStyle is the constant for the "head-style" property tag. // The "head-style" string property sets the header style name HeadStyle = "head-style" // FootHeight is the constant for the "foot-height" property tag. // The "foot-height" int property sets the number of rows in the table footer. // The default value is 0 (no footer) FootHeight = "foot-height" // FootStyle is the constant for the "foot-style" property tag. // The "foot-style" string property sets the footer style name FootStyle = "foot-style" // RowSpan is the constant for the "row-span" property tag. // The "row-span" int property sets the number of table row to span. // Used only when specifying cell parameters in the implementation of TableCellStyle RowSpan = "row-span" // ColumnSpan is the constant for the "column-span" property tag. // The "column-span" int property sets the number of table column to span. // Used only when specifying cell parameters in the implementation of TableCellStyle ColumnSpan = "column-span" // RowStyle is the constant for the "row-style" property tag. // The "row-style" property sets the adapter which specifies styles of each table row. // This property can be assigned or by an implementation of TableRowStyle interface, or by an array of Params. RowStyle = "row-style" // ColumnStyle is the constant for the "column-style" property tag. // The "column-style" property sets the adapter which specifies styles of each table column. // This property can be assigned or by an implementation of TableColumnStyle interface, or by an array of Params. ColumnStyle = "column-style" // CellStyle is the constant for the "cell-style" property tag. // The "cell-style" property sets the adapter which specifies styles of each table cell. // This property can be assigned only by an implementation of TableCellStyle interface. CellStyle = "cell-style" // CellPadding is the constant for the "cell-padding" property tag. // The "cell-padding" Bounds property sets the padding area on all four sides of a table call at once. // An element's padding area is the space between its content and its border. CellPadding = "cell-padding" // CellPaddingLeft is the constant for the "cell-padding-left" property tag. // The "cell-padding-left" SizeUnit property sets 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. CellPaddingLeft = "cell-padding-left" // CellPaddingRight is the constant for the "cell-padding-right" property tag. // The "cell-padding-right" SizeUnit property sets 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. CellPaddingRight = "cell-padding-right" // CellPaddingTop is the constant for the "cell-padding-top" property tag. // The "cell-padding-top" SizeUnit property sets 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. CellPaddingTop = "cell-padding-top" // CellPaddingBottom is the constant for the "cell-padding-bottom" property tag. // The "cell-padding-bottom" SizeUnit property sets the height of the padding area to the bottom of a cell content. CellPaddingBottom = "cell-padding-bottom" // CellBorder is the constant for the "cell-border" property tag. // The "cell-border" property sets a table cell's border. It sets the values of a border width, style, and color. // This property can be assigned a value of BorderProperty type, or ViewBorder type, or BorderProperty text representation. CellBorder = "cell-border" // CellBorderLeft is the constant for the "cell-border-left" property tag. // The "cell-border-left" property sets 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 type, or ViewBorder type, or BorderProperty text representation. CellBorderLeft = "cell-border-left" // CellBorderRight is the constant for the "cell-border-right" property tag. // The "cell-border-right" property sets 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 type, or ViewBorder type, or BorderProperty text representation. CellBorderRight = "cell-border-right" // CellBorderTop is the constant for the "cell-border-top" property tag. // The "cell-border-top" property sets 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 type, or ViewBorder type, or BorderProperty text representation. CellBorderTop = "cell-border-top" // CellBorderBottom is the constant for the "cell-border-bottom" property tag. // The "cell-border-bottom" property sets a view's bottom border. It sets the values of a border width, style, and color. // This property can be assigned a value of BorderProperty type, or ViewBorder type, or BorderProperty text representation. CellBorderBottom = "cell-border-bottom" // CellBorderStyle is the constant for the "cell-border-style" property tag. // The "cell-border-style" int property sets the line style for all four sides of a table cell's border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). CellBorderStyle = "cell-border-style" // CellBorderLeftStyle is the constant for the "cell-border-left-style" property tag. // The "cell-border-left-style" int property sets the line style of a table cell's left border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). CellBorderLeftStyle = "cell-border-left-style" // CellBorderRightStyle is the constant for the "cell-border-right-style" property tag. // The "cell-border-right-style" int property sets the line style of a table cell's right border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). CellBorderRightStyle = "cell-border-right-style" // CellBorderTopStyle is the constant for the "cell-border-top-style" property tag. // The "cell-border-top-style" int property sets the line style of a table cell's top border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). CellBorderTopStyle = "cell-border-top-style" // CellBorderBottomStyle is the constant for the "cell-border-bottom-style" property tag. // The "cell-border-bottom-style" int property sets the line style of a table cell's bottom border. // Valid values are NoneLine (0), SolidLine (1), DashedLine (2), DottedLine (3), and DoubleLine (4). CellBorderBottomStyle = "cell-border-bottom-style" // CellBorderWidth is the constant for the "cell-border-width" property tag. // The "cell-border-width" property sets the line width for all four sides of a table cell's border. CellBorderWidth = "cell-border-width" // CellBorderLeftWidth is the constant for the "cell-border-left-width" property tag. // The "cell-border-left-width" SizeUnit property sets the line width of a table cell's left border. CellBorderLeftWidth = "cell-border-left-width" // CellBorderRightWidth is the constant for the "cell-border-right-width" property tag. // The "cell-border-right-width" SizeUnit property sets the line width of a table cell's right border. CellBorderRightWidth = "cell-border-right-width" // CellBorderTopWidth is the constant for the "cell-border-top-width" property tag. // The "cell-border-top-width" SizeUnit property sets the line width of a table cell's top border. CellBorderTopWidth = "cell-border-top-width" // CellBorderBottomWidth is the constant for the "cell-border-bottom-width" property tag. // The "cell-border-bottom-width" SizeUnit property sets the line width of a table cell's bottom border. CellBorderBottomWidth = "cell-border-bottom-width" // CellBorderColor is the constant for the "cell-border-color" property tag. // The "cell-border-color" property sets the line color for all four sides of a table cell's border. CellBorderColor = "cell-border-color" // CellBorderLeftColor is the constant for the "cell-border-left-color" property tag. // The "cell-border-left-color" property sets the line color of a table cell's left border. CellBorderLeftColor = "cell-border-left-color" // CellBorderRightColor is the constant for the "cell-border-right-color" property tag. // The "cell-border-right-color" property sets the line color of a table cell's right border. CellBorderRightColor = "cell-border-right-color" // CellBorderTopColor is the constant for the "cell-border-top-color" property tag. // The "cell-border-top-color" property sets the line color of a table cell's top border. CellBorderTopColor = "cell-border-top-color" // CellBorderBottomColor is the constant for the "cell-border-bottom-color" property tag. // The "cell-border-bottom-color" property sets the line color of a table cell's bottom border. CellBorderBottomColor = "cell-border-bottom-color" // SelectionMode is the constant for the "selection-mode" property tag. // The "selection-mode" int property sets the mode of the table elements selection. // Valid values are NoneSelection (0), CellSelection (1), and RowSelection (2) SelectionMode = "selection-mode" // TableCellClickedEvent is the constant for "table-cell-clicked" property tag. // The "table-cell-clicked" event occurs when the user clicks on a table cell. // The main listener format: func(TableView, int, int), where the second argument is the row number, // and third argument is the column number. TableCellClickedEvent = "table-cell-clicked" // TableCellSelectedEvent is the constant for "table-cell-selected" property tag. // The "table-cell-selected" event occurs when a table cell becomes selected. // The main listener format: func(TableView, int, int), where the second argument is the row number, // and third argument is the column number. TableCellSelectedEvent = "table-cell-selected" // TableRowClickedEvent is the constant for "table-row-clicked" property tag. // The "table-row-clicked" event occurs when the user clicks on a table row. // The main listener format: func(TableView, int), where the second argument is the row number. TableRowClickedEvent = "table-row-clicked" // TableRowSelectedEvent is the constant for "table-row-selected" property tag. // The "table-row-selected" event occurs when a table row becomes selected. // The main listener format: func(TableView, int), where the second argument is the row number. TableRowSelectedEvent = "table-row-selected" // AllowSelection is the constant for the "allow-selection" property tag. // The "allow-selection" property sets the adapter which specifies styles of each table row. // This property can be assigned or by an implementation of TableAllowCellSelection // or TableAllowRowSelection interface. AllowSelection = "allow-selection" // NoneSelection is the value of "selection-mode" property: the selection is forbidden. NoneSelection = 0 // CellSelection is the value of "selection-mode" property: the selection of a single cell only is enabled. CellSelection = 1 // RowSelection is the value of "selection-mode" property: the selection of a table row only is enabled. RowSelection = 2 )
const ( // CurrentTabChangedEvent is the constant for "current-tab-changed" property tag. // The "current-tab-changed" event occurs when the new tab becomes active. // The main listener format: func(TabsLayout, int, int), where // the second argument is the index of the new active tab, // the third argument is the index of the old active tab. CurrentTabChangedEvent = "current-tab-changed" // Icon is the constant for "icon" property tag. // The string "icon" property defines the icon name that is displayed in the tab. Icon = "icon" // TabCloseButton is the constant for "tab-close-button" property tag. // The "tab-close-button" is the bool property. If it is "true" then a close button is displayed within the tab. TabCloseButton = "tab-close-button" // TabCloseEvent is the constant for "tab-close-event" property tag. // The "tab-close-event" occurs when when the user clicks on the tab close button. // The main listener format: func(TabsLayout, int), where the second argument is the index of the tab. TabCloseEvent = "tab-close-event" // Tabs is the constant for the "tabs" property tag. // The "tabs" is the int property that sets where the tabs are located. // Valid values: TopTabs (0), BottomTabs (1), LeftTabs (2), RightTabs (3), LeftListTabs (4), RightListTabs (5), and HiddenTabs (6). Tabs = "tabs" // TabBarStyle is the constant for the "tab-bar-style" property tag. // The "tab-bar-style" is the string property that sets the style for the display of the tab bar. // The default value is "ruiTabBar". TabBarStyle = "tab-bar-style" // TabStyle is the constant for the "tab-style" property tag. // The "tab-style" is the string property that sets the style for the display of the tab. // The default value is "ruiTab" or "ruiVerticalTab". TabStyle = "tab-style" // CurrentTabStyle is the constant for the "current-tab-style" property tag. // The "current-tab-style" is the string property that sets the style for the display of the current (selected) tab. // The default value is "ruiCurrentTab" or "ruiCurrentVerticalTab". CurrentTabStyle = "current-tab-style" // 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 )
const ( DefaultMedia = 0 PortraitMedia = 1 LandscapeMedia = 2 )
const ( TimeChangedEvent = "time-changed" TimePickerMin = "time-picker-min" TimePickerMax = "time-picker-max" TimePickerStep = "time-picker-step" TimePickerValue = "time-picker-value" )
const ( // TouchStart is the constant for "touch-start" property tag. // The "touch-start" event is fired when one or more touch points are placed on the touch surface. // The main listener format: func(View, TouchEvent). // The additional listener formats: func(TouchEvent), func(View), and func(). TouchStart = "touch-start" // TouchEnd is the constant for "touch-end" property tag. // The "touch-end" event fires when one or more touch points are removed from the touch surface. // The main listener format: func(View, TouchEvent). // The additional listener formats: func(TouchEvent), func(View), and func(). TouchEnd = "touch-end" // TouchMove is the constant for "touch-move" property tag. // The "touch-move" event is fired when one or more touch points are moved along the touch surface. // The main listener format: func(View, TouchEvent). // The additional listener formats: func(TouchEvent), func(View), and func(). TouchMove = "touch-move" // TouchCancel is the constant for "touch-cancel" property tag. // The "touch-cancel" event is fired when one or more touch points have been disrupted // in an implementation-specific manner (for example, too many touch points are created). // The main listener format: func(View, TouchEvent). // The additional listener formats: func(TouchEvent), func(View), and func(). TouchCancel = "touch-cancel" )
const ( // VideoWidth is the constant for the "video-width" property tag of VideoPlayer. // The "video-width" float property defines the width of the video's display area in pixels. VideoWidth = "video-width" // VideoHeight is the constant for the "video-height" property tag of VideoPlayer. // The "video-height" float property defines the height of the video's display area in pixels. VideoHeight = "video-height" // Poster is the constant for the "poster" property tag of VideoPlayer. // The "poster" property 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. Poster = "poster" )
const ( // Blur is the constant for the "blur" property tag of the ViewFilter interface. // The "blur" float64 property 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. Blur = "blur" // Brightness is the constant for the "brightness" property tag of the ViewFilter interface. // The "brightness" float64 property 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. Brightness = "brightness" // Contrast is the constant for the "contrast" property tag of the ViewFilter interface. // The "contrast" float64 property 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. Contrast = "contrast" // DropShadow is the constant for the "drop-shadow" property tag of the ViewFilter interface. // The "drop-shadow" property 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 ViewShadow interface DropShadow = "drop-shadow" // Grayscale is the constant for the "grayscale" property tag of the ViewFilter interface. // The "grayscale" float64 property 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. Grayscale = "grayscale" // HueRotate is the constant for the "hue-rotate" property tag of the ViewFilter interface. // The "hue-rotate" AngleUnit property 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. HueRotate = "hue-rotate" // Invert is the constant for the "invert" property tag of the ViewFilter interface. // The "invert" float64 property 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. Invert = "invert" // Saturate is the constant for the "saturate" property tag of the ViewFilter interface. // The "saturate" float64 property 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. Saturate = "saturate" // Sepia is the constant for the "sepia" property tag of the ViewFilter interface. // The "sepia" float64 property 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. Sepia = "sepia" )
const ( // Perspective is the name of the SizeUnit property that determines the 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). Perspective = "perspective" // PerspectiveOriginX is the name of the SizeUnit property that determines the 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%. PerspectiveOriginX = "perspective-origin-x" // PerspectiveOriginY is the name of the SizeUnit property that determines the 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%. PerspectiveOriginY = "perspective-origin-y" // BackfaceVisible is the name of the 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. BackfaceVisible = "backface-visibility" // OriginX is the name of the SizeUnit property that determines the x-coordinate of the point around which // a view transformation is applied. // The default value is 50%. OriginX = "origin-x" // OriginY is the name of the SizeUnit property that determines the y-coordinate of the point around which // a view transformation is applied. // The default value is 50%. OriginY = "origin-y" // OriginZ is the name of the SizeUnit property that determines the z-coordinate of the point around which // a view transformation is applied. // The default value is 50%. OriginZ = "origin-z" // TranslateX is the name of the SizeUnit property that specify the x-axis translation value // of a 2D/3D translation TranslateX = "translate-x" // TranslateY is the name of the SizeUnit property that specify the y-axis translation value // of a 2D/3D translation TranslateY = "translate-y" // TranslateZ is the name of the SizeUnit property that specify the z-axis translation value // of a 3D translation TranslateZ = "translate-z" // ScaleX is the name of the float property that specify the x-axis scaling value of a 2D/3D scale // The default value is 1. ScaleX = "scale-x" // ScaleY is the name of the float property that specify the y-axis scaling value of a 2D/3D scale // The default value is 1. ScaleY = "scale-y" // ScaleZ is the name of the float property that specify the z-axis scaling value of a 3D scale // The default value is 1. ScaleZ = "scale-z" // Rotate is the name of the AngleUnit property that determines the angle of the view rotation. // A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise one. Rotate = "rotate" // RotateX is the name of the float property that determines the x-coordinate of the vector denoting // the axis of rotation which could between 0 and 1. RotateX = "rotate-x" // RotateY is the name of the float property that determines the y-coordinate of the vector denoting // the axis of rotation which could between 0 and 1. RotateY = "rotate-y" // RotateZ is the name of the float property that determines the z-coordinate of the vector denoting // the axis of rotation which could between 0 and 1. RotateZ = "rotate-z" // SkewX is the name of the AngleUnit property that representing the angle to use to distort // the element along the abscissa. The default value is 0. SkewX = "skew-x" // SkewY is the name of the AngleUnit property that representing the angle to use to distort // the element along the ordinate. The default value is 0. SkewY = "skew-y" )
const CheckboxChangedEvent = "checkbox-event"
CheckboxChangedEvent is the constant for "checkbox-event" property tag. The "checkbox-event" event occurs when the checkbox becomes checked/unchecked. The main listener format: func(Checkbox, bool), where the second argument is the checkbox state.
const DrawFunction = "draw-function"
DrawFunction is the constant for the "draw-function" property tag. The "draw-function" property sets the draw function of CanvasView. The function should have the following format: func(Canvas)
const DropDownEvent = "drop-down-event"
DropDownEvent is the constant for "drop-down-event" property tag. The "drop-down-event" event occurs when a list item becomes selected. The main listener format: func(DropDownList, int), where the second argument is the item index.
const PopupMenuResult = "popup-menu-result"
PopupMenuResult is the constant for the "popup-menu-result" property tag. The "popup-menu-result" property sets the function (format: func(int)) to be called when a menu item of popup menu is selected.
const ResizeEvent = "resize-event"
ResizeEvent is the constant for "resize-event" property tag. The "resize-event" is fired when the view changes its size. The main listener format:
func(View, Frame).
The additional listener formats:
func(Frame), func(View), and func().
const ScrollEvent = "scroll-event"
ScrollEvent is the constant for "scroll-event" property tag. The "scroll-event" is fired when the content of the view is scrolled. The main listener format:
func(View, Frame).
The additional listener formats:
func(Frame), func(View), and func().
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 ¶
func AddTransition ¶
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 ¶
func AllImageResources() []string
func AllRawResources ¶
func AllRawResources() []string
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 BlurViewByID ¶
BlurViewByID removes keyboard focus from the View with the specified viewID.
func CreateSocketBridge ¶
func CreateSocketBridge(w http.ResponseWriter, req *http.Request) webBridge
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 ¶
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.
func GetAnimationCancelListeners ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 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 GetCheckboxHorizontalAlign ¶
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 ¶
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 ¶
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 ¶
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 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 ¶
GetDropDownDisabledItems return the list of DropDownList disabled item indexes. 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 ¶
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 ¶
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 ¶
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 GetLocalIP ¶
func GetLocalIP() string
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 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 ¶
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 ¶
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 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 ¶
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 GetOrigin ¶
GetOrigin 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 GetOverflow ¶
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 GetResize ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 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 ¶
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 GetTransitionCancelListeners ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 IsMultipleFilePicker ¶
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 IsTimingFunctionValid ¶
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 ¶
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 ¶
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 ¶
func NewHandler(urlPrefix string, createContentFunc func(Session) SessionContent, params AppParams) *httpHandler
func OpenBrowser ¶
func ReadRawResource ¶
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 ¶
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 ¶
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 ¶
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).
func SetAnimated ¶
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 ¶
SetChangeListener sets a listener for changing a subview property value. If the second argument (subviewID) is not specified or it 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 ¶
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
Types ¶
type AbsoluteLayout ¶
type AbsoluteLayout interface { ViewsContainer }
AbsoluteLayout - list-container of View
func NewAbsoluteLayout ¶
func NewAbsoluteLayout(session Session, params Params) AbsoluteLayout
NewAbsoluteLayout create new AbsoluteLayout object and return it
type AngleUnit ¶
type AngleUnit struct { Type AngleUnitType Value float64 }
AngleUnit describe a size (Value field) and size unit (Type field).
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 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 )
type AnimatedProperty ¶
type AnimatedProperty struct { // Tag is the name of the property Tag string // 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 Animation ¶
type Animation interface { Properties fmt.Stringer // contains filtered or unexported methods }
Animation interface is used to set animation parameters. Used properties: "property", "id", "duration", "delay", "timing-function", "iteration-count", and "animation-direction"
func GetAnimation ¶
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 ¶
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 ¶
type AppParams ¶
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 // 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 }
AppParams defines parameters of the app
type Application ¶
type Application interface { Finish() // contains filtered or unexported methods }
Application - app interface
type AudioPlayer ¶
type AudioPlayer interface { MediaPlayer }
func AudioPlayerByID ¶
func AudioPlayerByID(rootView View, id string) AudioPlayer
AudioPlayerByID return a AudioPlayer with id equal to the argument of the function or nil if there is no such View or View is not AudioPlayer
func NewAudioPlayer ¶
func NewAudioPlayer(session Session, params Params) AudioPlayer
NewAudioPlayer create new MediaPlayer object and return it
type BackgroundElement ¶
type BackgroundElement interface { Properties Tag() string Clone() BackgroundElement // contains filtered or unexported methods }
BackgroundElement describes the background element.
func NewBackgroundConicGradient ¶
func NewBackgroundConicGradient(params Params) BackgroundElement
NewBackgroundConicGradient creates the new background conic gradient
func NewBackgroundImage ¶
func NewBackgroundImage(params Params) BackgroundElement
NewBackgroundImage creates the new background image
func NewBackgroundLinearGradient ¶
func NewBackgroundLinearGradient(params Params) BackgroundElement
NewBackgroundLinearGradient creates the new background linear gradient
func NewBackgroundRadialGradient ¶
func NewBackgroundRadialGradient(params Params) BackgroundElement
NewBackgroundRadialGradient creates the new background radial gradient
type BackgroundGradientAngle ¶
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 ¶
func (point *BackgroundGradientAngle) String() 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 (angle constant or textual description of the SizeUnit) Pos any }
BackgroundGradientPoint define point on gradient straight line
type BorderProperty ¶
type BorderProperty interface { Properties fmt.Stringer 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
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(session Session) Bounds // contains filtered or unexported methods }
BorderProperty is the interface of a bounds property data
func NewBoundsProperty ¶
func NewBoundsProperty(params Params) BoundsProperty
NewBoundsProperty creates the new BoundsProperty object
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 - button view
func ButtonByID ¶
ButtonByID return a Button with id equal to the argument of the function or nil if there is no such View or View is not Button
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 ⎦ // 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) // 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 int) // 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 int) // 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) // 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
type CanvasView ¶
type CanvasView interface { View Redraw() }
CanvasView interface of a custom draw view
func CanvasViewByID ¶
func CanvasViewByID(rootView View, id string) CanvasView
CanvasViewByID return a CanvasView with id equal to the argument of the function or nil if there is no such View or View is not CanvasView
func NewCanvasView ¶
func NewCanvasView(session Session, params Params) CanvasView
NewCanvasView creates the new custom draw view
type CellIndex ¶
type CellIndex struct {
Row, Column int
}
CellIndex defines coordinates of the TableView cell
func GetTableCurrent ¶
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 - checkbox view
func CheckboxByID ¶
CheckboxByID return a Checkbox with id equal to the argument of the function or nil if there is no such View or View is not Checkbox
func NewCheckbox ¶
NewCheckbox create new Checkbox object and return it
type ClipShape ¶
type ClipShape interface { Properties fmt.Stringer // contains filtered or unexported methods }
ClipShape defines a View clipping area
func CircleClip ¶
CircleClip creates a circle View clipping area.
func EllipseClip ¶
EllipseClip creates a ellipse View clipping area.
func GetClip ¶
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 ¶
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 InsetClip ¶
func InsetClip(top, right, bottom, left SizeUnit, radius RadiusProperty) ClipShape
InsetClip 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 PolygonClip ¶
PolygonClip creates a polygon View clipping area. The elements of the function argument can be or text constants, or the text representation of SizeUnit, or elements of SizeUnit type.
func PolygonPointsClip ¶
PolygonPointsClip creates a polygon View clipping area.
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 )
func GetAccentColor ¶
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 ¶
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 - ColorPicker view
func ColorPickerByID ¶
func ColorPickerByID(rootView View, id string) ColorPicker
ColorPickerByID return a ColorPicker with id equal to the argument of the function or nil if there is no such View or View is not ColorPicker
func NewColorPicker ¶
func NewColorPicker(session Session, params Params) ColorPicker
NewColorPicker create new ColorPicker object and return it
type ColumnLayout ¶
type ColumnLayout interface { ViewsContainer }
ColumnLayout - grid-container of View
func ColumnLayoutByID ¶
func ColumnLayoutByID(rootView View, id string) ColumnLayout
ColumnLayoutByID return a ColumnLayout with id equal to the argument of the function or nil if there is no such View or View is not ColumnLayout
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(session Session) ViewBorder // contains filtered or unexported methods }
ColumnSeparatorProperty is the interface of a view separator data
func NewColumnSeparator ¶
func NewColumnSeparator(params Params) ColumnSeparatorProperty
NewColumnSeparator creates the new ColumnSeparatorProperty
type ControlKeyMask ¶
type ControlKeyMask int
type CustomView ¶
type CustomView interface { ViewsContainer CreateSuperView(session Session) View 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() []string
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 string) 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 ¶
func (customView *CustomViewData) HasFocus() bool
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 string)
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
func (*CustomViewData) Session ¶
func (customView *CustomViewData) Session() Session
Session returns a current Session interface
func (*CustomViewData) Set ¶
func (customView *CustomViewData) Set(tag string, 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 string, value any, animation Animation) bool
func (*CustomViewData) SetChangeListener ¶
func (customView *CustomViewData) SetChangeListener(tag string, listener func(View, string))
func (*CustomViewData) SetTransition ¶
func (customView *CustomViewData) SetTransition(tag string, animation Animation)
func (*CustomViewData) String ¶
func (customView *CustomViewData) String() 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 ¶
func (customView *CustomViewData) Transition(tag string) Animation
func (*CustomViewData) Transitions ¶
func (customView *CustomViewData) Transitions() map[string]Animation
func (*CustomViewData) ViewIndex ¶
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() string Type() int Text() string Object() DataObject ArraySize() int ArrayElement(index int) DataValue ArrayElements() []DataValue ArrayAsParams() []Params }
DataNode interface of a data node
type DataObject ¶
type DataObject interface { DataValue Tag() string PropertyCount() int Property(index int) DataNode PropertyByTag(tag string) DataNode PropertyValue(tag string) (string, bool) PropertyObject(tag string) DataObject SetPropertyValue(tag, value string) SetPropertyObject(tag string, object DataObject) 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() bool Object() DataObject Value() string }
DataValue interface of a data node value
type DatePicker ¶
type DatePicker interface { View }
DatePicker - DatePicker view
func DatePickerByID ¶
func DatePickerByID(rootView View, id string) DatePicker
DatePickerByID return a DatePicker with id equal to the argument of the function or nil if there is no such View or View is not DatePicker
func NewDatePicker ¶
func NewDatePicker(session Session, params Params) DatePicker
NewDatePicker create new DatePicker object and return it
type DetailsView ¶
type DetailsView interface { ViewsContainer }
DetailsView - collapsible container of View
func DetailsViewByID ¶
func DetailsViewByID(rootView View, id string) DetailsView
DetailsViewByID return a ColumnLayout with id equal to the argument of the function or nil if there is no such View or View is not DetailsView
func NewDetailsView ¶
func NewDetailsView(session Session, params Params) DetailsView
NewDetailsView create new DetailsView object and return it
type DropDownList ¶
type DropDownList interface { View // contains filtered or unexported methods }
DropDownList - the interface of a drop-down list view
func DropDownListByID ¶
func DropDownListByID(rootView View, id string) DropDownList
DropDownListByID return a DropDownListView with id equal to the argument of the function or nil if there is no such View or View is not DropDownListView
func NewDropDownList ¶
func NewDropDownList(session Session, params Params) DropDownList
NewDropDownList create new DropDownList object and return it
type EditView ¶
EditView - grid-container of View
func EditViewByID ¶
EditViewByID return a EditView with id equal to the argument of the function or nil if there is no such View or View is not EditView
func NewEditView ¶
NewEditView create new EditView object and return it
type FileInfo ¶
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 ¶
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 ¶
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 - the control view for the files selecting
func FilePickerByID ¶
func FilePickerByID(rootView View, id string) FilePicker
FilePickerByID return a FilePicker with id equal to the argument of the function or nil if there is no such View or View is not FilePicker
func NewFilePicker ¶
func NewFilePicker(session Session, params Params) FilePicker
NewFilePicker create new FilePicker object and return it
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 GridLayout ¶
type GridLayout interface { ViewsContainer }
GridLayout - grid-container of View
func GridLayoutByID ¶
func GridLayoutByID(rootView View, id string) GridLayout
GridLayoutByID return a GridLayout with id equal to the argument of the function or nil if there is no such View or View is not GridLayout
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 - image View
func ImageViewByID ¶
ImageViewByID return a ImageView with id equal to the argument of the function or nil if there is no such View or View is not ImageView
func NewImageView ¶
NewImageView create new ImageView object and return it
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 }
type ListAdapter ¶
type ListAdapter interface { ListSize() int ListItem(index int, session Session) View IsListItemEnabled(index int) bool }
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 ListLayout ¶
type ListLayout interface { ViewsContainer }
ListLayout - list-container of View
func ListLayoutByID ¶
func ListLayoutByID(rootView View, id string) ListLayout
ListLayoutByID return a ListLayout with id equal to the argument of the function or nil if there is no such View or View is not ListLayout
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 - the list view interface
func ListViewByID ¶
ListViewByID return a ListView with id equal to the argument of the function or nil if there is no such View or View is not ListView
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 }
type MediaSource ¶
type MediaStyleParams ¶
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 }
type NamedColor ¶
type NumberPicker ¶
type NumberPicker interface { View }
NumberPicker - 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) NumberPicker
NumberPickerByID return a NumberPicker with id equal to the argument of the function or nil if there is no such View or View is not NumberPicker
type OutlineProperty ¶
type OutlineProperty interface { Properties fmt.Stringer ViewOutline(session Session) ViewOutline // contains filtered or unexported methods }
func NewOutlineProperty ¶
func NewOutlineProperty(params Params) OutlineProperty
type ParentView ¶
type ParentView interface { // Views return a list of child views Views() []View }
type Path ¶
type Path interface { // Reset erases the Path Reset() // 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 }
type Popup ¶
type Popup interface { View() View Session() Session Show() Dismiss() // contains filtered or unexported methods }
Popup interface
type PopupButton ¶
type PopupButton struct { Title string Type PopupButtonType OnClick func(Popup) }
PopupButton describes a button that will be placed at the bottom of the window.
type PopupButtonType ¶
type PopupButtonType int
type ProgressBar ¶
type ProgressBar interface { View }
ProgressBar - 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) ProgressBar
ProgressBarByID return a ProgressBar with id equal to the argument of the function or nil if there is no such View or View is not ProgressBar
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 string) 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 string, value any) bool // Remove removes the property with name defined by the argument Remove(tag string) // Clear removes all properties Clear() // AllTags returns an array of the set properties AllTags() []string // contains filtered or unexported methods }
Properties interface of properties map
type RadiusProperty ¶
type RadiusProperty interface { Properties fmt.Stringer BoxRadius(session Session) BoxRadius // contains filtered or unexported methods }
func NewRadiusProperty ¶
func NewRadiusProperty(params Params) RadiusProperty
NewRadiusProperty creates the new RadiusProperty
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 - grid-container of 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, tag string) 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, tag string, 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) // 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)) // contains filtered or unexported methods }
Session provide interface to session parameters assess
type SessionContent ¶
SessionContent is the interface of a session content
type SessionDisconnectListener ¶
type SessionDisconnectListener interface {
OnDisconnect(session Session)
}
SessionPauseListener is the listener interface of a session disconnect event
type SessionFinishListener ¶
type SessionFinishListener interface {
OnFinish(session Session)
}
SessionFinishListener is the listener interface of a session start event
type SessionPauseListener ¶
type SessionPauseListener interface {
OnPause(session Session)
}
SessionPauseListener is the listener interface of a session pause event
type SessionReconnectListener ¶
type SessionReconnectListener interface {
OnReconnect(session Session)
}
SessionPauseListener is the listener interface of a session reconnect event
type SessionResumeListener ¶
type SessionResumeListener interface {
OnResume(session Session)
}
SessionResumeListener is the listener interface of a session resume event
type SessionStartListener ¶
type SessionStartListener interface {
OnStart(session Session)
}
SessionStartListener is the listener interface of a session start event
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 ¶
type SizeFunc interface { fmt.Stringer // Name() returns the function name: "min", "max", "clamp", "sum", "sub", "mul", or "div" 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", and "div" functions are available.
func ClampSize ¶
ClampSize creates a SizeUnit function whose the result is calculated as follows:
min ≤ value ≤ max -> value; value < min -> min; max < value -> max;
Valid argument types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc.
func DivSize ¶
DivSize creates a SizeUnit function that calculates the result of dividing the arguments (arg1 / arg2). Valid argument 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 ¶
MaxSize creates a SizeUnit function that calculates the maximum argument. Valid argument types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc
func MinSize ¶
MinSize creates a SizeUnit function that calculates the minimum argument. Valid argument types are SizeUnit, SizeFunc and a string which is a text description of SizeUnit or SizeFunc.
func MulSize ¶
MulSize creates a SizeUnit function that calculates the result of multiplying the arguments (arg1 * arg2). Valid argument 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 SizeUnitType Value float64 Function SizeFunc }
SizeUnit describe a size (Value field) and size unit (Type field).
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 ¶
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 ¶
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 ¶
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 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 )
type StackLayout ¶
type StackLayout interface { ViewsContainer Peek() View MoveToFront(view View) bool MoveToFrontByID(viewID string) bool Push(view View, animation int, onPushFinished func()) Pop(animation int, onPopFinished func(View)) bool }
StackLayout - list-container of 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) StackLayout
StackLayoutByID return a StackLayout with id equal to the argument of the function or nil if there is no such View or View is not StackLayout
type SvgImageView ¶
type SvgImageView interface { View }
SvgImageView - image View
func NewSvgImageView ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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() ReloadCell(row, column int) CellFrame(row, column int) Frame // contains filtered or unexported methods }
TableView - text View
func NewTableView ¶
NewTableView create new TableView object and return it
func TableViewByID ¶
TableViewByID return a TableView with id equal to the argument of the function or nil if there is no such View or View is not TableView
type TabsLayout ¶
type TabsLayout interface { ViewsContainer ListAdapter }
TabsLayout - multi-tab container of 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) TabsLayout
TabsLayoutByID return a TabsLayout with id equal to the argument of the function or nil if there is no such View or View is not TabsLayout
type TextMetrics ¶
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 - text View
func NewTextView ¶
NewTextView create new TextView object and return it
func TextViewByID ¶
TextViewByID return a TextView with id equal to the argument of the function or nil if there is no such View or View is not TextView
type Theme ¶
type Theme interface { fmt.Stringer Name() string Constant(tag string) (string, string) SetConstant(tag string, value, touchUIValue string) // ConstantTags returns the list of all available constants ConstantTags() []string Color(tag string) (string, string) SetColor(tag, color, darkUIColor string) // ColorTags returns the list of all available color constants ColorTags() []string Image(tag string) (string, string) SetImage(tag, image, darkUIImage string) // ImageConstantTags returns the list of all available image constants ImageConstantTags() []string Style(tag string) ViewStyle SetStyle(tag string, style ViewStyle) RemoveStyle(tag string) MediaStyle(tag string, params MediaStyleParams) ViewStyle SetMediaStyle(tag string, params MediaStyleParams, style ViewStyle) StyleTags() []string MediaStyles(tag string) []struct { Selectors string Params MediaStyleParams } Append(anotherTheme Theme) // contains filtered or unexported methods }
func CreateThemeFromText ¶
type TimePicker ¶
type TimePicker interface { View }
TimePicker - TimePicker view
func NewTimePicker ¶
func NewTimePicker(session Session, params Params) TimePicker
NewTimePicker create new TimePicker object and return it
func TimePickerByID ¶
func TimePickerByID(rootView View, id string) TimePicker
TimePickerByID return a TimePicker with id equal to the argument of the function or nil if there is no such View or View is not TimePicker
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 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 }
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) VideoPlayer
VideoPlayerByID return a VideoPlayer with id equal to the argument of the function or nil if there is no such View or View is not VideoPlayer
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 // 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 string, value any, animation Animation) bool // SetChangeListener set the function to track the change of the View property SetChangeListener(tag string, listener func(View, string)) // HasFocus returns 'true' if the view has focus HasFocus() bool // contains filtered or unexported methods }
View - 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
type ViewBorder ¶
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 ViewFilter ¶
type ViewFilter interface { Properties fmt.Stringer // contains filtered or unexported methods }
ViewFilter 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 ¶
func GetBackdropFilter(view View, subviewID ...string) ViewFilter
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) ViewFilter
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 NewViewFilter ¶
func NewViewFilter(params Params) ViewFilter
NewViewFilter creates the new ViewFilter
type ViewOutline ¶
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 ViewShadow ¶
type ViewShadow interface { Properties fmt.Stringer // contains filtered or unexported methods }
ViewShadow contains attributes of the view shadow
func GetTextShadows ¶
func GetTextShadows(view View, subviewID ...string) []ViewShadow
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 GetViewShadows ¶
func GetViewShadows(view View, subviewID ...string) []ViewShadow
GetViewShadows 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 NewInsetViewShadow ¶
func NewInsetViewShadow(offsetX, offsetY, blurRadius, spreadRadius SizeUnit, color Color) ViewShadow
NewInsetViewShadow create the new inset shadow for a view. Arguments: offsetX, offsetY - x and y offset of the shadow blurRadius - the blur radius of the shadow spreadRadius - the spread radius of the shadow color - the color of the shadow
func NewShadowWithParams ¶
func NewShadowWithParams(params Params) ViewShadow
NewShadowWithParams create the new shadow for a view.
func NewTextShadow ¶
func NewTextShadow(offsetX, offsetY, blurRadius SizeUnit, color Color) ViewShadow
NewTextShadow create the new text shadow. Arguments: offsetX, offsetY - x and y offset of the shadow blurRadius - the blur radius of the shadow color - the color of the shadow
func NewViewShadow ¶
func NewViewShadow(offsetX, offsetY, blurRadius, spreadRadius SizeUnit, color Color) ViewShadow
NewViewShadow create the new shadow for a view. Arguments: offsetX, offsetY - x and y offset of the shadow blurRadius - the blur radius of the shadow spreadRadius - the spread radius of the shadow color - the color of the shadow
type ViewStyle ¶
type ViewStyle interface { Properties // Transition returns the transition animation of the property. Returns nil is there is no transition animation. Transition(tag string) Animation // Transitions returns the map of transition animations. The result is always non-nil. Transitions() map[string]Animation // 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 string, animation Animation) // 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 }
ViewsContainer - mutable list-container of Views
func ViewsContainerByID ¶
func ViewsContainerByID(rootView View, id string) ViewsContainer
ViewsContainerByID return a ViewsContainer with id equal to the argument of the function or nil if there is no such View or View is not ViewsContainer
Source Files ¶
- absoluteLayout.go
- angleUnit.go
- animation.go
- animationEvents.go
- appLog.go
- appServer.go
- application.go
- audioPlayer.go
- background.go
- backgroundConicGradient.go
- backgroundGradient.go
- border.go
- bounds.go
- button.go
- canvas.go
- canvasView.go
- checkbox.go
- color.go
- colorConstants.go
- colorPicker.go
- columnLayout.go
- columnSeparator.go
- cssBuilder.go
- customView.go
- data.go
- datePicker.go
- detailsView.go
- downloadFile.go
- dropDownList.go
- editView.go
- filePicker.go
- focusEvents.go
- gridLayout.go
- http_handler.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
- 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
- utils.go
- videoPlayer.go
- view.go
- viewByID.go
- viewClip.go
- viewFactory.go
- viewFilter.go
- viewStyle.go
- viewStyleSet.go
- viewTransform.go
- viewUtils.go
- viewsContainer.go
- webBridge.go