pub struct Area { /* private fields */ }Trait Implementations§
Source§impl RawArea for Area
impl RawArea for Area
Source§fn push(
self: CoreAccess<'_, Self>,
specs: PushSpecs,
on_files: bool,
cache: PrintInfo,
) -> Option<(Area, Option<Area>)>
fn push( self: CoreAccess<'_, Self>, specs: PushSpecs, on_files: bool, cache: PrintInfo, ) -> Option<(Area, Option<Area>)>
Creates an
RawArea around this one Read moreSource§fn swap(self: CoreAccess<'_, Self>, rhs: &Self) -> bool
fn swap(self: CoreAccess<'_, Self>, rhs: &Self) -> bool
Swaps this
RawArea with another one Read moreSource§fn spawn(
self: CoreAccess<'_, Self>,
spawn_id: SpawnId,
specs: SpawnSpecs,
cache: Self::Cache,
) -> Option<Self>
fn spawn( self: CoreAccess<'_, Self>, spawn_id: SpawnId, specs: SpawnSpecs, cache: Self::Cache, ) -> Option<Self>
Spawns a floating area on this
RawArea Read moreSource§fn set_width(self: CoreAccess<'_, Self>, width: f32) -> Result<(), Text>
fn set_width(self: CoreAccess<'_, Self>, width: f32) -> Result<(), Text>
Sets a width for the
RawAreaSource§fn set_height(self: CoreAccess<'_, Self>, height: f32) -> Result<(), Text>
fn set_height(self: CoreAccess<'_, Self>, height: f32) -> Result<(), Text>
Sets a height for the
RawAreaSource§fn width_of_text(
self: CoreAccess<'_, Self>,
opts: PrintOpts,
text: &Text,
) -> Result<f32, Text>
fn width_of_text( self: CoreAccess<'_, Self>, opts: PrintOpts, text: &Text, ) -> Result<f32, Text>
What width the given
Text would occupy, if unwrappedSource§fn scroll_ver(self: CoreAccess<'_, Self>, text: &Text, by: i32, opts: PrintOpts)
fn scroll_ver(self: CoreAccess<'_, Self>, text: &Text, by: i32, opts: PrintOpts)
Source§fn scroll_around_points(
self: CoreAccess<'_, Self>,
text: &Text,
points: TwoPoints,
opts: PrintOpts,
)
fn scroll_around_points( self: CoreAccess<'_, Self>, text: &Text, points: TwoPoints, opts: PrintOpts, )
Source§fn scroll_to_points(
self: CoreAccess<'_, Self>,
text: &Text,
points: TwoPoints,
opts: PrintOpts,
)
fn scroll_to_points( self: CoreAccess<'_, Self>, text: &Text, points: TwoPoints, opts: PrintOpts, )
Source§fn set_as_active(self: CoreAccess<'_, Self>)
fn set_as_active(self: CoreAccess<'_, Self>)
Source§fn print(
self: CoreAccess<'_, Self>,
text: &Text,
opts: PrintOpts,
painter: Painter,
)
fn print( self: CoreAccess<'_, Self>, text: &Text, opts: PrintOpts, painter: Painter, )
Prints the
TextSource§fn print_with<'a>(
self: CoreAccess<'_, Self>,
text: &Text,
opts: PrintOpts,
painter: Painter,
f: impl FnMut(&Caret, &Item) + 'a,
)
fn print_with<'a>( self: CoreAccess<'_, Self>, text: &Text, opts: PrintOpts, painter: Painter, f: impl FnMut(&Caret, &Item) + 'a, )
Prints the
Text with a callback functionSource§fn set_print_info(self: CoreAccess<'_, Self>, info: Self::PrintInfo)
fn set_print_info(self: CoreAccess<'_, Self>, info: Self::PrintInfo)
Sets a previously acquired
PrintInfo to the areaSource§fn print_iter<'a>(
self: CoreAccess<'_, Self>,
text: &'a Text,
points: TwoPoints,
opts: PrintOpts,
) -> impl Iterator<Item = (Caret, Item)> + 'a
fn print_iter<'a>( self: CoreAccess<'_, Self>, text: &'a Text, points: TwoPoints, opts: PrintOpts, ) -> impl Iterator<Item = (Caret, Item)> + 'a
Returns a printing iterator Read more
Source§fn rev_print_iter<'a>(
self: CoreAccess<'_, Self>,
text: &'a Text,
points: TwoPoints,
opts: PrintOpts,
) -> impl Iterator<Item = (Caret, Item)> + 'a
fn rev_print_iter<'a>( self: CoreAccess<'_, Self>, text: &'a Text, points: TwoPoints, opts: PrintOpts, ) -> impl Iterator<Item = (Caret, Item)> + 'a
Returns a reversed printing iterator Read more
Source§fn has_changed(self: CoreAccess<'_, Self>) -> bool
fn has_changed(self: CoreAccess<'_, Self>) -> bool
Source§fn is_master_of(self: CoreAccess<'_, Self>, other: &Self) -> bool
fn is_master_of(self: CoreAccess<'_, Self>, other: &Self) -> bool
Source§fn get_cluster_master(self: CoreAccess<'_, Self>) -> Option<Self>
fn get_cluster_master(self: CoreAccess<'_, Self>) -> Option<Self>
Source§fn width(self: CoreAccess<'_, Self>) -> f32
fn width(self: CoreAccess<'_, Self>) -> f32
Gets the width of the area
Source§fn height(self: CoreAccess<'_, Self>) -> f32
fn height(self: CoreAccess<'_, Self>) -> f32
Gets the height of the area
Source§fn start_points(
self: CoreAccess<'_, Self>,
text: &Text,
opts: PrintOpts,
) -> TwoPoints
fn start_points( self: CoreAccess<'_, Self>, text: &Text, opts: PrintOpts, ) -> TwoPoints
The start points that should be printed
Source§fn end_points(
self: CoreAccess<'_, Self>,
text: &Text,
opts: PrintOpts,
) -> TwoPoints
fn end_points( self: CoreAccess<'_, Self>, text: &Text, opts: PrintOpts, ) -> TwoPoints
The
TwoPoints immediately after the last printed oneSource§fn get_print_info(self: CoreAccess<'_, Self>) -> Self::PrintInfo
fn get_print_info(self: CoreAccess<'_, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.