Function

AdapBreakpointConditionnew_ratio

since: 1.4

Declaration [src]

AdapBreakpointCondition*
adap_breakpoint_condition_new_ratio (
  AdapBreakpointConditionRatioType 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

Type: AdapBreakpointConditionRatioType

The ratio type.

width

Type: int

Ratio width.

height

Type: int

Ratio height.

Return value

Type: AdapBreakpointCondition

The newly created condition.

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