[−][src]Struct pathfinder_ui::UIPresenter
Fields
event_queue: UIEventQueue
mouse_position: Vector2F
Methods
impl<D> UIPresenter<D> where
D: Device,
[src]
D: Device,
pub fn new(
device: &D,
resources: &dyn ResourceLoader,
framebuffer_size: Vector2I
) -> UIPresenter<D>
[src]
device: &D,
resources: &dyn ResourceLoader,
framebuffer_size: Vector2I
) -> UIPresenter<D>
pub fn framebuffer_size(&self) -> Vector2I
[src]
pub fn set_framebuffer_size(&mut self, window_size: Vector2I)
[src]
pub fn draw_solid_rect(&self, device: &D, rect: RectI, color: ColorU)
[src]
pub fn draw_rect_outline(&self, device: &D, rect: RectI, color: ColorU)
[src]
pub fn draw_text(
&self,
device: &D,
string: &str,
origin: Vector2I,
invert: bool
)
[src]
&self,
device: &D,
string: &str,
origin: Vector2I,
invert: bool
)
pub fn draw_texture(
&self,
device: &D,
origin: Vector2I,
texture: &D::Texture,
color: ColorU
)
[src]
&self,
device: &D,
origin: Vector2I,
texture: &D::Texture,
color: ColorU
)
pub fn measure_text(&self, string: &str) -> i32
[src]
pub fn measure_segmented_control(&self, segment_count: u8) -> i32
[src]
pub fn draw_solid_rounded_rect(&self, device: &D, rect: RectI, color: ColorU)
[src]
pub fn draw_rounded_rect_outline(&self, device: &D, rect: RectI, color: ColorU)
[src]
pub fn draw_button(
&mut self,
device: &D,
origin: Vector2I,
texture: &D::Texture
) -> bool
[src]
&mut self,
device: &D,
origin: Vector2I,
texture: &D::Texture
) -> bool
pub fn draw_text_switch(
&mut self,
device: &D,
origin: Vector2I,
segment_labels: &[&str],
value: u8
) -> u8
[src]
&mut self,
device: &D,
origin: Vector2I,
segment_labels: &[&str],
value: u8
) -> u8
pub fn draw_image_segmented_control(
&mut self,
device: &D,
origin: Vector2I,
segment_textures: &[&D::Texture],
value: Option<u8>
) -> Option<u8>
[src]
&mut self,
device: &D,
origin: Vector2I,
segment_textures: &[&D::Texture],
value: Option<u8>
) -> Option<u8>
pub fn draw_tooltip(&self, device: &D, string: &str, rect: RectI)
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for UIPresenter<D> where
<D as Device>::Buffer: RefUnwindSafe,
<D as Device>::Program: RefUnwindSafe,
<D as Device>::Texture: RefUnwindSafe,
<D as Device>::Uniform: RefUnwindSafe,
<D as Device>::VertexArray: RefUnwindSafe,
<D as Device>::Buffer: RefUnwindSafe,
<D as Device>::Program: RefUnwindSafe,
<D as Device>::Texture: RefUnwindSafe,
<D as Device>::Uniform: RefUnwindSafe,
<D as Device>::VertexArray: RefUnwindSafe,
impl<D> Send for UIPresenter<D> where
<D as Device>::Buffer: Send,
<D as Device>::Program: Send,
<D as Device>::Texture: Send,
<D as Device>::Uniform: Send,
<D as Device>::VertexArray: Send,
<D as Device>::Buffer: Send,
<D as Device>::Program: Send,
<D as Device>::Texture: Send,
<D as Device>::Uniform: Send,
<D as Device>::VertexArray: Send,
impl<D> Sync for UIPresenter<D> where
<D as Device>::Buffer: Sync,
<D as Device>::Program: Sync,
<D as Device>::Texture: Sync,
<D as Device>::Uniform: Sync,
<D as Device>::VertexArray: Sync,
<D as Device>::Buffer: Sync,
<D as Device>::Program: Sync,
<D as Device>::Texture: Sync,
<D as Device>::Uniform: Sync,
<D as Device>::VertexArray: Sync,
impl<D> Unpin for UIPresenter<D> where
<D as Device>::Buffer: Unpin,
<D as Device>::Program: Unpin,
<D as Device>::Texture: Unpin,
<D as Device>::Uniform: Unpin,
<D as Device>::VertexArray: Unpin,
<D as Device>::Buffer: Unpin,
<D as Device>::Program: Unpin,
<D as Device>::Texture: Unpin,
<D as Device>::Uniform: Unpin,
<D as Device>::VertexArray: Unpin,
impl<D> UnwindSafe for UIPresenter<D> where
<D as Device>::Buffer: UnwindSafe,
<D as Device>::Program: UnwindSafe,
<D as Device>::Texture: UnwindSafe,
<D as Device>::Uniform: UnwindSafe,
<D as Device>::VertexArray: UnwindSafe,
<D as Device>::Buffer: UnwindSafe,
<D as Device>::Program: UnwindSafe,
<D as Device>::Texture: UnwindSafe,
<D as Device>::Uniform: UnwindSafe,
<D as Device>::VertexArray: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,