set_content_width


Description:

public void set_content_width (int width)

Sets the desired width of the contents of the drawing area.

Note that because widgets may be allocated larger sizes than they requested, it is possible that the actual width passed to your draw function is larger than the width set here. You can use [[email protected]_halign] to avoid that.

If the width is set to 0 (the default), the drawing area may disappear.

Parameters:

this

a `GtkDrawingArea`

width

the width of contents




2022 vala-language.org