pub struct Layout { /* private fields */ }
Implementations
sourceimpl Layout
impl Layout
pub fn build<K>(storage: &WidgetStorage) -> Builder<K, WidgetStorage> where
K: Key,
pub fn remove_child<K>(
&mut self,
layout_key: &K,
context: &Context<Layout>
) -> bool where
K: Key,
pub fn insert<K, W>(
&mut self,
layout_key: Option<K>,
widget: StyledWidget<W>,
layout: WidgetLayout,
context: &Context<Layout>
) where
K: Key,
W: Widget,
pub fn insert_registration<K>(
&mut self,
layout_key: Option<K>,
registration: WidgetRegistration,
layout: WidgetLayout,
context: &Context<Layout>
) where
K: Key,
Trait Implementations
sourceimpl LayoutChildren for Layout
impl LayoutChildren for Layout
fn layout_children(&self) -> Vec<LayoutChild, Global>
fn child_by_widget_id(&self, widget_id: &WidgetId) -> Option<&LayoutChild>
sourceimpl Widget for Layout
impl Widget for Layout
type Command = LayoutCommand
type Command = LayoutCommand
Widgets may need to communicate with transmogrifier implementations. This type is the type that can be sent to a transmogrifier. Read more
type Event = ()
type Event = ()
The type of the event that any Transmogrifier
for this widget to
use. Read more
sourceconst CLASS: &'static str = "gooey-layout"
const CLASS: &'static str = "gooey-layout"
The unique class name for this widget. Must not conflict with any other
widgets in use. Widget authors should prefix their widget names to
ensure no conflicts. For example, the gooey-widgets
crate prefixes all
of the CLASS
constants with gooey-
. Read more
sourceconst FOCUSABLE: bool = false
const FOCUSABLE: bool = false
When true, the control is able to receive focus through focus advancement, most commonly done when using the tab key. Read more
sourcefn receive_event(&mut self, event: Self::Event, context: &Context<Self>)
fn receive_event(&mut self, event: Self::Event, context: &Context<Self>)
Called when an event
from the transmogrifier was received.
sourcefn text_color(style: &Style) -> Option<&ColorPair>
fn text_color(style: &Style) -> Option<&ColorPair>
Returns the effective text color for the given style.
sourcefn background_color(style: &Style) -> Option<&ColorPair>
fn background_color(style: &Style) -> Option<&ColorPair>
Returns the effective background color for the given style.
Auto Trait Implementations
impl !RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl !UnwindSafe for Layout
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
sourceimpl<T> AnyWidget for T where
T: Widget + Debug + Send + Sync + Any,
impl<T> AnyWidget for T where
T: Widget + Debug + Send + Sync + Any,
sourcefn widget_type_id(&self) -> TypeId
fn widget_type_id(&self) -> TypeId
Returns the TypeId
of the widget.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcefn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcefn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcefn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more