Titanium.UI

module
0.2.0
A module for controlling the user interface.

Objects

Clipboard A module used for accessing clipboard data.
Dialog An object representing a Dialog window.
Menu An object representing a menu.
MenuItem An object representing a menu item.
Tray An object representing a TrayItem.
UserWindow An object representing a top-level Titanium window.

Functions

addTray Create and add a tray icon
clearTray Empty the tray of all this application's tray items
createCheckMenuItem Create a new CheckMenuItem object.
createMenu Create a new menu
createMenuItem Create a new menu item.
createSeperatorMenuItem Create a new separator menu item.
createWindow Create a new top-level window or a child of the current window if called from the context of an existing window.
getContextMenu Returns the application context menu
getCurrentWindow Returns the current window
getIdleTime Returns the user's idle time (for the desktop, not just the application)
getMainWindow Return the application's main window
getMenu Returns the application's main MenuItem
getOpenWindows Returns the list of currently open windows
getWindows Returns the list of currently open windows
setBadge Set the application icon's badge text.
setBadgeImage Set the application icon's badge image.
setContextMenu Set the application's context menu
setDockIcon Set the dock icon
setDockMenu Set the dock menu
setIcon Set the application's icon
setMenu Set a menu for the application
showDialog create a UI dialog

Properties

Type Name Description
Number CENTERED The CENTERED event constant