|
TinyMaterialDesign
|
Classes | |
| class | AnchorLayout |
| Positions a single rect relative to a corner/edge of a container. More... | |
| class | App |
| Bundles the surface + display + gesture routing + Screen boilerplate that every single-widget example under examples/controls and examples/layouts otherwise hand-rolls identically, down to a constructor plus two calls: begin() and update(). More... | |
| class | AppBar |
| Top app bar: a title plus optional leading/trailing icon widgets (typically IconButton). More... | |
| class | Badge |
| Small status marker, typically overlaid on an icon's corner. More... | |
| class | Banner |
| Persistent, non-modal inline message with text actions - Material's "banner", e.g. "You're offline. [Retry] [Dismiss]" pinned below an app bar. More... | |
| class | BottomSheet |
| Modal panel sliding up from the bottom edge, full width, with rounded top corners and a drag-handle bar - Material's "modal bottom
sheet". Holds a list of items (typically ListItem or Button) the same non-owning way Drawer holds its items, in a Container (Core/Container.h) that scrolls automatically once they overflow the sheet's height. More... | |
| struct | Bounds |
| Axis-aligned pixel rectangle used for widget bounds and hit-testing. More... | |
| class | Button |
| Material Design button: Filled / Tonal / Outlined / Text / Elevated. More... | |
| class | Card |
| Elevated rounded-rect container with an optional title and word-wrapped body text. More... | |
| class | Carousel |
Horizontally paged, drag-to-swipe row of items (typically MediaCard), with a snap-to-item animation and a page-dot indicator - Material's "carousel", e.g. a row of featured stations/genres. More... | |
| struct | ChartReferenceLine |
| A horizontal line at a fixed value, e.g. a threshold or a target. More... | |
| struct | ChartSeries |
| One data series of a LineChart. More... | |
| class | Checkbox |
| Square checkbox, toggled by tap. More... | |
| class | Chip |
| Small rounded-rect label, optionally a toggle (filter chip) rather than a one-shot action (assist chip). More... | |
| class | CircularProgressIndicator |
| Circular "spinner" ring. Determinate (value in [0,1], drawn as a sweep starting at 12 o'clock) or indeterminate (a fixed-length arc rotates continuously, driven by update()). Both use TinyGPU's ISurface::drawArc. More... | |
| struct | ColorScheme |
| Material Design 3 color roles. More... | |
| class | Container |
| A widget that holds child widgets, draws/dispatches gestures to them, and scrolls its content vertically when it overflows its own bounds. More... | |
| class | Dialog |
| Modal alert dialog: full-screen scrim + centered card + title + wrapped message + action widgets (typically Button). More... | |
| class | Divider |
| A themed hairline. Orientation follows the bounds' aspect ratio: wider than tall draws horizontal (centered vertically), taller draws vertical (centered horizontally). More... | |
| class | Drawer |
| Modal side navigation panel, holding a list of items (typically ListItem) that scrolls automatically once they overflow the panel's height - the item area is a Container (Core/Container.h) under the hood. More... | |
| class | Esp32Wifi |
| WifiControl for the ESP32: asynchronous scan and connection, the credentials are stored in the flash (Preferences, namespace "wifi") when a connection works, and used by begin(). More... | |
| class | FloatingActionButton |
| Floating Action Button: a circular (or pill, when it has a label) elevated icon button for a screen's single primary action. More... | |
| class | FlowLayout |
| Computes wrapping rects for items of varying width (chip/tag rows). More... | |
| class | GridLayout |
| Computes wrapped grid cell positions for a row of equal-size cards. More... | |
| class | IconButton |
| Circular tap target hosting one vector glyph from Draw/Icons.h (or any function matching IconPainter). Tap feedback is a ripple, same rationale as Button (see Button.h's class comment). More... | |
| class | Keyboard |
| On-screen QWERTY keyboard that drives one text input at a time. More... | |
| class | KeyValueRow |
| Key on the left, value on the right (label font). More... | |
| class | Label |
| Single line of themed, non-interactive text. More... | |
| class | LinearLayout |
| Computes equal- or weighted-split rects along one axis of a container. More... | |
| class | LinearProgressIndicator |
| Horizontal progress bar. Determinate (value in [0,1]) or indeterminate (a segment sweeps back and forth, driven by update()). More... | |
| class | LineChart |
| Line chart with one or more series, a vertical value scale with round-numbered grid lines, optional reference lines, and an optional card frame with a title and a footer line. More... | |
| class | ListItem |
| Tappable row: optional leading icon + title, with a selected state. More... | |
| struct | MaterialTheme |
| Bundles a color scheme, shape tokens, typography, and spacing into one theme, passed to widgets so they all draw with consistent styling. More... | |
| class | MediaCard |
| Tappable card with a thumbnail image and a caption - e.g. one tile in a grid of stations/genres/countries. Pair with GridLayout (Core/GridLayout.h) to lay out several of these. More... | |
| class | Menu |
| Popover list of items (typically ListItem), anchored near whatever opened it - e.g. a dropdown from a Button, or a context menu from a long-press. Scrolls automatically once the items overflow the panel's height - the item area is a Container (Core/Container.h) under the hood. More... | |
| struct | NavDestination |
| One NavigationBar/NavigationRail destination: an icon plus a short label. More... | |
| class | NavigationBar |
| Bottom navigation bar: 3-5 exclusive destinations, each an icon with a label underneath and a pill highlight behind the selected icon. More... | |
| class | NavigationRail |
| Side navigation rail: a narrow vertical column of 3-7 exclusive destinations, each an icon with a label underneath and a pill highlight behind the selected icon - the tablet/landscape counterpart of NavigationBar. More... | |
| class | OffsetSurface |
Draws into target moved up by dy pixels, only inside the rows [clipTop, clipBottom) of target. More... | |
| class | Page |
| One page (tab) of an app: a scrollable Container with a title and an icon for the navigation, that builds its own widgets. More... | |
| class | PageNavigator |
| Connects Pages with a NavigationBar: one destination per page, only the selected page is visible. All pages share the same bounds, so the screen itself never scrolls; each page scrolls on its own. More... | |
| class | RadialLayout |
| Places item rects evenly spaced around a circle. More... | |
| class | RadioButton |
| One radio button. Tapping it selects it (radio semantics: a tap never deselects); mutual exclusion across a group is RadioGroup's job. More... | |
| class | RadioGroup |
| Coordinates a set of RadioButtons so selecting one deselects the rest. Not itself a Widget - each RadioButton must still be added to the Screen individually, e.g.: More... | |
| class | RadioRow |
| RadioButton and caption; tapping the row selects it. More... | |
| class | Screen |
| Owns a set of widgets, draws them, and routes gesture events to whichever one should handle each event - the one root Container every sketch has, plus what only a root needs: a second non-scrolling widget layer, modal dialog presentation, and actually writing to a display. More... | |
| class | SearchBar |
| Pill-shaped search input: leading magnifier glyph, typed text, and a trailing "x" clear glyph shown once there's something to clear. More... | |
| class | SegmentedButton |
| Connected row of segments sharing one pill-shaped outline (M3 "segmented
button"). Single-select (radio-like, the default) or multi-select (checkbox-like, toggling independently) - see setMultiSelect(). More... | |
| class | SettingRow |
| Common part of the rows: caption and background. More... | |
| struct | ShapeTokens |
| Material 3 shape-scale corner radii, in pixels. More... | |
| class | SimulatedWifi |
WiFi without hardware, for the desktop and tests: a fixed list of networks; connecting succeeds after connectMs if the network is open or the password is password ("demo"). More... | |
| class | Slider |
| Draggable track-and-thumb slider over [minValue, maxValue]. More... | |
| class | SliderRow |
Caption and formatted value on one line, a Slider below. The value is quantized to step: More... | |
| class | Snackbar |
| Transient bottom message bar with an optional single text action. More... | |
| class | SplitLayout |
| Splits a container into two panes (master/detail, nav/content). More... | |
| class | StackLayout |
| Two unrelated single-rect placement helpers bundled under one name - not "arrange these into a row/column" (that's LinearLayout), but "place
one rect relative to another rect it sits on top of or overlaps": More... | |
| class | StatTile |
| A small tile with one value: a caption at the top, the value in an accent color and an optional unit / sub text - for dashboards and KPIs. More... | |
| class | Switch |
| Track-and-thumb toggle switch. Toggled by tap (drag-to-slide is a possible follow-up, not implemented here). More... | |
| class | SwitchRow |
| Caption on the left, Switch on the right; tapping the row toggles it. More... | |
| class | TabBar |
| Row of evenly-spaced exclusive-selection labels (primary tabs), with a sliding indicator under the selected one. Tabs are fixed text strings added via addTab() rather than separate child widgets, so the whole row is one hit-testable/drawable Widget. More... | |
| class | TableLayout |
| Grid with explicit, independently-sized column widths and row heights. More... | |
| class | TextArea |
| Multi-line, word-wrapped text input box. More... | |
| class | TextBlock |
| Multi-line text that is wrapped at word boundaries to the widget width (' ' starts a new line) - for notes, explanations and messages. Unlike Label it can span several lines; heightFor() tells how much room the text needs, so a layout can size the widget to its text: More... | |
| class | TextField |
| Single-line text input box. More... | |
| class | TextInputTarget |
| class | Tooltip |
| Small floating label, shown briefly above an anchor widget. More... | |
| struct | Typography |
| Typography roles, each backed by one of TinyGPU's bitmap fonts. More... | |
| class | Widget |
| Base class every TinyMaterialDesign widget derives from. More... | |
| class | WifiControl |
| The WiFi of a device as WifiLoginPage uses it: scan, connect and the stored credentials. All calls must return quickly - the scan and the connection run in the background and are polled. More... | |
| class | WifiLoginPage |
| WiFi selection and login as a Page: the state of the connection, the SSID with a button that opens the networks of a scan as pop-up list, the password (masked, "Show password"), Connect (Disconnect while connected) and Cancel (leaves the page without connecting). More... | |
| struct | WifiNetwork |
| A WiFi network found by a scan. More... | |
| class | WifiNetworkRow |
| One network in a list: name, a lock for a secured network and the signal bars; tapping the row calls onSelect. The connected network is highlighted. More... | |
Typedefs | |
| using | Print = tinygpu::Print |
| using | MaterialThemeRGB565 = MaterialTheme< tinygpu::RGB565 > |
| using | MaterialThemeRGB666 = MaterialTheme< tinygpu::RGB666 > |
| using | MaterialThemeRGB888 = MaterialTheme< tinygpu::RGB888 > |
| using | AppBarRGB565 = AppBar< tinygpu::RGB565 > |
| using | AppBarRGB666 = AppBar< tinygpu::RGB666 > |
| using | AppBarRGB888 = AppBar< tinygpu::RGB888 > |
| using | BadgeRGB565 = Badge< tinygpu::RGB565 > |
| using | BadgeRGB666 = Badge< tinygpu::RGB666 > |
| using | BadgeRGB888 = Badge< tinygpu::RGB888 > |
| using | BannerRGB565 = Banner< tinygpu::RGB565 > |
| using | BannerRGB666 = Banner< tinygpu::RGB666 > |
| using | BannerRGB888 = Banner< tinygpu::RGB888 > |
| using | BottomSheetRGB565 = BottomSheet< tinygpu::RGB565 > |
| using | BottomSheetRGB666 = BottomSheet< tinygpu::RGB666 > |
| using | BottomSheetRGB888 = BottomSheet< tinygpu::RGB888 > |
| using | ButtonRGB565 = Button< tinygpu::RGB565 > |
| using | ButtonRGB666 = Button< tinygpu::RGB666 > |
| using | ButtonRGB888 = Button< tinygpu::RGB888 > |
| using | CardRGB565 = Card< tinygpu::RGB565 > |
| using | CardRGB666 = Card< tinygpu::RGB666 > |
| using | CardRGB888 = Card< tinygpu::RGB888 > |
| using | CarouselRGB565 = Carousel< tinygpu::RGB565 > |
| using | CarouselRGB666 = Carousel< tinygpu::RGB666 > |
| using | CarouselRGB888 = Carousel< tinygpu::RGB888 > |
| using | CheckboxRGB565 = Checkbox< tinygpu::RGB565 > |
| using | CheckboxRGB666 = Checkbox< tinygpu::RGB666 > |
| using | CheckboxRGB888 = Checkbox< tinygpu::RGB888 > |
| using | ChipRGB565 = Chip< tinygpu::RGB565 > |
| using | ChipRGB666 = Chip< tinygpu::RGB666 > |
| using | ChipRGB888 = Chip< tinygpu::RGB888 > |
| using | DialogRGB565 = Dialog< tinygpu::RGB565 > |
| using | DialogRGB666 = Dialog< tinygpu::RGB666 > |
| using | DialogRGB888 = Dialog< tinygpu::RGB888 > |
| using | DividerRGB565 = Divider< tinygpu::RGB565 > |
| using | DividerRGB666 = Divider< tinygpu::RGB666 > |
| using | DividerRGB888 = Divider< tinygpu::RGB888 > |
| using | DrawerRGB565 = Drawer< tinygpu::RGB565 > |
| using | DrawerRGB666 = Drawer< tinygpu::RGB666 > |
| using | DrawerRGB888 = Drawer< tinygpu::RGB888 > |
| using | FAB = FloatingActionButton< TINYMD_DEFAULT_RGB_T > |
| using | FloatingActionButtonRGB565 = FloatingActionButton< tinygpu::RGB565 > |
| using | FloatingActionButtonRGB666 = FloatingActionButton< tinygpu::RGB666 > |
| using | FloatingActionButtonRGB888 = FloatingActionButton< tinygpu::RGB888 > |
| using | FabRGB565 = FloatingActionButtonRGB565 |
| using | FabRGB666 = FloatingActionButtonRGB666 |
| using | FabRGB888 = FloatingActionButtonRGB888 |
| template<typename RGB_T > | |
| using | IconPainter = void(*)(tinygpu::ISurface< RGB_T > &, const Bounds &, RGB_T, uint8_t) |
| using | IconButtonRGB565 = IconButton< tinygpu::RGB565 > |
| using | IconButtonRGB666 = IconButton< tinygpu::RGB666 > |
| using | IconButtonRGB888 = IconButton< tinygpu::RGB888 > |
| using | KeyboardRGB565 = Keyboard< tinygpu::RGB565 > |
| using | KeyboardRGB666 = Keyboard< tinygpu::RGB666 > |
| using | KeyboardRGB888 = Keyboard< tinygpu::RGB888 > |
| using | LabelRGB565 = Label< tinygpu::RGB565 > |
| using | LabelRGB666 = Label< tinygpu::RGB666 > |
| using | LabelRGB888 = Label< tinygpu::RGB888 > |
| using | LineChartRGB565 = LineChart< tinygpu::RGB565 > |
| using | LineChartRGB666 = LineChart< tinygpu::RGB666 > |
| using | LineChartRGB888 = LineChart< tinygpu::RGB888 > |
| using | ListItemRGB565 = ListItem< tinygpu::RGB565 > |
| using | ListItemRGB666 = ListItem< tinygpu::RGB666 > |
| using | ListItemRGB888 = ListItem< tinygpu::RGB888 > |
| using | MediaCardRGB565 = MediaCard< tinygpu::RGB565 > |
| using | MediaCardRGB666 = MediaCard< tinygpu::RGB666 > |
| using | MediaCardRGB888 = MediaCard< tinygpu::RGB888 > |
| using | MenuRGB565 = Menu< tinygpu::RGB565 > |
| using | MenuRGB666 = Menu< tinygpu::RGB666 > |
| using | MenuRGB888 = Menu< tinygpu::RGB888 > |
| using | NavigationBarRGB565 = NavigationBar< tinygpu::RGB565 > |
| using | NavigationBarRGB666 = NavigationBar< tinygpu::RGB666 > |
| using | NavigationBarRGB888 = NavigationBar< tinygpu::RGB888 > |
| using | NavigationRailRGB565 = NavigationRail< tinygpu::RGB565 > |
| using | NavigationRailRGB666 = NavigationRail< tinygpu::RGB666 > |
| using | NavigationRailRGB888 = NavigationRail< tinygpu::RGB888 > |
| using | LinearProgressIndicatorRGB565 = LinearProgressIndicator< tinygpu::RGB565 > |
| using | LinearProgressIndicatorRGB666 = LinearProgressIndicator< tinygpu::RGB666 > |
| using | LinearProgressIndicatorRGB888 = LinearProgressIndicator< tinygpu::RGB888 > |
| using | CircularProgressIndicatorRGB565 = CircularProgressIndicator< tinygpu::RGB565 > |
| using | CircularProgressIndicatorRGB666 = CircularProgressIndicator< tinygpu::RGB666 > |
| using | CircularProgressIndicatorRGB888 = CircularProgressIndicator< tinygpu::RGB888 > |
| using | RadioButtonRGB565 = RadioButton< tinygpu::RGB565 > |
| using | RadioButtonRGB666 = RadioButton< tinygpu::RGB666 > |
| using | RadioButtonRGB888 = RadioButton< tinygpu::RGB888 > |
| using | RadioGroupRGB565 = RadioGroup< tinygpu::RGB565 > |
| using | RadioGroupRGB666 = RadioGroup< tinygpu::RGB666 > |
| using | RadioGroupRGB888 = RadioGroup< tinygpu::RGB888 > |
| using | SearchBarRGB565 = SearchBar< tinygpu::RGB565 > |
| using | SearchBarRGB666 = SearchBar< tinygpu::RGB666 > |
| using | SearchBarRGB888 = SearchBar< tinygpu::RGB888 > |
| using | SegmentedButtonRGB565 = SegmentedButton< tinygpu::RGB565 > |
| using | SegmentedButtonRGB666 = SegmentedButton< tinygpu::RGB666 > |
| using | SegmentedButtonRGB888 = SegmentedButton< tinygpu::RGB888 > |
| using | SliderRGB565 = Slider< tinygpu::RGB565 > |
| using | SliderRGB666 = Slider< tinygpu::RGB666 > |
| using | SliderRGB888 = Slider< tinygpu::RGB888 > |
| using | SnackbarRGB565 = Snackbar< tinygpu::RGB565 > |
| using | SnackbarRGB666 = Snackbar< tinygpu::RGB666 > |
| using | SnackbarRGB888 = Snackbar< tinygpu::RGB888 > |
| using | SwitchRGB565 = Switch< tinygpu::RGB565 > |
| using | SwitchRGB666 = Switch< tinygpu::RGB666 > |
| using | SwitchRGB888 = Switch< tinygpu::RGB888 > |
| using | TabBarRGB565 = TabBar< tinygpu::RGB565 > |
| using | TabBarRGB666 = TabBar< tinygpu::RGB666 > |
| using | TabBarRGB888 = TabBar< tinygpu::RGB888 > |
| using | TextAreaRGB565 = TextArea< tinygpu::RGB565 > |
| using | TextAreaRGB666 = TextArea< tinygpu::RGB666 > |
| using | TextAreaRGB888 = TextArea< tinygpu::RGB888 > |
| using | TextFieldRGB565 = TextField< tinygpu::RGB565 > |
| using | TextFieldRGB666 = TextField< tinygpu::RGB666 > |
| using | TextFieldRGB888 = TextField< tinygpu::RGB888 > |
| using | TooltipRGB565 = Tooltip< tinygpu::RGB565 > |
| using | TooltipRGB666 = Tooltip< tinygpu::RGB666 > |
| using | TooltipRGB888 = Tooltip< tinygpu::RGB888 > |
| using | TINYMD_DEFAULT_RGB_T = tinygpu::RGB565 |
Enumerations | |
| enum class | Anchor { TopLeft , TopCenter , TopRight , CenterLeft , Center , CenterRight , BottomLeft , BottomCenter , BottomRight } |
| enum class | LayoutAxis { Horizontal , Vertical } |
| enum class | InputType { kText , kNumber } |
| Minimal interface a Keyboard drives. More... | |
| enum class | ButtonVariant { kFilled , kTonal , kOutlined , kText , kElevated } |
| enum class | FabColor { kSurface , kPrimary , kSecondary , kTertiary } |
| enum class | IconButtonVariant { kStandard , kFilled , kTonal } |
| enum class | TypographyRole { kHeadline , kTitle , kBody , kLabel } |
| enum class | TextAlign { kStart , kCenter } |
Functions | |
| size_t | toPx (int32_t v) |
| bool | isTapGesture (tinygpu::GestureType type) |
| template<typename RGB_T > | |
| void | drawScrim (tinygpu::ISurface< RGB_T > &target) |
| template<typename RGB_T > | |
| void | drawLineThick (tinygpu::ISurface< RGB_T > &target, int32_t x0, int32_t y0, int32_t x1, int32_t y1, RGB_T color, uint8_t thickness=2) |
| template<typename RGB_T > | |
| void | drawCheckmark (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
Checkmark glyph (Checkbox, checked state), inset within r. | |
| template<typename RGB_T > | |
| void | drawDot (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color) |
Filled dot (RadioButton, selected state), centered within r. | |
| template<typename RGB_T > | |
| void | drawClose (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
"X" close glyph, inset within r. | |
| template<typename RGB_T > | |
| void | drawPlus (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
"+" plus glyph, inset within r. | |
| template<typename RGB_T > | |
| void | drawMinus (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
"-" minus glyph, inset within r. | |
| template<typename RGB_T > | |
| void | drawChevronDown (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
Downward chevron ("v"), inset within r - used for expandable affordances. | |
| template<typename RGB_T > | |
| void | drawChevronRight (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
Rightward chevron (">"), inset within r - navigation affordance. | |
| template<typename RGB_T > | |
| void | drawMenu (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
| template<typename RGB_T > | |
| void | drawSearch (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
Magnifying-glass search glyph, inset within r - used by SearchBar. | |
| template<typename RGB_T > | |
| void | drawWifi (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=2) |
| WiFi glyph: a dot with three arcs above it. | |
| template<typename RGB_T > | |
| void | drawSignalBars (tinygpu::ISurface< RGB_T > &target, const Bounds &r, int bars, RGB_T on, RGB_T off) |
| template<typename RGB_T > | |
| void | drawLock (tinygpu::ISurface< RGB_T > &target, const Bounds &r, RGB_T color, uint8_t thickness=1) |
| Padlock (e.g. a secured network). | |
| template<typename RGB_T > | |
| RGB_T | colorFromHex (uint32_t hex) |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | lightColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | darkColorScheme () |
| Material 3 "Baseline" dark color scheme. | |
| template<typename RGB_T > | |
| RGB_T | colorFromHsl (float h, float s, float l) |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | colorSchemeFromHue (float hueDegrees, bool dark) |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | blueColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | blueDarkColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | greenColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | greenDarkColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | redColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | redDarkColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | orangeColorScheme () |
| template<typename RGB_T > | |
| ColorScheme< RGB_T > | orangeDarkColorScheme () |
| template<typename RGB_T > | |
| RGB_T | blend (RGB_T a, RGB_T b, float t) |
| template<typename RGB_T > | |
| Typography< RGB_T > | defaultTypography () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | defaultTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | defaultDarkTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | blueTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | blueDarkTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | greenTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | greenDarkTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | redTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | redDarkTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | orangeTheme () |
| template<typename RGB_T = TINYMD_DEFAULT_RGB_T> | |
| MaterialTheme< RGB_T > | orangeDarkTheme () |
| template<typename RGB_T > | |
| tinygpu::IFont< RGB_T > * | fontForTypographyRole (TypographyRole role, const MaterialTheme< RGB_T > &theme) |
| int | wifiBars (int rssi) |
| Signal strength as 0-4 bars (see drawSignalBars()). | |
| void | normalizeNetworks (std::vector< WifiNetwork > &list) |
| using AppBarRGB565 = AppBar<tinygpu::RGB565> |
| using AppBarRGB666 = AppBar<tinygpu::RGB666> |
| using AppBarRGB888 = AppBar<tinygpu::RGB888> |
| using BadgeRGB565 = Badge<tinygpu::RGB565> |
| using BadgeRGB666 = Badge<tinygpu::RGB666> |
| using BadgeRGB888 = Badge<tinygpu::RGB888> |
| using BannerRGB565 = Banner<tinygpu::RGB565> |
| using BannerRGB666 = Banner<tinygpu::RGB666> |
| using BannerRGB888 = Banner<tinygpu::RGB888> |
| using BottomSheetRGB565 = BottomSheet<tinygpu::RGB565> |
| using BottomSheetRGB666 = BottomSheet<tinygpu::RGB666> |
| using BottomSheetRGB888 = BottomSheet<tinygpu::RGB888> |
| using ButtonRGB565 = Button<tinygpu::RGB565> |
| using ButtonRGB666 = Button<tinygpu::RGB666> |
| using ButtonRGB888 = Button<tinygpu::RGB888> |
| using CardRGB565 = Card<tinygpu::RGB565> |
| using CardRGB666 = Card<tinygpu::RGB666> |
| using CardRGB888 = Card<tinygpu::RGB888> |
| using CarouselRGB565 = Carousel<tinygpu::RGB565> |
| using CarouselRGB666 = Carousel<tinygpu::RGB666> |
| using CarouselRGB888 = Carousel<tinygpu::RGB888> |
| using CheckboxRGB565 = Checkbox<tinygpu::RGB565> |
| using CheckboxRGB666 = Checkbox<tinygpu::RGB666> |
| using CheckboxRGB888 = Checkbox<tinygpu::RGB888> |
| using ChipRGB565 = Chip<tinygpu::RGB565> |
| using ChipRGB666 = Chip<tinygpu::RGB666> |
| using ChipRGB888 = Chip<tinygpu::RGB888> |
| using CircularProgressIndicatorRGB565 = CircularProgressIndicator<tinygpu::RGB565> |
| using CircularProgressIndicatorRGB666 = CircularProgressIndicator<tinygpu::RGB666> |
| using CircularProgressIndicatorRGB888 = CircularProgressIndicator<tinygpu::RGB888> |
| using DialogRGB565 = Dialog<tinygpu::RGB565> |
| using DialogRGB666 = Dialog<tinygpu::RGB666> |
| using DialogRGB888 = Dialog<tinygpu::RGB888> |
| using DividerRGB565 = Divider<tinygpu::RGB565> |
| using DividerRGB666 = Divider<tinygpu::RGB666> |
| using DividerRGB888 = Divider<tinygpu::RGB888> |
| using DrawerRGB565 = Drawer<tinygpu::RGB565> |
| using DrawerRGB666 = Drawer<tinygpu::RGB666> |
| using DrawerRGB888 = Drawer<tinygpu::RGB888> |
| using FAB = FloatingActionButton<TINYMD_DEFAULT_RGB_T> |
| using FabRGB565 = FloatingActionButtonRGB565 |
| using FabRGB666 = FloatingActionButtonRGB666 |
| using FabRGB888 = FloatingActionButtonRGB888 |
| using FloatingActionButtonRGB565 = FloatingActionButton<tinygpu::RGB565> |
| using FloatingActionButtonRGB666 = FloatingActionButton<tinygpu::RGB666> |
| using FloatingActionButtonRGB888 = FloatingActionButton<tinygpu::RGB888> |
| using IconButtonRGB565 = IconButton<tinygpu::RGB565> |
| using IconButtonRGB666 = IconButton<tinygpu::RGB666> |
| using IconButtonRGB888 = IconButton<tinygpu::RGB888> |
| using IconPainter = void (*)(tinygpu::ISurface<RGB_T>&, const Bounds&, RGB_T, uint8_t) |
Signature every Draw/Icons.h glyph function matches: draw color, with stroke width thickness, into bounds on target. A function pointer's type reflects every declared parameter regardless of default arguments, so this must list all 4 even though most Icons.h functions default the last one.
| using KeyboardRGB565 = Keyboard<tinygpu::RGB565> |
| using KeyboardRGB666 = Keyboard<tinygpu::RGB666> |
| using KeyboardRGB888 = Keyboard<tinygpu::RGB888> |
| using LabelRGB565 = Label<tinygpu::RGB565> |
| using LabelRGB666 = Label<tinygpu::RGB666> |
| using LabelRGB888 = Label<tinygpu::RGB888> |
| using LinearProgressIndicatorRGB565 = LinearProgressIndicator<tinygpu::RGB565> |
| using LinearProgressIndicatorRGB666 = LinearProgressIndicator<tinygpu::RGB666> |
| using LinearProgressIndicatorRGB888 = LinearProgressIndicator<tinygpu::RGB888> |
| using LineChartRGB565 = LineChart<tinygpu::RGB565> |
| using LineChartRGB666 = LineChart<tinygpu::RGB666> |
| using LineChartRGB888 = LineChart<tinygpu::RGB888> |
| using ListItemRGB565 = ListItem<tinygpu::RGB565> |
| using ListItemRGB666 = ListItem<tinygpu::RGB666> |
| using ListItemRGB888 = ListItem<tinygpu::RGB888> |
| using MaterialThemeRGB565 = MaterialTheme<tinygpu::RGB565> |
| using MaterialThemeRGB666 = MaterialTheme<tinygpu::RGB666> |
| using MaterialThemeRGB888 = MaterialTheme<tinygpu::RGB888> |
| using MediaCardRGB565 = MediaCard<tinygpu::RGB565> |
| using MediaCardRGB666 = MediaCard<tinygpu::RGB666> |
| using MediaCardRGB888 = MediaCard<tinygpu::RGB888> |
| using MenuRGB565 = Menu<tinygpu::RGB565> |
| using MenuRGB666 = Menu<tinygpu::RGB666> |
| using MenuRGB888 = Menu<tinygpu::RGB888> |
| using NavigationBarRGB565 = NavigationBar<tinygpu::RGB565> |
| using NavigationBarRGB666 = NavigationBar<tinygpu::RGB666> |
| using NavigationBarRGB888 = NavigationBar<tinygpu::RGB888> |
| using NavigationRailRGB565 = NavigationRail<tinygpu::RGB565> |
| using NavigationRailRGB666 = NavigationRail<tinygpu::RGB666> |
| using NavigationRailRGB888 = NavigationRail<tinygpu::RGB888> |
| using Print = tinygpu::Print |
| using RadioButtonRGB565 = RadioButton<tinygpu::RGB565> |
| using RadioButtonRGB666 = RadioButton<tinygpu::RGB666> |
| using RadioButtonRGB888 = RadioButton<tinygpu::RGB888> |
| using RadioGroupRGB565 = RadioGroup<tinygpu::RGB565> |
| using RadioGroupRGB666 = RadioGroup<tinygpu::RGB666> |
| using RadioGroupRGB888 = RadioGroup<tinygpu::RGB888> |
| using SearchBarRGB565 = SearchBar<tinygpu::RGB565> |
| using SearchBarRGB666 = SearchBar<tinygpu::RGB666> |
| using SearchBarRGB888 = SearchBar<tinygpu::RGB888> |
| using SegmentedButtonRGB565 = SegmentedButton<tinygpu::RGB565> |
| using SegmentedButtonRGB666 = SegmentedButton<tinygpu::RGB666> |
| using SegmentedButtonRGB888 = SegmentedButton<tinygpu::RGB888> |
| using SliderRGB565 = Slider<tinygpu::RGB565> |
| using SliderRGB666 = Slider<tinygpu::RGB666> |
| using SliderRGB888 = Slider<tinygpu::RGB888> |
| using SnackbarRGB565 = Snackbar<tinygpu::RGB565> |
| using SnackbarRGB666 = Snackbar<tinygpu::RGB666> |
| using SnackbarRGB888 = Snackbar<tinygpu::RGB888> |
| using SwitchRGB565 = Switch<tinygpu::RGB565> |
| using SwitchRGB666 = Switch<tinygpu::RGB666> |
| using SwitchRGB888 = Switch<tinygpu::RGB888> |
| using TabBarRGB565 = TabBar<tinygpu::RGB565> |
| using TabBarRGB666 = TabBar<tinygpu::RGB666> |
| using TabBarRGB888 = TabBar<tinygpu::RGB888> |
| using TextAreaRGB565 = TextArea<tinygpu::RGB565> |
| using TextAreaRGB666 = TextArea<tinygpu::RGB666> |
| using TextAreaRGB888 = TextArea<tinygpu::RGB888> |
| using TextFieldRGB565 = TextField<tinygpu::RGB565> |
| using TextFieldRGB666 = TextField<tinygpu::RGB666> |
| using TextFieldRGB888 = TextField<tinygpu::RGB888> |
| using TINYMD_DEFAULT_RGB_T = tinygpu::RGB565 |
| using TooltipRGB565 = Tooltip<tinygpu::RGB565> |
| using TooltipRGB666 = Tooltip<tinygpu::RGB666> |
| using TooltipRGB888 = Tooltip<tinygpu::RGB888> |
|
strong |
|
strong |
|
strong |
|
strong |
kStandard is a plain flat tap target (the original IconButton look - app bar/toolbar icons). kFilled/kTonal add a colored, elevated circular background - for a dedicated Floating Action Button (elevation shadow, pill "extended" form with a label) see Fab.h's FloatingActionButton/FAB instead; this variant remains handy for a smaller status-dependent circular button paired with setColorOverride() (a play/stop control that's green or red, say).
| Enumerator | |
|---|---|
| kStandard | |
| kFilled | |
| kTonal | |
|
strong |
Minimal interface a Keyboard drives.
TextField and TextArea both implement this alongside Widget<RGB_T>, so a single Keyboard can serve either kind of field interchangeably via Keyboard::manage() - it only ever talks to its target through this interface, never caring which concrete widget it's driving.
Not templated on RGB_T: character insertion has nothing to do with pixel format, and keeping this interface non-generic is what lets Keyboard (which is templated on RGB_T, since it draws itself) hold a single TextInputTarget* regardless of the field's color type. What a text input expects: a Keyboard shows its numeric keypad for kNumber.
| Enumerator | |
|---|---|
| kText | |
| kNumber | |
|
strong |
|
strong |
|
strong |
| RGB_T blend | ( | RGB_T | a, |
| RGB_T | b, | ||
| float | t | ||
| ) |
Per-channel linear blend between two colors (t=0 -> a, t=1 -> b), used for pressed/disabled state shading, cheap elevation "shadows", and the ripple fade. RGB_T has no native alpha channel, so this is the cheapest approximation that still looks right at typical embedded-UI sizes.
| ColorScheme< RGB_T > blueColorScheme | ( | ) |
Named seed-hue presets, each a light/dark pair - pass to MaterialTheme's blueTheme()/greenTheme()/redTheme()/orangeTheme() (and their *DarkTheme() counterparts) in MaterialTheme.h rather than calling these directly.
| ColorScheme< RGB_T > blueDarkColorScheme | ( | ) |
| MaterialTheme< RGB_T > blueDarkTheme | ( | ) |
| MaterialTheme< RGB_T > blueTheme | ( | ) |
Additional named seed-hue themes (see MaterialColors.h's colorSchemeFromHue()) - same shape as defaultTheme()/defaultDarkTheme(), just with a different accent hue baked into the color scheme.
|
inline |
Packs a 0xRRGGBB hex constant into an RGB_T (RGB565/RGB666/RGB888 all share the same (r, g, b) 8-bit-per-channel constructor).
|
inline |
Builds a color from HSL (h in degrees, s/l in [0, 1]) - lets the seeded schemes below express roles as "same hue, tuned tone/chroma" instead of hand-picked hex constants per role.
| ColorScheme< RGB_T > colorSchemeFromHue | ( | float | hueDegrees, |
| bool | dark | ||
| ) |
Derives a full Material 3 role set from one seed hue, following the same tone relationships as the baseline purple scheme above (bold primary, pale/dark container pair, near-neutral surface) rather than pulling exact values from a specific Google-published palette. Handy directly for a fully custom accent color, and backs the named presets below.
| ColorScheme< RGB_T > darkColorScheme | ( | ) |
Material 3 "Baseline" dark color scheme.
| MaterialTheme< RGB_T > defaultDarkTheme | ( | ) |
| MaterialTheme< RGB_T > defaultTheme | ( | ) |
| Typography< RGB_T > defaultTypography | ( | ) |
Function-local static fonts, constructed once on first use - the same "kept as static instances" idiom TinyGPU's own basic-example.ino uses, just centralized here instead of left to each sketch.
| void drawCheckmark | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
Checkmark glyph (Checkbox, checked state), inset within r.
| void drawChevronDown | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
Downward chevron ("v"), inset within r - used for expandable affordances.
| void drawChevronRight | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
Rightward chevron (">"), inset within r - navigation affordance.
| void drawClose | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
"X" close glyph, inset within r.
| void drawDot | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color | ||
| ) |
Filled dot (RadioButton, selected state), centered within r.
| void drawLineThick | ( | tinygpu::ISurface< RGB_T > & | target, |
| int32_t | x0, | ||
| int32_t | y0, | ||
| int32_t | x1, | ||
| int32_t | y1, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
Draws a line thickness times, offset by whole pixels, as a cheap approximation of a stroked line - good enough at the small sizes these vector icons are drawn at (checkbox/radio/icon-button glyphs).
| void drawLock | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 1 |
||
| ) |
Padlock (e.g. a secured network).
| void drawMenu | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
Hamburger menu glyph (three horizontal bars), inset within r - the conventional affordance for opening a Drawer.
| void drawMinus | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
"-" minus glyph, inset within r.
| void drawPlus | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
"+" plus glyph, inset within r.
| void drawScrim | ( | tinygpu::ISurface< RGB_T > & | target | ) |
Darkens every pixel already drawn across target's full extent, in place - the modal scrim look shared by Dialog and Drawer. Reads each pixel back and blends it 35% toward black, rather than painting a flat precomputed color over everything: this format has no alpha channel, so a flat fill would just erase whatever's actually behind the modal (the real screen content) instead of dimming it. Relies on target already holding that real content when called - true for Screen::draw()'s single-buffer pass (widgets are drawn before the modal), and for Screen::drawDirect()'s modal band loop once it draws the regular content into each band first (see drawModalDirect()).
| void drawSearch | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
Magnifying-glass search glyph, inset within r - used by SearchBar.
| void drawSignalBars | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| int | bars, | ||
| RGB_T | on, | ||
| RGB_T | off | ||
| ) |
Signal strength: 4 bars of growing height, the first bars (0-4) in on, the others in off.
| void drawWifi | ( | tinygpu::ISurface< RGB_T > & | target, |
| const Bounds & | r, | ||
| RGB_T | color, | ||
| uint8_t | thickness = 2 |
||
| ) |
WiFi glyph: a dot with three arcs above it.
| tinygpu::IFont< RGB_T > * fontForTypographyRole | ( | TypographyRole | role, |
| const MaterialTheme< RGB_T > & | theme | ||
| ) |
| ColorScheme< RGB_T > greenColorScheme | ( | ) |
| ColorScheme< RGB_T > greenDarkColorScheme | ( | ) |
| MaterialTheme< RGB_T > greenDarkTheme | ( | ) |
| MaterialTheme< RGB_T > greenTheme | ( | ) |
|
inline |
True for GestureType::kTap and also kDoubleTap - widgets that react to a plain tap should check this instead of comparing against kTap directly.
Why: GestureDetector reclassifies a tap as kDoubleTap whenever it lands within doubleTapMaxGapMs (350ms by default) of any previous tap, not just a second tap on the same widget - so quickly tapping one key then another on Keyboard (completely normal while typing) can turn the second one into a kDoubleTap. A widget that only matches kTap exactly then silently drops that keypress, which is exactly the "the Done key doesn't work reliably" symptom this fixes. None of these widgets give a tap and a double-tap different meaning, so treating both as "the user tapped me" is the correct behavior everywhere a plain tap is handled.
| ColorScheme< RGB_T > lightColorScheme | ( | ) |
Material 3 "Baseline" light color scheme (the reference purple palette Google publishes for M3).
|
inline |
Keeps the strongest entry of each SSID (hidden networks are dropped), sorted by signal strength.
| ColorScheme< RGB_T > orangeColorScheme | ( | ) |
| ColorScheme< RGB_T > orangeDarkColorScheme | ( | ) |
| MaterialTheme< RGB_T > orangeDarkTheme | ( | ) |
| MaterialTheme< RGB_T > orangeTheme | ( | ) |
| ColorScheme< RGB_T > redColorScheme | ( | ) |
| ColorScheme< RGB_T > redDarkColorScheme | ( | ) |
| MaterialTheme< RGB_T > redDarkTheme | ( | ) |
| MaterialTheme< RGB_T > redTheme | ( | ) |
|
inline |
Clamps a signed widget-layout coordinate to a non-negative pixel index before it's passed into one of TinyGPU's size_t-based drawing calls. Needed because Bounds (this file) is deliberately signed while ISurface drawing calls take size_t - passing a negative value straight through would silently wrap to a huge unsigned value instead of clipping.
|
inline |
Signal strength as 0-4 bars (see drawSignalBars()).