Method

AstalRiverLayoutset_layout_demand_closure

Declaration

void
astal_river_layout_set_layout_demand_closure (
  AstalRiverLayout* self,
  GClosure* closure
)

Description

Sets the Closure to be called when a new layout is requested. The Closure is of type AstalRiverLayoutDemandCallback. The Closure must return a AstalRiverLayoutDemandResult containing exactly as many AstalWlRectangle objects as requested. Each rectangle represents the position and size of each window. Before the result is applied, each rectangle is croped to ensure it lies entirely within the usable area.

Parameters

closure

Type: GClosure

No description available.

The data is owned by the caller of the method.