NSPathControl.inc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. { Parsed from Appkit.framework NSPathControl.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSPATHCONTROL_PAS_T}
  4. {$define NSPATHCONTROL_PAS_T}
  5. {$endif}
  6. {$endif}
  7. {$ifdef RECORDS}
  8. {$ifndef NSPATHCONTROL_PAS_R}
  9. {$define NSPATHCONTROL_PAS_R}
  10. {$endif}
  11. {$endif}
  12. {$ifdef FUNCTIONS}
  13. {$ifndef NSPATHCONTROL_PAS_F}
  14. {$define NSPATHCONTROL_PAS_F}
  15. {$endif}
  16. {$endif}
  17. {$ifdef EXTERNAL_SYMBOLS}
  18. {$ifndef NSPATHCONTROL_PAS_S}
  19. {$define NSPATHCONTROL_PAS_S}
  20. {$endif}
  21. {$endif}
  22. {$ifdef FORWARD}
  23. NSPathControlDelegateProtocol = objcprotocol;
  24. NSPathControl = objcclass;
  25. NSPathControlPointer = ^NSPathControl;
  26. NSPathControlPtr = NSPathControlPointer;
  27. {$endif}
  28. {$ifdef CLASSES}
  29. {$ifndef NSPATHCONTROL_PAS_C}
  30. {$define NSPATHCONTROL_PAS_C}
  31. { NSPathControl }
  32. NSPathControl = objcclass external (NSControl)
  33. private
  34. _draggingSourceOperationMaskForLocal: NSDragOperation;
  35. _draggingSourceOperationMaskForNonLocal: NSDragOperation;
  36. _reserved: NSInteger;
  37. _delegate: id;
  38. _aux: id;
  39. public
  40. function URL: NSURL; message 'URL';
  41. procedure setURL(url_: NSURL); message 'setURL:';
  42. function doubleAction: SEL; message 'doubleAction';
  43. procedure setDoubleAction(action_: SEL); message 'setDoubleAction:';
  44. function pathStyle: NSPathStyle; message 'pathStyle';
  45. procedure setPathStyle(style: NSPathStyle); message 'setPathStyle:';
  46. function clickedPathComponentCell: NSPathComponentCell; message 'clickedPathComponentCell';
  47. function pathComponentCells: NSArray; message 'pathComponentCells';
  48. procedure setPathComponentCells(cells: NSArray); message 'setPathComponentCells:';
  49. procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
  50. function backgroundColor: NSColor; message 'backgroundColor';
  51. function delegate: NSPathControlDelegateProtocol; message 'delegate';
  52. procedure setDelegate(delegate_: NSPathControlDelegateProtocol); message 'setDelegate:';
  53. procedure setDraggingSourceOperationMask_forLocal(mask: NSDragOperation; isLocal: Boolean); message 'setDraggingSourceOperationMask:forLocal:';
  54. procedure setMenu(menu_: NSMenu); message 'setMenu:';
  55. function menu: NSMenu; message 'menu';
  56. end;
  57. {$endif}
  58. {$endif}
  59. {$ifdef PROTOCOLS}
  60. {$ifndef NSPATHCONTROL_PAS_P}
  61. {$define NSPATHCONTROL_PAS_P}
  62. { NSPathControlDelegate Protocol }
  63. NSPathControlDelegateProtocol = objcprotocol external name 'NSPathControlDelegate'
  64. function pathControl_shouldDragPathComponentCell_withPasteboard(pathControl: NSPathControl; pathComponentCell: NSPathComponentCell; pasteboard: NSPasteboard): Boolean; message 'pathControl:shouldDragPathComponentCell:withPasteboard:';
  65. function pathControl_validateDrop(pathControl: NSPathControl; info: NSDraggingInfoProtocol): NSDragOperation; message 'pathControl:validateDrop:';
  66. function pathControl_acceptDrop(pathControl: NSPathControl; info: NSDraggingInfoProtocol): Boolean; message 'pathControl:acceptDrop:';
  67. procedure pathControl_willDisplayOpenPanel(pathControl: NSPathControl; openPanel: NSOpenPanel); message 'pathControl:willDisplayOpenPanel:';
  68. procedure pathControl_willPopUpMenu(pathControl: NSPathControl; menu: NSMenu); message 'pathControl:willPopUpMenu:';
  69. end;
  70. {$endif}
  71. {$endif}