class documentation

A loading class with spinner animation.

Method __del__ Clean up resources and deinitialize LVGL.
Method __init__ Initialize the Loading spinner with drawing context and styling.
Method animate Animate the loading spinner.
Method fade_color Fade a color by applying an opacity value.
Method set_text Set the loading text.
Method stop Stop the loading animation.
Method text.setter Set the current loading text.
Instance Variable animating Undocumented
Instance Variable background_color Undocumented
Instance Variable current_text Undocumented
Instance Variable display Undocumented
Instance Variable rad Undocumented
Instance Variable radius Undocumented
Instance Variable span Undocumented
Instance Variable spinner_color Undocumented
Instance Variable spinner_position Undocumented
Instance Variable step Undocumented
Instance Variable text_vec Undocumented
Instance Variable text_vec_2 Undocumented
Instance Variable time_elapsed Undocumented
Instance Variable time_start Undocumented
Instance Variable twenty_y Undocumented
Instance Variable use_lvgl Undocumented
Property text Get the current loading text.
Instance Variable _lvgl_loading Undocumented
def __del__(self):

Clean up resources and deinitialize LVGL.

def __init__(self, draw, spinner_color: int = 65535, background_color: int = 0):

Initialize the Loading spinner with drawing context and styling.

Parameters
draw:DrawThe drawing context to render the loading spinner.
spinner_color:intThe color of the spinner. Defaults to 0xFFFF.
background_color:intThe background color. Defaults to 0x0000.
def animate(self, swap: bool = True, http=None):

Animate the loading spinner.

Parameters
swap:boolWhether to swap the display buffer. Defaults to True.
httpOptional HTTP client for download progress display. Defaults to None.
def fade_color(self, color: int, opacity: int) -> int:

Fade a color by applying an opacity value.

Parameters
color:intThe RGB565 color to fade.
opacity:intThe opacity from 0 to 255.
Returns
intThe faded RGB565 color.
def set_text(self, text: str):

Set the loading text.

Parameters
text:strThe new loading text.
def stop(self):

Stop the loading animation.

def text(self, value: str):

Set the current loading text.

Parameters
value:strThe new loading text.
animating: bool =

Undocumented

background_color =

Undocumented

current_text =

Undocumented

display =

Undocumented

rad: float =

Undocumented

radius =

Undocumented

span: int =

Undocumented

spinner_color =

Undocumented

spinner_position: int =

Undocumented

step: int =

Undocumented

text_vec =

Undocumented

text_vec_2 =

Undocumented

time_elapsed: int =

Undocumented

time_start: int =

Undocumented

twenty_y =

Undocumented

use_lvgl =

Undocumented

@property
text: str =

Get the current loading text.

_lvgl_loading =

Undocumented