Trait components::PagerExt [−][src]
pub trait PagerExt: 'static {}Show methods
fn get_actor_for_page(&self, page: u32) -> Option<Actor>; fn get_current_page(&self) -> u32; fn get_current_page_actor(&self) -> Option<Actor>; fn get_edge_previews(&self) -> bool; fn get_n_pages(&self) -> usize; fn insert_page<P: Is<Actor>>(&self, child: &P, position: i32); fn next(&self); fn previous(&self); fn set_current_page(&self, page: u32, animate: bool); fn set_current_page_by_actor<P: Is<Actor>>(&self, actor: &P, animate: bool); fn set_edge_previews(&self, edge_previews: bool); fn get_property_page_actor(&self) -> Option<Actor>; fn get_property_page_num(&self) -> u32; fn set_property_page_num(&self, page_num: u32); fn connect_property_edge_previews_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_page_actor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_page_num_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
Required methods
fn get_actor_for_page(&self, page: u32) -> Option<Actor>
[src]
pager_get_actor_for_page: @self: a #Pager @page: a page number
Returns: (transfer none): the #Actor for @page
fn get_current_page(&self) -> u32
[src]
pager_get_current_page: @self: a #Pager
Returns: the current page number
fn get_current_page_actor(&self) -> Option<Actor>
[src]
pager_get_current_page_actor: @self: a #Pager
Returns: (transfer none): the #Actor on the current page
fn get_edge_previews(&self) -> bool
[src]
pager_get_edge_previews: @self: a #Pager
Returns: the value of the #Pager:edge-previews property
fn get_n_pages(&self) -> usize
[src]
pager_get_n_pages: @self: a #Pager
Returns: the number of pages in this pager
fn insert_page<P: Is<Actor>>(&self, child: &P, position: i32)
[src]
pager_insert_page: @self: a #Pager @child: the page to insert @position: the position to insert the page. If this is negative, or is larger than the number of pages, it will the last page
Inserts a page into the #Pager at the position specified by @position.
fn next(&self)
[src]
pager_next: @self: a #Pager
Move to the next page.
fn previous(&self)
[src]
pager_previous: @self: a #Pager
Move to the previous page.
fn set_current_page(&self, page: u32, animate: bool)
[src]
pager_set_current_page: @self: a #Pager @page: the page to move to @animate: whether to animate the move between pages
Move to @page.
fn set_current_page_by_actor<P: Is<Actor>>(&self, actor: &P, animate: bool)
[src]
pager_set_current_page_by_actor: @self: a #Pager @actor: the actor of the page to move to @animate: whether to animate the move between pages
Move to the page containing @actor.
fn set_edge_previews(&self, edge_previews: bool)
[src]
pager_set_edge_previews: @self: a #Pager @edge_previews: %true to enable edge previews
Sets the #Pager:edge-previews property.
fn get_property_page_actor(&self) -> Option<Actor>
[src]
fn get_property_page_num(&self) -> u32
[src]
fn set_property_page_num(&self, page_num: u32)
[src]
fn connect_property_edge_previews_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_page_actor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_page_num_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<Pager>> PagerExt for O
[src]
impl<O: Is<Pager>> PagerExt for O
[src]fn get_actor_for_page(&self, page: u32) -> Option<Actor>
[src]
pager_get_actor_for_page: @self: a #Pager @page: a page number
Returns: (transfer none): the #Actor for @page
fn get_current_page(&self) -> u32
[src]
pager_get_current_page: @self: a #Pager
Returns: the current page number
fn get_current_page_actor(&self) -> Option<Actor>
[src]
pager_get_current_page_actor: @self: a #Pager
Returns: (transfer none): the #Actor on the current page
fn get_edge_previews(&self) -> bool
[src]
pager_get_edge_previews: @self: a #Pager
Returns: the value of the #Pager:edge-previews property
fn get_n_pages(&self) -> usize
[src]
pager_get_n_pages: @self: a #Pager
Returns: the number of pages in this pager
fn insert_page<P: Is<Actor>>(&self, child: &P, position: i32)
[src]
pager_insert_page: @self: a #Pager @child: the page to insert @position: the position to insert the page. If this is negative, or is larger than the number of pages, it will the last page
Inserts a page into the #Pager at the position specified by @position.
fn next(&self)
[src]
pager_next: @self: a #Pager
Move to the next page.
fn previous(&self)
[src]
pager_previous: @self: a #Pager
Move to the previous page.
fn set_current_page(&self, page: u32, animate: bool)
[src]
pager_set_current_page: @self: a #Pager @page: the page to move to @animate: whether to animate the move between pages
Move to @page.
fn set_current_page_by_actor<P: Is<Actor>>(&self, actor: &P, animate: bool)
[src]
pager_set_current_page_by_actor: @self: a #Pager @actor: the actor of the page to move to @animate: whether to animate the move between pages
Move to the page containing @actor.
fn set_edge_previews(&self, edge_previews: bool)
[src]
pager_set_edge_previews: @self: a #Pager @edge_previews: %true to enable edge previews
Sets the #Pager:edge-previews property.
fn get_property_page_actor(&self) -> Option<Actor>
[src]
fn get_property_page_num(&self) -> u32
[src]
fn set_property_page_num(&self, page_num: u32)
[src]
fn connect_property_edge_previews_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_page_actor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_page_num_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId