[C++] API sync

Added:

  * NCKey: `ScrollUp`, `ScrollDown` and `Return`
  * Plane: is_mouse_event (`ncplane_mouseevent_p`)
pull/396/head
Marek Habersack 5 years ago committed by Nick Black
parent 5d8da395b9
commit 3467a0adef

@ -109,6 +109,9 @@ namespace ncpp
static constexpr char32_t Button10 = NCKEY_BUTTON10;
static constexpr char32_t Button11 = NCKEY_BUTTON11;
static constexpr char32_t Release = NCKEY_RELEASE;
static constexpr char32_t ScrollUp = NCKEY_SCROLL_UP;
static constexpr char32_t ScrollDown = NCKEY_SCROLL_DOWN;
static constexpr char32_t Return = NCKEY_RETURN;
static bool IsMouse (char32_t ch) noexcept
{

@ -882,6 +882,11 @@ namespace ncpp
return cell.has_no_foreground ();
}
bool is_mouse_event (const ncinput *ni) const noexcept
{
return ncplane_mouseevent_p (plane, ni);
}
const char* get_extended_gcluster (Cell &cell) const noexcept
{
return cell_extended_gcluster (plane, cell);

Loading…
Cancel
Save