Widget Utilities

Typemodule
Dictionarylibrary.widgetutils
LibraryWidget Utilities
Associationscom.livecode.library.widgetutils
Summary

A library of utility handlers for functions commonly needed by widgets.

Description

A library of utility handlers for functions commonly needed by widgets.

TypeNameSummarySyntax
handlercolorToString

Converts a color to a string representing the color

colorToString(<pColor>,<pIncludeAlpha>)

- - -constrainPathToRect

Scales and translates a path to fit within a rectangle

constrainPathToRect(<pTargetRect>,<xPath>)

- - -getNativeThemeName

Get the canonical name of the current "native" mobile theme

getNativeThemeName()

- - -intToString

Formats an integer as a string

intToString(<pNumber>)

- - -paintPlaceholderImage

Paint a placeholder image using an SVG icon and name

paintPlaceholderImage(<pCanvas>,<pBounds>,<pSVGIcon>,<pLabel>,<pFont>,<pColor>)

- - -placeholderIcon

Returns a placeholder icon for a given operating system

placeholderIcon(<pOS>)

- - -stringToColor

Converts a string to a color

stringToColor(<pString>)

- - -stripZeros

Removes any superfluous zeros and decimal places.

stripZeros(<pString>)

moduleWidget Utilities

A library of utility handlers for functions commonly needed by widgets.

stripZeros(<pString>)