ELinks 0.18.0
Macros | Typedefs | Enumerations | Functions
msgbox.h File Reference
#include "util/align.h"
#include "util/memlist.h"
Include dependency graph for msgbox.h:
This graph shows which files directly or indirectly include this file:

Macros

#define MSG_BOX_CAST(type, value)    (((void) sizeof(((int (*)(type)) 0)(value))), (type) (value))
 
#define MSG_BOX_BUTTON(label, handler, flags)
 

Typedefs

typedef unsigned char msgbox_flags_T
 

Enumerations

enum  msgbox_flags { MSGBOX_FREE_TEXT = 0x1 , MSGBOX_NO_INTL = 0x2 , MSGBOX_SCROLLABLE = 0x4 , MSGBOX_NO_TEXT_INTL = 0x8 }
 

Functions

struct dialog_data * msg_box (struct terminal *term, struct memory_list *mem_list, msgbox_flags_T flags, char *title, format_align_T align, char *text, void *udata, int buttons,...)
 
char * msg_text (struct terminal *term, const char *format,...)
 
void refreshed_msg_box (struct terminal *term, msgbox_flags_T flags, char *title, format_align_T align, char *(get_info)(struct terminal *, void *), void *data)
 
struct dialog_data * info_box (struct terminal *term, msgbox_flags_T flags, char *title, format_align_T align, char *text)
 

Macro Definition Documentation

◆ MSG_BOX_BUTTON

#define MSG_BOX_BUTTON (   label,
  handler,
  flags 
)
Value:
MSG_BOX_CAST(const char *, label), \
MSG_BOX_CAST(done_handler_T *, handler), \
MSG_BOX_CAST(int, flags)
void() done_handler_T(void *)
Definition button.h:16
#define MSG_BOX_CAST(type, value)
Definition msgbox.h:107

◆ MSG_BOX_CAST

#define MSG_BOX_CAST (   type,
  value 
)     (((void) sizeof(((int (*)(type)) 0)(value))), (type) (value))

Typedef Documentation

◆ msgbox_flags_T

typedef unsigned char msgbox_flags_T

Enumeration Type Documentation

◆ msgbox_flags

Enumerator
MSGBOX_FREE_TEXT 
MSGBOX_NO_INTL 
MSGBOX_SCROLLABLE 
MSGBOX_NO_TEXT_INTL 

Function Documentation

◆ info_box()

struct dialog_data * info_box ( struct terminal *  term,
msgbox_flags_T  flags,
char *  title,
format_align_T  align,
char *  text 
)

◆ msg_box()

struct dialog_data * msg_box ( struct terminal *  term,
struct memory_list *  mem_list,
msgbox_flags_T  flags,
char *  title,
format_align_T  align,
char *  text,
void *  udata,
int  buttons,
  ... 
)

◆ msg_text()

char * msg_text ( struct terminal *  term,
const char *  format,
  ... 
)

◆ refreshed_msg_box()

void refreshed_msg_box ( struct terminal *  term,
msgbox_flags_T  flags,
char *  title,
format_align_T  align,
char *  get_info)(struct terminal *, void *,
void *  data 
)