Trait winsafe::prelude::uxtheme_Htheme
source · pub trait uxtheme_Htheme: Handle {
Show 14 methods
// Provided methods
fn DrawThemeBackground(
&self,
hdc: &HDC,
part_state: VS,
rc: RECT,
rc_clip: RECT
) -> HrResult<()> { ... }
fn GetThemeAppProperties() -> STAP { ... }
fn GetThemeBackgroundContentRect(
&self,
hdc: &HDC,
part_state: VS,
bounds: RECT
) -> HrResult<RECT> { ... }
fn GetThemeBackgroundExtent(
&self,
hdc: &HDC,
part_state: VS,
rc_content: RECT
) -> HrResult<RECT> { ... }
fn GetThemeBackgroundRegion(
&self,
hdc: &HDC,
part_state: VS,
rc: RECT
) -> HrResult<DeleteObjectGuard<HRGN>> { ... }
fn GetThemeColor(&self, part_state: VS, prop: TMT) -> HrResult<COLORREF> { ... }
fn GetThemeMargins(
&self,
hdc_fonts: Option<&HDC>,
part_state: VS,
prop: TMT,
draw_dest: Option<&RECT>
) -> HrResult<MARGINS> { ... }
fn GetThemeMetric(
&self,
hdc_fonts: Option<&HDC>,
part_state: VS,
prop: TMT
) -> HrResult<i32> { ... }
fn GetThemePartSize(
&self,
hdc_fonts: Option<&HDC>,
part_state: VS,
draw_dest: Option<&RECT>,
esize: THEMESIZE
) -> HrResult<SIZE> { ... }
fn GetThemePosition(&self, part_state: VS, prop: TMT) -> HrResult<POINT> { ... }
fn GetThemePropertyOrigin(
&self,
part_state: VS,
prop: TMT
) -> HrResult<PROPERTYORIGIN> { ... }
fn GetThemeRect(&self, part_state: VS, prop: TMT) -> HrResult<RECT> { ... }
fn IsThemeBackgroundPartiallyTransparent(&self, part_state: VS) -> bool { ... }
fn IsThemePartDefined(&self, part_state: VS) -> bool { ... }
}
Available on crate features
kernel
and uxtheme
only.Expand description
This trait is enabled with the uxtheme
feature, and provides methods for
HTHEME
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn DrawThemeBackground(
&self,
hdc: &HDC,
part_state: VS,
rc: RECT,
rc_clip: RECT
) -> HrResult<()>
fn DrawThemeBackground( &self, hdc: &HDC, part_state: VS, rc: RECT, rc_clip: RECT ) -> HrResult<()>
DrawThemeBackground
function.
sourcefn GetThemeAppProperties() -> STAP
fn GetThemeAppProperties() -> STAP
GetThemeAppProperties
function.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn GetThemeColor(&self, part_state: VS, prop: TMT) -> HrResult<COLORREF>
fn GetThemeColor(&self, part_state: VS, prop: TMT) -> HrResult<COLORREF>
GetThemeColor
function.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn GetThemePosition(&self, part_state: VS, prop: TMT) -> HrResult<POINT>
fn GetThemePosition(&self, part_state: VS, prop: TMT) -> HrResult<POINT>
GetThemePosition
function.
sourcefn GetThemePropertyOrigin(
&self,
part_state: VS,
prop: TMT
) -> HrResult<PROPERTYORIGIN>
fn GetThemePropertyOrigin( &self, part_state: VS, prop: TMT ) -> HrResult<PROPERTYORIGIN>
GetThemePropertyOrigin
function.
sourcefn GetThemeRect(&self, part_state: VS, prop: TMT) -> HrResult<RECT>
fn GetThemeRect(&self, part_state: VS, prop: TMT) -> HrResult<RECT>
GetThemeRect
function.
sourcefn IsThemeBackgroundPartiallyTransparent(&self, part_state: VS) -> bool
fn IsThemeBackgroundPartiallyTransparent(&self, part_state: VS) -> bool
IsThemeBackgroundPartiallyTransparent
function.
sourcefn IsThemePartDefined(&self, part_state: VS) -> bool
fn IsThemePartDefined(&self, part_state: VS) -> bool
IsThemePartDefined
function.
Object Safety§
This trait is not object safe.