Skip to main content

StyledTextCtrlEvent

Enum StyledTextCtrlEvent 

Source
pub enum StyledTextCtrlEvent {
Show 28 variants Change, StyleNeeded, CharAdded, SavePointReached, SavePointLeft, RoModifyAttempt, DoubleClick, UpdateUI, Modified, MacroRecord, MarginClick, NeedShown, Painted, UserListSelection, DwellStart, DwellEnd, StartDrag, DragOver, DoDrop, Zoom, HotspotClick, HotspotDoubleClick, CallTipClick, AutoCompSelection, IndicatorClick, IndicatorRelease, AutoCompCancelled, AutoCompCharDeleted,
}
Expand description

Events emitted by StyledTextCtrl

Variants§

§

Change

The text has changed

§

StyleNeeded

A style is needed for a range of text

§

CharAdded

A character has been added to the text

§

SavePointReached

The save point has been reached

§

SavePointLeft

The save point has been left

§

RoModifyAttempt

An attempt was made to change read-only text

§

DoubleClick

The text was double-clicked

§

UpdateUI

The UI needs to be updated

§

Modified

The text has been modified

§

MacroRecord

A macro recording event

§

MarginClick

A margin was clicked

§

NeedShown

Text needs to be shown

§

Painted

The control has been painted

§

UserListSelection

A user list selection was made

§

DwellStart

Mouse dwelling started

§

DwellEnd

Mouse dwelling ended

§

StartDrag

Drag operation started

§

DragOver

Drag operation over the control

§

DoDrop

Drop operation completed

§

Zoom

Zoom level changed

§

HotspotClick

A hotspot was clicked

§

HotspotDoubleClick

A hotspot was double-clicked

§

CallTipClick

A call tip was clicked

§

AutoCompSelection

An autocompletion selection was made

§

IndicatorClick

An indicator was clicked

§

IndicatorRelease

An indicator was released

§

AutoCompCancelled

Autocompletion was cancelled

§

AutoCompCharDeleted

A character was deleted from autocompletion

Trait Implementations§

Source§

impl Clone for StyledTextCtrlEvent

Source§

fn clone(&self) -> StyledTextCtrlEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for StyledTextCtrlEvent

Source§

impl Debug for StyledTextCtrlEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StyledTextCtrlEvent

Source§

impl PartialEq for StyledTextCtrlEvent

Source§

fn eq(&self, other: &StyledTextCtrlEvent) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for StyledTextCtrlEvent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.