addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. required bool mouseDownOnCharacterIndex_atCoordinate_withModifier_client_(
    1. DartNSUInteger,
    2. NSPoint,
    3. DartNSUInteger,
    4. ObjCObjectBase,
    ),
  3. required bool mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client_(
    1. DartNSUInteger,
    2. NSPoint,
    3. DartNSUInteger,
    4. ObjCObjectBase,
    ),
  4. required void mouseUpOnCharacterIndex_atCoordinate_withModifier_client_(
    1. DartNSUInteger,
    2. NSPoint,
    3. DartNSUInteger,
    4. ObjCObjectBase,
    ),
  5. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSInputServerMouseTracker protocol to an existing objc.ObjCProtocolBuilder.

Note: You cannot call this method after you have called builder.build.

Implementation

static void addToBuilder(
  objc.ObjCProtocolBuilder builder, {
  required bool Function(
    DartNSUInteger,
    NSPoint,
    DartNSUInteger,
    objc.ObjCObjectBase,
  )
  mouseDownOnCharacterIndex_atCoordinate_withModifier_client_,
  required bool Function(
    DartNSUInteger,
    NSPoint,
    DartNSUInteger,
    objc.ObjCObjectBase,
  )
  mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client_,
  required void Function(
    DartNSUInteger,
    NSPoint,
    DartNSUInteger,
    objc.ObjCObjectBase,
  )
  mouseUpOnCharacterIndex_atCoordinate_withModifier_client_,
  bool $keepIsolateAlive = true,
}) {
  NSInputServerMouseTracker
      .mouseDownOnCharacterIndex_atCoordinate_withModifier_client_
      .implement(
        builder,
        mouseDownOnCharacterIndex_atCoordinate_withModifier_client_,
      );
  NSInputServerMouseTracker
      .mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client_
      .implement(
        builder,
        mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client_,
      );
  NSInputServerMouseTracker
      .mouseUpOnCharacterIndex_atCoordinate_withModifier_client_
      .implement(
        builder,
        mouseUpOnCharacterIndex_atCoordinate_withModifier_client_,
      );
  builder.addProtocol($protocol);
}