types.h 515 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "foundation/types.h"
  3. #include "nx/nxdata.h"
  4. typedef int data_flags_t;
  5. enum
  6. {
  7. DATA_FLAG_NONE=0,
  8. DATA_FLAG_DATA=(1<<0),
  9. DATA_FLAG_SOURCE_INFORMATION=(1<<1),
  10. DATA_FLAG_MIME=(1<<2),
  11. DATA_FLAG_DESCRIPTION=(1<<3),
  12. DATA_FLAG_ALL=DATA_FLAG_DATA|DATA_FLAG_SOURCE_INFORMATION|DATA_FLAG_MIME|DATA_FLAG_DESCRIPTION,
  13. };
  14. class artwork_t
  15. {
  16. public:
  17. artwork_t()
  18. {
  19. data=0;
  20. width=0;
  21. height=0;
  22. }
  23. ~artwork_t()
  24. {
  25. NXDataRelease(data);
  26. }
  27. nx_data_t data;
  28. uint32_t width;
  29. uint32_t height;
  30. };