[][src]Struct qt_widgets::q_rubber_band::Shape

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

This enum specifies what shape a QRubberBand should have. This is a drawing hint that is passed down to the style system, and can be interpreted by each QStyle.

C++ enum: QRubberBand::Shape.

C++ documentation:

This enum specifies what shape a QRubberBand should have. This is a drawing hint that is passed down to the style system, and can be interpreted by each QStyle.

Methods

impl Shape[src]

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

impl Shape[src]

pub const Line: Shape[src]

A QRubberBand can represent a vertical or horizontal line. Geometry is still given in rect() and the line will fill the given geometry on most styles. (C++ enum variant: Line = 0)

pub const Rectangle: Shape[src]

A QRubberBand can represent a rectangle. Some styles will interpret this as a filled (often semi-transparent) rectangle, or a rectangular outline. (C++ enum variant: Rectangle = 1)

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]