1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#![allow(non_snake_case)]

use crate::uxtheme::ffi;

/// [`IsThemeActive`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-isthemeactive)
/// function.
#[must_use]
pub fn IsThemeActive() -> bool {
	unsafe { ffi::IsThemeActive() != 0 }
}

/// [`IsAppThemed`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-isappthemed)
/// function.
#[must_use]
pub fn IsAppThemed() -> bool {
	unsafe { ffi::IsAppThemed() != 0 }
}

/// [`IsCompositionActive`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-iscompositionactive)
/// function.
#[must_use]
pub fn IsCompositionActive() -> bool {
	unsafe { ffi::IsCompositionActive() != 0 }
}

/// [`IsThemeDialogTextureEnabled`](https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-isthemedialogtextureenabled)
/// function.
///
/// **Note:** This function doesn't exist in x32.
#[cfg(target_pointer_width = "64")]
#[must_use]
pub fn IsThemeDialogTextureEnabled() -> bool {
	unsafe { ffi::IsThemeDialogTextureEnabled() != 0 }
}