@@ -9,7 +9,7 @@ use std::{
9
9
sync:: atomic:: { AtomicBool , Ordering } ,
10
10
} ;
11
11
12
- use once_cell :: sync :: Lazy ;
12
+ use crate :: utils :: Lazy ;
13
13
use windows_sys:: {
14
14
core:: { HRESULT , PCWSTR } ,
15
15
Win32 :: {
@@ -262,27 +262,27 @@ pub type GetPointerTouchInfo =
262
262
pub type GetPointerPenInfo =
263
263
unsafe extern "system" fn ( pointId : u32 , penInfo : * mut POINTER_PEN_INFO ) -> BOOL ;
264
264
265
- pub static GET_DPI_FOR_WINDOW : Lazy < Option < GetDpiForWindow > > =
265
+ pub ( crate ) static GET_DPI_FOR_WINDOW : Lazy < Option < GetDpiForWindow > > =
266
266
Lazy :: new ( || get_function ! ( "user32.dll" , GetDpiForWindow ) ) ;
267
- pub static ADJUST_WINDOW_RECT_EX_FOR_DPI : Lazy < Option < AdjustWindowRectExForDpi > > =
267
+ pub ( crate ) static ADJUST_WINDOW_RECT_EX_FOR_DPI : Lazy < Option < AdjustWindowRectExForDpi > > =
268
268
Lazy :: new ( || get_function ! ( "user32.dll" , AdjustWindowRectExForDpi ) ) ;
269
- pub static GET_DPI_FOR_MONITOR : Lazy < Option < GetDpiForMonitor > > =
269
+ pub ( crate ) static GET_DPI_FOR_MONITOR : Lazy < Option < GetDpiForMonitor > > =
270
270
Lazy :: new ( || get_function ! ( "shcore.dll" , GetDpiForMonitor ) ) ;
271
- pub static ENABLE_NON_CLIENT_DPI_SCALING : Lazy < Option < EnableNonClientDpiScaling > > =
271
+ pub ( crate ) static ENABLE_NON_CLIENT_DPI_SCALING : Lazy < Option < EnableNonClientDpiScaling > > =
272
272
Lazy :: new ( || get_function ! ( "user32.dll" , EnableNonClientDpiScaling ) ) ;
273
- pub static SET_PROCESS_DPI_AWARENESS_CONTEXT : Lazy < Option < SetProcessDpiAwarenessContext > > =
273
+ pub ( crate ) static SET_PROCESS_DPI_AWARENESS_CONTEXT : Lazy < Option < SetProcessDpiAwarenessContext > > =
274
274
Lazy :: new ( || get_function ! ( "user32.dll" , SetProcessDpiAwarenessContext ) ) ;
275
- pub static SET_PROCESS_DPI_AWARENESS : Lazy < Option < SetProcessDpiAwareness > > =
275
+ pub ( crate ) static SET_PROCESS_DPI_AWARENESS : Lazy < Option < SetProcessDpiAwareness > > =
276
276
Lazy :: new ( || get_function ! ( "shcore.dll" , SetProcessDpiAwareness ) ) ;
277
- pub static SET_PROCESS_DPI_AWARE : Lazy < Option < SetProcessDPIAware > > =
277
+ pub ( crate ) static SET_PROCESS_DPI_AWARE : Lazy < Option < SetProcessDPIAware > > =
278
278
Lazy :: new ( || get_function ! ( "user32.dll" , SetProcessDPIAware ) ) ;
279
- pub static GET_POINTER_FRAME_INFO_HISTORY : Lazy < Option < GetPointerFrameInfoHistory > > =
279
+ pub ( crate ) static GET_POINTER_FRAME_INFO_HISTORY : Lazy < Option < GetPointerFrameInfoHistory > > =
280
280
Lazy :: new ( || get_function ! ( "user32.dll" , GetPointerFrameInfoHistory ) ) ;
281
- pub static SKIP_POINTER_FRAME_MESSAGES : Lazy < Option < SkipPointerFrameMessages > > =
281
+ pub ( crate ) static SKIP_POINTER_FRAME_MESSAGES : Lazy < Option < SkipPointerFrameMessages > > =
282
282
Lazy :: new ( || get_function ! ( "user32.dll" , SkipPointerFrameMessages ) ) ;
283
- pub static GET_POINTER_DEVICE_RECTS : Lazy < Option < GetPointerDeviceRects > > =
283
+ pub ( crate ) static GET_POINTER_DEVICE_RECTS : Lazy < Option < GetPointerDeviceRects > > =
284
284
Lazy :: new ( || get_function ! ( "user32.dll" , GetPointerDeviceRects ) ) ;
285
- pub static GET_POINTER_TOUCH_INFO : Lazy < Option < GetPointerTouchInfo > > =
285
+ pub ( crate ) static GET_POINTER_TOUCH_INFO : Lazy < Option < GetPointerTouchInfo > > =
286
286
Lazy :: new ( || get_function ! ( "user32.dll" , GetPointerTouchInfo ) ) ;
287
- pub static GET_POINTER_PEN_INFO : Lazy < Option < GetPointerPenInfo > > =
287
+ pub ( crate ) static GET_POINTER_PEN_INFO : Lazy < Option < GetPointerPenInfo > > =
288
288
Lazy :: new ( || get_function ! ( "user32.dll" , GetPointerPenInfo ) ) ;
0 commit comments