TinyMaterialDesign
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
tinymd Namespace Reference

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)
 

Typedef Documentation

◆ AppBarRGB565

using AppBarRGB565 = AppBar<tinygpu::RGB565>

◆ AppBarRGB666

using AppBarRGB666 = AppBar<tinygpu::RGB666>

◆ AppBarRGB888

using AppBarRGB888 = AppBar<tinygpu::RGB888>

◆ BadgeRGB565

using BadgeRGB565 = Badge<tinygpu::RGB565>

◆ BadgeRGB666

using BadgeRGB666 = Badge<tinygpu::RGB666>

◆ BadgeRGB888

using BadgeRGB888 = Badge<tinygpu::RGB888>

◆ BannerRGB565

using BannerRGB565 = Banner<tinygpu::RGB565>

◆ BannerRGB666

using BannerRGB666 = Banner<tinygpu::RGB666>

◆ BannerRGB888

using BannerRGB888 = Banner<tinygpu::RGB888>

◆ BottomSheetRGB565

using BottomSheetRGB565 = BottomSheet<tinygpu::RGB565>

◆ BottomSheetRGB666

using BottomSheetRGB666 = BottomSheet<tinygpu::RGB666>

◆ BottomSheetRGB888

using BottomSheetRGB888 = BottomSheet<tinygpu::RGB888>

◆ ButtonRGB565

using ButtonRGB565 = Button<tinygpu::RGB565>

◆ ButtonRGB666

using ButtonRGB666 = Button<tinygpu::RGB666>

◆ ButtonRGB888

using ButtonRGB888 = Button<tinygpu::RGB888>

◆ CardRGB565

using CardRGB565 = Card<tinygpu::RGB565>

◆ CardRGB666

using CardRGB666 = Card<tinygpu::RGB666>

◆ CardRGB888

using CardRGB888 = Card<tinygpu::RGB888>

◆ CarouselRGB565

using CarouselRGB565 = Carousel<tinygpu::RGB565>

◆ CarouselRGB666

using CarouselRGB666 = Carousel<tinygpu::RGB666>

◆ CarouselRGB888

using CarouselRGB888 = Carousel<tinygpu::RGB888>

◆ CheckboxRGB565

using CheckboxRGB565 = Checkbox<tinygpu::RGB565>

◆ CheckboxRGB666

using CheckboxRGB666 = Checkbox<tinygpu::RGB666>

◆ CheckboxRGB888

using CheckboxRGB888 = Checkbox<tinygpu::RGB888>

◆ ChipRGB565

using ChipRGB565 = Chip<tinygpu::RGB565>

◆ ChipRGB666

using ChipRGB666 = Chip<tinygpu::RGB666>

◆ ChipRGB888

using ChipRGB888 = Chip<tinygpu::RGB888>

◆ CircularProgressIndicatorRGB565

◆ CircularProgressIndicatorRGB666

◆ CircularProgressIndicatorRGB888

◆ DialogRGB565

using DialogRGB565 = Dialog<tinygpu::RGB565>

◆ DialogRGB666

using DialogRGB666 = Dialog<tinygpu::RGB666>

◆ DialogRGB888

using DialogRGB888 = Dialog<tinygpu::RGB888>

◆ DividerRGB565

using DividerRGB565 = Divider<tinygpu::RGB565>

◆ DividerRGB666

using DividerRGB666 = Divider<tinygpu::RGB666>

◆ DividerRGB888

using DividerRGB888 = Divider<tinygpu::RGB888>

◆ DrawerRGB565

using DrawerRGB565 = Drawer<tinygpu::RGB565>

◆ DrawerRGB666

using DrawerRGB666 = Drawer<tinygpu::RGB666>

◆ DrawerRGB888

using DrawerRGB888 = Drawer<tinygpu::RGB888>

◆ FAB

◆ FabRGB565

◆ FabRGB666

◆ FabRGB888

◆ FloatingActionButtonRGB565

◆ FloatingActionButtonRGB666

◆ FloatingActionButtonRGB888

◆ IconButtonRGB565

using IconButtonRGB565 = IconButton<tinygpu::RGB565>

◆ IconButtonRGB666

using IconButtonRGB666 = IconButton<tinygpu::RGB666>

