AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
IzPlatformUI.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CIZ_PLATFORM_UI_H_)
00015 #define _CIZ_PLATFORM_UI_H_
00016 
00017 #include "CzPlatform.h"
00018 
00019 #define PLATFORM_UI         PLATFORM->getUI()
00020 
00021 class CzUIWebView;
00022 
00023 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
00024 //
00025 // IzPlatformUI
00026 //
00027 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
00028 class IzPlatformUI
00029 {
00030     // Properties
00031 protected:
00032     bool        Initialised;
00033 public:
00034     bool        isInitialised() const   { return Initialised; }
00035     // Properties end
00036 public:
00037     virtual int Init() = 0;
00038     virtual void Release() = 0;
00039 
00040     // Web view
00041     virtual bool        isWebViewAvailable() const = 0;
00042     virtual CzWebView   CreateWebView(bool transparent = false) = 0;
00043     virtual bool        CreateWebViewModal(const char* uri) = 0;
00044     virtual void        DestroyWebView(CzWebView web_view) = 0;
00045     virtual void        NavigateWebView(CzWebView web_view, const char* uri) = 0;
00046     virtual void        SendJavascriptToWebView(CzWebView web_view, const char* script) = 0;
00047     virtual void        ShowWebView(CzWebView web_view, bool visible) = 0;
00048     virtual void        setWebViewDimensions(CzWebView web_view, int x, int y, int w, int h) = 0;
00049     virtual void        setWebViewUIView(CzWebView web_view, CzUIWebView* ui_view) = 0;
00050 
00051     // Event notification
00052     virtual void        NotifyPageLoaded(CzWebView view, const char* uri) = 0;
00053     virtual void        NotifyPageLoading(CzWebView view, const char* uri) = 0;
00054     virtual void        NotifyPageError(CzWebView view, const char* uri) = 0;
00055     virtual void        NotifyJavascript(CzWebView view, const char* data) = 0;
00056 };
00057 
00058 
00059 #endif  // _CIZ_PLATFORM_UI_H_