Struct egui::containers::ScrollArea [−][src]
Add vertical scrolling to a contained Ui
.
Implementations
impl ScrollArea
[src]
pub fn auto_sized() -> Self
[src]
Will make the area be as high as it is allowed to be (i.e. fill the Ui
it is in)
pub fn from_max_height(max_height: f32) -> Self
[src]
Use f32::INFINITY
if you want the scroll area to expand to fit the surrounding Ui
pub fn always_show_scroll(self, always_show_scroll: bool) -> Self
[src]
If false
(default), the scroll bar will be hidden when not needed/
If true
, the scroll bar will always be displayed even if not needed.
pub fn id_source(self, id_source: impl Hash) -> Self
[src]
A source for the unique Id
, e.g. .id_source("second_scroll_area")
or .id_source(loop_index)
.
pub fn scroll_offset(self, offset: f32) -> Self
[src]
Set the vertical scroll offset position.
See also: Ui::scroll_to_cursor
and
Response::scroll_to_me
impl ScrollArea
[src]
Trait Implementations
impl Clone for ScrollArea
[src]
fn clone(&self) -> ScrollArea
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScrollArea
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScrollArea
impl Send for ScrollArea
impl Sync for ScrollArea
impl Unpin for ScrollArea
impl UnwindSafe for ScrollArea
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,