Skip to content

GUI.Icons

Adam Furman edited this page Jul 9, 2016 · 1 revision

Icons class

The Icons class preloads the system icon set.

GUI.Icons ()

Accessible via state.getIcons().

Static Methods

  • loadFromFile ( path ) Load the icon set from a file. Not working in v1.0.

Object Variables

  • str rootPath The folder in which the icons are located. res/icons/ is the default value.
  • dict icons A dict with the name of the icon as the key and the filename as the value. Used to look up icons.

Methods

  • getIcons () Returns the icons dict.
  • getRootPath () Returns rootPath.
  • getLoadedIcon ( str name, folder="" ) Loads an icon at all costs. It will first attempt to find the name in the dict, failing that, it will load from the specified folder, or from an absolute or relative path. If no suitable file is found, it will return the "unknown" icon.

Home

Getting Started

Documentation

Threads and Tasks

Applications and Notifications

The State Class and Variable

The GUI, Events, Resources, and Dialogs

The following classes are all under the GUI class, e.g. Font is actually accessed as GUI.Font.

  • Font class
  • Icons class
  • ColorPalette class
  • LongClickEvent class
  • IntermediateUpdateEvent class
  • EventQueue class
  • FunctionBar class
  • Keyboard class
  • Overlay class
  • Dialog class
    • OKDialog dialog
    • ErrorDialog dialog
    • WarningDialog dialog
    • YNDialog dialog
    • OKCancelDialog dialog
    • AskDialog dialog
    • CustomContentDialog dialog
  • NotificationMenu overlay
    • RecentAppSwitcher overlay
    • Selector overlay

GUI Components and Containers

  • Component class

The following classes are all Components, they inherit from that class.

  • Container component
  • AppContainer container
  • Button container
  • KeyboardButton container
  • TextEntryField container
  • PagedContainer container
    • GriddedPagedContainer container
    • ListedPagedContainer container
  • ButtonRow container
  • ScrollableContainer container
    • ListScrollableContainer container
    • TextScrollableContainer container
    • MultiLineTextEntryField container
  • Text component
  • MultiLineText component
  • ExpandingMultiLineText component
  • Image component
  • Slider component
  • Checkbox component
  • Switch component
  • Canvas component
  • ScrollIndicator component
Clone this wiki locally