add initial examples, replacing the 'Demos/Demos3'. Will make it work cross-platform, OpenGL3/OpenGL2 and add more examples to it.
This commit is contained in:
43
examples/ThirdPartyLibs/Gwen/Platform.h
Normal file
43
examples/ThirdPartyLibs/Gwen/Platform.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
GWEN
|
||||
Copyright (c) 2010 Facepunch Studios
|
||||
See license in Gwen.h
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef GWEN_PLATFORM_H
|
||||
#define GWEN_PLATFORM_H
|
||||
|
||||
#include "Gwen/Structures.h"
|
||||
#include "Gwen/Events.h"
|
||||
|
||||
namespace Gwen
|
||||
{
|
||||
namespace Platform
|
||||
{
|
||||
//
|
||||
// Set the system cursor to iCursor
|
||||
// Cursors are defined in Structures.h
|
||||
//
|
||||
void GWEN_EXPORT SetCursor( unsigned char iCursor );
|
||||
|
||||
//
|
||||
// Used by copy/paste
|
||||
//
|
||||
UnicodeString GWEN_EXPORT GetClipboardText();
|
||||
bool GWEN_EXPORT SetClipboardText( const UnicodeString& str );
|
||||
|
||||
//
|
||||
// Needed for things like double click
|
||||
//
|
||||
float GWEN_EXPORT GetTimeInSeconds();
|
||||
|
||||
//
|
||||
// System Dialogs ( Can return false if unhandled )
|
||||
//
|
||||
bool GWEN_EXPORT FileOpen( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback );
|
||||
bool GWEN_EXPORT FileSave( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback );
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user