mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-03 23:47:12 +02:00
Update POCO to 1.11.0
This commit is contained in:
17
vendor/POCO/Util/include/Poco/Util/Application.h
vendored
17
vendor/POCO/Util/include/Poco/Util/Application.h
vendored
@ -118,6 +118,12 @@ public:
|
||||
PRIO_SYSTEM = 100
|
||||
};
|
||||
|
||||
struct WindowSize
|
||||
{
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
Application();
|
||||
/// Creates the Application.
|
||||
|
||||
@ -294,6 +300,15 @@ public:
|
||||
/// help information has been encountered and no other things
|
||||
/// besides displaying help shall be done.
|
||||
|
||||
static WindowSize windowSize();
|
||||
/// Returns the current window size of the console window,
|
||||
/// if available.
|
||||
///
|
||||
/// Currently implemented for POSIX platforms (via TIOCGWINSZ ioctl())
|
||||
/// and Windows (GetConsoleScreenBufferInfo()).
|
||||
///
|
||||
/// Returns zero width and height if the window size cannot be determined.
|
||||
|
||||
const char* name() const;
|
||||
|
||||
protected:
|
||||
@ -489,7 +504,7 @@ inline Poco::Timespan Application::uptime() const
|
||||
//
|
||||
// Macro to implement main()
|
||||
//
|
||||
#if defined(_WIN32)
|
||||
#if defined(_WIN32)
|
||||
#define POCO_APP_MAIN(App) \
|
||||
int wmain(int argc, wchar_t** argv) \
|
||||
{ \
|
||||
|
Reference in New Issue
Block a user