Desktop.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /******************************************************************************/
  2. const_mem_addr STRUCT(Desktop , GuiObj) // Gui Desktop !! must be stored in constant memory address !!
  3. //{
  4. // manage
  5. Desktop& del ( ); // manually delete
  6. Desktop& create( ); // create
  7. Desktop& create(C Desktop &src); // create from 'src'
  8. // main
  9. GuiObj* test (C Vec2 &pos, GuiObj* &mouse_wheel); // test if 'pos' screen position intersects with the object, by returning pointer to object or its children upon intersection and null in case no intersection, 'mouse_wheel' may be modified upon intersection either to the object or its children or null
  10. void update(); // update object
  11. void draw (); // draw object
  12. #if EE_PRIVATE
  13. void zero();
  14. void addChild(GuiObj &child);
  15. void removeChild(GuiObj &child);
  16. #endif
  17. ~Desktop() {del();}
  18. Desktop();
  19. #if !EE_PRIVATE
  20. private:
  21. #endif
  22. GuiObjChildren _children;
  23. #if EE_PRIVATE
  24. friend struct GUI;
  25. #endif
  26. };
  27. /******************************************************************************/