[−][src]Struct ezgui::Widget
Implementations
impl Widget
[src]
pub fn centered(self) -> Widget
[src]
pub fn centered_horiz(self) -> Widget
[src]
pub fn centered_vert(self) -> Widget
[src]
pub fn centered_cross(self) -> Widget
[src]
pub fn evenly_spaced(self) -> Widget
[src]
pub fn fill_height(self) -> Widget
[src]
pub fn flex_wrap(self, ctx: &EventCtx, percent_width: usize) -> Widget
[src]
pub fn force_width(self, width: f64) -> Widget
[src]
pub fn force_width_pct(self, ctx: &EventCtx, percent_width: usize) -> Widget
[src]
pub fn get_width_for_forcing(&self) -> f64
[src]
pub fn bg(self, color: Color) -> Widget
[src]
pub fn outline(self, thickness: f64, color: Color) -> Widget
[src]
pub fn fully_rounded(self) -> Widget
[src]
pub fn container(self) -> Widget
[src]
pub fn padding(self, pixels: usize) -> Widget
[src]
pub fn margin_above(self, pixels: usize) -> Widget
[src]
pub fn margin_below(self, pixels: usize) -> Widget
[src]
pub fn margin_left(self, pixels: usize) -> Widget
[src]
pub fn margin_right(self, pixels: usize) -> Widget
[src]
pub fn margin_horiz(self, pixels: usize) -> Widget
[src]
pub fn margin_vert(self, pixels: usize) -> Widget
[src]
pub fn align_left(self) -> Widget
[src]
pub fn align_right(self) -> Widget
[src]
pub fn align_bottom(self) -> Widget
[src]
pub fn align_vert_center(self) -> Widget
[src]
pub fn named<I: Into<String>>(self, id: I) -> Widget
[src]
impl Widget
[src]
pub fn new(widget: Box<dyn WidgetImpl>) -> Widget
[src]
pub fn draw_batch(ctx: &EventCtx, batch: GeomBatch) -> Widget
[src]
pub fn draw_svg<I: Into<String>>(ctx: &EventCtx, filename: I) -> Widget
[src]
pub fn draw_svg_transform(
ctx: &EventCtx,
filename: &str,
rewrite: RewriteColor
) -> Widget
[src]
ctx: &EventCtx,
filename: &str,
rewrite: RewriteColor
) -> Widget
pub fn text_entry(
ctx: &EventCtx,
prefilled: String,
exclusive_focus: bool
) -> Widget
[src]
ctx: &EventCtx,
prefilled: String,
exclusive_focus: bool
) -> Widget
pub fn dropdown<T: 'static + PartialEq + Clone + Debug>(
ctx: &EventCtx,
label: &str,
default_value: T,
choices: Vec<Choice<T>>
) -> Widget
[src]
ctx: &EventCtx,
label: &str,
default_value: T,
choices: Vec<Choice<T>>
) -> Widget
pub fn custom_row(widgets: Vec<Widget>) -> Widget
[src]
pub fn row(widgets: Vec<Widget>) -> Widget
[src]
pub fn custom_col(widgets: Vec<Widget>) -> Widget
[src]
pub fn col(widgets: Vec<Widget>) -> Widget
[src]
pub fn nothing() -> Widget
[src]
pub fn to_geom(
self,
ctx: &EventCtx,
exact_pct_width: Option<f64>
) -> (GeomBatch, Polygon)
[src]
self,
ctx: &EventCtx,
exact_pct_width: Option<f64>
) -> (GeomBatch, Polygon)
pub fn horiz_separator(ctx: &mut EventCtx, pct_width: f64) -> Widget
[src]
pub fn vert_separator(ctx: &mut EventCtx, height_px: f64) -> Widget
[src]
impl Widget
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Widget
impl !Send for Widget
impl !Sync for Widget
impl Unpin for Widget
impl !UnwindSafe for Widget
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
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>,