Enum vte4::CursorShape
source · #[non_exhaustive]pub enum CursorShape {
Block,
Ibeam,
Underline,
}
Expand description
An enumerated type which can be used to indicate what should the terminal draw at the cursor position.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Block
Draw a block cursor. This is the default.
Ibeam
Draw a vertical bar on the left side of character. This is similar to the default cursor for other GTK+ widgets.
Underline
Draw a horizontal bar below the character.
Trait Implementations§
source§impl Clone for CursorShape
impl Clone for CursorShape
source§fn clone(&self) -> CursorShape
fn clone(&self) -> CursorShape
Returns a copy 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 CursorShape
impl Debug for CursorShape
source§impl From<CursorShape> for Value
impl From<CursorShape> for Value
source§fn from(v: CursorShape) -> Self
fn from(v: CursorShape) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for CursorShape
impl<'a> FromValue<'a> for CursorShape
§type Checker = GenericValueTypeChecker<CursorShape>
type Checker = GenericValueTypeChecker<CursorShape>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for CursorShape
impl HasParamSpec for CursorShape
type ParamSpec = ParamSpecEnum
§type SetValue = CursorShape
type SetValue = CursorShape
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: CursorShape) -> ParamSpecEnumBuilder<'_, CursorShape>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for CursorShape
impl Hash for CursorShape
source§impl Ord for CursorShape
impl Ord for CursorShape
source§fn cmp(&self, other: &CursorShape) -> Ordering
fn cmp(&self, other: &CursorShape) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CursorShape
impl PartialEq for CursorShape
source§fn eq(&self, other: &CursorShape) -> bool
fn eq(&self, other: &CursorShape) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CursorShape
impl PartialOrd for CursorShape
source§fn partial_cmp(&self, other: &CursorShape) -> Option<Ordering>
fn partial_cmp(&self, other: &CursorShape) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for CursorShape
impl StaticType for CursorShape
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for CursorShape
impl ToValue for CursorShape
source§impl ValueType for CursorShape
impl ValueType for CursorShape
§type Type = CursorShape
type Type = CursorShape
Type to get the
Type
from. Read moreimpl Copy for CursorShape
impl Eq for CursorShape
impl StructuralPartialEq for CursorShape
Auto Trait Implementations§
impl Freeze for CursorShape
impl RefUnwindSafe for CursorShape
impl Send for CursorShape
impl Sync for CursorShape
impl Unpin for CursorShape
impl UnwindSafe for CursorShape
Blanket Implementations§
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.