mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
[C++] API sync
Added: * Plane: mergedown (`ncplane_mergedown`)
This commit is contained in:
parent
52bdbc6724
commit
ad93c03851
@ -303,6 +303,20 @@ namespace ncpp
|
|||||||
return move_above (*above);
|
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
|
bool cursor_move (int y, int x) const noexcept
|
||||||
{
|
{
|
||||||
return ncplane_cursor_move_yx (plane, y, x) != -1;
|
return ncplane_cursor_move_yx (plane, y, x) != -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user