Pieter
Pieter

Reputation: 32805

Ellipse object in GDK

In GDK there's an object called GdkRectangle that is used to draw rectangles. Is there a similar object for ellipses?

Upvotes: 0

Views: 241

Answers (1)

user319799
user319799

Reputation:

No. Actually, GdkRectangle is not used to draw rectangles directly, it is merely used to specify rectangle position. For instance, gdk_draw_rectangle() doesn't even accept any GdkRectangle argument. To draw an ellipse, you could use gdk_draw_arc().

Note that using GDK for drawing is quite outdated. You could use Cairo and functions cairo_rectangle() and cairo_arc() for this.

Upvotes: 1

Related Questions