sk_rect

SkRectI

Types

SkRect = ref object
  native*: sk_rect_t
  Source Edit
SkRectI = ref object
  native*: sk_irect_t
  Source Edit

Procs

proc left=(rect: SkRect; value: float) {...}{.raises: [], tags: [].}
  Source Edit
proc right=(rect: SkRect; value: float) {...}{.raises: [], tags: [].}
  Source Edit
proc top=(rect: SkRect; value: float) {...}{.raises: [], tags: [].}
  Source Edit
proc bottom=(rect: SkRect; value: float) {...}{.raises: [], tags: [].}
  Source Edit
proc `$`(f: SkRect): string {...}{.raises: [ValueError], tags: [].}
  Source Edit
proc newSkRect(): SkRect {...}{.raises: [], tags: [].}
  Source Edit
proc newSkRect(rect: SkRect): SkRect {...}{.raises: [], tags: [].}
  Source Edit
proc newSkRect(left, top, right, bottom: float): SkRect {...}{.raises: [], tags: [].}
  Source Edit
proc newSkRectF(left, top, right, bottom: int): SkRect {...}{.raises: [], tags: [].}
  Source Edit
proc newSkRect(topLeft: (float, float); bottomRight: (float, float)): SkRect {...}{.
    raises: [], tags: [].}
  Source Edit
proc newSkRect(topLeft: (float, float); width, height: float): SkRect {...}{.raises: [],
    tags: [].}
  Source Edit
proc newSkRect(left, top, right, bottom: int32): SkRectI {...}{.raises: [], tags: [].}
  Source Edit
proc `==`(a: SkRect; b: SkRect): bool {...}{.raises: [], tags: [].}
  Source Edit
proc newSkRect(topLeft: (int32, int32); bottomRight: (int32, int32)): SkRectI {...}{.
    raises: [], tags: [].}
  Source Edit
proc newSkRect(topLeft: (int32, int32); width, height: int32): SkRectI {...}{.raises: [],
    tags: [].}
  Source Edit
proc size(this: SkRect): SkSize {...}{.raises: [], tags: [].}
  Source Edit
proc size=(this: SkRect; size: SkSize) {...}{.raises: [], tags: [].}
  Source Edit
proc location=(this: SkRect; location: SkPoint) {...}{.raises: [], tags: [].}
  Source Edit
proc offset(this: SkRect; x, y: float) {...}{.raises: [], tags: [].}
  Source Edit
proc inflate(this: SkRect; x, y: float) {...}{.raises: [], tags: [].}
  Source Edit
proc inflated(this: SkRect; x, y: float): SkRect {...}{.raises: [], tags: [].}
  Source Edit
proc standardized(r: SkRect): SkRect {...}{.raises: [], tags: [].}
  Source Edit

Converters

converter tupleToRectF(rect: (float, float, float, float)): SkRect {...}{.raises: [], tags: [].}
  Source Edit

Templates

template left(rect: untyped): auto
  Source Edit
template top(rect: untyped): auto
  Source Edit
template right(rect: untyped): auto
  Source Edit
template bottom(rect: untyped): auto
  Source Edit
template width(rect: untyped): auto
  Source Edit
template height(rect: untyped): auto
  Source Edit
template midX(rect: untyped): auto
  Source Edit
template midY(rect: untyped): auto
  Source Edit
template location(this: SkRect): SkPoint
  Source Edit