Widget.getWidth

int getWidth()

Returns the content width of the widget.

This function returns the width passed to its size-allocate implementation, which is the width you should be using in vfuncGtk.Widget.snapshot.

For pointer events, see [gtk.widget.Widget.contains].

To learn more about widget sizes, see the coordinate system overview.

Returns

The width of widget