pub trait PanelHandle {
Show 14 methods // Required methods fn id(&self) -> usize; fn position(&self, cx: &WindowContext<'_>) -> DockPosition; fn position_is_valid( &self, position: DockPosition, cx: &WindowContext<'_> ) -> bool; fn set_position(&self, position: DockPosition, cx: &mut WindowContext<'_>); fn is_zoomed(&self, cx: &WindowContext<'_>) -> bool; fn set_zoomed(&self, zoomed: bool, cx: &mut WindowContext<'_>); fn set_active(&self, active: bool, cx: &mut WindowContext<'_>); fn size(&self, cx: &WindowContext<'_>) -> f32; fn set_size(&self, size: Option<f32>, cx: &mut WindowContext<'_>); fn icon_path(&self, cx: &WindowContext<'_>) -> Option<&'static str>; fn icon_tooltip( &self, cx: &WindowContext<'_> ) -> (String, Option<Box<dyn Action>>); fn icon_label(&self, cx: &WindowContext<'_>) -> Option<String>; fn has_focus(&self, cx: &WindowContext<'_>) -> bool; fn as_any(&self) -> &AnyViewHandle;
}

Required Methods§

source

fn id(&self) -> usize

source

fn position(&self, cx: &WindowContext<'_>) -> DockPosition

source

fn position_is_valid( &self, position: DockPosition, cx: &WindowContext<'_> ) -> bool

source

fn set_position(&self, position: DockPosition, cx: &mut WindowContext<'_>)

source

fn is_zoomed(&self, cx: &WindowContext<'_>) -> bool

source

fn set_zoomed(&self, zoomed: bool, cx: &mut WindowContext<'_>)

source

fn set_active(&self, active: bool, cx: &mut WindowContext<'_>)

source

fn size(&self, cx: &WindowContext<'_>) -> f32

source

fn set_size(&self, size: Option<f32>, cx: &mut WindowContext<'_>)

source

fn icon_path(&self, cx: &WindowContext<'_>) -> Option<&'static str>

source

fn icon_tooltip( &self, cx: &WindowContext<'_> ) -> (String, Option<Box<dyn Action>>)

source

fn icon_label(&self, cx: &WindowContext<'_>) -> Option<String>

source

fn has_focus(&self, cx: &WindowContext<'_>) -> bool

source

fn as_any(&self) -> &AnyViewHandle

Trait Implementations§

source§

impl From<&dyn PanelHandle> for AnyViewHandle

source§

fn from(val: &dyn PanelHandle) -> Self

Converts to this type from the input type.

Implementations on Foreign Types§

source§

impl<T> PanelHandle for ViewHandle<T>where T: Panel,

source§

fn id(&self) -> usize

source§

fn position(&self, cx: &WindowContext<'_>) -> DockPosition

source§

fn position_is_valid( &self, position: DockPosition, cx: &WindowContext<'_> ) -> bool

source§

fn set_position(&self, position: DockPosition, cx: &mut WindowContext<'_>)

source§

fn size(&self, cx: &WindowContext<'_>) -> f32

source§

fn set_size(&self, size: Option<f32>, cx: &mut WindowContext<'_>)

source§

fn is_zoomed(&self, cx: &WindowContext<'_>) -> bool

source§

fn set_zoomed(&self, zoomed: bool, cx: &mut WindowContext<'_>)

source§

fn set_active(&self, active: bool, cx: &mut WindowContext<'_>)

source§

fn icon_path(&self, cx: &WindowContext<'_>) -> Option<&'static str>

source§

fn icon_tooltip( &self, cx: &WindowContext<'_> ) -> (String, Option<Box<dyn Action>>)

source§

fn icon_label(&self, cx: &WindowContext<'_>) -> Option<String>

source§

fn has_focus(&self, cx: &WindowContext<'_>) -> bool

source§

fn as_any(&self) -> &AnyViewHandle

Implementors§