class UI::ActivityRing

Overview

A circular activity ring rendered as a shared fallback surface.

The primitive stays intentionally modest: a determinate value range, optional supporting copy, and a composed ring stage built from Canvas arc operations plus existing stack/label views. Native bridges can come later without changing the public shared API.

Defined in:

ui/views/activity_ring.cr

Constructors

Instance Method Summary

Instance methods inherited from class UI::View

accept(visitor : PlatformVisitor) accept, accessibility_label : String | Nil accessibility_label, accessibility_label=(accessibility_label : String | Nil) accessibility_label=, background : Color | Nil background, background=(background : Color | Nil) background=, blur_radius : Float64 blur_radius, blur_radius=(blur_radius : Float64) blur_radius=, border_color : Color | Nil border_color, border_color=(border_color : Color | Nil) border_color=, border_width : Float64 border_width, border_width=(border_width : Float64) border_width=, clip_to_bounds : Bool clip_to_bounds, clip_to_bounds=(clip_to_bounds : Bool) clip_to_bounds=, container_query(name : String) : self container_query, container_query_name : String | Nil container_query_name, container_query_name=(container_query_name : String | Nil) container_query_name=, corner_radius : Float64 corner_radius, corner_radius=(corner_radius : Float64) corner_radius=, fill_screen! : self fill_screen!, fluid_height(min : String | Number, ideal : String | Number, max : String | Number) : self
fluid_height : UI::Fluid | Nil
fluid_height
, fluid_height=(fluid_height : UI::Fluid | Nil) fluid_height=, fluid_width(min : String | Number, ideal : String | Number, max : String | Number) : self
fluid_width : UI::Fluid | Nil
fluid_width
, fluid_width=(fluid_width : UI::Fluid | Nil) fluid_width=, hidden : Bool hidden, hidden=(hidden : Bool) hidden=, id : String | Nil id, id=(id : String | Nil) id=, maximum_height : Float64 | Nil maximum_height, maximum_height=(maximum_height : Float64 | Nil) maximum_height=, maximum_width : Float64 | Nil maximum_width, maximum_width=(maximum_width : Float64 | Nil) maximum_width=, minimum_height : Float64 | Nil minimum_height, minimum_height=(minimum_height : Float64 | Nil) minimum_height=, minimum_width : Float64 | Nil minimum_width, minimum_width=(minimum_width : Float64 | Nil) minimum_width=, opacity : Float64 opacity, opacity=(opacity : Float64) opacity=, padding : EdgeInsets padding, padding=(padding : EdgeInsets) padding=, root_fill : Bool root_fill, root_fill=(root_fill : Bool) root_fill=, shadow_color : Color | Nil shadow_color, shadow_color=(shadow_color : Color | Nil) shadow_color=, shadow_offset_x : Float64 shadow_offset_x, shadow_offset_x=(shadow_offset_x : Float64) shadow_offset_x=, shadow_offset_y : Float64 shadow_offset_y, shadow_offset_y=(shadow_offset_y : Float64) shadow_offset_y=, shadow_radius : Float64 shadow_radius, shadow_radius=(shadow_radius : Float64) shadow_radius=, swiftkit_state_handle : Pointer(Void) | Nil swiftkit_state_handle, swiftkit_state_handle=(swiftkit_state_handle : Pointer(Void) | Nil) swiftkit_state_handle=, test_id : String | Nil test_id, test_id=(test_id : String | Nil) test_id=

Constructor Detail

def self.new(value : Float64 = 0.0, minimum_value : Float64 = 0.0, maximum_value : Float64 = 100.0, label : String | Nil = nil, prompt : String | Nil = nil, caption : String | Nil = nil, help_text : String | Nil = nil) #

[View source]

Instance Method Detail

def accept(visitor : PlatformVisitor) #
Description copied from class UI::View

Accept a platform visitor for rendering dispatch. Each concrete view type calls visitor.visit(self).


[View source]
def caption : String | Nil #

[View source]
def caption=(caption : String | Nil) #

[View source]
def diameter : Float64 #

[View source]
def diameter=(diameter : Float64) #

[View source]
def display_value : String #

[View source]
def end_angle : Float64 #

[View source]
def end_angle=(end_angle : Float64) #

[View source]
def fallback_view : View #

[View source]
def help_text : String | Nil #

[View source]
def help_text=(help_text : String | Nil) #

[View source]
def label : String | Nil #

[View source]
def label=(label : String | Nil) #

[View source]
def maximum_value : Float64 #

[View source]
def maximum_value=(maximum_value : Float64) #

[View source]
def minimum_value : Float64 #

[View source]
def minimum_value=(minimum_value : Float64) #

[View source]
def normalized_value : Float64 #

[View source]
def progress_color : Color #

[View source]
def progress_color=(progress_color : Color) #

[View source]
def progress_fraction : Float64 #

[View source]
def prompt : String | Nil #

[View source]
def prompt=(prompt : String | Nil) #

[View source]
def ring_thickness : Float64 #

[View source]
def ring_thickness=(ring_thickness : Float64) #

[View source]
def show_value : Bool #

[View source]
def show_value=(show_value : Bool) #

[View source]
def start_angle : Float64 #

[View source]
def start_angle=(start_angle : Float64) #

[View source]
def track_color : Color #

[View source]
def track_color=(track_color : Color) #

[View source]
def units : String | Nil #

[View source]
def units=(units : String | Nil) #

[View source]
def value : Float64 #

[View source]
def value=(value : Float64) #

[View source]
def value_precision : Int32 #

[View source]
def value_precision=(value_precision : Int32) #

[View source]
def viewport_height : Float64 #

[View source]
def viewport_height=(viewport_height : Float64) #

[View source]
def viewport_width : Float64 #

[View source]
def viewport_width=(viewport_width : Float64) #

[View source]