Method

Gdk.Paintable.compute_concrete_size

Declaration [src]

void
gdk_paintable_compute_concrete_size (
  GdkPaintable* paintable,
  double specified_width,
  double specified_height,
  double default_width,
  double default_height,
  double* concrete_width,
  double* concrete_height
)

Description [src]

Compute a concrete size for the GdkPaintable.

Applies the sizing algorithm outlined in the CSS Image spec to the given paintable. See that link for more details.

It is not necessary to call this function when both specified_width and specified_height are known, but it is useful to call this function in GtkWidget:measure implementations to compute the other dimension when only one dimension is given.

Parameters

specified_width double
 

the width paintable could be drawn into or 0.0 if unknown

specified_height double
 

the height paintable could be drawn into or 0.0 if unknown

default_width double
 

the width paintable would be drawn into if no other constraints were given

default_height double
 

the height paintable would be drawn into if no other constraints were given

concrete_width double*
 

will be set to the concrete width computed.

 Direction: out
 Ownership of the data is transferred to the callee
concrete_height double*
 

will be set to the concrete height computed.

 Direction: out
 Ownership of the data is transferred to the callee