[][src]Struct qt_widgets::q_frame::Shape

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

This enum type defines the shapes of frame available.

C++ enum: QFrame::Shape.

C++ documentation:

This enum type defines the shapes of frame available.

When it does not call QStyle, Shape interacts with QFrame::Shadow, the lineWidth() and the midLineWidth() to create the total result. See the picture of the frames in the main class documentation.

See also QFrame::Shadow, QFrame::style(), and QStyle::drawPrimitive().

Methods

impl Shape[src]

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

impl Shape[src]

pub const NoFrame: Shape[src]

QFrame draws nothing (C++ enum variant: NoFrame = 0)

pub const Box: Shape[src]

QFrame draws a box around its contents (C++ enum variant: Box = 1)

pub const Panel: Shape[src]

QFrame draws a panel to make the contents appear raised or sunken (C++ enum variant: Panel = 2)

pub const WinPanel: Shape[src]

draws a rectangular panel that can be raised or sunken like those in Windows 2000. Specifying this shape sets the line width to 2 pixels. WinPanel is provided for compatibility. For GUI style independence we recommend using StyledPanel instead. (C++ enum variant: WinPanel = 3)

pub const HLine: Shape[src]

QFrame draws a horizontal line that frames nothing (useful as separator) (C++ enum variant: HLine = 4)

pub const VLine: Shape[src]

QFrame draws a vertical line that frames nothing (useful as separator) (C++ enum variant: VLine = 5)

pub const StyledPanel: Shape[src]

draws a rectangular panel with a look that depends on the current GUI style. It can be raised or sunken. (C++ enum variant: StyledPanel = 6)

Trait Implementations

impl Eq for Shape[src]

impl Clone for Shape[src]

impl PartialEq<Shape> for Shape[src]

impl From<i32> for Shape[src]

impl From<Shape> for c_int[src]

impl Copy for Shape[src]

impl Debug for Shape[src]

Auto Trait Implementations

impl Send for Shape

impl Unpin for Shape

impl Sync for Shape

impl UnwindSafe for Shape

impl RefUnwindSafe for Shape

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

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