◆ IconButtonRGB888

using IconButtonRGB888 = IconButton<tinygpu::RGB888>

◆ IconPainter

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.

◆ KeyboardRGB565

using KeyboardRGB565 = Keyboard<tinygpu::RGB565>

◆ KeyboardRGB666

using KeyboardRGB666 = Keyboard<tinygpu::RGB666>

◆ KeyboardRGB888

using KeyboardRGB888 = Keyboard<tinygpu::RGB888>

◆ LabelRGB565

using LabelRGB565 = Label<tinygpu::RGB565>

◆ LabelRGB666

using LabelRGB666 = Label<tinygpu::RGB666>

◆ LabelRGB888

using LabelRGB888 = Label<tinygpu::RGB888>

◆ LinearProgressIndicatorRGB565

◆ LinearProgressIndicatorRGB666

◆ LinearProgressIndicatorRGB888

◆ LineChartRGB565

using LineChartRGB565 = LineChart<tinygpu::RGB565>

◆ LineChartRGB666

using LineChartRGB666 = LineChart<tinygpu::RGB666>

◆ LineChartRGB888

using LineChartRGB888 = LineChart<tinygpu::RGB888>

◆ ListItemRGB565

using ListItemRGB565 = ListItem<tinygpu::RGB565>

◆ ListItemRGB666

using ListItemRGB666 = ListItem<tinygpu::RGB666>

◆ ListItemRGB888

using ListItemRGB888 = ListItem<tinygpu::RGB888>

◆ MaterialThemeRGB565

using MaterialThemeRGB565 = MaterialTheme<tinygpu::RGB565>

◆ MaterialThemeRGB666

using MaterialThemeRGB666 = MaterialTheme<tinygpu::RGB666>

◆ MaterialThemeRGB888

using MaterialThemeRGB888 = MaterialTheme<tinygpu::RGB888>

◆ MediaCardRGB565

using MediaCardRGB565 = MediaCard<tinygpu::RGB565>

◆ MediaCardRGB666

using MediaCardRGB666 = MediaCard<tinygpu::RGB666>

◆ MediaCardRGB888

using MediaCardRGB888 = MediaCard<tinygpu::RGB888>

◆ MenuRGB565

using MenuRGB565 = Menu<tinygpu::RGB565>

◆ MenuRGB666

using MenuRGB666 = Menu<tinygpu::RGB666>

◆ MenuRGB888

using MenuRGB888 = Menu<tinygpu::RGB888>

◆ NavigationBarRGB565

using NavigationBarRGB565 = NavigationBar<tinygpu::RGB565>

◆ NavigationBarRGB666

using NavigationBarRGB666 = NavigationBar<tinygpu::RGB666>

◆ NavigationBarRGB888

using NavigationBarRGB888 = NavigationBar<tinygpu::RGB888>

◆ NavigationRailRGB565

using NavigationRailRGB565 = NavigationRail<tinygpu::RGB565>

◆ NavigationRailRGB666

using NavigationRailRGB666 = NavigationRail<tinygpu::RGB666>

◆ NavigationRailRGB888

using NavigationRailRGB888 = NavigationRail<tinygpu::RGB888>

◆ Print

using Print = tinygpu::Print

◆ RadioButtonRGB565

using RadioButtonRGB565 = RadioButton<tinygpu::RGB565>

◆ RadioButtonRGB666

using RadioButtonRGB666 = RadioButton<tinygpu::RGB666>

◆ RadioButtonRGB888

using RadioButtonRGB888 = RadioButton<tinygpu::RGB888>

◆ RadioGroupRGB565

using RadioGroupRGB565 = RadioGroup<tinygpu::RGB565>

◆ RadioGroupRGB666

using RadioGroupRGB666 = RadioGroup<tinygpu::RGB666>

◆ RadioGroupRGB888

using RadioGroupRGB888 = RadioGroup<tinygpu::RGB888>

◆ SearchBarRGB565

using SearchBarRGB565 = SearchBar<tinygpu::RGB565>

◆ SearchBarRGB666

using SearchBarRGB666 = SearchBar<tinygpu::RGB666>

◆ SearchBarRGB888

using SearchBarRGB888 = SearchBar<tinygpu::RGB888>

◆ SegmentedButtonRGB565

