GtkClutter.Embed.prototype.set_use_layout_size
function set_use_layout_size(use_layout_size: Boolean): void { // Gjs wrapper for gtk_clutter_embed_set_use_layout_size() }
Changes the way embed requests size. If use_layout_size is true, the embed widget will request the size that the LayoutManager reports as the preferred size. This means that a Gtk+ window will automatically get the natural and minimum toplevel window sizes. This is useful when the contents of the clutter stage is similar to a traditional UI.
If use_layout_size is false (which is the default) then embed will not request any size and its up to the embedder to make sure there is some size (by setting a custom size on the widget or a default size on the toplevel. This makes more sense when using the embed as a viewport into a potentially unlimited clutter space.
Since 1.4
- use_layout_size
a boolean