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
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 more