[C++] API sync

Added:

  * Plane: mergedown (`ncplane_mergedown`)
pull/420/head
Marek Habersack 5 years ago committed by Nick Black
parent 52bdbc6724
commit ad93c03851

@ -303,6 +303,20 @@ namespace ncpp
return move_above (*above);
}
bool mergedown (Plane &dst) const
{
if (plane == dst.plane)
throw invalid_argument ("'dst' must refer to a differnt plane than the one this method is called on");
return ncplane_mergedown (plane, dst.plane) != -1;
}
bool mergedown (Plane *dst) const
{
if (dst == nullptr)
throw invalid_argument ("'dst' must be a valid pointer");
return mergedown (*dst);
}
bool cursor_move (int y, int x) const noexcept
{
return ncplane_cursor_move_yx (plane, y, x) != -1;

Loading…
Cancel
Save