Skip to content

Commit

Permalink
Move HPALETTE to user; #140.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed Jan 3, 2025
1 parent 5893cae commit 0147077
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/gdi/handles/hpalette.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ use crate::guard::*;
use crate::kernel::privs::*;
use crate::prelude::*;

impl_handle! { HPALETTE;
/// Handle to a
/// [palette](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hpalette).
}

impl gdi_Hpalette for HPALETTE {}

/// This trait is enabled with the `gdi` feature, and provides methods for
Expand Down
1 change: 0 additions & 1 deletion src/gdi/handles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ mod hrgn;

pub mod decl {
pub use super::hfont::HFONT;
pub use super::hpalette::HPALETTE;
pub use super::hpen::HPEN;
}

Expand Down
5 changes: 5 additions & 0 deletions src/user/handles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ pub mod decl {
/// [brush](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hbrush).
}

impl_handle! { HPALETTE;
/// Handle to a
/// [palette](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hpalette).
}

impl_handle! { HRGN;
/// Handle to a
/// [region](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hrgn)
Expand Down

0 comments on commit 0147077

Please sign in to comment.