pub struct Area {
pub layout: RwData<Layout>,
pub id: AreaId,
/* private fields */
}Fields§
§layout: RwData<Layout>§id: AreaIdImplementations§
Trait Implementations§
source§impl Area for Area
impl Area for Area
type ConstraintChangeErr = ConstraintChangeErr
fn top_left(&self) -> (Point, Option<Point>)
source§fn set_as_active(&self)
fn set_as_active(&self)
fn print_with<'a>( &self, text: &Text, cfg: &PrintCfg, painter: Painter, f: impl FnMut(&Caret, &Item) + 'a, )
fn change_constraint( &self, constraint: Constraint, axis: Axis, ) -> Result<(), ConstraintChangeErr>
source§fn request_width_to_fit(
&self,
_text: &str,
) -> Result<(), Self::ConstraintChangeErr>
fn request_width_to_fit( &self, _text: &str, ) -> Result<(), Self::ConstraintChangeErr>
Requests that the width be enough to fit a certain piece of
text.
source§fn is_senior_of(&self, other: &Self) -> bool
fn is_senior_of(&self, other: &Self) -> bool
source§fn print_iter<'a>(
&self,
iter: Iter<'a>,
cfg: IterCfg<'a>,
) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
fn print_iter<'a>( &self, iter: Iter<'a>, cfg: IterCfg<'a>, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
Returns a printing iterator. Read more
fn print_iter_from_top<'a>( &self, text: &'a Text, cfg: IterCfg<'a>, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
source§impl PartialEq for Area
impl PartialEq for Area
impl Send for Area
impl Sync for Area
Auto Trait Implementations§
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)