get_width


Description:

public int get_width ()

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 [ vfunc@Gtk.Widget.snapshot].

For pointer events, see [method@Gtk.Widget.contains].

To learn more about widget sizes, see the coordinate system [overview](coordinates.html).

Parameters:

this

a `GtkWidget`

Returns:

The width of this