pub struct Area {
pub id: AreaId,
/* private fields */
}Fields§
§id: AreaIdImplementations§
Trait Implementations§
Source§impl Area for Area
impl Area for Area
type Cache = PrintInfo
type PrintInfo = PrintInfo
type Ui = Ui
Source§fn bisect(
&self,
specs: PushSpecs,
cluster: bool,
on_files: bool,
cache: PrintInfo,
_: DuatPermission,
) -> (Area, Option<Area>)
fn bisect( &self, specs: PushSpecs, cluster: bool, on_files: bool, cache: PrintInfo, _: DuatPermission, ) -> (Area, Option<Area>)
Source§fn delete(&self, _: DuatPermission) -> Option<Self>
fn delete(&self, _: DuatPermission) -> Option<Self>
Source§fn spawn_floating(
&self,
at: impl TwoPoints,
specs: PushSpecs,
text: &Text,
cfg: PrintCfg,
_: DuatPermission,
) -> Self
fn spawn_floating( &self, at: impl TwoPoints, specs: PushSpecs, text: &Text, cfg: PrintCfg, _: DuatPermission, ) -> Self
Source§fn constrain_hor(
&self,
cons: impl IntoIterator<Item = Constraint>,
) -> Result<(), Text>
fn constrain_hor( &self, cons: impl IntoIterator<Item = Constraint>, ) -> Result<(), Text>
Changes the horizontal constraint of the area
Source§fn constrain_ver(
&self,
cons: impl IntoIterator<Item = Constraint>,
) -> Result<(), Text>
fn constrain_ver( &self, cons: impl IntoIterator<Item = Constraint>, ) -> Result<(), Text>
Changes the vertical constraint of the area
Source§fn restore_constraints(&self) -> Result<(), Text>
fn restore_constraints(&self) -> Result<(), Text>
Restores the original constraints of the widget
Source§fn request_width_to_fit(&self, _text: &str) -> Result<(), Text>
fn request_width_to_fit(&self, _text: &str) -> Result<(), Text>
Requests that the width be enough to fit a certain piece of
text.
Source§fn set_as_active(&self)
fn set_as_active(&self)
fn print_with<'a>( &self, text: &mut Text, cfg: PrintCfg, painter: Painter, f: impl FnMut(&Caret, &Item) + 'a, )
Source§fn set_print_info(&self, info: Self::PrintInfo)
fn set_print_info(&self, info: Self::PrintInfo)
Sets a previously acquired
PrintInfo to the areaSource§fn print_iter<'a>(
&self,
iter: FwdIter<'a>,
cfg: PrintCfg,
) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
fn print_iter<'a>( &self, iter: FwdIter<'a>, cfg: PrintCfg, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
Returns a printing iterator Read more
fn print_iter_from_top<'a>( &self, text: &'a Text, cfg: PrintCfg, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
Source§fn rev_print_iter<'a>(
&self,
iter: RevIter<'a>,
cfg: PrintCfg,
) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
fn rev_print_iter<'a>( &self, iter: RevIter<'a>, cfg: PrintCfg, ) -> impl Iterator<Item = (Caret, Item)> + Clone + 'a
Returns a reversed printing iterator Read more
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 first_points(&self, _text: &Text, _cfg: PrintCfg) -> (Point, Option<Point>)
fn first_points(&self, _text: &Text, _cfg: PrintCfg) -> (Point, Option<Point>)
The first point that should be printed
Source§fn last_points(&self, text: &Text, cfg: PrintCfg) -> (Point, Option<Point>)
fn last_points(&self, text: &Text, cfg: PrintCfg) -> (Point, Option<Point>)
The last point that should be printed
Source§fn print_info(&self) -> Self::PrintInfo
fn print_info(&self) -> Self::PrintInfo
The current printing information of the area
Auto Trait Implementations§
impl Freeze for Area
impl !RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl !UnwindSafe for Area
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