[][src]Trait conrod_core::widget::Common

pub trait Common {
    fn common(&self) -> &CommonBuilder;
fn common_mut(&mut self) -> &mut CommonBuilder; }

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.

Loading content...

Implementors

impl Common for BorderedRectangle[src]

impl Common for Matrix[src]

impl Common for Image[src]

impl Common for Line[src]

impl Common for Rectangle[src]

impl Common for RoundedRectangle[src]

impl<'a> Common for Canvas<'a>[src]

impl<'a> Common for CollapsibleArea<'a>[src]

impl<'a> Common for DirectoryView<'a>[src]

impl<'a> Common for FileNavigator<'a>[src]

impl<'a> Common for Text<'a>[src]

impl<'a> Common for Tabs<'a>[src]

impl<'a> Common for TextBox<'a>[src]

impl<'a> Common for TextEdit<'a>[src]

impl<'a> Common for TitleBar<'a>[src]

impl<'a> Common for Toggle<'a>[src]

impl<'a, E> Common for EnvelopeEditor<'a, E> where
    E: EnvelopePoint + 'a, 
[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]

impl<'a, S> Common for Button<'a, S>[src]

impl<'a, T> Common for NumberDialer<'a, T>[src]

impl<'a, T> Common for RangeSlider<'a, T>[src]

impl<'a, T> Common for Slider<'a, T>[src]

impl<'a, T: 'a> Common for DropDownList<'a, T>[src]

impl<'a, X, Y> Common for XYPad<'a, X, Y>[src]

impl<A> Common for Scrollbar<A>[src]

impl<D, S> Common for List<D, S>[src]

impl<I> Common for PointPath<I>[src]

impl<I> Common for Polygon<I>[src]

impl<M, D, S> Common for ListSelect<M, D, S>[src]

impl<S> Common for Oval<S>[src]

impl<S, I> Common for Triangles<S, I>[src]

impl<W> Common for Node<W>[src]

impl<X, Y, F> Common for PlotPath<X, Y, F>[src]

impl<X, Y, I> Common for Grid<X, Y, I>[src]

Loading content...