A progress bar widget that displays a value as a filled bar.
Supports horizontal/vertical orientation and a 'soundpad' segmented style.
_properties: Dict[str, Dict[str, Any]] = {**UIElement._properties, 'min_val': {'name': 'minimum value', 'key': 'min_val', 'type': float, 'editable': True, 'description': 'Minimum value (0% progress).'}, 'max_val': {'name': 'maximum value', 'key': 'max_val', 'type': float, 'editable': True, 'description': 'Maximum value (100% progress).'}, 'value': {'name': 'current value', 'key': 'value', 'type': float, 'editable': True, 'description': 'Current progress value.'}, 'orientation': {'name': 'orientation', 'key': 'orientation', 'type': str, 'editable': True, 'description': '"horizontal" or "vertical".', 'options': ['horizontal', 'vertical']}, 'style': {'name': 'style', 'key': 'style', 'type': str, 'editable': True, 'description': '"default" or "soundpad".', 'options': ['default', 'soundpad']}, 'draw_value': {'name': 'draw value', 'key': 'draw_value', 'type': bool, 'editable': True, 'description': 'Show percentage text inside the bar.'}}
def __init__(self: Any, x: int, y: int, width: int, height: int, min_val: float = 0, max_val: float = 100, value: float = 0, pivot: Tuple[float, float] = (0, 0), theme: Optional[ThemeType] = None, orientation: Literal['vertical', 'horizontal'] = 'horizontal', element_id: Optional[str] = None, style: str = 'default', **kwargs: dict) -> None
def _get_init_args(self: Any) -> Dict[str, Any]
def set_background_color(self: Any, color: Tuple[int, int, int]) -> None
def set_foreground_color(self: Any, color: Tuple[int, int, int]) -> None
def set_font_color(self: Any, color: Tuple[int, int, int]) -> None
def set_font(self: Any, font_name: str, font_size: int) -> None
def set_border_color(self: Any, color: Tuple[int, int, int]) -> None
def update_theme(self: Any, theme_type: ThemeType) -> None
def set_value(self: Any, value: float) -> None
def set_max_value(self: Any, value: float) -> None
def set_min_value(self: Any, value: float) -> None
def get_percentage(self: Any) -> float
def _get_soundpad_color(self: Any, t: float) -> Tuple[int, int, int]
def render(self: Any, renderer: Renderer) -> None