pub struct ComputeBlock {
pub name: String,
pub area: GridArea,
pub z_index: i16,
pub visible: bool,
pub clip: ClipMode,
}Expand description
A named region in the grid with ownership semantics.
ComputeBlocks prevent rendering conflicts by:
- Claiming exclusive ownership of grid cells
- Enforcing clipping at render time
- Supporting z-ordering for overlays
Fields§
§name: StringUnique name for this block.
area: GridAreaGrid area this block occupies.
z_index: i16Z-order for overlapping blocks (higher = on top).
visible: boolWhether this block is visible.
clip: ClipModeClipping mode.
Implementations§
Source§impl ComputeBlock
impl ComputeBlock
Sourcepub const fn with_z_index(self, z_index: i16) -> Self
pub const fn with_z_index(self, z_index: i16) -> Self
Set z-index.
Sourcepub const fn with_visible(self, visible: bool) -> Self
pub const fn with_visible(self, visible: bool) -> Self
Set visibility.
Trait Implementations§
Source§impl Clone for ComputeBlock
impl Clone for ComputeBlock
Source§fn clone(&self) -> ComputeBlock
fn clone(&self) -> ComputeBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputeBlock
impl Debug for ComputeBlock
Source§impl<'de> Deserialize<'de> for ComputeBlock
impl<'de> Deserialize<'de> for ComputeBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComputeBlock
impl PartialEq for ComputeBlock
Source§impl Serialize for ComputeBlock
impl Serialize for ComputeBlock
impl Eq for ComputeBlock
impl StructuralPartialEq for ComputeBlock
Auto Trait Implementations§
impl Freeze for ComputeBlock
impl RefUnwindSafe for ComputeBlock
impl Send for ComputeBlock
impl Sync for ComputeBlock
impl Unpin for ComputeBlock
impl UnwindSafe for ComputeBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.