[][src]Module pushrod::widget

Widget library used for on-screen UI interaction. This is a core set of Widget objects that are used to allow users to interact with an application. Contains a core set of widgets that can be extended.

Currently contains:

  • Base Widget (for drawing a plain background)
  • Box Widget (for drawing a plain background with a box and a colored border)
  • Text Widget (for drawing text)
  • Timer Widget (for performing timer operations)
  • Image Widget (for drawing images)
  • Push Button Widget (for creating an interactive button that can be clicked)
  • Toggle Button Widget (for creating an on/off button that can be toggled)
  • Radio Button Widget (for creating a group of buttons where only one item can be selected at a time)
  • Progress Widget (for displaying progress of an operation)

Modules

box_widget

Box component: draws a box on the screen with adjustable border color and width.

checkbox_widget

Checkbox component: draws a selectable checkbox with text.

config

Configurable definition, used by Widget objects to store configuration settings.

image_button_widget

Image button component: draws an image inside a push button widget.

image_widget

Image component: draws an image on the screen in png, jpg or gif formats.

progress_widget

Progress component: draws a progress meter widget.

push_button_widget

Push Button component: draws a clickable box on the screen, triggering an on_clicked callback when appropriate.

radio_button_widget

Radio button component: only allows a single item to be selected in a group.

text_widget

Text component: draws text on the screen with an adjustable text, font size, color, and font name.

timer_widget

Timer component: triggers a callback after a certain amount of time.

toggle_button_widget

Toggle Button component: draws a clickable box on the screen, triggering an on_selected callback where appropriate.

widget

Base component and UI Components (Widget) library. These components are used for on-screen interactions between the user and the application.