[−][src]Struct qt_gui::q_text_document::ResourceType
This enum describes the types of resources that can be loaded by QTextDocument's loadResource() function.
C++ enum: QTextDocument::ResourceType
.
This enum describes the types of resources that can be loaded by QTextDocument's loadResource() function.
See also loadResource().
Methods
impl ResourceType
[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]
fn clone(&self) -> ResourceType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ResourceType
[src]
impl Debug for ResourceType
[src]
impl Eq for ResourceType
[src]
impl From<ResourceType> for c_int
[src]
fn from(value: ResourceType) -> Self
[src]
impl From<i32> for ResourceType
[src]
impl PartialEq<ResourceType> for ResourceType
[src]
fn eq(&self, other: &ResourceType) -> bool
[src]
fn ne(&self, other: &ResourceType) -> bool
[src]
impl StructuralEq for ResourceType
[src]
impl StructuralPartialEq for ResourceType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnwindSafe for ResourceType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,