Struct CachedData

Source
pub struct CachedData {
    pub bounds: Vec<BoundingBox>,
    pub visibility: Vec<Visibility>,
    pub opacity: Vec<f32>,
    pub hoverable: Vec<bool>,
    pub focusable: Vec<bool>,
    pub z_order: Vec<i32>,
    pub clip_region: Vec<BoundingBox>,
    pub space: Vec<Space>,
    pub size: Vec<Size>,
    pub geometry_changed: Vec<GeometryChanged>,
    pub shadow_image: HashMap<Entity, (ImageId, ImageId)>,
    /* private fields */
}

Fields§

§bounds: Vec<BoundingBox>§visibility: Vec<Visibility>§opacity: Vec<f32>§hoverable: Vec<bool>§focusable: Vec<bool>§z_order: Vec<i32>§clip_region: Vec<BoundingBox>§space: Vec<Space>§size: Vec<Size>§geometry_changed: Vec<GeometryChanged>§shadow_image: HashMap<Entity, (ImageId, ImageId)>

Implementations§

Source§

impl CachedData

Source

pub fn add(&mut self, entity: Entity)

Source

pub fn remove(&mut self, _entity: Entity)

Source

pub fn get_grid_row_max(&self, entity: Entity) -> f32

Source

pub fn get_grid_col_max(&self, entity: Entity) -> f32

Source

pub fn get_stack_child(&self, entity: Entity) -> (bool, bool)

Source

pub fn get_bounds(&self, entity: Entity) -> BoundingBox

Source

pub fn get_cross_stretch_sum(&self, entity: Entity) -> f32

Source

pub fn set_cross_stretch_sum(&mut self, entity: Entity, val: f32)

Source

pub fn get_cross_free_space(&self, entity: Entity) -> f32

Source

pub fn set_cross_free_space(&mut self, entity: Entity, val: f32)

Source

pub fn get_space_left(&self, entity: Entity) -> f32

Source

pub fn get_space_right(&self, entity: Entity) -> f32

Source

pub fn get_space_top(&self, entity: Entity) -> f32

Source

pub fn get_space_bottom(&self, entity: Entity) -> f32

Source

pub fn get_space(&self, entity: Entity) -> Space

Source

pub fn get_clip_region(&self, entity: Entity) -> BoundingBox

Source

pub fn get_z_order(&self, entity: Entity) -> i32

Source

pub fn get_child_width_sum(&self, entity: Entity) -> f32

Source

pub fn get_child_height_sum(&self, entity: Entity) -> f32

Source

pub fn get_child_width_max(&self, entity: Entity) -> f32

Source

pub fn get_child_height_max(&self, entity: Entity) -> f32

Source

pub fn get_posx(&self, entity: Entity) -> f32

Source

pub fn get_posy(&self, entity: Entity) -> f32

Source

pub fn get_width(&self, entity: Entity) -> f32

Source

pub fn get_height(&self, entity: Entity) -> f32

Source

pub fn get_opacity(&self, entity: Entity) -> f32

Source

pub fn get_horizontal_free_space(&self, entity: Entity) -> f32

Source

pub fn get_horizontal_stretch_sum(&self, entity: Entity) -> f32

Source

pub fn get_vertical_free_space(&self, entity: Entity) -> f32

Source

pub fn get_vertical_stretch_sum(&self, entity: Entity) -> f32

Source

pub fn get_rotate(&self, entity: Entity) -> f32

Source

pub fn get_translate(&self, entity: Entity) -> (f32, f32)

Source

pub fn get_scale(&self, entity: Entity) -> f32

Source

pub fn get_origin(&self, entity: Entity) -> (f32, f32)

Source

pub fn get_transform(&self, entity: Entity) -> Transform2D

Source

pub fn get_transform_mut(&mut self, entity: Entity) -> &mut Transform2D

Source

pub fn set_stack_first_child(&mut self, entity: Entity, value: bool)

Source

pub fn set_stack_last_child(&mut self, entity: Entity, value: bool)

Source

pub fn set_horizontal_free_space(&mut self, entity: Entity, value: f32)

Source

pub fn set_horizontal_stretch_sum(&mut self, entity: Entity, value: f32)

Source

pub fn set_vertical_free_space(&mut self, entity: Entity, value: f32)

Source

pub fn set_vertical_stretch_sum(&mut self, entity: Entity, value: f32)

Source

pub fn set_space(&mut self, entity: Entity, val: Space)

Source

pub fn set_space_left(&mut self, entity: Entity, val: f32)

Source

pub fn set_space_right(&mut self, entity: Entity, val: f32)

Source

pub fn set_space_top(&mut self, entity: Entity, val: f32)

Source

