Struct PageSidebarProps
pub struct PageSidebarProps {
pub aspect: f64,
pub count: i64,
pub current: i64,
pub header: Option<String>,
pub add: Option<String>,
pub panel: bool,
pub select: Event,
pub reorder: Event,
pub duplicate: Event,
pub delete: Event,
pub add_page: Event,
}Expand description
A rail down a document’s side: one numbered thumbnail per page, the page open lifted, and, unless read-only, pages that can be dragged to reorder, copied, moved and added.
Fields§
§aspect: f64A page’s height over its width (1.414 for A4, 792/612 for US Letter).
count: i64How many pages the document has.
current: i64Which page is open, counted from 0.
header: Option<String>The rail’s title above the thumbnails: “Pages”.
add: Option<String>The label of the button that adds a page at the foot (“Import…”). Without it there is no add button.
panel: boolThe rail paints its own panel (a document’s whole side column). Without it it paints only the thumbnails, on the ground its host gives it.
select: EventA page was chosen: carries its index, from 0.
reorder: EventA page was moved: carries its old index, then its place among the others.
duplicate: EventA page was to be copied: carries its index.
delete: EventA page was to be removed: carries its index.
add_page: EventA page was to be added.
Trait Implementations§
§impl Component for PageSidebarProps
impl Component for PageSidebarProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<PageSidebarProps, Error>
fn from_source(source: &mut dyn Source) -> Result<PageSidebarProps, Error>
source gives. Read more§impl Default for PageSidebarProps
impl Default for PageSidebarProps
§fn default() -> PageSidebarProps
fn default() -> PageSidebarProps
Auto Trait Implementations§
impl Freeze for PageSidebarProps
impl !RefUnwindSafe for PageSidebarProps
impl !Send for PageSidebarProps
impl !Sync for PageSidebarProps
impl Unpin for PageSidebarProps
impl UnsafeUnpin for PageSidebarProps
impl !UnwindSafe for PageSidebarProps
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more