|
|
@ -285,6 +285,11 @@ namespace ncpp
|
|
|
|
return reparent (const_cast<Plane*>(&newparent));
|
|
|
|
return reparent (const_cast<Plane*>(&newparent));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void home () const noexcept
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ncplane_home (plane);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool move (int y, int x) const NOEXCEPT_MAYBE
|
|
|
|
bool move (int y, int x) const NOEXCEPT_MAYBE
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return error_guard (ncplane_move_yx (plane, y, x), -1);
|
|
|
|
return error_guard (ncplane_move_yx (plane, y, x), -1);
|
|
|
@ -616,6 +621,16 @@ namespace ncpp
|
|
|
|
return error_guard (ncplane_perimeter (plane, ul, ur, ll, lr, hline, vline, ctlword), -1);
|
|
|
|
return error_guard (ncplane_perimeter (plane, ul, ur, ll, lr, hline, vline, ctlword), -1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool perimeter_rounded (uint32_t attrword, uint64_t channels, unsigned ctlword) const NOEXCEPT_MAYBE
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return error_guard (ncplane_perimeter_rounded (plane, attrword, channels, ctlword), -1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool perimeter_double (uint32_t attrword, uint64_t channels, unsigned ctlword) const NOEXCEPT_MAYBE
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return error_guard (ncplane_perimeter_double (plane, attrword, channels, ctlword), -1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int polyfill (int y, int x, const Cell& c) const NOEXCEPT_MAYBE
|
|
|
|
int polyfill (int y, int x, const Cell& c) const NOEXCEPT_MAYBE
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return error_guard<int> (ncplane_polyfill_yx (plane, y, x, c), -1);
|
|
|
|
return error_guard<int> (ncplane_polyfill_yx (plane, y, x, c), -1);
|
|
|
@ -1033,6 +1048,16 @@ namespace ncpp
|
|
|
|
return error_guard_cond<int> (ret, ret < 0);
|
|
|
|
return error_guard_cond<int> (ret, ret < 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool is_fg_default () const noexcept
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return ncplane_fg_default_p (plane);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool is_bg_default () const noexcept
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return ncplane_bg_default_p (plane);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
explicit Plane (ncplane *_plane, bool _is_stdplane)
|
|
|
|
explicit Plane (ncplane *_plane, bool _is_stdplane)
|
|
|
|
: Root (nullptr),
|
|
|
|
: Root (nullptr),
|
|
|
|