17#ifndef _src_Fl_Message_h_
18#define _src_Fl_Message_h_
44class Fl_Message_Box :
public Fl_Box {
46 Fl_Message_Box(
int X,
int Y,
int W,
int H)
79 static Fl_Box *message_icon_;
81 static const char *message_title_;
82 static const char *message_title_default_;
85 static const char *message_icon_label_;
91 static char *input_buffer_;
92 static int input_size_;
95 static void button_cb_(
Fl_Widget *w,
void *d);
98 static void window_cb_(
Fl_Widget *w,
void *d);
104 static Fl_Box *message_icon();
105 static void message_title(
const char *title);
106 static void message_title_default(
const char *title);
107 static void icon_label(
const char *str);
110 static void message_position(
const int x,
const int y,
const int center) {
113 form_position_ = center ? 2 : 1;
117 static void message_position(
Fl_Widget *widget) {
120 form_x_ = xo + widget->
w() / 2;
121 form_y_ = yo + widget->
h() / 2;
130 static int message_position(
int *x,
int *y) {
132 *x = form_position_ ? form_x_ : -1;
134 *y = form_position_ ? form_y_ : -1;
135 return form_position_;
139 static void message_hotspot(
int enable) { enable_hotspot_ = enable ? 1 : 0; }
142 static int message_hotspot() {
return enable_hotspot_; }
144 int window_closed()
const {
145 return window_closed_;
152 Fl_Message_Box *message_;
161 static int enable_hotspot_;
164 static int form_position_;
168 Fl_Message(
const char *iconlabel);
170 ~Fl_Message() {
delete window_; }
172 int innards(
const char *fmt, va_list ap,
const char *b0,
const char *b1,
const char *b2);
174 const char *input_innards(
const char *fmt, va_list ap,
const char *defstr,
uchar type,
int maxchar = -1,
bool str =
false);
This widget simply draws its box, and possibly its label.
Definition Fl_Box.H:34
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition Fl_Box.cxx:37
This widget produces an actual window.
Definition Fl_Window.H:55
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
unsigned char uchar
unsigned char
Definition fl_types.h:30