X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9928e9d1ab76fd26557e2cf8e6715402639e999..1a18887b88e2ba064154ae5998db7b7533f6bb78:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index d7517e5cb3..a193d5edd4 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -104,6 +104,13 @@ enum wxFULLSCREEN_NOCAPTION }; +// Styles for RequestUserAttention +enum +{ + wxUSER_ATTENTION_INFO = 1, + wxUSER_ATTENTION_ERROR = 2 +}; + // ---------------------------------------------------------------------------- // wxTopLevelWindow: a top level (as opposed to child) window // ---------------------------------------------------------------------------- @@ -164,6 +171,11 @@ public: // operation is successful.) virtual bool SetShape(const wxRegion& WXUNUSED(region)) { return FALSE; } + // Attracts the users attention to this window if the application is + // inactive (should be called when a background event occurs) + virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO); + + // implementation only from now on // -------------------------------