void Fl_Cairo_Window_Wrapper::resize(int x, int y, int w, int h) {
  Fl_Cairo_Window::resize(x, y, w, h);
  Dart_Handle args[4] = {
    Dart_NewInteger((int64_t)x),
    Dart_NewInteger((int64_t)y),
    Dart_NewInteger((int64_t)w),
    Dart_NewInteger((int64_t)h)
  };
  HandleError(Dart_Invoke(_ref, Dart_NewStringFromCString("resize"), 4, args));
}
int Fl_Cairo_Window_Wrapper::handle(int event) {
  Dart_Handle args[1] = { Dart_NewInteger((int64_t)event) };
  Dart_Handle ret = HandleError(Dart_Invoke(_ref, Dart_NewStringFromCString("doHandle"), 1, args));
  int64_t returnValue;
  Dart_IntegerToInt64(ret, &returnValue);
  return returnValue;
}
Example #3
0
void getVersion(Dart_NativeArguments arguments) {
  Dart_EnterScope();
  Dart_Handle result = Dart_NewInteger(PDFLIB_MAJORVERSION);
  Dart_SetReturnValue(arguments, result);
  Dart_ExitScope();
}