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