TextSelectorLayer
struct · ferroui-controls · v0.5.0
struct TextSelectorLayer
The surface that hosts the text selection handles.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TextSelectorLayer>
Returns a strong reference to this object.
new
fn new() -> Ref<Self>
available_size
fn available_size(self: &Self) -> Size
The size the layer was last arranged with.
get_text_selector_layer
fn get_text_selector_layer(visual: &Visual) -> Option<Ref<TextSelectorLayer>>
Retrieves the text selector layer associated with the specified visual, if any.
add
fn add(self: &Self, control: impl IntoRef<Control>)
Adds a control to the layer.
remove
fn remove(self: &Self, control: impl IntoRef<Control>)
Removes a control from the layer.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeCanvasImplExtControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TextSelectorLayer>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplInteractiveImplInputElementImplControlImplPanelImplCanvasImplVisualImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.