mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
**New Features** * Runtime font accessors and new symbol fonts for text, launcher, statusbar, and shared icons. * Added font height base setting to device.properties * Text fonts now have 3 sizes: small, default, large **Improvements** * Renamed `UiScale` to `UiDensity` * Statusbar, toolbar and many UI components now compute heights and spacing from fonts/density. * SSD1306 initialization sequence refined for more stable startup. * Multiple image assets replaced by symbol-font rendering. * Many layout improvements related to density, font scaling and icon scaling * Updated folder name capitalization for newer style
31 lines
963 B
C
31 lines
963 B
C
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
struct Device;
|
|
|
|
/** Signals the intended state of a device. */
|
|
enum DtsDeviceStatus {
|
|
/** Device should be constructed, added and started. */
|
|
DTS_DEVICE_STATUS_OKAY,
|
|
/** Device should be constructed and added, but not started. */
|
|
DTS_DEVICE_STATUS_DISABLED
|
|
};
|
|
|
|
/**
|
|
* Holds a device pointer and a compatible string.
|
|
* The device must not be constructed, added or started yet.
|
|
* This is used by the devicetree code generator and the application init sequence.
|
|
*/
|
|
struct DtsDevice {
|
|
/** A pointer to a device. */
|
|
struct Device* device;
|
|
/** The compatible string contains the identifier of the driver that this device is compatible with. */
|
|
const char* compatible;
|
|
/** The intended state of the device. */
|
|
const enum DtsDeviceStatus status;
|
|
};
|
|
|
|
/** Signals the end of the device array in the generated dts code. */
|
|
#define DTS_DEVICE_TERMINATOR { NULL, NULL, DTS_DEVICE_STATUS_DISABLED }
|