pub fn set_space_bottom(&mut self, entity: Entity, val: f32)

Source

pub fn set_clip_region(&mut self, entity: Entity, val: BoundingBox)

Source

pub fn set_z_order(&mut self, entity: Entity, val: i32)

Source

pub fn set_child_width_sum(&mut self, entity: Entity, val: f32)

Source

pub fn set_child_height_sum(&mut self, entity: Entity, val: f32)

Source

pub fn set_child_width_max(&mut self, entity: Entity, val: f32)

Source

pub fn set_child_height_max(&mut self, entity: Entity, val: f32)

Source

pub fn set_posx(&mut self, entity: Entity, val: f32)

Source

pub fn set_posy(&mut self, entity: Entity, val: f32)

Source

pub fn set_width(&mut self, entity: Entity, val: f32)

Source

pub fn set_height(&mut self, entity: Entity, val: f32)

Source

pub fn get_visibility(&self, entity: Entity) -> Visibility

Source

pub fn set_visibility(&mut self, entity: Entity, val: Visibility)

Source

pub fn get_hoverable(&self, entity: Entity) -> bool

Source

pub fn get_focusable(&self, entity: Entity) -> bool

Source

pub fn set_hoverable(&mut self, entity: Entity, val: bool)

Source

pub fn set_focusable(&mut self, entity: Entity, val: bool)

Source

pub fn set_opacity(&mut self, entity: Entity, val: f32)

Source

pub fn set_rotate(&mut self, entity: Entity, val: f32)

Source

pub fn set_translate(&mut self, entity: Entity, val: (f32, f32))

Source

pub fn set_scale(&mut self, entity: Entity, val: f32)

Source

pub fn set_origin(&mut self, entity: Entity, val: (f32, f32))

Source

pub fn set_transform(&mut self, entity: Entity, val: Transform2D)

Trait Implementations§

Source§

impl Cache for CachedData

Source§

type Item = Entity

Source§

fn visible(&self, node: <CachedData as Cache>::Item) -> bool

Source§

fn set_visible(&mut self, node: <CachedData as Cache>::Item, value: bool)

Source§

fn geometry_changed(&self, node: <CachedData as Cache>::Item) -> GeometryChanged

Source§

fn set_geo_changed( &mut self, node: <CachedData as Cache>::Item, flag: GeometryChanged, value: bool, )

Source§

fn new_width(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn new_height(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_new_width(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn set_new_height(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn width(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed width of a node
Source§

fn set_width(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn height(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed height of a node
Source§

fn set_height(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn posx(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed x position of a node
Source§

fn set_posx(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn posy(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed y position of a node
Source§

fn set_posy(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn left(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_left(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn right(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_right(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn top(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_top(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn bottom(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_bottom(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn child_width_max(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed maximum width of the child nodes
Source§

fn set_child_width_max(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn child_width_sum(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed sum of the widths of the child nodes
Source§

fn set_child_width_sum(&mut self, node: <CachedData as Cache>::Item, value: f32)

Source§

fn child_height_max(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed maximum width of the child nodes
Source§

fn set_child_height_max( &mut self, node: <CachedData as Cache>::Item, value: f32, )

Source§

fn child_height_sum(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed sum of the widths of the child nodes
Source§

fn set_child_height_sum( &mut self, node: <CachedData as Cache>::Item, value: f32, )

Source§

fn stack_first_child(&self, node: <CachedData as Cache>::Item) -> bool

Source§

fn stack_last_child(&self, node: <CachedData as Cache>::Item) -> bool

Source§

fn set_stack_first_child( &mut self, node: <CachedData as Cache>::Item, value: bool, )

Source§

fn set_stack_last_child( &mut self, node: <CachedData as Cache>::Item, value: bool, )

Source§

fn horizontal_free_space(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_horizontal_free_space( &mut self, node: <CachedData as Cache>::Item, value: f32, )

Source§

fn vertical_free_space(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_vertical_free_space( &mut self, node: <CachedData as Cache>::Item, value: f32, )

Source§

fn horizontal_stretch_sum(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_horizontal_stretch_sum( &mut self, node: <CachedData as Cache>::Item, value: f32, )

Source§

fn vertical_stretch_sum(&self, node: <CachedData as Cache>::Item) -> f32

Source§

fn set_vertical_stretch_sum( &mut self, node: <CachedData as Cache>::Item, value: f32, )

Source§

fn grid_row_max(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed maximum grid row
Source§

fn grid_col_max(&self, node: <CachedData as Cache>::Item) -> f32

Get the computed maximum grid column
Source§

impl Clone for CachedData

Source§

fn clone(&self) -> CachedData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for CachedData

Source§

fn default() -> CachedData

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Node for T
where T: 'static,