pub struct Area {
pub layout: RwData<Layout>,
pub id: AreaId,
}Fields§
§layout: RwData<Layout>§id: AreaIdImplementations§
Trait Implementations§
Source§impl Area for Area
impl Area for Area
type Cache = PrintInfo
type ConstraintChangeErr = ConstraintErr
type PrintInfo = PrintInfo
type Ui = Ui
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, )
Source§fn constrain_ver(&self, con: Constraint) -> Result<(), ConstraintErr>
fn constrain_ver(&self, con: Constraint) -> Result<(), ConstraintErr>
Changes the vertical constraint of the area
Source§fn constrain_hor(&self, con: Constraint) -> Result<(), ConstraintErr>
fn constrain_hor(&self, con: Constraint) -> Result<(), ConstraintErr>
Changes the horizontal constraint of the area
Source§fn restore_constraints(&self) -> Result<(), Self::ConstraintChangeErr>
fn restore_constraints(&self) -> Result<(), Self::ConstraintChangeErr>
Restores the original constraints of the widget
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_master_of(&self, other: &Self) -> bool
fn is_master_of(&self, other: &Self) -> bool
Source§fn get_cluster_master(&self) -> Option<Self>
fn get_cluster_master(&self) -> Option<Self>
Source§fn bisect(
&self,
specs: PushSpecs,
cluster: bool,
on_files: bool,
cache: PrintInfo,
) -> (Area, Option<Area>)
fn bisect( &self, specs: PushSpecs, cluster: bool, on_files: bool, cache: PrintInfo, ) -> (Area, Option<Area>)
Source§fn print_iter<'a>(
&self,
iter: Iter<'a>,
cfg: IterCfg,
) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
fn print_iter<'a>( &self, iter: Iter<'a>, cfg: IterCfg, ) -> 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, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
Source§fn rev_print_iter<'a>(
&self,
iter: RevIter<'a>,
cfg: IterCfg,
) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
fn rev_print_iter<'a>( &self, iter: RevIter<'a>, cfg: IterCfg, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
Returns a reversed printing iterator Read more
Source§fn print_info(&self) -> Self::PrintInfo
fn print_info(&self) -> Self::PrintInfo
The current printing information of the area
Source§fn set_print_info(&self, info: Self::PrintInfo)
fn set_print_info(&self, info: Self::PrintInfo)
Sets a previously acquired
PrintInfo to the areaimpl 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)