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§

source

fn DrawThemeBackground( &self, hdc: &HDC, part_state: VS, rc: RECT, rc_clip: RECT ) -> HrResult<()>

source

fn GetThemeAppProperties() -> STAP

source

fn GetThemeBackgroundContentRect( &self, hdc: &HDC, part_state: VS, bounds: RECT ) -> HrResult<RECT>

source

fn GetThemeBackgroundExtent( &self, hdc: &HDC, part_state: VS, rc_content: RECT ) -> HrResult<RECT>

source

fn GetThemeBackgroundRegion( &self, hdc: &HDC, part_state: VS, rc: RECT ) -> HrResult<DeleteObjectGuard<HRGN>>

source

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>

GetThemeMargins function.

source

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>

GetThemePartSize function.

source

fn GetThemePosition(&self, part_state: VS, prop: TMT) -> HrResult<POINT>

GetThemePosition function.

source

fn GetThemePropertyOrigin( &self, part_state: VS, prop: TMT ) -> HrResult<PROPERTYORIGIN>

source

fn GetThemeRect(&self, part_state: VS, prop: TMT) -> HrResult<RECT>

GetThemeRect function.

source

fn IsThemeBackgroundPartiallyTransparent(&self, part_state: VS) -> bool

source

fn IsThemePartDefined(&self, part_state: VS) -> bool

Object Safety§

This trait is not object safe.

Implementors§