Module nwg_ext

Source
Expand description

Extends the nwg crate with additional features.

Modules§

number_select 🔒
Fork of [nwg::NumberSelect] that fixes some issues. See NumberSelect2 for more info.
partial_fast_timer_ui 🔒

Structs§

FastTimer
An alternative to [nwg::AnimationTimer] that has less CPU usage.
FastTimerControl
An alternative to [nwg::AnimationTimer] that has less CPU usage.
FastTimerControlBuilder
LazyUi
Implements PartialUi and delegates to a PartialUi inside a RefCell.
ListViewGroupInfo
NumberSelect2
Fork of [nwg::NumberSelect] that has some improvements.
NumberSelectBuilder
PanicCatcher
Utility for catching panics and resuming them. Useful to implement unsafe callbacks.
ParentCapture
Can be used as a nwg_control to store the parent that a PartialUi 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.)
ParentCaptureBuilder
TimerThread
Uses a single thread to serve multiple sleep requests.
TrayWindow
A modified version of [nwg::MessageWindow] that allows detecting if explorer.exe has restarted.
TrayWindowBuilder

Enums§

ListViewGroupAlignment
WindowPlacement

Traits§

LazyUiHooks

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.