getBordersSize method

Rectangle<double> getBordersSize()

Implementation

math.Rectangle<double> getBordersSize() {
  var top = calloc<Int32>();
  var left = calloc<Int32>();
  var bottom = calloc<Int32>();
  var right = calloc<Int32>();
  // 1104
  sdlGetWindowBordersSize(this, top, left, bottom, right);
  var result = math.Rectangle<double>(top.value.toDouble(),
      left.value.toDouble(), bottom.value.toDouble(), right.value.toDouble());
  calloc.free(top);
  calloc.free(left);
  calloc.free(bottom);
  calloc.free(right);
  return result;
}