using SegmentedButtonRGB565 = SegmentedButton<tinygpu::RGB565>

◆ SegmentedButtonRGB666

using SegmentedButtonRGB666 = SegmentedButton<tinygpu::RGB666>

◆ SegmentedButtonRGB888

using SegmentedButtonRGB888 = SegmentedButton<tinygpu::RGB888>

◆ SliderRGB565

using SliderRGB565 = Slider<tinygpu::RGB565>

◆ SliderRGB666

using SliderRGB666 = Slider<tinygpu::RGB666>

◆ SliderRGB888

using SliderRGB888 = Slider<tinygpu::RGB888>

◆ SnackbarRGB565

using SnackbarRGB565 = Snackbar<tinygpu::RGB565>

◆ SnackbarRGB666

using SnackbarRGB666 = Snackbar<tinygpu::RGB666>

◆ SnackbarRGB888

using SnackbarRGB888 = Snackbar<tinygpu::RGB888>

◆ SwitchRGB565

using SwitchRGB565 = Switch<tinygpu::RGB565>

◆ SwitchRGB666

using SwitchRGB666 = Switch<tinygpu::RGB666>

◆ SwitchRGB888

using SwitchRGB888 = Switch<tinygpu::RGB888>

◆ TabBarRGB565

using TabBarRGB565 = TabBar<tinygpu::RGB565>

◆ TabBarRGB666

using TabBarRGB666 = TabBar<tinygpu::RGB666>

◆ TabBarRGB888

using TabBarRGB888 = TabBar<tinygpu::RGB888>

◆ TextAreaRGB565

using TextAreaRGB565 = TextArea<tinygpu::RGB565>

◆ TextAreaRGB666

using TextAreaRGB666 = TextArea<tinygpu::RGB666>

◆ TextAreaRGB888

using TextAreaRGB888 = TextArea<tinygpu::RGB888>

◆ TextFieldRGB565

using TextFieldRGB565 = TextField<tinygpu::RGB565>

◆ TextFieldRGB666

using TextFieldRGB666 = TextField<tinygpu::RGB666>

◆ TextFieldRGB888

using TextFieldRGB888 = TextField<tinygpu::RGB888>

◆ TINYMD_DEFAULT_RGB_T

using TINYMD_DEFAULT_RGB_T = tinygpu::RGB565

◆ TooltipRGB565

using TooltipRGB565 = Tooltip<tinygpu::RGB565>

◆ TooltipRGB666

using TooltipRGB666 = Tooltip<tinygpu::RGB666>

◆ TooltipRGB888

using TooltipRGB888 = Tooltip<tinygpu::RGB888>

Enumeration Type Documentation

◆ Anchor

enum class Anchor
strong
Enumerator
TopLeft 
TopCenter 
TopRight 
CenterLeft 
Center 
CenterRight 
BottomLeft 
BottomCenter 
BottomRight 

◆ ButtonVariant

enum class ButtonVariant
strong
Enumerator
kFilled 
kTonal 
kOutlined 
kText 
kElevated 

◆ FabColor

enum class FabColor
strong

kSurface (default M3 look) / kPrimary / kSecondary / kTertiary pick which theme color pair the FAB is filled with.

Enumerator
kSurface 
kPrimary 
kSecondary 
kTertiary 

◆ IconButtonVariant

enum class IconButtonVariant
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 

◆ InputType

enum class InputType
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 

◆ LayoutAxis

enum class LayoutAxis
strong
Enumerator
Horizontal 
Vertical 

◆ TextAlign

enum class TextAlign
strong
Enumerator
kStart 
kCenter 

◆ TypographyRole

enum class TypographyRole
strong
Enumerator
kHeadline 
kTitle 
kBody 
kLabel 

Function Documentation

◆ blend()

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.

◆ blueColorScheme()

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.

◆ blueDarkColorScheme()

ColorScheme< RGB_T > blueDarkColorScheme ( )

◆ blueDarkTheme()

MaterialTheme< RGB_T > blueDarkTheme ( )

◆ blueTheme()

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.

◆ colorFromHex()

RGB_T colorFromHex ( uint32_t  hex)
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).

◆ colorFromHsl()

RGB_T colorFromHsl ( float  h,
float  s,
float  l 
)
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.

