[−][src]Struct pixel_widgets::draw::Image
Reference to an image loaded by the Ui
.
Fields
texture: usize
The texture atlas identifier that this image resides in.
texcoords: Rectangle
The texcoords within the atlas that the image spans.
size: Rectangle
The physical size in pixels of the image.
Trait Implementations
impl Clone for Image
[src]
impl Debug for Image
[src]
impl<'a, T: 'a> IntoNode<'a, T> for &'a Image
[src]
fn into_node(self) -> Node<'a, T>
[src]
fn class(self, class: &'a str) -> Node<'a, Message>
[src]
fn on_event(
self,
event: NodeEvent,
f: impl 'a + Fn(&mut Context<Message>)
) -> Node<'a, Message>
[src]
self,
event: NodeEvent,
f: impl 'a + Fn(&mut Context<Message>)
) -> Node<'a, Message>
impl<'a, T: 'a> Widget<'a, T> for &'a Image
[src]
fn widget(&self) -> &'static str
[src]
fn len(&self) -> usize
[src]
fn visit_children(&mut self, _: &mut dyn FnMut(&mut Node<'a, T>))
[src]
fn size(&self, style: &Stylesheet) -> (Size, Size)
[src]
fn draw(
&mut self,
layout: Rectangle,
_: Rectangle,
style: &Stylesheet
) -> Vec<Primitive<'a>>
[src]
&mut self,
layout: Rectangle,
_: Rectangle,
style: &Stylesheet
) -> Vec<Primitive<'a>>
fn state(&self) -> StateVec
[src]
fn hit(
&self,
layout: Rectangle,
clip: Rectangle,
_style: &Stylesheet,
x: f32,
y: f32
) -> bool
[src]
&self,
layout: Rectangle,
clip: Rectangle,
_style: &Stylesheet,
x: f32,
y: f32
) -> bool
fn focused(&self) -> bool
[src]
fn event(
&mut self,
_layout: Rectangle,
_clip: Rectangle,
_style: &Stylesheet,
_event: Event,
_context: &mut Context<Message>
)
[src]
&mut self,
_layout: Rectangle,
_clip: Rectangle,
_style: &Stylesheet,
_event: Event,
_context: &mut Context<Message>
)
fn node_event(
&mut self,
_layout: Rectangle,
_style: &Stylesheet,
_event: NodeEvent,
_context: &mut Context<Message>
)
[src]
&mut self,
_layout: Rectangle,
_style: &Stylesheet,
_event: NodeEvent,
_context: &mut Context<Message>
)
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,