ELinks 0.16.1.1
checkbox.c File Reference
#include "elinks.h"
#include "bfu/button.h"
#include "bfu/checkbox.h"
#include "bfu/dialog.h"
#include "bfu/text.h"
#include "intl/libintl.h"
#include "terminal/draw.h"
#include "terminal/mouse.h"
#include "terminal/terminal.h"
Include dependency graph for checkbox.c:

Macros

#define CHECKBOX_HEIGHT   1
#define CHECKBOX_LEN   3 /* "[X]" or "(X)" */
#define CHECKBOX_SPACING   1 /* "[X]" + " " + "Label" */
#define CHECKBOX_LS   (CHECKBOX_LEN + CHECKBOX_SPACING) /* "[X] " */

Functions

void add_dlg_radio_do (struct dialog *dlg, char *text, int groupid, int groupnum, int *data)
void dlg_format_checkbox (struct dialog_data *dlg_data, struct widget_data *widget_data, int x, int *y, int w, int *rw, format_align_T align, int format_only)
static widget_handler_status_T display_checkbox (struct dialog_data *dlg_data, struct widget_data *widget_data)
static widget_handler_status_T init_checkbox (struct dialog_data *dlg_data, struct widget_data *widget_data)
static widget_handler_status_T mouse_checkbox (struct dialog_data *dlg_data, struct widget_data *widget_data)
static widget_handler_status_T select_checkbox (struct dialog_data *dlg_data, struct widget_data *widget_data)

Variables

const struct widget_ops checkbox_ops

Macro Definition Documentation

◆ CHECKBOX_HEIGHT

#define CHECKBOX_HEIGHT   1

◆ CHECKBOX_LEN

#define CHECKBOX_LEN   3 /* "[X]" or "(X)" */

◆ CHECKBOX_LS

#define CHECKBOX_LS   (CHECKBOX_LEN + CHECKBOX_SPACING) /* "[X] " */

◆ CHECKBOX_SPACING

#define CHECKBOX_SPACING   1 /* "[X]" + " " + "Label" */

Function Documentation

◆ add_dlg_radio_do()

void add_dlg_radio_do ( struct dialog * dlg,
char * text,
int groupid,
int groupnum,
int * data )

◆ display_checkbox()

widget_handler_status_T display_checkbox ( struct dialog_data * dlg_data,
struct widget_data * widget_data )
static

◆ dlg_format_checkbox()

void dlg_format_checkbox ( struct dialog_data * dlg_data,
struct widget_data * widget_data,
int x,
int * y,
int w,
int * rw,
format_align_T align,
int format_only )

◆ init_checkbox()

widget_handler_status_T init_checkbox ( struct dialog_data * dlg_data,
struct widget_data * widget_data )
static

◆ mouse_checkbox()

widget_handler_status_T mouse_checkbox ( struct dialog_data * dlg_data,
struct widget_data * widget_data )
static

◆ select_checkbox()

widget_handler_status_T select_checkbox ( struct dialog_data * dlg_data,
struct widget_data * widget_data )
static

Variable Documentation

◆ checkbox_ops

const struct widget_ops checkbox_ops
Initial value:
= {
}
static widget_handler_status_T mouse_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
Definition checkbox.c:110
static widget_handler_status_T init_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
Definition checkbox.c:93
static widget_handler_status_T display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
Definition checkbox.c:62
static widget_handler_status_T select_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
Definition checkbox.c:130
#define NULL
Definition explodename.c:35