◆ colorSchemeFromHue()

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.

◆ darkColorScheme()

ColorScheme< RGB_T > darkColorScheme ( )

Material 3 "Baseline" dark color scheme.

◆ defaultDarkTheme()

MaterialTheme< RGB_T > defaultDarkTheme ( )

◆ defaultTheme()

MaterialTheme< RGB_T > defaultTheme ( )

◆ defaultTypography()

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.

◆ drawCheckmark()

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.

◆ drawChevronDown()

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.

◆ drawChevronRight()

void drawChevronRight ( tinygpu::ISurface< RGB_T > &  target,
const Bounds &  r,
RGB_T  color,
uint8_t  thickness = 2 
)

Rightward chevron (">"), inset within r - navigation affordance.

◆ drawClose()

void drawClose ( tinygpu::ISurface< RGB_T > &  target,
const Bounds &  r,
RGB_T  color,
uint8_t  thickness = 2 
)

"X" close glyph, inset within r.

◆ drawDot()

void drawDot ( tinygpu::ISurface< RGB_T > &  target,
const Bounds &  r,
RGB_T  color 
)

Filled dot (RadioButton, selected state), centered within r.

◆ drawLineThick()

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).

◆ drawLock()

void drawLock ( tinygpu::ISurface< RGB_T > &  target,
const Bounds &  r,
RGB_T  color,
uint8_t  thickness = 1 
)

Padlock (e.g. a secured network).

◆ drawMenu()

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.

◆ drawMinus()

void drawMinus ( tinygpu::ISurface< RGB_T > &  target,
const Bounds &  r,
RGB_T  color,
uint8_t  thickness = 2 
)

"-" minus glyph, inset within r.

◆ drawPlus()

void drawPlus ( tinygpu::ISurface< RGB_T > &  target,
const Bounds &  r,
RGB_T  color,
uint8_t  thickness = 2 
)

"+" plus glyph, inset within r.

◆ drawScrim()

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()).

◆ drawSearch()

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.

◆ drawSignalBars()

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.

◆ drawWifi()

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.

◆ fontForTypographyRole()

tinygpu::IFont< RGB_T > * fontForTypographyRole ( TypographyRole  role,
const MaterialTheme< RGB_T > &  theme 
)

Maps a TypographyRole to the theme's corresponding font - shared by every widget that lets a caller pick a text size (Label, ListItem, ...) rather than each duplicating this switch.

◆ greenColorScheme()

ColorScheme< RGB_T > greenColorScheme ( )

◆ greenDarkColorScheme()

ColorScheme< RGB_T > greenDarkColorScheme ( )

◆ greenDarkTheme()

MaterialTheme< RGB_T > greenDarkTheme ( )

◆ greenTheme()

MaterialTheme< RGB_T > greenTheme ( )

◆ isTapGesture()

bool isTapGesture ( tinygpu::GestureType  type)
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.

◆ lightColorScheme()

ColorScheme< RGB_T > lightColorScheme ( )

Material 3 "Baseline" light color scheme (the reference purple palette Google publishes for M3).

◆ normalizeNetworks()

void normalizeNetworks ( std::vector< WifiNetwork > &  list)
inline

Keeps the strongest entry of each SSID (hidden networks are dropped), sorted by signal strength.

◆ orangeColorScheme()

ColorScheme< RGB_T > orangeColorScheme ( )

◆ orangeDarkColorScheme()

ColorScheme< RGB_T > orangeDarkColorScheme ( )

◆ orangeDarkTheme()

MaterialTheme< RGB_T > orangeDarkTheme ( )

◆ orangeTheme()

MaterialTheme< RGB_T > orangeTheme ( )

◆ redColorScheme()

ColorScheme< RGB_T > redColorScheme ( )

◆ redDarkColorScheme()

ColorScheme< RGB_T > redDarkColorScheme ( )

◆ redDarkTheme()

MaterialTheme< RGB_T > redDarkTheme ( )

◆ redTheme()

MaterialTheme< RGB_T > redTheme ( )

◆ toPx()

size_t toPx ( int32_t  v)
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.

◆ wifiBars()

int wifiBars ( int  rssi)
inline

Signal strength as 0-4 bars (see drawSignalBars()).