Struct pixel_widgets::Ui [−][src]
Expand description
Implementations
impl<M: Model, E: 'static + EventLoop<Command<M::Message>>, L: 'static + Loader> Ui<M, E, L>
[src]
impl<M: Model, E: 'static + EventLoop<Command<M::Message>>, L: 'static + Loader> Ui<M, E, L>
[src]pub fn new(model: M, event_loop: E, loader: L, viewport: Rectangle) -> Self
[src]
pub fn new(model: M, event_loop: E, loader: L, viewport: Rectangle) -> Self
[src]Constructs a new Ui
using the default style.
This is not recommended as the default style is very empty and only renders white text.
pub async fn set_stylesheet<U: AsRef<str>>(
&mut self,
url: U
) -> Result<(), Error>
[src]
pub async fn set_stylesheet<U: AsRef<str>>(
&mut self,
url: U
) -> Result<(), Error>
[src]Constructs a new Ui
asynchronously by first fetching a stylesheet from a
.pwss data source.
pub fn replace_stylesheet(&mut self, style: Arc<Style>)
[src]
pub fn replace_stylesheet(&mut self, style: Arc<Style>)
[src]Replace the current stylesheet with a loaded new stylesheet
pub fn reload_stylesheet<U: 'static + AsRef<str> + Send>(&mut self, url: U)
[src]
pub fn reload_stylesheet<U: 'static + AsRef<str> + Send>(&mut self, url: U)
[src]Replace the current stylesheet with a new one
pub fn resize(&mut self, viewport: Rectangle)
[src]
pub fn resize(&mut self, viewport: Rectangle)
[src]Resizes the viewport. This forces the view to be rerendered.
pub fn command(&mut self, command: Command<M::Message>)
[src]
pub fn command(&mut self, command: Command<M::Message>)
[src]Updates the model after a Command
has resolved.
pub fn update(&mut self, message: M::Message)
[src]
pub fn update(&mut self, message: M::Message)
[src]Updates the model with a message. This forces the view to be rerendered.
pub fn needs_redraw(&self) -> bool
[src]
pub fn needs_redraw(&self) -> bool
[src]Trait Implementations
Auto Trait Implementations
impl<M, E, L> RefUnwindSafe for Ui<M, E, L> where
E: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
E: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, E, L> Send for Ui<M, E, L> where
M: Send,
M: Send,
impl<M, E, L> Sync for Ui<M, E, L> where
E: Sync,
M: Sync,
E: Sync,
M: Sync,
impl<M, E, L> Unpin for Ui<M, E, L> where
E: Unpin,
E: Unpin,
impl<M, E, L> UnwindSafe for Ui<M, E, L> where
E: UnwindSafe,
L: RefUnwindSafe,
M: UnwindSafe,
E: UnwindSafe,
L: RefUnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T