Struct qt_core::TextInteractionFlag
source · pub struct TextInteractionFlag(/* private fields */);
Expand description
This enum specifies how a text displaying widget reacts to user input.
C++ enum: Qt::TextInteractionFlag
.
This enum specifies how a text displaying widget reacts to user input.
The TextInteractionFlags type is a typedef for QFlags<TextInteractionFlag>. It stores an OR combination of TextInteractionFlag values.
Implementations§
source§impl TextInteractionFlag
impl TextInteractionFlag
sourcepub const NoTextInteraction: TextInteractionFlag = _
pub const NoTextInteraction: TextInteractionFlag = _
No interaction with the text is possible. (C++ enum variant: NoTextInteraction = 0
)
sourcepub const TextSelectableByMouse: TextInteractionFlag = _
pub const TextSelectableByMouse: TextInteractionFlag = _
Text can be selected with the mouse and copied to the clipboard using a context menu or standard keyboard shortcuts. (C++ enum variant: TextSelectableByMouse = 1
)
sourcepub const TextSelectableByKeyboard: TextInteractionFlag = _
pub const TextSelectableByKeyboard: TextInteractionFlag = _
Text can be selected with the cursor keys on the keyboard. A text cursor is shown. (C++ enum variant: TextSelectableByKeyboard = 2
)
sourcepub const LinksAccessibleByMouse: TextInteractionFlag = _
pub const LinksAccessibleByMouse: TextInteractionFlag = _
Links can be highlighted and activated with the mouse. (C++ enum variant: LinksAccessibleByMouse = 4
)
sourcepub const LinksAccessibleByKeyboard: TextInteractionFlag = _
pub const LinksAccessibleByKeyboard: TextInteractionFlag = _
Links can be focused using tab and activated with enter. (C++ enum variant: LinksAccessibleByKeyboard = 8
)
sourcepub const TextEditable: TextInteractionFlag = _
pub const TextEditable: TextInteractionFlag = _
The text is fully editable. (C++ enum variant: TextEditable = 16
)
sourcepub const TextEditorInteraction: TextInteractionFlag = _
pub const TextEditorInteraction: TextInteractionFlag = _
The default for a text editor. (C++ enum variant: TextEditorInteraction = 19
)
sourcepub const TextBrowserInteraction: TextInteractionFlag = _
pub const TextBrowserInteraction: TextInteractionFlag = _
The default for QTextBrowser. (C++ enum variant: TextBrowserInteraction = 13
)
Trait Implementations§
source§impl<T: Into<QFlags<TextInteractionFlag>>> BitOr<T> for TextInteractionFlag
impl<T: Into<QFlags<TextInteractionFlag>>> BitOr<T> for TextInteractionFlag
§type Output = QFlags<TextInteractionFlag>
type Output = QFlags<TextInteractionFlag>
|
operator.source§impl Clone for TextInteractionFlag
impl Clone for TextInteractionFlag
source§fn clone(&self) -> TextInteractionFlag
fn clone(&self) -> TextInteractionFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextInteractionFlag
impl Debug for TextInteractionFlag
source§impl From<TextInteractionFlag> for QFlags<TextInteractionFlag>
impl From<TextInteractionFlag> for QFlags<TextInteractionFlag>
source§fn from(value: TextInteractionFlag) -> Self
fn from(value: TextInteractionFlag) -> Self
source§impl From<TextInteractionFlag> for c_int
impl From<TextInteractionFlag> for c_int
source§fn from(value: TextInteractionFlag) -> Self
fn from(value: TextInteractionFlag) -> Self
source§impl From<i32> for TextInteractionFlag
impl From<i32> for TextInteractionFlag
source§impl PartialEq for TextInteractionFlag
impl PartialEq for TextInteractionFlag
source§fn eq(&self, other: &TextInteractionFlag) -> bool
fn eq(&self, other: &TextInteractionFlag) -> bool
self
and other
values to be equal, and is used
by ==
.