Struct qt_gui::q_input_method_event::AttributeType
source · pub struct AttributeType(/* private fields */);
Expand description
Implementations§
source§impl AttributeType
impl AttributeType
sourcepub const TextFormat: AttributeType = _
pub const TextFormat: AttributeType = _
A QTextCharFormat for the part of the preedit string specified by start and length. value contains a QVariant of type QTextFormat specifying rendering of this part of the preedit string. There should be at most one format for every part of the preedit string. If several are specified for any character in the string the behaviour is undefined. A conforming implementation has to at least honor the backgroundColor, textColor and fontUnderline properties of the format. (C++ enum variant: TextFormat = 0
)
sourcepub const Cursor: AttributeType = _
pub const Cursor: AttributeType = _
If set, a cursor should be shown inside the preedit string at position start. The length variable determines whether the cursor is visible or not. If the length is 0 the cursor is invisible. If value is a QVariant of type QColor this color will be used for rendering the cursor, otherwise the color of the surrounding text will be used. There should be at most one Cursor attribute per event. If several are specified the behaviour is undefined. (C++ enum variant: Cursor = 1
)
sourcepub const Language: AttributeType = _
pub const Language: AttributeType = _
The variant contains a QLocale object specifying the language of a certain part of the preedit string. There should be at most one language set for every part of the preedit string. If several are specified for any character in the string the behavior is undefined. (C++ enum variant: Language = 2
)
sourcepub const Ruby: AttributeType = _
pub const Ruby: AttributeType = _
The ruby text for a part of the preedit string. There should be at most one ruby text set for every part of the preedit string. If several are specified for any character in the string the behaviour is undefined. (C++ enum variant: Ruby = 3
)
sourcepub const Selection: AttributeType = _
pub const Selection: AttributeType = _
If set, the edit cursor should be moved to the specified position in the editor text contents. In contrast with Cursor
, this attribute does not work on the preedit text, but on the surrounding text. The cursor will be moved after the commit string has been committed, and the preedit string will be located at the new edit position. The start position specifies the new position and the length variable can be used to set a selection starting from that point. The value is unused. (C++ enum variant: Selection = 4
)
Trait Implementations§
source§impl Clone for AttributeType
impl Clone for AttributeType
source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributeType
impl Debug for AttributeType
source§impl From<AttributeType> for c_int
impl From<AttributeType> for c_int
source§fn from(value: AttributeType) -> Self
fn from(value: AttributeType) -> Self
source§impl From<i32> for AttributeType
impl From<i32> for AttributeType
source§impl PartialEq for AttributeType
impl PartialEq for AttributeType
source§fn eq(&self, other: &AttributeType) -> bool
fn eq(&self, other: &AttributeType) -> bool
self
and other
values to be equal, and is used
by ==
.