pub struct Area {
pub id: AreaId,
/* private fields */
}Fields§
§id: AreaIdImplementations§
Trait Implementations§
Source§impl RawArea for Area
impl RawArea for Area
Source§fn bisect(
area: MutArea<'_, Self>,
specs: PushSpecs,
cluster: bool,
on_files: bool,
cache: PrintInfo,
) -> (Area, Option<Area>)
fn bisect( area: MutArea<'_, Self>, specs: PushSpecs, cluster: bool, on_files: bool, cache: PrintInfo, ) -> (Area, Option<Area>)
Source§fn spawn_floating(
area: MutArea<'_, Self>,
specs: SpawnSpecs,
) -> Result<Self, Text>
fn spawn_floating( area: MutArea<'_, Self>, specs: SpawnSpecs, ) -> Result<Self, Text>
Source§fn spawn_floating_at(
_area: MutArea<'_, Self>,
_specs: SpawnSpecs,
_at: impl TwoPoints,
_text: &Text,
_cfg: PrintCfg,
) -> Result<Self, Text>
fn spawn_floating_at( _area: MutArea<'_, Self>, _specs: SpawnSpecs, _at: impl TwoPoints, _text: &Text, _cfg: PrintCfg, ) -> Result<Self, Text>
Spawns a floating area Read more
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)
Source§fn print_with<'a>(
&self,
text: &mut Text,
cfg: PrintCfg,
painter: Painter,
f: impl FnMut(&Caret, &Item) + 'a,
)
fn print_with<'a>( &self, text: &mut Text, cfg: PrintCfg, painter: Painter, f: impl FnMut(&Caret, &Item) + 'a, )
Prints the
Text with a callback functionSource§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
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