pub struct SystemTray {
pub desktop_count: Cell<u32>,
pub desktop_index: Cell<u32>,
has_light_taskbar: Cell<bool>,
desktop_names: RefCell<Vec<Option<Rc<str>>>>,
pub dynamic_ui: DynamicUi<Self>,
}
Expand description
Common handle used by tray plugins, usually behind an Rc
stored inside
SystemTrayRef
.
Fields§
§desktop_count: Cell<u32>
The total number of virtual desktops.
desktop_index: Cell<u32>
The 0-based index of the currently active virtual desktop.
has_light_taskbar: Cell<bool>
Windows has separate modes for Windows itself and other apps. This tracks whether the taskbar and Windows uses light colors.
desktop_names: RefCell<Vec<Option<Rc<str>>>>
§dynamic_ui: DynamicUi<Self>
Implementations§
Source§impl SystemTray
Plugins.
impl SystemTray
Plugins.
pub fn new(plugins: Vec<Box<dyn TrayPlugin>>) -> Rc<Self>
fn update_desktop_info(&self)
Sourcefn check_if_light_taskbar() -> bool
fn check_if_light_taskbar() -> bool
§References
- https://stackoverflow.com/questions/56865923/windows-10-taskbar-color-detection-for-tray-icon
- We use this function: RegGetValueW in windows::Win32::System::Registry - Rust
- Function docs: RegGetValueW function (winreg.h) - Win32 apps | Microsoft Learn
- StackOverflow usage example: windows - RegGetValueW(), how to do it right - Stack Overflow
pub fn build_ui(self: Rc<Self>) -> Result<DynamicUiOwner<Self>, NwgError>
pub fn root(&self) -> Ref<'_, TrayRoot>
pub fn settings(&self) -> Ref<'_, UiSettingsPlugin>
pub fn get_desktop_name(&self, index: u32) -> Option<Rc<str>>
Sourcepub fn has_light_taskbar(&self) -> bool
pub fn has_light_taskbar(&self) -> bool
Windows has separate modes for Windows itself and other apps. This tracks whether the taskbar and Windows uses light colors.
Source§impl SystemTray
Events.
impl SystemTray
Events.
pub fn notify_quick_switch_hotkey(self: &Rc<Self>)
pub fn notify_settings_changed( self: &Rc<Self>, prev: &Arc<UiSettings>, new: &Arc<UiSettings>, )
fn notify_windows_mode_change(self: &Rc<Self>)
fn notify_explorer_restart(&self)
fn update_desktop_count(self: &Rc<Self>)
pub fn notify_desktop_event(self: &Rc<Self>, event: DesktopEvent)
fn notify_tray_left_click(&self)
fn notify_tray_middle_click(&self)
Note: this isn’t run inside a SystemTray::handle_action
callback and
so we might handle events while something is being rebuilt.
Source§impl SystemTray
Commands.
impl SystemTray
Commands.
pub fn switch_desktop(&self, desktop_ix: u32)
This doesn’t seem to actually do anything, needs to be changed to actually work.
Close and then re-open the context menu to ensure it is opened at the requested position.
Close the context menu if it is open. Returns true
if an existing menu
was closed.
Note: the menu won’t be closed until you return to the event loop. This means that re-opening the menu immediately after will not work.
pub fn show_notification(&self, title: &str, text: &str)
pub fn apply_filters(&self)
pub fn configure_filters(&self, refocus: bool)
pub fn stop_flashing_windows(&self)
pub fn exit(&self)
Trait Implementations§
Source§impl Debug for SystemTray
impl Debug for SystemTray
Source§impl DynamicUiHooks<SystemTray> for ApplyFilters
impl DynamicUiHooks<SystemTray> for ApplyFilters
Source§fn before_partial_build(
&mut self,
_tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, _tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for AutoStartPlugin
impl DynamicUiHooks<SystemTray> for AutoStartPlugin
Source§fn before_partial_build(
&mut self,
_tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, _tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for BackspaceAsEscapeAlias
impl DynamicUiHooks<SystemTray> for BackspaceAsEscapeAlias
Source§fn before_partial_build(
&mut self,
_dynamic_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, _dynamic_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for BottomMenuItems
impl DynamicUiHooks<SystemTray> for BottomMenuItems
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for ConfigWindow
impl DynamicUiHooks<SystemTray> for ConfigWindow
Source§fn before_partial_build(
&mut self,
dynamic_ui: &Rc<SystemTray>,
should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, dynamic_ui: &Rc<SystemTray>, should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<SystemTray>,
handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<SystemTray>, handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_rebuild(&self, _dynamic_ui: &Rc<SystemTray>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<SystemTray>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§impl DynamicUiHooks<SystemTray> for DynamicVirtualDesktopEventManager
impl DynamicUiHooks<SystemTray> for DynamicVirtualDesktopEventManager
Source§fn before_partial_build(
&mut self,
tray: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn process_raw_event(
&self,
dynamic_ui: &Rc<SystemTray>,
hwnd: isize,
msg: u32,
w: usize,
l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, dynamic_ui: &Rc<SystemTray>, hwnd: isize, msg: u32, w: usize, l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for FlatSwitchMenu
impl DynamicUiHooks<SystemTray> for FlatSwitchMenu
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn need_rebuild(&self, tray_ui: &Rc<SystemTray>) -> bool
fn need_rebuild(&self, tray_ui: &Rc<SystemTray>) -> bool
Source§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for HotKeyPlugin
impl DynamicUiHooks<SystemTray> for HotKeyPlugin
Source§fn before_partial_build(
&mut self,
tray: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_process_events(
&self,
_dynamic_ui: &Rc<SystemTray>,
evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<SystemTray>, evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for PanicNotifier
impl DynamicUiHooks<SystemTray> for PanicNotifier
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<T>)
Source§impl DynamicUiHooks<SystemTray> for QuickSwitchMenuUiAdapter
impl DynamicUiHooks<SystemTray> for QuickSwitchMenuUiAdapter
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn need_rebuild(&self, tray_ui: &Rc<SystemTray>) -> bool
fn need_rebuild(&self, tray_ui: &Rc<SystemTray>) -> bool
Source§fn before_rebuild(&mut self, _tray_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _tray_ui: &Rc<SystemTray>)
Source§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for QuickSwitchTopMenu
impl DynamicUiHooks<SystemTray> for QuickSwitchTopMenu
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn need_rebuild(&self, tray_ui: &Rc<SystemTray>) -> bool
fn need_rebuild(&self, tray_ui: &Rc<SystemTray>) -> bool
Source§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for SmoothDesktopSwitcher
impl DynamicUiHooks<SystemTray> for SmoothDesktopSwitcher
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
fn after_partial_build(&mut self, _dynamic_ui: &Rc<T>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for TopMenuItems
impl DynamicUiHooks<SystemTray> for TopMenuItems
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn before_rebuild(&mut self, tray_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn after_process_events(
&self,
dynamic_ui: &Rc<SystemTray>,
evt: Event,
_evt_data: &EventData,
handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, dynamic_ui: &Rc<SystemTray>, evt: Event, _evt_data: &EventData, handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for TrayRoot
impl DynamicUiHooks<SystemTray> for TrayRoot
Source§fn before_partial_build(
&mut self,
_dynamic_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, _dynamic_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<SystemTray>,
handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<SystemTray>, handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<SystemTray>,
evt: Event,
_evt_data: &EventData,
handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<SystemTray>, evt: Event, _evt_data: &EventData, handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
tray_ui: &Rc<SystemTray>,
_hwnd: isize,
msg: u32,
w: usize,
l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, tray_ui: &Rc<SystemTray>, _hwnd: isize, msg: u32, w: usize, l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<SystemTray>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<SystemTray>) -> bool
Source§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for UiSettingsPlugin
impl DynamicUiHooks<SystemTray> for UiSettingsPlugin
Source§fn before_partial_build(
&mut self,
tray_ui: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray_ui: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiHooks<SystemTray> for VirtualDesktopEventManager
impl DynamicUiHooks<SystemTray> for VirtualDesktopEventManager
Source§fn before_partial_build(
&mut self,
tray: &Rc<SystemTray>,
_should_build: &mut bool,
) -> Option<(ControlHandle, TypeId)>
fn before_partial_build( &mut self, tray: &Rc<SystemTray>, _should_build: &mut bool, ) -> Option<(ControlHandle, TypeId)>
nwg::PartialUi::build_partial
] and used by controls in
structs that make use of the [nwd::NwgPartial
] derive macro. Read moreSource§fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
fn after_partial_build(&mut self, tray_ui: &Rc<SystemTray>)
Source§fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
fn before_rebuild(&mut self, _dynamic_ui: &Rc<SystemTray>)
Source§fn after_handles<'a>(
&'a self,
_dynamic_ui: &Rc<T>,
_handles: &mut Vec<&'a ControlHandle>,
)
fn after_handles<'a>( &'a self, _dynamic_ui: &Rc<T>, _handles: &mut Vec<&'a ControlHandle>, )
nwg::PartialUi::handles
] and allows modifying its
result.Source§fn need_raw_events_for_children(&self) -> bool
fn need_raw_events_for_children(&self) -> bool
DynamicUiHooks::after_handles
to check if we should
bind raw event handlers for child controls as well.Source§fn after_process_events(
&self,
_dynamic_ui: &Rc<T>,
_evt: Event,
_evt_data: &EventData,
_handle: ControlHandle,
_window: ControlHandle,
)
fn after_process_events( &self, _dynamic_ui: &Rc<T>, _evt: Event, _evt_data: &EventData, _handle: ControlHandle, _window: ControlHandle, )
nwg::PartialUi::process_event
] and allows easily
doing some extra processing. Useful since the original method might be
implemented by a derive macro which would make it difficult to modify.Source§fn process_raw_event(
&self,
_dynamic_ui: &Rc<T>,
_hwnd: isize,
_msg: u32,
_w: usize,
_l: isize,
_window: ControlHandle,
) -> Option<isize>
fn process_raw_event( &self, _dynamic_ui: &Rc<T>, _hwnd: isize, _msg: u32, _w: usize, _l: isize, _window: ControlHandle, ) -> Option<isize>
native_windows_gui
]). The first result that returns Some
will be
used as the actual return value for the event. Read moreSource§fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
fn need_rebuild(&self, _dynamic_ui: &Rc<T>) -> bool
Source§fn is_ordered_in_parent(&self) -> bool
fn is_ordered_in_parent(&self) -> bool
true
then the item will be rebuilt
after previous siblings (items that share the same parent) are rebuilt. Read moreSource§impl DynamicUiWrapper for SystemTray
impl DynamicUiWrapper for SystemTray
type Hooks = dyn TrayPlugin
fn get_dynamic_ui(&self) -> &DynamicUi<Self>
fn get_dynamic_ui_mut(&mut self) -> &mut DynamicUi<Self>
Auto Trait Implementations§
impl !Freeze for SystemTray
impl !RefUnwindSafe for SystemTray
impl !Send for SystemTray
impl !Sync for SystemTray
impl Unpin for SystemTray
impl !UnwindSafe for SystemTray
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.