Struct tuix::CachedData [−]
pub struct CachedData {
pub bounds: Vec<BoundingBox, Global>,
pub visibility: Vec<Visibility, Global>,
pub opacity: Vec<f32, Global>,
pub hoverable: Vec<bool, Global>,
pub focusable: Vec<bool, Global>,
pub z_order: Vec<i32, Global>,
pub clip_region: Vec<BoundingBox, Global>,
pub space: Vec<Space, Global>,
pub size: Vec<Size, Global>,
pub geometry_changed: Vec<GeometryChanged, Global>,
pub shadow_image: HashMap<Entity, (ImageId, ImageId), RandomState>,
// some fields omitted
}
Fields
bounds: Vec<BoundingBox, Global>
visibility: Vec<Visibility, Global>
opacity: Vec<f32, Global>
hoverable: Vec<bool, Global>
focusable: Vec<bool, Global>
z_order: Vec<i32, Global>
clip_region: Vec<BoundingBox, Global>
space: Vec<Space, Global>
size: Vec<Size, Global>
geometry_changed: Vec<GeometryChanged, Global>
shadow_image: HashMap<Entity, (ImageId, ImageId), RandomState>
Implementations
impl CachedData
impl CachedData
pub fn get_grid_row_max(&self, entity: Entity) -> f32
pub fn get_grid_col_max(&self, entity: Entity) -> f32
pub fn get_bounds(&self, entity: Entity) -> BoundingBox
pub fn get_cross_stretch_sum(&self, entity: Entity) -> f32
pub fn set_cross_stretch_sum(&mut self, entity: Entity, val: f32)
pub fn get_cross_free_space(&self, entity: Entity) -> f32
pub fn set_cross_free_space(&mut self, entity: Entity, val: f32)
pub fn get_space_left(&self, entity: Entity) -> f32
pub fn get_space_right(&self, entity: Entity) -> f32
pub fn get_space_top(&self, entity: Entity) -> f32
pub fn get_space_bottom(&self, entity: Entity) -> f32
pub fn get_clip_region(&self, entity: Entity) -> BoundingBox
pub fn get_z_order(&self, entity: Entity) -> i32
pub fn get_child_width_sum(&self, entity: Entity) -> f32
pub fn get_child_height_sum(&self, entity: Entity) -> f32
pub fn get_child_width_max(&self, entity: Entity) -> f32
pub fn get_child_height_max(&self, entity: Entity) -> f32
pub fn get_height(&self, entity: Entity) -> f32
pub fn get_opacity(&self, entity: Entity) -> f32
pub fn get_horizontal_free_space(&self, entity: Entity) -> f32
pub fn get_horizontal_stretch_sum(&self, entity: Entity) -> f32
pub fn get_vertical_free_space(&self, entity: Entity) -> f32
pub fn get_vertical_stretch_sum(&self, entity: Entity) -> f32
pub fn get_rotate(&self, entity: Entity) -> f32
pub fn get_transform(&self, entity: Entity) -> Transform2D
pub fn get_transform_mut(&mut self, entity: Entity) -> &mut Transform2D
pub fn set_stack_first_child(&mut self, entity: Entity, value: bool)
pub fn set_stack_last_child(&mut self, entity: Entity, value: bool)
pub fn set_horizontal_free_space(&mut self, entity: Entity, value: f32)
pub fn set_horizontal_stretch_sum(&mut self, entity: Entity, value: f32)
pub fn set_vertical_free_space(&mut self, entity: Entity, value: f32)
pub fn set_vertical_stretch_sum(&mut self, entity: Entity, value: f32)
pub fn set_space_left(&mut self, entity: Entity, val: f32)
pub fn set_space_right(&mut self, entity: Entity, val: f32)
pub fn set_space_top(&mut self, entity: Entity, val: f32)
pub fn set_space_bottom(&mut self, entity: Entity, val: f32)
pub fn set_clip_region(&mut self, entity: Entity, val: BoundingBox)
pub fn set_z_order(&mut self, entity: Entity, val: i32)
pub fn set_child_width_sum(&mut self, entity: Entity, val: f32)
pub fn set_child_height_sum(&mut self, entity: Entity, val: f32)
pub fn set_child_width_max(&mut self, entity: Entity, val: f32)
pub fn set_child_height_max(&mut self, entity: Entity, val: f32)
pub fn set_height(&mut self, entity: Entity, val: f32)
pub fn get_visibility(&self, entity: Entity) -> Visibility
pub fn set_visibility(&mut self, entity: Entity, val: Visibility)
pub fn get_hoverable(&self, entity: Entity) -> bool
pub fn get_focusable(&self, entity: Entity) -> bool
pub fn set_hoverable(&mut self, entity: Entity, val: bool)
pub fn set_focusable(&mut self, entity: Entity, val: bool)
pub fn set_opacity(&mut self, entity: Entity, val: f32)
pub fn set_rotate(&mut self, entity: Entity, val: f32)
pub fn set_transform(&mut self, entity: Entity, val: Transform2D)
Trait Implementations
impl Cache for CachedData
impl Cache for CachedData
pub fn visible(&self, node: <CachedData as Cache>::Item) -> bool
pub fn set_visible(&mut self, node: <CachedData as Cache>::Item, value: bool)
pub fn geometry_changed(
&self,
node: <CachedData as Cache>::Item
) -> GeometryChanged
pub fn set_geo_changed(
&mut self,
node: <CachedData as Cache>::Item,
flag: GeometryChanged,
value: bool
)
pub fn new_width(&self, node: <CachedData as Cache>::Item) -> f32
pub fn new_height(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_new_width(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn set_new_height(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn width(&self, node: <CachedData as Cache>::Item) -> f32
pub fn width(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed width of a node
pub fn set_width(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn height(&self, node: <CachedData as Cache>::Item) -> f32
pub fn height(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed height of a node
pub fn set_height(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn posx(&self, node: <CachedData as Cache>::Item) -> f32
pub fn posx(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed x position of a node
pub fn set_posx(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn posy(&self, node: <CachedData as Cache>::Item) -> f32
pub fn posy(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed y position of a node
pub fn set_posy(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn left(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_left(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn right(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_right(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn top(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_top(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn bottom(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_bottom(&mut self, node: <CachedData as Cache>::Item, value: f32)
pub fn child_width_max(&self, node: <CachedData as Cache>::Item) -> f32
pub fn child_width_max(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed maximum width of the child nodes
pub fn set_child_width_max(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn child_width_sum(&self, node: <CachedData as Cache>::Item) -> f32
pub fn child_width_sum(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed sum of the widths of the child nodes
pub fn set_child_width_sum(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn child_height_max(&self, node: <CachedData as Cache>::Item) -> f32
pub fn child_height_max(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed maximum width of the child nodes
pub fn set_child_height_max(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn child_height_sum(&self, node: <CachedData as Cache>::Item) -> f32
pub fn child_height_sum(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed sum of the widths of the child nodes
pub fn set_child_height_sum(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn stack_first_child(&self, node: <CachedData as Cache>::Item) -> bool
pub fn stack_last_child(&self, node: <CachedData as Cache>::Item) -> bool
pub fn set_stack_first_child(
&mut self,
node: <CachedData as Cache>::Item,
value: bool
)
pub fn set_stack_last_child(
&mut self,
node: <CachedData as Cache>::Item,
value: bool
)
pub fn horizontal_free_space(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_horizontal_free_space(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn vertical_free_space(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_vertical_free_space(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn horizontal_stretch_sum(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_horizontal_stretch_sum(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn vertical_stretch_sum(&self, node: <CachedData as Cache>::Item) -> f32
pub fn set_vertical_stretch_sum(
&mut self,
node: <CachedData as Cache>::Item,
value: f32
)
pub fn grid_row_max(&self, node: <CachedData as Cache>::Item) -> f32
pub fn grid_row_max(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed maximum grid row
pub fn grid_col_max(&self, node: <CachedData as Cache>::Item) -> f32
pub fn grid_col_max(&self, node: <CachedData as Cache>::Item) -> f32
Get the computed maximum grid column
impl Clone for CachedData
impl Clone for CachedData
pub fn clone(&self) -> CachedData
pub fn clone(&self) -> CachedData
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Default for CachedData
impl Default for CachedData
pub fn default() -> CachedData
pub fn default() -> CachedData
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CachedData
impl Send for CachedData
impl Sync for CachedData
impl Unpin for CachedData
impl UnwindSafe for CachedData
Blanket Implementations
Mutably borrows from an owned value. Read more