[−][src]Struct qt_widgets::QStyleOptionComboBox
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
C++ class: QStyleOptionComboBox
.
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
QStyleOptionButton contains all the information that QStyle functions need to draw QComboBox.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
Methods
impl QStyleOptionComboBox
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QStyleOptionComboBox>>
) -> MutRef<QStyleOptionComboBox>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOptionComboBox>>
) -> MutRef<QStyleOptionComboBox>
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
Calls C++ function: QStyleOptionComboBox& QStyleOptionComboBox::operator=(const QStyleOptionComboBox& other)
.
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
QStyleOptionButton contains all the information that QStyle functions need to draw QComboBox.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
pub unsafe fn current_icon(&self) -> Ref<QIcon>
[src]
Returns a reference to the currentIcon
field.
pub unsafe fn current_icon_mut(&mut self) -> MutRef<QIcon>
[src]
Returns a mutable reference to the currentIcon
field.
pub unsafe fn current_text(&self) -> Ref<QString>
[src]
Returns a reference to the currentText
field.
pub unsafe fn current_text_mut(&mut self) -> MutRef<QString>
[src]
Returns a mutable reference to the currentText
field.
pub unsafe fn editable(&self) -> bool
[src]
Returns the value of the editable
field.
pub unsafe fn frame(&self) -> bool
[src]
Returns the value of the frame
field.
pub unsafe fn icon_size(&self) -> Ref<QSize>
[src]
Returns a reference to the iconSize
field.
pub unsafe fn icon_size_mut(&mut self) -> MutRef<QSize>
[src]
Returns a mutable reference to the iconSize
field.
pub unsafe fn new() -> CppBox<QStyleOptionComboBox>
[src]
Creates a QStyleOptionComboBox, initializing the members variables to their default values.
Calls C++ function: [constructor] void QStyleOptionComboBox::QStyleOptionComboBox()
.
Creates a QStyleOptionComboBox, initializing the members variables to their default values.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QStyleOptionComboBox>>
) -> CppBox<QStyleOptionComboBox>
[src]
other: impl CastInto<Ref<QStyleOptionComboBox>>
) -> CppBox<QStyleOptionComboBox>
Constructs a copy of the other style option.
Calls C++ function: [constructor] void QStyleOptionComboBox::QStyleOptionComboBox(const QStyleOptionComboBox& other)
.
Constructs a copy of the other style option.
pub unsafe fn popup_rect(&self) -> Ref<QRect>
[src]
Returns a reference to the popupRect
field.
pub unsafe fn popup_rect_mut(&mut self) -> MutRef<QRect>
[src]
Returns a mutable reference to the popupRect
field.
pub unsafe fn set_current_icon(&mut self, value: impl CastInto<Ref<QIcon>>)
[src]
Sets the value of the currentIcon
field.
pub unsafe fn set_current_text(&mut self, value: impl CastInto<Ref<QString>>)
[src]
Sets the value of the currentText
field.
pub unsafe fn set_editable(&mut self, value: bool)
[src]
Sets the value of the editable
field.
pub unsafe fn set_frame(&mut self, value: bool)
[src]
Sets the value of the frame
field.
pub unsafe fn set_icon_size(&mut self, value: impl CastInto<Ref<QSize>>)
[src]
Sets the value of the iconSize
field.
pub unsafe fn set_popup_rect(&mut self, value: impl CastInto<Ref<QRect>>)
[src]
Sets the value of the popupRect
field.
Methods from Deref<Target = QStyleOptionComplex>
pub unsafe fn active_sub_controls(&self) -> QFlags<SubControl>
[src]
Returns a reference to the activeSubControls
field.
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QStyleOptionComplex>>
) -> MutRef<QStyleOptionComplex>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOptionComplex>>
) -> MutRef<QStyleOptionComplex>
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.
Calls C++ function: QStyleOptionComplex& QStyleOptionComplex::operator=(const QStyleOptionComplex& other)
.
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.
This class is not used on its own. Instead it is used to derive other complex control options, for example QStyleOptionSlider and QStyleOptionSpinBox.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator).
For an example demonstrating how style options can be used, see the Styles example.
pub unsafe fn set_active_sub_controls(&mut self, value: QFlags<SubControl>)
[src]
Sets the value of the activeSubControls
field.
pub unsafe fn set_sub_controls(&mut self, value: QFlags<SubControl>)
[src]
Sets the value of the subControls
field.
pub unsafe fn sub_controls(&self) -> QFlags<SubControl>
[src]
Returns a reference to the subControls
field.
Trait Implementations
impl Deref for QStyleOptionComboBox
[src]
type Target = QStyleOptionComplex
The resulting type after dereferencing.
fn deref(&self) -> &QStyleOptionComplex
[src]
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionComboBox* ptr)
.
impl DerefMut for QStyleOptionComboBox
[src]
fn deref_mut(&mut self) -> &mut QStyleOptionComplex
[src]
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionComboBox* ptr)
.
impl StaticUpcast<QStyleOptionComplex> for QStyleOptionComboBox
[src]
unsafe fn static_upcast(
ptr: Ptr<QStyleOptionComboBox>
) -> Ptr<QStyleOptionComplex>
[src]
ptr: Ptr<QStyleOptionComboBox>
) -> Ptr<QStyleOptionComplex>
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionComboBox* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionComboBox>
) -> MutPtr<QStyleOptionComplex>
[src]
ptr: MutPtr<QStyleOptionComboBox>
) -> MutPtr<QStyleOptionComplex>
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionComboBox* ptr)
.
impl StaticUpcast<QStyleOption> for QStyleOptionComboBox
[src]
unsafe fn static_upcast(ptr: Ptr<QStyleOptionComboBox>) -> Ptr<QStyleOption>
[src]
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionComboBox* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionComboBox>
) -> MutPtr<QStyleOption>
[src]
ptr: MutPtr<QStyleOptionComboBox>
) -> MutPtr<QStyleOption>
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionComboBox* ptr)
.
impl StaticDowncast<QStyleOptionComboBox> for QStyleOptionComplex
[src]
unsafe fn static_downcast(
ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionComboBox>
[src]
ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionComboBox>
Calls C++ function: QStyleOptionComboBox* static_cast<QStyleOptionComboBox*>(QStyleOptionComplex* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOptionComplex>
) -> MutPtr<QStyleOptionComboBox>
[src]
ptr: MutPtr<QStyleOptionComplex>
) -> MutPtr<QStyleOptionComboBox>
Calls C++ function: QStyleOptionComboBox* static_cast<QStyleOptionComboBox*>(QStyleOptionComplex* ptr)
.
impl StaticDowncast<QStyleOptionComboBox> for QStyleOption
[src]
unsafe fn static_downcast(ptr: Ptr<QStyleOption>) -> Ptr<QStyleOptionComboBox>
[src]
Calls C++ function: QStyleOptionComboBox* static_cast<QStyleOptionComboBox*>(QStyleOption* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionComboBox>
[src]
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionComboBox>
Calls C++ function: QStyleOptionComboBox* static_cast<QStyleOptionComboBox*>(QStyleOption* ptr)
.
impl CppDeletable for QStyleOptionComboBox
[src]
unsafe fn delete(&mut self)
[src]
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
Calls C++ function: [destructor] void QStyleOptionComboBox::~QStyleOptionComboBox()
.
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.
QStyleOptionButton contains all the information that QStyle functions need to draw QComboBox.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
Auto Trait Implementations
impl Send for QStyleOptionComboBox
impl Unpin for QStyleOptionComboBox
impl Sync for QStyleOptionComboBox
impl UnwindSafe for QStyleOptionComboBox
impl RefUnwindSafe for QStyleOptionComboBox
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,