.. _api-reference: ============== API Reference ============== Core application components --------------------------- ================================================= =================================================== Component Description ================================================= =================================================== :doc:`App ` The top-level representation of an application. :doc:`DocumentApp ` An application that manages documents. :doc:`Window ` An operating system-managed container of widgets. :doc:`MainWindow ` The main window of the application. ================================================= =================================================== General widgets --------------- ======================================================================= ======================================================================== Component Description ======================================================================= ======================================================================== :doc:`ActivityIndicator ` A small animated indicator showing activity on a task of indeterminate length, usually rendered as a "spinner" animation. :doc:`Button ` A button that can be pressed or clicked. :doc:`Canvas ` A drawing area for 2D vector graphics. :doc:`DateInput ` A widget to select a calendar date :doc:`DetailedList ` An ordered list of content where each item has an icon, a main heading, and a line of supplementary text. :doc:`Divider ` A separator used to visually distinguish two sections of content in a layout. :doc:`ImageView ` Image Viewer :doc:`Label ` A text label for annotating forms or interfaces. :doc:`MapView ` A zoomable map that can be annotated with location pins. :doc:`MultilineTextInput ` A scrollable panel that allows for the display and editing of multiple lines of text. :doc:`NumberInput ` A text input that is limited to numeric input. :doc:`PasswordInput ` A widget to allow the entry of a password. Any value typed by the user will be obscured, allowing the user to see the number of characters they have typed, but not the actual characters. :doc:`ProgressBar ` A horizontal bar to visualize task progress. The task being monitored can be of known or indeterminate length. :doc:`Selection ` A widget to select an single option from a list of alternatives. :doc:`Slider ` A widget for selecting a value within a range. The range is shown as a horizontal line, and the selected value is shown as a draggable marker. :doc:`Switch ` A clickable button with two stable states: True (on, checked); and False (off, unchecked). The button has a text label. :doc:`Table ` A widget for displaying columns of tabular data. :doc:`TextInput ` A widget for the display and editing of a single line of text. :doc:`TimeInput ` A widget to select a clock time :doc:`Tree ` A widget for displaying a hierarchical tree of tabular data. :doc:`WebView ` An embedded web browser. :doc:`Widget ` The abstract base class of all widgets. This class should not be be instantiated directly. ======================================================================= ======================================================================== Layout widgets -------------- ==================================================================== ======================================================================== Usage Description ==================================================================== ======================================================================== :doc:`Box ` A generic container for other widgets. Used to construct layouts. :doc:`ScrollContainer ` A container that can display a layout larger that the area of the container, with overflow controlled by scroll bars. :doc:`SplitContainer ` A container that divides an area into two panels with a movable border. :doc:`OptionContainer ` A container that can display multiple labeled tabs of content. ==================================================================== ======================================================================== Resources --------- ==================================================================== ======================================================================== Component Description ==================================================================== ======================================================================== :doc:`App Paths ` A mechanism for obtaining platform-appropriate file system locations for an application. :doc:`Command ` A representation of app functionality that the user can invoke from menus or toolbars. :doc:`Font ` Fonts :doc:`Icon ` An icon for buttons, menus, etc :doc:`Image ` An image :doc:`Source ` A base class for data source implementations. :doc:`ListSource ` A data source describing an ordered list of data. :doc:`TreeSource ` A data source describing an ordered hierarchical tree of data. :doc:`ValueSource ` A data source describing a single value. :doc:`Validators ` A mechanism for validating that input meets a given set of criteria. ==================================================================== ======================================================================== Hardware -------- ==================================================================== ======================================================================== Usage Description ==================================================================== ======================================================================== :doc:`Camera ` A sensor that can capture photos and/or video. :doc:`Location ` A sensor that can capture the geographical location of the device. :doc:`Screen ` A representation of a screen attached to a device. ==================================================================== ======================================================================== Other ----- ============================================== ======================================================================== Component Description ============================================== ======================================================================== :doc:`Constants ` Symbolic constants used by various APIs. :doc:`Keys ` Symbolic representation of keys used for keyboard shortcuts. :doc:`Types ` Utility data structures used by Toga APIs. ============================================== ======================================================================== .. toctree:: :hidden: app documentapp window mainwindow containers/index hardware/index resources/index widgets/index constants keys types