[−][src]Struct qt_widgets::QStyleOptionTabWidgetFrame
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.
C++ class: QStyleOptionTabWidgetFrame
.
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.
QStyleOptionTabWidgetFrame contains all the information that QStyle functions need to draw the frame around QTabWidget.
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 QStyleOptionTabWidgetFrame
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QStyleOptionTabWidgetFrame>>
) -> MutRef<QStyleOptionTabWidgetFrame>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOptionTabWidgetFrame>>
) -> MutRef<QStyleOptionTabWidgetFrame>
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.
Calls C++ function: QStyleOptionTabWidgetFrame& QStyleOptionTabWidgetFrame::operator=(const QStyleOptionTabWidgetFrame& other)
.
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.
QStyleOptionTabWidgetFrame contains all the information that QStyle functions need to draw the frame around QTabWidget.
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 left_corner_widget_size(&self) -> Ref<QSize>
[src]
Returns a reference to the leftCornerWidgetSize
field.
pub unsafe fn left_corner_widget_size_mut(&mut self) -> MutRef<QSize>
[src]
Returns a mutable reference to the leftCornerWidgetSize
field.
pub unsafe fn line_width(&self) -> c_int
[src]
Returns the value of the lineWidth
field.
pub unsafe fn mid_line_width(&self) -> c_int
[src]
Returns the value of the midLineWidth
field.
pub unsafe fn new() -> CppBox<QStyleOptionTabWidgetFrame>
[src]
Constructs a QStyleOptionTabWidgetFrame, initializing the members variables to their default values.
Calls C++ function: [constructor] void QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame()
.
Constructs a QStyleOptionTabWidgetFrame, initializing the members variables to their default values.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QStyleOptionTabWidgetFrame>>
) -> CppBox<QStyleOptionTabWidgetFrame>
[src]
other: impl CastInto<Ref<QStyleOptionTabWidgetFrame>>
) -> CppBox<QStyleOptionTabWidgetFrame>
Constructs a copy of other.
Calls C++ function: [constructor] void QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other)
.
Constructs a copy of other.
pub unsafe fn right_corner_widget_size(&self) -> Ref<QSize>
[src]
Returns a reference to the rightCornerWidgetSize
field.
pub unsafe fn right_corner_widget_size_mut(&mut self) -> MutRef<QSize>
[src]
Returns a mutable reference to the rightCornerWidgetSize
field.
pub unsafe fn selected_tab_rect(&self) -> Ref<QRect>
[src]
Returns a reference to the selectedTabRect
field.
pub unsafe fn selected_tab_rect_mut(&mut self) -> MutRef<QRect>
[src]
Returns a mutable reference to the selectedTabRect
field.
pub unsafe fn set_left_corner_widget_size(
&mut self,
value: impl CastInto<Ref<QSize>>
)
[src]
&mut self,
value: impl CastInto<Ref<QSize>>
)
Sets the value of the leftCornerWidgetSize
field.
pub unsafe fn set_line_width(&mut self, value: c_int)
[src]
Sets the value of the lineWidth
field.
pub unsafe fn set_mid_line_width(&mut self, value: c_int)
[src]
Sets the value of the midLineWidth
field.
pub unsafe fn set_right_corner_widget_size(
&mut self,
value: impl CastInto<Ref<QSize>>
)
[src]
&mut self,
value: impl CastInto<Ref<QSize>>
)
Sets the value of the rightCornerWidgetSize
field.
pub unsafe fn set_selected_tab_rect(&mut self, value: impl CastInto<Ref<QRect>>)
[src]
Sets the value of the selectedTabRect
field.
pub unsafe fn set_shape(&mut self, value: Shape)
[src]
Sets the value of the shape
field.
pub unsafe fn set_tab_bar_rect(&mut self, value: impl CastInto<Ref<QRect>>)
[src]
Sets the value of the tabBarRect
field.
pub unsafe fn set_tab_bar_size(&mut self, value: impl CastInto<Ref<QSize>>)
[src]
Sets the value of the tabBarSize
field.
pub unsafe fn shape(&self) -> Shape
[src]
Returns the value of the shape
field.
pub unsafe fn tab_bar_rect(&self) -> Ref<QRect>
[src]
Returns a reference to the tabBarRect
field.
pub unsafe fn tab_bar_rect_mut(&mut self) -> MutRef<QRect>
[src]
Returns a mutable reference to the tabBarRect
field.
pub unsafe fn tab_bar_size(&self) -> Ref<QSize>
[src]
Returns a reference to the tabBarSize
field.
pub unsafe fn tab_bar_size_mut(&mut self) -> MutRef<QSize>
[src]
Returns a mutable reference to the tabBarSize
field.
Methods from Deref<Target = QStyleOption>
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QStyleOption>>
) -> MutRef<QStyleOption>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOption>>
) -> MutRef<QStyleOption>
Assign other to this QStyleOption.
Calls C++ function: QStyleOption& QStyleOption::operator=(const QStyleOption& other)
.
Assign other to this QStyleOption.
pub unsafe fn direction(&self) -> LayoutDirection
[src]
Returns the value of the direction
field.
pub unsafe fn font_metrics(&self) -> Ref<QFontMetrics>
[src]
Returns a reference to the fontMetrics
field.
pub unsafe fn font_metrics_mut(&mut self) -> MutRef<QFontMetrics>
[src]
Returns a mutable reference to the fontMetrics
field.
pub unsafe fn init(&mut self, w: impl CastInto<Ptr<QWidget>>)
[src]
Use initFrom(widget) instead.
Calls C++ function: void QStyleOption::init(const QWidget* w)
.
Use initFrom(widget) instead.
pub unsafe fn init_from(&mut self, w: impl CastInto<Ptr<QWidget>>)
[src]
Initializes the state, direction, rect, palette, fontMetrics and styleObject member variables based on the specified widget.
Calls C++ function: void QStyleOption::initFrom(const QWidget* w)
.
Initializes the state, direction, rect, palette, fontMetrics and styleObject member variables based on the specified widget.
This is a convenience function; the member variables can also be initialized manually.
This function was introduced in Qt 4.1.
See also QWidget::layoutDirection(), QWidget::rect(), QWidget::palette(), and QWidget::fontMetrics().
pub unsafe fn palette(&self) -> Ref<QPalette>
[src]
Returns a reference to the palette
field.
pub unsafe fn palette_mut(&mut self) -> MutRef<QPalette>
[src]
Returns a mutable reference to the palette
field.
pub unsafe fn rect(&self) -> Ref<QRect>
[src]
Returns a reference to the rect
field.
pub unsafe fn rect_mut(&mut self) -> MutRef<QRect>
[src]
Returns a mutable reference to the rect
field.
pub unsafe fn set_direction(&mut self, value: LayoutDirection)
[src]
Sets the value of the direction
field.
pub unsafe fn set_font_metrics(
&mut self,
value: impl CastInto<Ref<QFontMetrics>>
)
[src]
&mut self,
value: impl CastInto<Ref<QFontMetrics>>
)
Sets the value of the fontMetrics
field.
pub unsafe fn set_palette(&mut self, value: impl CastInto<Ref<QPalette>>)
[src]
Sets the value of the palette
field.
pub unsafe fn set_rect(&mut self, value: impl CastInto<Ref<QRect>>)
[src]
Sets the value of the rect
field.
pub unsafe fn set_state(&mut self, value: QFlags<StateFlag>)
[src]
Sets the value of the state
field.
pub unsafe fn set_style_object(&mut self, value: impl CastInto<MutPtr<QObject>>)
[src]
Sets the value of the styleObject
field.
pub unsafe fn set_type(&mut self, value: c_int)
[src]
Sets the value of the type
field.
pub unsafe fn set_version(&mut self, value: c_int)
[src]
Sets the value of the version
field.
pub unsafe fn state(&self) -> QFlags<StateFlag>
[src]
Returns a reference to the state
field.
pub unsafe fn style_object(&self) -> MutPtr<QObject>
[src]
Returns the value of the styleObject
field.
pub unsafe fn type_(&self) -> c_int
[src]
Returns the value of the type
field.
pub unsafe fn version(&self) -> c_int
[src]
Returns the value of the version
field.
Trait Implementations
impl Deref for QStyleOptionTabWidgetFrame
[src]
type Target = QStyleOption
The resulting type after dereferencing.
fn deref(&self) -> &QStyleOption
[src]
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionTabWidgetFrame* ptr)
.
impl DerefMut for QStyleOptionTabWidgetFrame
[src]
fn deref_mut(&mut self) -> &mut QStyleOption
[src]
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionTabWidgetFrame* ptr)
.
impl StaticUpcast<QStyleOption> for QStyleOptionTabWidgetFrame
[src]
unsafe fn static_upcast(
ptr: Ptr<QStyleOptionTabWidgetFrame>
) -> Ptr<QStyleOption>
[src]
ptr: Ptr<QStyleOptionTabWidgetFrame>
) -> Ptr<QStyleOption>
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionTabWidgetFrame* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionTabWidgetFrame>
) -> MutPtr<QStyleOption>
[src]
ptr: MutPtr<QStyleOptionTabWidgetFrame>
) -> MutPtr<QStyleOption>
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionTabWidgetFrame* ptr)
.
impl StaticDowncast<QStyleOptionTabWidgetFrame> for QStyleOption
[src]
unsafe fn static_downcast(
ptr: Ptr<QStyleOption>
) -> Ptr<QStyleOptionTabWidgetFrame>
[src]
ptr: Ptr<QStyleOption>
) -> Ptr<QStyleOptionTabWidgetFrame>
Calls C++ function: QStyleOptionTabWidgetFrame* static_cast<QStyleOptionTabWidgetFrame*>(QStyleOption* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionTabWidgetFrame>
[src]
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionTabWidgetFrame>
Calls C++ function: QStyleOptionTabWidgetFrame* static_cast<QStyleOptionTabWidgetFrame*>(QStyleOption* ptr)
.
impl CppDeletable for QStyleOptionTabWidgetFrame
[src]
unsafe fn delete(&mut self)
[src]
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.
Calls C++ function: [destructor] void QStyleOptionTabWidgetFrame::~QStyleOptionTabWidgetFrame()
.
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.
QStyleOptionTabWidgetFrame contains all the information that QStyle functions need to draw the frame around QTabWidget.
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 QStyleOptionTabWidgetFrame
impl Unpin for QStyleOptionTabWidgetFrame
impl Sync for QStyleOptionTabWidgetFrame
impl UnwindSafe for QStyleOptionTabWidgetFrame
impl RefUnwindSafe for QStyleOptionTabWidgetFrame
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>,