1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00:00
elinks/src/bfu/common.h
Witold Filipczyk 1f57e72212 [mozjs24] Allow build elinks with g++
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00

59 lines
1.2 KiB
C

#ifndef EL__BFU_COMMON_H
#define EL__BFU_COMMON_H
#ifdef __cplusplus
extern "C" {
#endif
struct dialog_data;
struct widget_data;
/* Event handlers return this values */
typedef enum {
EVENT_PROCESSED = 0,
EVENT_NOT_PROCESSED = 1
} widget_handler_status_T;
/* Handler type for widgets. */
typedef widget_handler_status_T (widget_handler_T)(struct dialog_data *, struct widget_data *);
/** Type of widget.
*
* Each type has a struct widget_ops that contains pointers to
* type-specific handler functions. For example, field_ops.kbd points
* to a function that handles keyboard events for WIDGET_FIELD. */
enum widget_type {
/** A check box or a radio button.
* @see checkbox_ops */
WIDGET_CHECKBOX,
/** A single-line input field.
* @see field_ops */
WIDGET_FIELD,
/** A single-line input field for a password.
* Like #WIDGET_FIELD but shows asterisks instead of the text.
* @see field_pass_ops */
WIDGET_FIELD_PASS,
/** A button that the user can push.
* @see button_ops */
WIDGET_BUTTON,
/** A list or tree of items.
* @see listbox_ops */
WIDGET_LISTBOX,
/** A block of text that the user cannot edit but may be able
* to scroll.
* @see text_ops */
WIDGET_TEXT,
};
#ifdef __cplusplus
}
#endif
#endif /* EL__BFU_COMMON_H */