Prototype for a Preview Function.
More...
Prototype for a Preview Function.
- Parameters
-
| wdata | Preview Window data |
| event | Event to process |
- Return values
-
- Precondition
- wdata is not NULL
-
event is not NULL
◆ preview_scroll_page_up()
Show the previous page of the message - Implements preview_function_t -.
Definition at line 386 of file preview.c.
387{
389 {
390 if (event->
count == 0)
393 }
394
395 const int count =
MAX(event->
count, 1);
401
403}
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_NO_ACTION
Valid function - no action performed.
#define mutt_message(...)
#define MAX(a, b)
Return the maximum of two values.
static void draw_preview(struct MuttWindow *win, struct PreviewWindowData *wdata)
Write the message preview to the compose window.
int count
Optional count prefix, e.g. 3 for 3j
struct WindowState state
Current state of the Window.
struct MuttWindow * win
Window holding the message preview.
int scroll_offset
Scroll offset.
short rows
Number of rows, can be MUTT_WIN_SIZE_UNLIMITED.
◆ preview_scroll_page_down()
Show the next page of the message - Implements preview_function_t -.
Definition at line 408 of file preview.c.
410{
412 {
413 if (event->
count == 0)
416 }
417
418 const int count =
MAX(event->
count, 1);
422
424}
bool more_content
Is there more content to scroll down to?
◆ preview_scroll_half_up()
◆ preview_scroll_half_down()
◆ preview_scroll_line_up()
◆ preview_scroll_line_down()
◆ preview_select_first_entry()
◆ preview_select_last_entry()
Move to the last entry - Implements preview_function_t -.
Definition at line 532 of file preview.c.
534{
536 {
537 if (event->
count == 0)
540 }
541
542
545
547}
int content_lines
Total number of wrapped content lines.