pub trait PanelHandle: Send + Sync {
Show 16 methods // Required methods fn entity_id(&self) -> EntityId; fn persistent_name(&self) -> &'static str; 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(&self, cx: &WindowContext<'_>) -> Option<Icon>; fn toggle_action(&self, cx: &WindowContext<'_>) -> Box<dyn Action>; fn icon_label(&self, cx: &WindowContext<'_>) -> Option<String>; fn has_focus(&self, cx: &WindowContext<'_>) -> bool; fn focus_handle(&self, cx: &AppContext) -> FocusHandle; fn to_any(&self) -> AnyView;
}

Required Methods§

source

fn entity_id(&self) -> EntityId

source

fn persistent_name(&self) -> &'static str

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(&self, cx: &WindowContext<'_>) -> Option<Icon>

source

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

source

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

source

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

source

fn focus_handle(&self, cx: &AppContext) -> FocusHandle

source

fn to_any(&self) -> AnyView

Trait Implementations§

source§

impl From<&dyn PanelHandle> for AnyView

source§

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

Converts to this type from the input type.

Implementations on Foreign Types§

source§

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

source§

fn entity_id(&self) -> EntityId

source§

fn persistent_name(&self) -> &'static str

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(&self, cx: &WindowContext<'_>) -> Option<Icon>

source§

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

source§

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

source§

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

source§

fn to_any(&self) -> AnyView

source§

fn focus_handle(&self, cx: &AppContext) -> FocusHandle

Implementors§