Gui Custom.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /******************************************************************************/
  2. const_mem_addr STRUCT(GuiCustom , GuiObj) // Gui Custom Object !! must be stored in constant memory address !!
  3. //{
  4. // manage
  5. GuiCustom& del ( ); // delete
  6. GuiCustom& create( Ptr user=null); // create
  7. GuiCustom& create(C Rect &rect, Ptr user=null) {create(user).rect(rect); return T;} // create
  8. GuiCustom& create(C GuiCustom &src ); // create from 'src'
  9. // set / get
  10. GuiCustom& focusable(Bool on); Bool focusable()C {return _focusable;} // set/get if can catch keyboard focus, default=false
  11. #if EE_PRIVATE
  12. void zero();
  13. #endif
  14. ~GuiCustom() {del();}
  15. GuiCustom();
  16. #if !EE_PRIVATE
  17. private:
  18. #endif
  19. Bool _focusable;
  20. protected:
  21. virtual Bool save(File &f, CChar *path=null)C;
  22. virtual Bool load(File &f, CChar *path=null) ;
  23. };
  24. /******************************************************************************/