UIComponent.pkg 939 B

123456789101112131415161718192021222324252627282930313233
  1. $#include "UI/UIComponent.h"
  2. $#include "UI/UIElement.h"
  3. $#include "Scene/Component.h"
  4. $#include "Graphics/Material.h"
  5. $#include "Graphics/Texture2D.h"
  6. $#include "Graphics/StaticModel.h"
  7. class UIComponent : public Component
  8. {
  9. UIComponent();
  10. UIElement* GetRoot() const;
  11. Material* GetMaterial() const;
  12. Texture2D* GetTexture() const;
  13. tolua_readonly tolua_property__get_set UIElement* root;
  14. tolua_readonly tolua_property__get_set Material* material;
  15. tolua_readonly tolua_property__get_set Texture2D* texture;
  16. };
  17. ${
  18. #define TOLUA_DISABLE_tolua_UILuaAPI_UIComponent_new00
  19. static int tolua_UILuaAPI_UIComponent_new00(lua_State* tolua_S)
  20. {
  21. return ToluaNewObject<UIComponent>(tolua_S);
  22. }
  23. #define TOLUA_DISABLE_tolua_UILuaAPI_UIComponent_new00_local
  24. static int tolua_UILuaAPI_UIComponent_new00_local(lua_State* tolua_S)
  25. {
  26. return ToluaNewObjectGC<UIComponent>(tolua_S);
  27. }
  28. $}