Expand description
Extends the nwg
crate with additional features.
Modules§
- number_
select 🔒 - Fork of [
nwg::NumberSelect
] that fixes some issues. SeeNumberSelect2
for more info. - partial_
fast_ 🔒timer_ ui
Structs§
- Fast
Timer - An alternative to [
nwg::AnimationTimer
] that has less CPU usage. - Fast
Timer Control - An alternative to [
nwg::AnimationTimer
] that has less CPU usage. - Fast
Timer Control Builder - LazyUi
- Implements
PartialUi
and delegates to aPartialUi
inside aRefCell
. - List
View Group Info - Number
Select2 - Fork of [
nwg::NumberSelect
] that has some improvements. - Number
Select Builder - Panic
Catcher - Utility for catching panics and resuming them. Useful to implement unsafe callbacks.
- Parent
Capture - Can be used as a
nwg_control
to store the parent that aPartialUi
is created with. This control can then be referred to as the parent of another control and that will simply forward the captured parent. (Make sure this capture control is placed before any control that uses it as a parent.) - Parent
Capture Builder - Timer
Thread - Uses a single thread to serve multiple sleep requests.
- Tray
Window - A modified version of [
nwg::MessageWindow
] that allows detecting ifexplorer.exe
has restarted. - Tray
Window Builder
Enums§
Traits§
Functions§
- enum_
child_ windows - Get handles to all open windows or to child windows of a specific window.
- find_
context_ menu_ window - Finds the current context menu window using an undocumented trick.
- from_
utf16 - Decode a raw utf16 string. Should be null terminated.
- list_
view_ enable_ groups - Enables or disables whether the items in a list-view control display as a group.
- list_
view_ item_ get_ group_ id - Get the group that a list view item belongs to.
- list_
view_ item_ set_ group_ id - Set the group that a list view item belongs to.
- list_
view_ set_ group_ info - Create or update a group inside a list view.
- list_
view_ sort_ rows - Sort the items in a list view. The callback is given the current indexes of list items that should be compared.
- menu_
index_ in_ parent - Return the index of a children menu/menuitem in a parent menu.
- menu_
item_ index_ in_ parent - Return the index of a menu item in a parent menu.
- menu_
remove - Remove a submenu from its parent. Note that this is not done automatically when a menu is dropped.
- menu_
set_ text - Update the text of a submenu or menu item.
- to_
utf16 - Copied from [
native_windows_gui::win32::base_helper::to_utf16
]. - tray_
get_ rect - tray_
set_ version_ 4 - Set a tray to use version 4. Shell_NotifyIcon mouse and keyboard events are handled differently than in earlier versions of Windows.
- window_
is_ valid - Check if a window is valid (not destroyed). A closed window might still be valid.
- window_
placement - Retrieves the show state and the restored, minimized, and maximized positions of the specified window.
- windows_
msg_ for_ explorer_ restart - When the taskbar is created, it registers a message with the “TaskbarCreated” string and then broadcasts this message to all top-level windows When the application receives this message, it should assume that any taskbar icons it added have been removed and add them again.