pub struct HTHEME(/* private fields */);
Available on crate feature
uxtheme
only.Expand description
Handle to a theme.
Trait Implementations§
Source§impl Handle for HTHEME
impl Handle for HTHEME
Source§const NULL: Self
const NULL: Self
Available on crate feature
kernel
only.The null, uninitialized handle; equals to
0
.Source§const INVALID: Self
const INVALID: Self
Available on crate feature
kernel
only.The invalid handle; equals to
-1
. Read moreSource§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
kernel
only.Creates a new handle object by wrapping a pointer. Read more
Source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
kernel
only.Returns a mutable reference to the underlying raw pointer. Read more
Source§unsafe fn raw_copy(&self) -> Self
unsafe fn raw_copy(&self) -> Self
Available on crate feature
kernel
only.Returns a raw copy of the underlying handle pointer. Read more
Source§impl uxtheme_Htheme for HTHEME
impl uxtheme_Htheme for HTHEME
Source§fn DrawThemeBackground(
&self,
hdc: &HDC,
part_state: VS,
rc: RECT,
rc_clip: Option<RECT>,
) -> HrResult<()>
fn DrawThemeBackground( &self, hdc: &HDC, part_state: VS, rc: RECT, rc_clip: Option<RECT>, ) -> HrResult<()>
DrawThemeBackground
function.Source§fn GetThemeAppProperties() -> STAP
fn GetThemeAppProperties() -> STAP
GetThemeAppProperties
function.Source§fn GetThemeBackgroundContentRect(
&self,
hdc: &HDC,
part_state: VS,
bounds: RECT,
) -> HrResult<RECT>
fn GetThemeBackgroundContentRect( &self, hdc: &HDC, part_state: VS, bounds: RECT, ) -> HrResult<RECT>
GetThemeBackgroundContentRect
function.Source§fn GetThemeBackgroundExtent(
&self,
hdc: &HDC,
part_state: VS,
rc_content: RECT,
) -> HrResult<RECT>
fn GetThemeBackgroundExtent( &self, hdc: &HDC, part_state: VS, rc_content: RECT, ) -> HrResult<RECT>
GetThemeBackgroundExtent
function.Source§fn GetThemeBackgroundRegion(
&self,
hdc: &HDC,
part_state: VS,
rc: RECT,
) -> HrResult<DeleteObjectGuard<HRGN>>
fn GetThemeBackgroundRegion( &self, hdc: &HDC, part_state: VS, rc: RECT, ) -> HrResult<DeleteObjectGuard<HRGN>>
GetThemeBackgroundRegion
function.Source§fn GetThemeColor(&self, part_state: VS, prop: TMT) -> HrResult<COLORREF>
fn GetThemeColor(&self, part_state: VS, prop: TMT) -> HrResult<COLORREF>
GetThemeColor
function.Source§fn GetThemeMargins(
&self,
hdc_fonts: Option<&HDC>,
part_state: VS,
prop: TMT,
draw_dest: Option<&RECT>,
) -> HrResult<MARGINS>
fn GetThemeMargins( &self, hdc_fonts: Option<&HDC>, part_state: VS, prop: TMT, draw_dest: Option<&RECT>, ) -> HrResult<MARGINS>
GetThemeMargins
function.Source§fn GetThemeMetric(
&self,
hdc_fonts: Option<&HDC>,
part_state: VS,
prop: TMT,
) -> HrResult<i32>
fn GetThemeMetric( &self, hdc_fonts: Option<&HDC>, part_state: VS, prop: TMT, ) -> HrResult<i32>
GetThemeMetric
function.Source§fn GetThemePartSize(
&self,
hdc_fonts: Option<&HDC>,
part_state: VS,
draw_dest: Option<&RECT>,
esize: THEMESIZE,
) -> HrResult<SIZE>
fn GetThemePartSize( &self, hdc_fonts: Option<&HDC>, part_state: VS, draw_dest: Option<&RECT>, esize: THEMESIZE, ) -> HrResult<SIZE>
GetThemePartSize
function.Source§fn GetThemePosition(&self, part_state: VS, prop: TMT) -> HrResult<POINT>
fn GetThemePosition(&self, part_state: VS, prop: TMT) -> HrResult<POINT>
GetThemePosition
function.Source§fn GetThemePropertyOrigin(
&self,
part_state: VS,
prop: TMT,
) -> HrResult<PROPERTYORIGIN>
fn GetThemePropertyOrigin( &self, part_state: VS, prop: TMT, ) -> HrResult<PROPERTYORIGIN>
GetThemePropertyOrigin
function.Source§fn GetThemeRect(&self, part_state: VS, prop: TMT) -> HrResult<RECT>
fn GetThemeRect(&self, part_state: VS, prop: TMT) -> HrResult<RECT>
GetThemeRect
function.Source§fn IsThemeBackgroundPartiallyTransparent(&self, part_state: VS) -> bool
fn IsThemeBackgroundPartiallyTransparent(&self, part_state: VS) -> bool
IsThemeBackgroundPartiallyTransparent
function.Source§fn IsThemePartDefined(&self, part_state: VS) -> bool
fn IsThemePartDefined(&self, part_state: VS) -> bool
IsThemePartDefined
function.impl Eq for HTHEME
impl Send for HTHEME
impl StructuralPartialEq for HTHEME
Auto Trait Implementations§
impl Freeze for HTHEME
impl RefUnwindSafe for HTHEME
impl !Sync for HTHEME
impl Unpin for HTHEME
impl UnwindSafe for HTHEME
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more