signal callback delegate or function to connect
void callback(gdk.toplevel_size.ToplevelSize size, gdk.toplevel.Toplevel toplevel)
size a gdk.toplevel_size.ToplevelSize (optional)
toplevel the instance the signal is connected to (optional)
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to ComputeSize signal.
Emitted when the size for the surface needs to be computed, when it is present.
This signal will normally be emitted during or after a call to gdk.toplevel.Toplevel.present, depending on the configuration received by the windowing system. It may also be emitted at any other point in time, in response to the windowing system spontaneously changing the configuration of the toplevel surface.
It is the responsibility of the toplevel user to handle this signal and compute the desired size of the toplevel, given the information passed via the gdk.toplevel_size.ToplevelSize object. Failing to do so will result in an arbitrary size being used as a result.