Skip to main content

Border Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Container with WPF-style Border.Thickness, Border.BorderBrush, Border.CornerRadius, and Border.Padding. Children are positioned relative to this border, same as UI.Container. Background is set via the inherited Widget.BackgroundColor.

class Border(Widget): ...

Constructors​

Border(Widget parent)​

def __init__(self, parent: Widget):

Create a border inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

BorderBrush​

BorderBrush: int # @property / @setter

Border line color as 0x00RRGGBB. Getter returns the last value set (LVGL has no read-back).

Returns uint

CornerRadius​

CornerRadius: int # @property / @setter

Corner radius in pixels (0 = sharp corners). Getter returns the last value set (LVGL has no read-back).

Returns int

Padding​

Padding: int # @property / @setter

Inner padding in pixels between the border and child widgets. Getter returns the last value set (LVGL has no read-back).

Returns int

Thickness​

Thickness: int # @property / @setter

Border line thickness in pixels. Getter returns the last value set (LVGL has no read-back).

Returns int