[][src]Struct qt_gui::q_text_document::ResourceType

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

This enum describes the types of resources that can be loaded by QTextDocument's loadResource() function.

C++ enum: QTextDocument::ResourceType.

C++ documentation:

This enum describes the types of resources that can be loaded by QTextDocument's loadResource() function.

See also loadResource().

Methods

impl ResourceType[src]

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

impl ResourceType[src]

pub const HtmlResource: ResourceType[src]

The resource contains HTML. (C++ enum variant: HtmlResource = 1)

pub const ImageResource: ResourceType[src]

The resource contains image data. Currently supported data types are QVariant::Pixmap and QVariant::Image. If the corresponding variant is of type QVariant::ByteArray then Qt attempts to load the image using QImage::loadFromData. QVariant::Icon is currently not supported. The icon needs to be converted to one of the supported types first, for example using QIcon::pixmap. (C++ enum variant: ImageResource = 2)

pub const StyleSheetResource: ResourceType[src]

The resource contains CSS. (C++ enum variant: StyleSheetResource = 3)

pub const UserResource: ResourceType[src]

The first available value for user defined resource types. (C++ enum variant: UserResource = 100)

Trait Implementations

impl Clone for ResourceType[src]

impl Copy for ResourceType[src]

impl Debug for ResourceType[src]

impl Eq for ResourceType[src]

impl From<ResourceType> for c_int[src]

impl From<i32> for ResourceType[src]

impl PartialEq<ResourceType> for ResourceType[src]

impl StructuralEq for ResourceType[src]

impl StructuralPartialEq for ResourceType[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.