Function

AdwBreakpointConditionnew_ratio

Declaration [src]

AdwBreakpointCondition*
adw_breakpoint_condition_new_ratio (
  AdwBreakpointConditionRatioType type,
  int width,
  int height
)

Description [src]

Creates a condition that triggers on ratio changes.

The ratio is represented as width divided by height.

Available since:1.4

Parameters

type AdwBreakpointConditionRatioType
 

The ratio type.

width int
 

Ratio width.

height int
 

Ratio height.

Return value

Returns: AdwBreakpointCondition
 

The newly created condition.

 The caller of the function takes ownership of the data, and is responsible for freeing it.