Brush.h 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #import <appkit/appkit.h>
  2. #import "SetBrush.h"
  3. #import "EditWindow.h"
  4. extern id brush_i;
  5. extern BOOL brushdraw; // YES when drawing cutbrushes and ents
  6. @interface Brush : SetBrush
  7. {
  8. id cutbrushes_i;
  9. id cutentities_i;
  10. boolean updatemask[MAXBRUSHVERTEX];
  11. BOOL dontdraw; // for modal instance loops
  12. BOOL deleted; // when not visible at all
  13. }
  14. - init;
  15. - initFromSetBrush: br;
  16. - deselect;
  17. - (BOOL)isSelected;
  18. - (BOOL)XYmouseDown: (NXPoint *)pt; // return YES if brush handled
  19. - (BOOL)ZmouseDown: (NXPoint *)pt; // return YES if brush handled
  20. - _keyDown:(NXEvent *)theEvent;
  21. - (NXPoint)centerPoint; // for camera flyby mode
  22. - InstanceSize;
  23. - XYDrawSelf;
  24. - ZDrawSelf;
  25. - CameraDrawSelf;
  26. - flipHorizontal: sender;
  27. - flipVertical: sender;
  28. - rotate90: sender;
  29. - makeTall: sender;
  30. - makeShort: sender;
  31. - makeWide: sender;
  32. - makeNarrow: sender;
  33. - placeEntity: sender;
  34. - cut: sender;
  35. - copy: sender;
  36. - addBrush;
  37. @end