GUI ask the user to enter a string. More...
#include "config.h"#include <stdbool.h>#include <string.h>#include <wchar.h>#include "mutt/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "lib.h"#include "color/lib.h"#include "complete/lib.h"#include "history/lib.h"#include "key/lib.h"#include "functions.h"#include "module_data.h"#include "muttlib.h"#include "state.h"#include "wdata.h"
Include dependency graph for window.c:Go to the source code of this file.
Functions | |
| static int | my_addwch (struct MuttWindow *win, wchar_t wc) |
| Display one wide character on screen. | |
| bool | self_insert (struct EnterWindowData *wdata, int ch) |
| Insert a normal character. | |
| static int | enter_recalc (struct MuttWindow *win) |
| Recalculate the Window data - Implements MuttWindow::recalc() -. | |
| static int | enter_repaint (struct MuttWindow *win) |
| Repaint the Window - Implements MuttWindow::repaint() -. | |
| static bool | enter_recursor (struct MuttWindow *win) |
| Recursor the Window - Implements MuttWindow::recursor() -. | |
| int | mw_get_field_notify (const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata, get_field_callback_t callback, void *cb_data, const struct MenuDefinition *md, function_dispatcher_t fn_disp) |
| Ask the user for a string and call a notify function on keypress. | |
| int | mw_get_field (const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata) |
| Ask the user for a string -. | |
Variables | |
| static const struct Mapping | EditorHelp [] |
| Help Bar for the Command Line Editor. | |
GUI ask the user to enter a string.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file window.c.
|
static |
Display one wide character on screen.
| win | Window |
| wc | Character to display |
| OK | Success |
| ERR | Failure |
Definition at line 70 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool self_insert | ( | struct EnterWindowData * | wdata, |
| int | ch ) |
Insert a normal character.
| wdata | Enter window data |
| ch | Raw keypress |
| true | If done (enter pressed) |
Definition at line 88 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mw_get_field_notify | ( | const char * | prompt, |
| struct Buffer * | buf, | ||
| CompletionFlags | complete, | ||
| enum HistoryClass | hclass, | ||
| const struct CompleteOps * | comp_api, | ||
| void * | cdata, | ||
| get_field_callback_t | callback, | ||
| void * | cb_data, | ||
| const struct MenuDefinition * | md, | ||
| function_dispatcher_t | fn_disp ) |
Ask the user for a string and call a notify function on keypress.
| [in] | prompt | Prompt |
| [in] | buf | Buffer for the result |
| [in] | hclass | History class to use |
| [in] | complete | Flags, see CompletionFlags |
| [in] | comp_api | Auto-completion API |
| [in] | cdata | Auto-completion private data |
| [in] | callback | Callback function used for notification |
| [in] | cb_data | Data to pass to callback function |
| [in] | md | Menu Definition |
| [in] | fn_disp | Function dispatcher |
| 0 | Selection made |
| -1 | Aborted |
Definition at line 266 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Help Bar for the Command Line Editor.
Definition at line 48 of file window.c.