UIComponent.pkg 985 B

12345678910111213141516171819202122232425262728293031323334353637
  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 UIElement3D : public UIElement
  8. {
  9. }
  10. class UIComponent : public Component
  11. {
  12. UIComponent();
  13. UIElement* GetRoot() const;
  14. Material* GetMaterial() const;
  15. Texture2D* GetTexture() const;
  16. tolua_readonly tolua_property__get_set UIElement* root;
  17. tolua_readonly tolua_property__get_set Material* material;
  18. tolua_readonly tolua_property__get_set Texture2D* texture;
  19. };
  20. ${
  21. #define TOLUA_DISABLE_tolua_UILuaAPI_UIComponent_new00
  22. static int tolua_UILuaAPI_UIComponent_new00(lua_State* tolua_S)
  23. {
  24. return ToluaNewObject<UIComponent>(tolua_S);
  25. }
  26. #define TOLUA_DISABLE_tolua_UILuaAPI_UIComponent_new00_local
  27. static int tolua_UILuaAPI_UIComponent_new00_local(lua_State* tolua_S)
  28. {
  29. return ToluaNewObjectGC<UIComponent>(tolua_S);
  30. }
  31. $}