Struct native_windows_gui::RawResource
source · [−]pub struct RawResource { /* private fields */ }
Expand description
Represents a raw handle to a embed resource. Manipulating raw resources is inherently unsafe.
RawResources
are loaded using EmbedResource::raw
and EmbedResource::raw_str
In order to access the raw resource data use as_mut_ptr()
or as_mut_slice()
and cast the pointer to your data type.
Implementations
sourceimpl RawResource
impl RawResource
sourcepub fn data_handle(&self) -> HGLOBAL
pub fn data_handle(&self) -> HGLOBAL
Returns the system handle for the resource data
sourcepub fn resource_type(&self) -> RawResourceType
pub fn resource_type(&self) -> RawResourceType
Returns the resource type set during texture loading
sourcepub unsafe fn as_mut_ptr(&mut self) -> *mut c_void
pub unsafe fn as_mut_ptr(&mut self) -> *mut c_void
Return a const pointer to the resource.
Auto Trait Implementations
impl RefUnwindSafe for RawResource
impl !Send for RawResource
impl !Sync for RawResource
impl Unpin for RawResource
impl UnwindSafe for RawResource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more