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
CzUICanvas.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(_CCZ_UI_CANVAS_H_)
00015 #define _CCZ_UI_CANVAS_H_
00016 
00017 #include "CzUIPanel.h"
00018 
00019 //
00020 //
00021 //
00022 //
00023 // CzUICanvas - A panel that allows placement of any UI element in any place, no specific layout rules are enforced
00024 //
00025 //
00026 //
00027 //
00028 class CzUICanvas : public CzUIPanel
00029 {
00030     // Properties
00031 protected:
00032 public:
00033     // Properties end
00034 protected:
00035     void                        LinkChanged(CzActor* child, bool remove);
00036     bool                        UpdateLayout();         // Updates the layout of the child items
00037 public:
00038     CzUICanvas() : CzUIPanel() { setActualClassType("canvas"); }
00039 
00040     bool                Update(float dt);
00041 
00042     // Implementation of IzXomlClass interface
00043     int                 LoadFromXoml(IzXomlResource* parent, bool load_children, CzXmlNode* node);
00044 };
00045 
00046 //
00047 //  CzUICanvasCreator - Creates an instance of a canvas actor object
00048 //
00049 class CzUICanvasCreator : public IzXomlClassCreator
00050 {
00051 public:
00052     CzUICanvasCreator()
00053     {
00054         setClassName("canvas");
00055     }
00056     IzXomlResource* CreateInstance(IzXomlResource* parent)  { return new CzUICanvas(); }
00057 };
00058 
00059 
00060 #endif  // _CCZ_UI_CANVAS_H_