FPDFPathSegment_GetPoint function

  1. @Native<FPDF_BOOL Function(FPDF_PATHSEGMENT, Pointer<Float>, Pointer<Float>)>(FPDF_PATHSEGMENT, ffi.Pointer<ffi.Float>, ffi.Pointer<ffi.Float>)>()
int FPDFPathSegment_GetPoint(
  1. FPDF_PATHSEGMENT segment,
  2. Pointer<Float> x,
  3. Pointer<Float> y
)

Get coordinates of |segment|.

segment - handle to a segment. x - the horizontal position of the segment. y - the vertical position of the segment.

Returns TRUE on success, otherwise |x| and |y| is not set.

Implementation

@ffi.Native<
  FPDF_BOOL Function(
    FPDF_PATHSEGMENT,
    ffi.Pointer<ffi.Float>,
    ffi.Pointer<ffi.Float>,
  )
>()
external int FPDFPathSegment_GetPoint(
  FPDF_PATHSEGMENT segment,
  ffi.Pointer<ffi.Float> x,
  ffi.Pointer<ffi.Float> y,
);