winctx 0.0.20

A minimal window context for Rust on Windows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// The identifier for an [`Area`].
///
/// [`Area`]: crate::area::Area
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(transparent)]
pub struct AreaId(u32);

impl AreaId {
    /// Construct a new menu id.
    pub(crate) const fn new(id: u32) -> Self {
        Self(id)
    }

    /// Get the menu id.
    pub(crate) const fn id(&self) -> u32 {
        self.0
    }
}