pos property

int get pos

pos returns the trackbar position.

For further details, please see: https://docs.opencv.org/master/d7/dfc/group__highgui.html#ga122632e9e91b9ec06943472c55d9cda8

Implementation

int get pos {
  return cvRunArena<int>((arena) {
    final result = arena<ffi.Int>();
    cvRun(
      () => chighgui.Trackbar_GetPos(
        parent.name.toNativeUtf8(allocator: arena).cast(),
        name.toNativeUtf8(allocator: arena).cast(),
        result,
      ),
    );
    return result.value;
  });
}
set pos (int pos)

pos sets the trackbar position.

For further details, please see: https://docs.opencv.org/master/d7/dfc/group__highgui.html#ga67d73c4c9430f13481fd58410d01bd8d

Implementation

set pos(int pos) {
  cvRunArena((arena) {
    cvRun(
      () => chighgui.Trackbar_SetPos(
        parent.name.toNativeUtf8(allocator: arena).cast(),
        name.toNativeUtf8(allocator: arena).cast(),
        pos,
      ),
    );
  });
}