|
wxExtend
Additional templates and function helpers for wxWidgets
|
Dockable application bar template. More...
#include <wxex/appbar.h>
Public Member Functions | |
| wxAppBar () | |
| Creates new application bar. | |
| virtual | ~wxAppBar () |
| Destructor. | |
Application bar general management | |
| wxAppBarState | GetState () const |
| Returns current state of the application bar. | |
| bool | IsAlwaysOnTop () const |
| Returns whether application bar is displayed always on top. | |
| bool | SetAlwaysOnTop (bool alwaysOnTop=true) |
| Sets whether application bar is displayed always on top. | |
| bool | IsAutoHide () const |
| Returns if application bar is configured for auto-hide. | |
| bool | SetAutoHide (bool autoHide=true) |
| Sets whether application bar is displayed always on top. | |
| bool | GetAllowSizing () const |
| Returns if sizing of the application bar is allowed. | |
| bool | SetAllowSizing (bool allow=true) |
| Sets whether resizing of the application bar is allowed. | |
| bool | GetAutoHidden () const |
| Returns if application bar is auto-hidden right now. | |
| void | MinimiseToEdge (wxAppBarState edge, wxWindow *wnd=NULL) |
| Minimize application bar to the edge of the desktop. | |
| void | MaximiseFromEdge (const RECT *rect=NULL) |
| Restore application bar from the edge of the desktop. | |
| void | MaximiseFromEdge (wxWindow *wnd) |
| Restore application bar from the edge of the desktop. | |
| void | ShowAutoHideAppBar (bool show=true) |
| Shows or hides auto-hide application bar. | |
| void | HideAutoHideAppBar () |
| Hides auto-hide application bar. | |
Protected Member Functions | |
Notification handlers | |
| virtual void | OnChangeState (wxAppBarState stateNew) |
| Notification handler when the new state of the application bar is proposed. | |
| virtual void | OnChangeTaskBarState (UINT_PTR state) |
| Notification handler when the Windows' taskbar state changes. | |
| virtual void | OnWindowsArrange (bool beginning) |
| Notification handler when desktop windows are being arranged (cascaded, tiled, ...) | |
| virtual void | OnAutoHideDenied () |
| Called when application bar was forced from auto-hide to normal docking. | |
Protected Attributes | |
| wxAppBarState | m_state |
| Current state of the application bar. | |
| wxAppBarState | m_stateDesired |
| Desired state of the application bar while moving/resizing. | |
| int | m_flags |
| Flags describing application bar's behaviour. | |
| SIZE | m_sizeFloat |
| Window size when floating (we need it to restore floating size, when we undock) | |
| SIZE | m_sizeDocked |
| Size of the window when docked (height when wxAppBarState::TOP or wxAppBarState::BOTTOM, width when wxAppBarState::LEFT or wxAppBarState::RIGHT) | |
| SIZE | m_sizeMin |
| Minimum window size. | |
| UINT_PTR | m_stateTaskBar |
| TaskBar's current state. | |
| UINT_PTR | m_timerID |
| Application bar's timer id. | |
| ITaskbarList * | m_taskbarList |
| Windows's taskbar list interface. | |
Dockable application bar template.
|
inline |
Returns if sizing of the application bar is allowed.
true if sizing of the application bar is allowedfalse otherwise
|
inline |
Returns if application bar is auto-hidden right now.
true if application bar is auto-hidden right nowfalse otherwise
|
inline |
Returns whether application bar is displayed always on top.
true when application bar is always on topfalse otherwise
|
inline |
Returns if application bar is configured for auto-hide.
true if application bar is configured for auto-hidefalse otherwise | void wxAppBar< W >::MaximiseFromEdge | ( | const RECT * | rect = NULL | ) |
Restore application bar from the edge of the desktop.
| [in] | rect | The desired coordinates of the restored window. If NULL internally saved coordinates are used. |
| void wxAppBar< W >::MaximiseFromEdge | ( | wxWindow * | wnd | ) |
Restore application bar from the edge of the desktop.
| [in] | wnd | When the undocked and docked window is different, this parameter denotes the undocked version. |
| void wxAppBar< W >::MinimiseToEdge | ( | wxAppBarState | edge, |
| wxWindow * | wnd = NULL ) |
Minimize application bar to the edge of the desktop.
| [in] | edge | The edge at which to dock. Must be either of: wxAppBarState::LEFT, wxAppBarState::TOP, wxAppBarState::RIGHT, or wxAppBarState::BOTTOM. |
| [in] | wnd | When the undocked and docked window is different, this parameter denotes the undocked version. |
|
protectedvirtual |
Called when application bar was forced from auto-hide to normal docking.
Default implementation displays a warning dialog.
|
protectedvirtual |
Notification handler when the new state of the application bar is proposed.
Derived classes can implement their own. However, overriden virtual method should call the parent's implementation too.
| [in] | stateNew | New state about to take effect. |
|
protectedvirtual |
Notification handler when the Windows' taskbar state changes.
Derived classes can implement their own. However, overriden virtual method should call the parent's implementation too.
| [in] | state | New taskbar state. |
|
protectedvirtual |
Notification handler when desktop windows are being arranged (cascaded, tiled, ...)
Derived classes can implement their own. However, overriden virtual method should call the parent's implementation too.
| [in] | beginning | true when windows arrangement starts and false when arrangement ends. |
|
inline |
Sets whether resizing of the application bar is allowed.
| [in] | allow | Logical variable to control whether resizing is to be enabled (true) or disabled (false). |
|
inline |
Sets whether application bar is displayed always on top.
| [in] | alwaysOnTop | Logical variable to control whether always-on-top behaviour is to be enabled (true) or disabled (false). |
|
inline |
Sets whether application bar is displayed always on top.
| [in] | autoHide | Logical variable to control whether auto-hide behaviour is to be enabled (true) or disabled (false). |
| void wxAppBar< W >::ShowAutoHideAppBar | ( | bool | show = true | ) |
Shows or hides auto-hide application bar.
| [in] | show | Logical variable to control whether application bar is be shown (true) or hidden (false). |