pub struct CanvasCtx<'a> {
pub did_layout: bool,
pub is_active: bool,
pub is_enabled: bool,
pub is_focused: bool,
pub perf_info: &'a PerfInfo,
pub rect: &'a RoundedRect,
pub scene: &'a mut Scene,
pub style: &'a Style,
pub translation_map: TranslationMap,
}Expand description
Fields§
§did_layout: bool§is_active: bool§is_enabled: bool§is_focused: bool§perf_info: &'a PerfInfo§rect: &'a RoundedRect§scene: &'a mut Scene§style: &'a Style§translation_map: TranslationMapImplementations§
Source§impl<'a> CanvasCtx<'a>
impl<'a> CanvasCtx<'a>
Sourcepub fn padding_box(&self) -> Rect
pub fn padding_box(&self) -> Rect
Returns the rect just inside the borders of the node in local space. Doesn’t account for rounded corners.
Sourcepub fn max_content_width(&self) -> f32
pub fn max_content_width(&self) -> f32
Returns the maximum width content could be before overflowing node.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CanvasCtx<'a>
impl<'a> !UnwindSafe for CanvasCtx<'a>
impl<'a> Freeze for CanvasCtx<'a>
impl<'a> Send for CanvasCtx<'a>
impl<'a> Sync for CanvasCtx<'a>
impl<'a> Unpin for CanvasCtx<'a>
impl<'a> UnsafeUnpin for CanvasCtx<'a>
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