romgrk / node-gtk

GTK+ bindings for NodeJS (via GObject introspection)
MIT License
494 stars 41 forks source link

Passing array of boxed objects not working #272

Open romgrk opened 3 years ago

romgrk commented 3 years ago
    const rect = new Gsk.RoundedRect()
    const size = Graphene.Size.create(0, 0)
    rect.init(
      Graphene.Rect.create(0, 0, this.getAllocatedWidth(), this.getAllocatedHeight()),
      size,
      size,
      size,
      size
    )
    snapshot.appendBorder(
      rect,
      [1, 1, 1, 1],
      [RED, RED, RED, RED]
    )

The border create by the above code doesn't receive the red color.