enumerateWindowsWithOptions method

void enumerateWindowsWithOptions(
  1. NSWindowListOptions options, {
  2. required ObjCBlock<Void Function(NSWindow, Pointer<Bool>)> usingBlock,
})

enumerateWindowsWithOptions:usingBlock:

Implementation

void enumerateWindowsWithOptions(
  NSWindowListOptions options, {
  required objc.ObjCBlock<ffi.Void Function(NSWindow, ffi.Pointer<ffi.Bool>)>
  usingBlock,
}) {
  objc.checkOsVersionInternal(
    'NSApplication.enumerateWindowsWithOptions:usingBlock:',
    iOS: (true, null),
    macOS: (false, (10, 12, 0)),
  );
  _objc_msgSend_1kw9vjt(
    this.ref.pointer,
    _sel_enumerateWindowsWithOptions_usingBlock_,
    options.value,
    usingBlock.ref.pointer,
  );
}