jdxi_editor.ui.widgets.digital.base
Digital Display Base class
Attributes
Classes
Base class for JD-Xi style digital displays. |
Functions
|
Return possible paths to the bundled LCD font. |
|
Register the bundled JD-Xi LCD font once per process. |
|
Build an ordered family list for LCD widgets. |
|
Return the preferred LCD font family for new widgets. |
|
Build a font with LCD-style family fallbacks. |
Module Contents
- jdxi_editor.ui.widgets.digital.base.LCD_FONT_FALLBACKS = ('JD LCD Rounded', 'DS-Digital', 'Menlo', 'Monaco', 'Courier New', 'monospace')[source]
- jdxi_editor.ui.widgets.digital.base._lcd_font_candidates() tuple[pathlib.Path, ...][source]
Return possible paths to the bundled LCD font.
- jdxi_editor.ui.widgets.digital.base.load_lcd_font() str | None[source]
Register the bundled JD-Xi LCD font once per process.
- Returns:
The registered font family name, or None if loading failed.
- jdxi_editor.ui.widgets.digital.base.lcd_font_families(primary: str | None = None) tuple[str, ...][source]
Build an ordered family list for LCD widgets.
- jdxi_editor.ui.widgets.digital.base.get_lcd_font_family() str[source]
Return the preferred LCD font family for new widgets.
- jdxi_editor.ui.widgets.digital.base.lcd_font(point_size: int, *, bold: bool = False, primary: str | None = None) PySide6.QtGui.QFont[source]
Build a font with LCD-style family fallbacks.
- class jdxi_editor.ui.widgets.digital.base.DigitalDisplayBase(digital_font_family: str | None = None, parent: PySide6.QtWidgets.QWidget = None)[source]
Bases:
PySide6.QtWidgets.QWidgetBase class for JD-Xi style digital displays.
- paintEvent(event: PySide6.QtGui.QPaintEvent) None[source]
Handles rendering of the digital digital.
- property lcd[source]
The display’s colours, from the skin the faceplate is wearing.
A brushed aluminium panel with a Roland-orange display would read as a mistake, so the screen follows the skin.
- Returns:
LcdPalette
- _paint_lcd_panel(painter: PySide6.QtGui.QPainter) None[source]
Signature LCD bezel: skin’s screen gradient + subtle inner edge.
- draw_display(painter: PySide6.QtGui.QPainter)[source]
Draws the LCD-style digital with a gradient glow effect.
- set_state(state: jdxi_editor.ui.widgets.digital.state.JDXiDisplayState) None[source]