Struct mush::widgets::node::Node [−] [src]

pub struct Node<'a> {
    // some fields omitted
}

Methods

impl<'a> Node<'a>

fn new() -> Node<'a>

Trait Implementations

impl<'a> CustomWidget for Node<'a>

type State = NodeState

fn update<C>(self, state: NodeState, ui_id: UiId, ui: &mut Ui<C, Node<'a>>) -> WidgetUpdate<NodeState> where C: CharacterCache

fn set<C>(self, ui_id: usize, ui: &mut Ui<C, Self>) where C: CharacterCache

impl<'a> Labelable<'a> for Node<'a>

fn label(self, text: &'a str) -> Self

fn label_color(self, color: Color) -> Self

fn label_font_size(self, size: FontSize) -> Self

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self

fn small_font<C>(self, ui: &Ui<C, ()>) -> Self

fn medium_font<C>(self, ui: &Ui<C, ()>) -> Self

fn large_font<C>(self, ui: &Ui<C, ()>) -> Self

impl<'a> Positionable for Node<'a>

fn position(self, pos: Position) -> Node<'a>

fn horizontal_align(self, _h_align: HorizontalAlign) -> Self

fn vertical_align(self, _v_align: VerticalAlign) -> Self

fn point(self, point: [f64; 2]) -> Self

fn xy(self, x: f64, y: f64) -> Self

fn relative(self, point: [f64; 2]) -> Self

fn relative_xy(self, x: f64, y: f64) -> Self

fn relative_to(self, ui_id: usize, point: [f64; 2]) -> Self

fn relative_xy_to(self, ui_id: usize, x: f64, y: f64) -> Self

fn down(self, pixels: f64) -> Self

fn up(self, pixels: f64) -> Self

fn left(self, pixels: f64) -> Self

fn right(self, pixels: f64) -> Self

fn down_from(self, ui_id: usize, pixels: f64) -> Self

fn up_from(self, ui_id: usize, pixels: f64) -> Self

fn left_from(self, ui_id: usize, pixels: f64) -> Self

fn right_from(self, ui_id: usize, pixels: f64) -> Self

fn align_left(self) -> Self

fn align_middle_x(self) -> Self

fn align_right(self) -> Self

fn align_top(self) -> Self

fn align_middle_y(self) -> Self

fn align_bottom(self) -> Self

fn place(self, place: Place, maybe_id: Option<usize>) -> Self

fn middle_of(self, id: usize) -> Self

fn top_left_of(self, id: usize) -> Self

fn top_right_of(self, id: usize) -> Self

fn bottom_left_of(self, id: usize) -> Self

fn bottom_right_of(self, id: usize) -> Self

fn mid_top_of(self, id: usize) -> Self

fn mid_bottom_of(self, id: usize) -> Self

fn mid_left_of(self, id: usize) -> Self

fn mid_right_of(self, id: usize) -> Self

fn middle(self) -> Self

fn top_left(self) -> Self

fn top_right(self) -> Self

fn bottom_left(self) -> Self

fn bottom_right(self) -> Self

fn mid_top(self) -> Self

fn mid_bottom(self) -> Self

fn mid_left(self) -> Self

fn mid_right(self) -> Self

impl<'a> Sizeable for Node<'a>

fn width(self, w: f64) -> Self

fn height(self, h: f64) -> Self

fn dim(self, dim: [f64; 2]) -> Self

fn dimensions(self, width: f64, height: f64) -> Self

impl<'a> Colorable for Node<'a>

fn color(self, color: Color) -> Self

fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

fn rgb(self, r: f32, g: f32, b: f32) -> Self

fn hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

fn hsl(self, h: f32, s: f32, l: f32) -> Self

impl<'a> Frameable for Node<'a>

fn frame(self, width: f64) -> Self

fn frame_color(self, color: Color) -> Self

fn frame_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

fn frame_rgb(self, r: f32, g: f32, b: f32) -> Self

fn frame_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

fn frame_hsl(self, h: f32, s: f32, l: f32) -> Self

Derived Implementations

impl<'a> Debug for Node<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'a> Clone for Node<'a>

fn clone(&self) -> Node<'a>

fn clone_from(&mut self, source: &Self)