Trait workspace2::dock::PanelHandle
source · 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§
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
Trait Implementations§
source§impl From<&dyn PanelHandle> for AnyView
impl From<&dyn PanelHandle> for AnyView
source§fn from(val: &dyn PanelHandle) -> Self
fn from(val: &dyn PanelHandle) -> Self
Converts to this type from the input type.