// * This makes emacs happy -*-Mode: C++;-*-
/****************************************************************************
// * This makes emacs happy -*-Mode: C++;-*-
/****************************************************************************
- * Copyright (c) 1998-2005,2011 Free Software Foundation, Inc. *
+ * Copyright 2019,2020 Thomas E. Dickey *
+ * Copyright 1998-2012,2014 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* Author: Juergen Pfeifer, 1997 *
****************************************************************************/
* Author: Juergen Pfeifer, 1997 *
****************************************************************************/
// This wraps the ITEM type of <menu.h>
// -------------------------------------------------------------------------
//
// This wraps the ITEM type of <menu.h>
// -------------------------------------------------------------------------
//
// If you don't like to create a child class for individual items to
// overload action(), you may use this class and provide a callback
// function pointer for items.
// If you don't like to create a child class for individual items to
// overload action(), you may use this class and provide a callback
// function pointer for items.
// This wraps the MENU type of <menu.h>
// -------------------------------------------------------------------------
//
// This wraps the MENU type of <menu.h>
// -------------------------------------------------------------------------
//
inline void scale (int& mrows, int& mcols) const {
OnError (::scale_menu (menu, &mrows, &mcols));
}
inline void scale (int& mrows, int& mcols) const {
OnError (::scale_menu (menu, &mrows, &mcols));
}
// The same mechanism is used to attach user data to a menu
// -------------------------------------------------------------------------
//
// The same mechanism is used to attach user data to a menu
// -------------------------------------------------------------------------
//
const T* p_UserData = STATIC_CAST(T*)(0))
: NCursesMenu(nlines,ncols,begin_y,begin_x) {
if (menu)
const T* p_UserData = STATIC_CAST(T*)(0))
: NCursesMenu(nlines,ncols,begin_y,begin_x) {
if (menu)
const T* p_UserData = STATIC_CAST(T*)(0),
bool with_frame=FALSE,
bool autoDelete_Items=FALSE)
const T* p_UserData = STATIC_CAST(T*)(0),
bool with_frame=FALSE,
bool autoDelete_Items=FALSE)
- : NCursesMenu (&Items, nlines, ncols, begin_y, begin_x, with_frame) {
+ : NCursesMenu (Items, nlines, ncols, begin_y, begin_x, with_frame) {