[−][src]Struct widgetry::Panel
Fields
top_level: Widget
horiz: HorizontalAlignment
vert: VerticalAlignment
dims: Dims
scrollable_x: bool
scrollable_y: bool
contents_dims: ScreenDims
container_dims: ScreenDims
clip_rect: Option<ScreenRectangle>
Implementations
impl Panel
[src]
pub fn new(top_level: Widget) -> PanelBuilder
[src]
fn update_container_dims_for_canvas_dims(&mut self, canvas_dims: ScreenDims)
[src]
fn recompute_scrollbar_layout(&mut self, ctx: &EventCtx<'_>)
[src]
fn recompute_layout(&mut self, ctx: &EventCtx<'_>, recompute_bg: bool)
[src]
fn scroll_offset(&self) -> (f64, f64)
[src]
fn update_scroll_sliders(
&mut self,
ctx: &EventCtx<'_>,
offset: (f64, f64)
) -> bool
[src]
&mut self,
ctx: &EventCtx<'_>,
offset: (f64, f64)
) -> bool
fn set_scroll_offset(&mut self, ctx: &EventCtx<'_>, offset: (f64, f64))
[src]
pub fn event(&mut self, ctx: &mut EventCtx<'_>) -> Outcome
[src]
pub fn draw(&self, g: &mut GfxCtx<'_>)
[src]
pub fn get_all_click_actions(&self) -> HashSet<String>
[src]
pub fn restore(&mut self, ctx: &mut EventCtx<'_>, prev: &Panel)
[src]
pub fn scroll_to_member(&mut self, ctx: &EventCtx<'_>, name: String)
[src]
pub fn has_widget(&self, name: &str) -> bool
[src]
pub fn slider(&self, name: &str) -> &Slider
[src]
pub fn slider_mut(&mut self, name: &str) -> &mut Slider
[src]
pub fn area_slider(&self, name: &str) -> &AreaSlider
[src]
pub fn take_menu_choice<T: 'static>(&mut self, name: &str) -> T
[src]
pub fn is_checked(&self, name: &str) -> bool
[src]
pub fn maybe_is_checked(&self, name: &str) -> Option<bool>
[src]
pub fn text_box(&self, name: &str) -> String
[src]
pub fn spinner(&self, name: &str) -> isize
[src]
pub fn modify_spinner(&mut self, name: &str, delta: isize)
[src]
pub fn dropdown_value<T: 'static + PartialEq + Clone, I: Into<String>>(
&self,
name: I
) -> T
[src]
&self,
name: I
) -> T
pub fn maybe_dropdown_value<T: 'static + PartialEq + Clone, I: Into<String>>(
&self,
name: I
) -> Option<T>
[src]
&self,
name: I
) -> Option<T>
pub fn persistent_split_value<T: 'static + PartialEq + Clone>(
&self,
name: &str
) -> T
[src]
&self,
name: &str
) -> T
pub fn autocomplete_done<T: 'static + Clone>(
&self,
name: &str
) -> Option<Vec<T>>
[src]
&self,
name: &str
) -> Option<Vec<T>>
pub fn maybe_find(&self, name: &str) -> Option<&Widget>
[src]
pub fn find<T: WidgetImpl>(&self, name: &str) -> &T
[src]
pub fn find_mut<T: WidgetImpl>(&mut self, name: &str) -> &mut T
[src]
pub fn rect_of(&self, name: &str) -> &ScreenRectangle
[src]
pub fn center_of(&self, name: &str) -> ScreenPt
[src]
pub fn center_of_panel(&self) -> ScreenPt
[src]
pub fn align(&mut self, horiz: HorizontalAlignment, vert: VerticalAlignment)
[src]
pub fn align_above(&mut self, ctx: &mut EventCtx<'_>, other: &Panel)
[src]
pub fn align_below(&mut self, ctx: &mut EventCtx<'_>, other: &Panel, pad: f64)
[src]
pub fn replace(&mut self, ctx: &mut EventCtx<'_>, id: &str, new: Widget)
[src]
pub fn clicked_outside(&self, ctx: &mut EventCtx<'_>) -> bool
[src]
pub fn currently_hovering(&self) -> Option<&String>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Panel
impl !Send for Panel
impl !Sync for Panel
impl Unpin for Panel
impl !UnwindSafe for Panel
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> Same<T> for T
type Output = T
Should always be Self
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>,