struct Tessell::A11y::Meta

Defined in:

tessell/a11y/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(role : Role = Role::Group, name : String = "", value : String = "", focusable : Bool = false, enabled : Bool = true, children_count : Int32 | Nil = nil, scroll_offset : Int32 = 0, row : Int32 | Nil = nil, col : Int32 | Nil = nil, row_count : Int32 | Nil = nil, col_count : Int32 | Nil = nil, row_index_text : String | Nil = nil, col_index_text : String | Nil = nil, selected : Bool | Nil = nil, active : Bool | Nil = nil, first_visible_index : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def active : Bool | Nil #

[View source]
def children_count : Int32 | Nil #

nil = 使用 retained 子节点数;虚拟列表等可覆盖为逻辑总数。


[View source]
def col : Int32 | Nil #

[View source]
def col_count : Int32 | Nil #

[View source]
def col_index_text : String | Nil #

[View source]
def enabled : Bool #

[View source]
def first_visible_index : Int32 | Nil #

[View source]
def focusable : Bool #

[View source]
def name : String #

[View source]
def role : Role #

[View source]
def row : Int32 | Nil #

二维网格语义(issue #31):全部默认 nil/false,既有节点零改动。 虚拟化大控件可只报逻辑总量 + first_visible_index(可视窗口起点), provider 能算出可视窗口在逻辑总量中的位置。


[View source]
def row_count : Int32 | Nil #

[View source]
def row_index_text : String | Nil #

[View source]
def scroll_offset : Int32 #

[View source]
def selected : Bool | Nil #

[View source]
def value : String #

[View source]