pub struct PluginFocusable {
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
pub label: String,
pub action: PluginFocusableAction,
}Expand description
A plugin-registered focusable region
Represents a rectangular area in the terminal grid that can be focused and activated via hint mode. Plugins can register these to make custom UI elements or terminal content navigable.
Fields§
§x: u16Column position in terminal grid (0-based)
y: u16Row position in terminal grid (0-based)
width: u16Width in terminal cells
height: u16Height in terminal cells
label: StringLabel to display for this focusable (used in hint mode)
action: PluginFocusableActionAction to perform when this focusable is activated
Trait Implementations§
Source§impl Clone for PluginFocusable
impl Clone for PluginFocusable
Source§fn clone(&self) -> PluginFocusable
fn clone(&self) -> PluginFocusable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginFocusable
impl Debug for PluginFocusable
Source§impl PartialEq for PluginFocusable
impl PartialEq for PluginFocusable
impl StructuralPartialEq for PluginFocusable
Auto Trait Implementations§
impl Freeze for PluginFocusable
impl RefUnwindSafe for PluginFocusable
impl Send for PluginFocusable
impl Sync for PluginFocusable
impl Unpin for PluginFocusable
impl UnsafeUnpin for PluginFocusable
impl UnwindSafe for PluginFocusable
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.