[−][src]Trait conrod_core::widget::Common
A trait implemented by all Widget types.
This trait provides access to a field of type CommonBuilder on the implementor. This allows
the Widget
trait to automatically provide a large number of methods including those from the
Positionable and Sizeable traits.
The Common trait can be automatically derived for widgets like so:
ⓘThis example is not tested
extern crate conrod_core; #[macro_use] extern crate conrod_derive; #[derive(WidgetCommon)] struct MyWidget { #[conrod(common_builder)] common: conrod_core::widget::CommonBuilder, // etc }
Required methods
fn common(&self) -> &CommonBuilder
Borrows the CommonBuilder
field.
fn common_mut(&mut self) -> &mut CommonBuilder
Mutably borrows the CommonBuilder
field.
Implementors
impl Common for BorderedRectangle
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl Common for Matrix
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl Common for Image
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl Common for Line
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl Common for Rectangle
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl Common for RoundedRectangle
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for Canvas<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for CollapsibleArea<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for DirectoryView<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for FileNavigator<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for Text<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for Tabs<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for TextBox<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for TextEdit<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for TitleBar<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a> Common for Toggle<'a>
[src]
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a, E> Common for EnvelopeEditor<'a, E> where
E: EnvelopePoint + 'a,
[src]
E: EnvelopePoint + 'a,
fn common(&self) -> &CommonBuilder
[src]
fn common_mut(&mut self) -> &mut CommonBuilder
[src]
impl<'a, N, E> Common for Graph<'a, N, E> where
N: Iterator,
N::Item: NodeId,
E: Iterator<Item = (NodeSocket<N::Item>, NodeSocket<N::Item>)>,
[src]
N: Iterator,
N::Item: NodeId,
E: Iterator<Item = (NodeSocket<N::Item>, NodeSocket<N::Item>)>,