Struct ux::native::Pager[][src]

pub struct Pager { /* fields omitted */ }

Implementations

impl Pager[src]

pub fn new() -> Pager[src]

Trait Implementations

impl AsRef<Actor> for Pager[src]

impl AsRef<Pager> for Pager[src]

impl AsRef<Stack> for Pager[src]

impl AsRef<Widget> for Pager[src]

impl Clone for Pager[src]

impl Debug for Pager[src]

impl Default for Pager[src]

impl Display for Pager[src]

impl Is<Actor> for Pager[src]

impl Is<Pager> for Pager[src]

impl Is<Stack> for Pager[src]

impl Is<Widget> for Pager[src]

impl Object for Pager[src]

Auto Trait Implementations

impl !RefUnwindSafe for Pager

impl !Send for Pager

impl !Sync for Pager

impl Unpin for Pager

impl UnwindSafe for Pager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Construction<T> for T where
    T: Default + Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<O> PagerExt for O where
    O: Is<Pager>, 
[src]

pub 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

pub fn get_current_page(&self) -> u32[src]

pager_get_current_page: @self: a #Pager

Returns: the current page number

pub 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

pub fn get_edge_previews(&self) -> bool[src]

pager_get_edge_previews: @self: a #Pager

Returns: the value of the #Pager:edge-previews property

pub fn get_n_pages(&self) -> usize[src]

pager_get_n_pages: @self: a #Pager

Returns: the number of pages in this pager

pub fn insert_page<P>(&self, child: &P, position: i32) where
    P: Is<Actor>, 
[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.

pub fn next(&self)[src]

pager_next: @self: a #Pager

Move to the next page.

pub fn previous(&self)[src]

pager_previous: @self: a #Pager

Move to the previous page.

pub 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.

pub fn set_current_page_by_actor<P>(&self, actor: &P, animate: bool) where
    P: Is<Actor>, 
[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.

pub 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.

impl<O> StackExt for O where
    O: Is<Stack>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<O> WidgetExt for O where
    O: Is<Widget>, 
[src]

pub fn apply_style<P>(&self, style: &P) where
    P: Is<Style>, 
[src]

widget_apply_style: @widget: A #Widget @style: A #Style

Used to implement how a new style instance should be applied in the widget. For instance, setting style instance on stylable internal children.

pub fn get_available_area(&self, allocation: &ActorBox, area: &mut ActorBox)[src]

get_available_area: @widget: A #Widget @allocation: A #ActorBox @area: A #ActorBox

Copies @allocation into @area and accounts for the padding values. This gives the area that is available in which to allocate children with respect to padding.

pub fn get_background_color(&self) -> Option<Color<f64>>[src]

get_background_color: @actor: A #Widget

Get the color used as the background. This is set using the “background-color” CSS property. This function should normally only be used by subclasses.

Returns: (transfer none): a #Color

pub fn get_disabled(&self) -> bool[src]

get_disabled: @widget: an #Widget

Get the value of the “disabled” property.

pub fn get_padding(&self) -> Padding[src]

get_padding: @widget: A #Widget @padding: (out): A pointer to an #Padding to fill

Gets the padding of the widget, set using the “padding” CSS property. This function should normally only be used by subclasses.

pub fn long_press_cancel(&self)[src]

long_press_cancel: @widget: An Widget

Cancel a long-press timeout if one is running and emit the signal to notify that the long-press has been cancelled.

pub fn long_press_query(&self, event: &mut Event)[src]

long_press_query: @widget: An Widget @event: the event used to determine whether to run a long-press

Emit the long-press query signal and start a long-press timeout if required.

pub fn set_disabled(&self, disabled: bool)[src]

widget_set_disabled: @widget: an #Widget @disabled: value to set

Set the disabled property. Disabled widgets have a “disabled” pseudo-class until disabled is set to #false.