[][src]Struct pathfinder_ui::UIPresenter

pub struct UIPresenter<D> where
    D: Device
{ pub event_queue: UIEventQueue, pub mouse_position: Vector2F, // some fields omitted }

Fields

event_queue: UIEventQueuemouse_position: Vector2F

Methods

impl<D> UIPresenter<D> where
    D: Device
[src]

pub fn new(
    device: &D,
    resources: &dyn ResourceLoader,
    framebuffer_size: Vector2I
) -> UIPresenter<D>
[src]

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]

pub fn draw_texture(
    &self,
    device: &D,
    origin: Vector2I,
    texture: &D::Texture,
    color: ColorU
)
[src]

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]

pub fn draw_text_switch(
    &mut self,
    device: &D,
    origin: Vector2I,
    segment_labels: &[&str],
    value: u8
) -> u8
[src]

pub fn draw_image_segmented_control(
    &mut self,
    device: &D,
    origin: Vector2I,
    segment_textures: &[&D::Texture],
    value: Option<u8>
) -> Option<u8>
[src]

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

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

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

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

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

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.