winsafe\uxtheme/funcs.rs
1#![allow(non_snake_case)]
2
3use crate::uxtheme::ffi;
4
5/// [`IsThemeActive`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-isthemeactive)
6/// function.
7#[must_use]
8pub fn IsThemeActive() -> bool {
9 unsafe { ffi::IsThemeActive() != 0 }
10}
11
12/// [`IsAppThemed`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-isappthemed)
13/// function.
14#[must_use]
15pub fn IsAppThemed() -> bool {
16 unsafe { ffi::IsAppThemed() != 0 }
17}
18
19/// [`IsCompositionActive`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-iscompositionactive)
20/// function.
21#[must_use]
22pub fn IsCompositionActive() -> bool {
23 unsafe { ffi::IsCompositionActive() != 0 }
24}
25
26/// [`IsThemeDialogTextureEnabled`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-isthemedialogtextureenabled)
27/// function.
28///
29/// **Note:** This function doesn't exist in x32.
30#[cfg(target_pointer_width = "64")]
31#[must_use]
32pub fn IsThemeDialogTextureEnabled() -> bool {
33 unsafe { ffi::IsThemeDialogTextureEnabled() != 0 }
34}