[][src]Struct qt_widgets::q_header_view::ResizeMode

#[repr(transparent)]pub struct ResizeMode(_);

The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using setSectionResizeMode().

C++ enum: QHeaderView::ResizeMode.

C++ documentation:

The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using setSectionResizeMode().

The following values are obsolete:

See also setResizeMode(), setSectionResizeMode(), stretchLastSection, and minimumSectionSize.

Methods

impl ResizeMode[src]

pub fn to_int(&self) -> c_int[src]

impl ResizeMode[src]

pub const Interactive: ResizeMode[src]

The user can resize the section. The section can also be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize. (See also cascadingSectionResizes.) (C++ enum variant: Interactive = 0)

pub const Stretch: ResizeMode[src]

QHeaderView will automatically resize the section to fill the available space. The size cannot be changed by the user or programmatically. (C++ enum variant: Stretch = 1)

pub const Fixed: ResizeMode[src]

The user cannot resize the section. The section can only be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize. (C++ enum variant: Fixed = 2)

pub const ResizeToContents: ResizeMode[src]

QHeaderView will automatically resize the section to its optimal size based on the contents of the entire column or row. The size cannot be changed by the user or programmatically. (This value was introduced in 4.2) (C++ enum variant: ResizeToContents = 3)

pub const Custom: ResizeMode[src]

Use Fixed instead. (C++ enum variant: Custom = 2)

Trait Implementations

impl Clone for ResizeMode[src]

impl Copy for ResizeMode[src]

impl Debug for ResizeMode[src]

impl Eq for ResizeMode[src]

impl From<ResizeMode> for c_int[src]

impl From<i32> for ResizeMode[src]

impl PartialEq<ResizeMode> for ResizeMode[src]

impl StructuralEq for ResizeMode[src]

impl StructuralPartialEq for ResizeMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.