[−][src]Struct iced_native::renderer::Null
A renderer that does nothing.
It can be useful if you are writing tests!
Implementations
impl Null
[src]
Trait Implementations
impl Clone for Null
[src]
impl Copy for Null
[src]
impl Debug for Null
[src]
impl Renderer for Null
[src]
type Output = ()
The type of output of the [Renderer
]. Read more
type Defaults = ()
The default styling attributes of the [Renderer
]. Read more
fn overlay(&mut self, _base: (), _overlay: (), _overlay_bounds: Rectangle)
[src]
fn layout<'a, Message>(
&mut self,
element: &Element<'a, Message, Self>,
limits: &Limits
) -> Node
[src]
&mut self,
element: &Element<'a, Message, Self>,
limits: &Limits
) -> Node
impl Renderer for Null
[src]
const DEFAULT_PADDING: u16
[src]
type Style = ()
The style supported by this renderer.
fn draw<Message>(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_cursor_position: Point,
_is_disabled: bool,
_is_pressed: bool,
_style: &Self::Style,
_content: &Element<'_, Message, Self>,
_content_layout: Layout<'_>
) -> Self::Output
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_cursor_position: Point,
_is_disabled: bool,
_is_pressed: bool,
_style: &Self::Style,
_content: &Element<'_, Message, Self>,
_content_layout: Layout<'_>
) -> Self::Output
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
const DEFAULT_HEIGHT: u16
[src]
fn draw(
&mut self,
_bounds: Rectangle,
_cursor_position: Point,
_range: RangeInclusive<f32>,
_value: f32,
_is_dragging: bool,
_style_sheet: &Self::Style
)
[src]
&mut self,
_bounds: Rectangle,
_cursor_position: Point,
_range: RangeInclusive<f32>,
_value: f32,
_is_dragging: bool,
_style_sheet: &Self::Style
)
impl Renderer for Null
[src]
type Font = Font
The font type used for [Text
]. Read more
fn default_size(&self) -> u16
[src]
fn measure(
&self,
_content: &str,
_size: u16,
_font: Font,
_bounds: Size
) -> (f32, f32)
[src]
&self,
_content: &str,
_size: u16,
_font: Font,
_bounds: Size
) -> (f32, f32)
fn draw(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_content: &str,
_size: u16,
_font: Font,
_color: Option<Color>,
_horizontal_alignment: HorizontalAlignment,
_vertical_alignment: VerticalAlignment
)
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_content: &str,
_size: u16,
_font: Font,
_color: Option<Color>,
_horizontal_alignment: HorizontalAlignment,
_vertical_alignment: VerticalAlignment
)
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
fn measure_value(&self, _value: &str, _size: u16, _font: Font) -> f32
[src]
fn offset(
&self,
_text_bounds: Rectangle,
_font: Font,
_size: u16,
_value: &Value,
_state: &State
) -> f32
[src]
&self,
_text_bounds: Rectangle,
_font: Font,
_size: u16,
_value: &Value,
_state: &State
) -> f32
fn draw(
&mut self,
_bounds: Rectangle,
_text_bounds: Rectangle,
_cursor_position: Point,
_font: Font,
_size: u16,
_placeholder: &str,
_value: &Value,
_state: &State,
_style: &Self::Style
) -> Self::Output
[src]
&mut self,
_bounds: Rectangle,
_text_bounds: Rectangle,
_cursor_position: Point,
_font: Font,
_size: u16,
_placeholder: &str,
_value: &Value,
_state: &State,
_style: &Self::Style
) -> Self::Output
fn find_cursor_position(
&self,
text_bounds: Rectangle,
font: Self::Font,
size: Option<u16>,
value: &Value,
state: &State,
x: f32
) -> usize
[src]
&self,
text_bounds: Rectangle,
font: Self::Font,
size: Option<u16>,
value: &Value,
state: &State,
x: f32
) -> usize
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
const DEFAULT_SIZE: u16
[src]
const DEFAULT_SPACING: u16
[src]
fn draw(
&mut self,
_bounds: Rectangle,
_is_checked: bool,
_is_mouse_over: bool,
_label: Self::Output,
_style: &Self::Style
)
[src]
&mut self,
_bounds: Rectangle,
_is_checked: bool,
_is_mouse_over: bool,
_label: Self::Output,
_style: &Self::Style
)
impl Renderer for Null
[src]
fn draw<Message>(
&mut self,
_defaults: &Self::Defaults,
_content: &[Element<'_, Message, Self>],
_layout: Layout<'_>,
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_content: &[Element<'_, Message, Self>],
_layout: Layout<'_>,
_cursor_position: Point
)
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
fn draw<Message>(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_cursor_position: Point,
_style: &Self::Style,
_content: &Element<'_, Message, Self>,
_content_layout: Layout<'_>
)
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_cursor_position: Point,
_style: &Self::Style,
_content: &Element<'_, Message, Self>,
_content_layout: Layout<'_>
)
impl Renderer for Null
[src]
fn draw<Message>(
&mut self,
_defaults: &Self::Defaults,
_content: &[(Pane, Content<'_, Message, Self>)],
_dragging: Option<(Pane, Point)>,
_resizing: Option<Axis>,
_layout: Layout<'_>,
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_content: &[(Pane, Content<'_, Message, Self>)],
_dragging: Option<(Pane, Point)>,
_resizing: Option<Axis>,
_layout: Layout<'_>,
_cursor_position: Point
)
fn draw_pane<Message>(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title_bar: Option<(&TitleBar<'_, Message, Self>, Layout<'_>)>,
_body: (&Element<'_, Message, Self>, Layout<'_>),
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title_bar: Option<(&TitleBar<'_, Message, Self>, Layout<'_>)>,
_body: (&Element<'_, Message, Self>, Layout<'_>),
_cursor_position: Point
)
fn draw_title_bar<Message>(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title: &str,
_title_size: u16,
_title_font: Self::Font,
_title_bounds: Rectangle,
_controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title: &str,
_title_size: u16,
_title_font: Self::Font,
_title_bounds: Rectangle,
_controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
_cursor_position: Point
)
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
const DEFAULT_HEIGHT: u16
[src]
fn draw(
&self,
_bounds: Rectangle,
_range: RangeInclusive<f32>,
_value: f32,
_style: &Self::Style
)
[src]
&self,
_bounds: Rectangle,
_range: RangeInclusive<f32>,
_value: f32,
_style: &Self::Style
)
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
const DEFAULT_SIZE: u16
[src]
const DEFAULT_SPACING: u16
[src]
fn draw(
&mut self,
_bounds: Rectangle,
_is_selected: bool,
_is_mouse_over: bool,
_label: Self::Output,
_style: &Self::Style
)
[src]
&mut self,
_bounds: Rectangle,
_is_selected: bool,
_is_mouse_over: bool,
_label: Self::Output,
_style: &Self::Style
)
impl Renderer for Null
[src]
fn draw<Message>(
&mut self,
_defaults: &Self::Defaults,
_content: &[Element<'_, Message, Self>],
_layout: Layout<'_>,
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_content: &[Element<'_, Message, Self>],
_layout: Layout<'_>,
_cursor_position: Point
)
impl Renderer for Null
[src]
type Style = ()
The style supported by this renderer.
fn scrollbar(
&self,
_bounds: Rectangle,
_content_bounds: Rectangle,
_offset: u32
) -> Option<Scrollbar>
[src]
&self,
_bounds: Rectangle,
_content_bounds: Rectangle,
_offset: u32
) -> Option<Scrollbar>
fn draw(
&mut self,
_scrollable: &State,
_bounds: Rectangle,
_content_bounds: Rectangle,
_is_mouse_over: bool,
_is_mouse_over_scrollbar: bool,
_scrollbar: Option<Scrollbar>,
_offset: u32,
_style: &Self::Style,
_content: Self::Output
)
[src]
&mut self,
_scrollable: &State,
_bounds: Rectangle,
_content_bounds: Rectangle,
_is_mouse_over: bool,
_is_mouse_over_scrollbar: bool,
_scrollbar: Option<Scrollbar>,
_offset: u32,
_style: &Self::Style,
_content: Self::Output
)
Auto Trait Implementations
impl RefUnwindSafe for Null
impl Send for Null
impl Sync for Null
impl Unpin for Null
impl UnwindSafe for Null
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
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, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[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> 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,