[−][src]Struct ajour_widgets::header::Header
Implementations
impl<'a, Message, Renderer> Header<'a, Message, Renderer> where
Renderer: 'a + Renderer,
Message: 'a,
[src]
Renderer: 'a + Renderer,
Message: 'a,
pub fn new(
state: &'a mut State,
headers: Vec<(String, Container<'a, Message, Renderer>)>,
left_margin: Option<Length>,
right_margin: Option<Length>
) -> Self
[src]
state: &'a mut State,
headers: Vec<(String, Container<'a, Message, Renderer>)>,
left_margin: Option<Length>,
right_margin: Option<Length>
) -> Self
pub fn spacing(self, units: u16) -> Self
[src]
pub fn width(self, width: Length) -> Self
[src]
pub fn height(self, height: Length) -> Self
[src]
pub fn on_resize<F>(self, leeway: u16, f: F) -> Self where
F: 'a + Fn(ResizeEvent) -> Message,
[src]
F: 'a + Fn(ResizeEvent) -> Message,
Trait Implementations
impl<'a, Message, Renderer> From<Header<'a, Message, Renderer>> for Element<'a, Message, Renderer> where
Renderer: 'a + Renderer,
Message: 'a,
[src]
Renderer: 'a + Renderer,
Message: 'a,
impl<'a, Message, Renderer> Widget<Message, Renderer> for Header<'a, Message, Renderer> where
Renderer: 'a + Renderer,
Message: 'a,
[src]
Renderer: 'a + Renderer,
Message: 'a,
pub fn width(&self) -> Length
[src]
pub fn height(&self) -> Length
[src]
pub fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node
[src]
pub fn on_event(
&mut self,
event: Event,
layout: Layout<'_>,
cursor_position: Point,
messages: &mut Vec<Message>,
renderer: &Renderer,
clipboard: Option<&dyn Clipboard>
) -> Status
[src]
&mut self,
event: Event,
layout: Layout<'_>,
cursor_position: Point,
messages: &mut Vec<Message>,
renderer: &Renderer,
clipboard: Option<&dyn Clipboard>
) -> Status
pub fn draw(
&self,
renderer: &mut Renderer,
defaults: &Renderer::Defaults,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle
) -> Renderer::Output
[src]
&self,
renderer: &mut Renderer,
defaults: &Renderer::Defaults,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle
) -> Renderer::Output
pub fn hash_layout(&self, state: &mut Hasher)
[src]
pub fn overlay(
&mut self,
_layout: Layout<'_>
) -> Option<Element<'_, Message, Renderer>>
[src]
&mut self,
_layout: Layout<'_>
) -> Option<Element<'_, Message, Renderer>>
Auto Trait Implementations
impl<'a, Message, Renderer> !RefUnwindSafe for Header<'a, Message, Renderer>
impl<'a, Message, Renderer> !Send for Header<'a, Message, Renderer>
impl<'a, Message, Renderer> !Sync for Header<'a, Message, Renderer>
impl<'a, Message, Renderer> Unpin for Header<'a, Message, Renderer>
impl<'a, Message, Renderer> !UnwindSafe for Header<'a, Message, Renderer>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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.
pub 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>,