-extern "C" {
-
- static
- int C_XMiniBuffer_peek_event(FL_OBJECT * ob, int event,
- FL_Coord, FL_Coord,
- int key, void * xev)
- {
- XMiniBuffer * mini = static_cast<XMiniBuffer*>(ob->u_vdata);
- return mini->peek_event(ob, event, key,
- static_cast<XEvent *>(xev));
- }
-}
-
-
-FL_OBJECT * XMiniBuffer::create_input_box(int type, FL_Coord x, FL_Coord y,
- FL_Coord w, FL_Coord h)
-{
- FL_OBJECT * obj;
-
- the_buffer_ = obj = fl_add_input(type, x, y, w, h, "");
- fl_set_object_boxtype(obj, FL_DOWN_BOX);
- fl_set_object_resize(obj, FL_RESIZE_ALL);
- fl_set_object_gravity(obj, SouthWestGravity, SouthEastGravity);
- fl_set_object_color(obj, FL_MCOL, FL_MCOL);
- fl_set_object_lsize(obj, FL_NORMAL_SIZE);
-
- // To intercept Up, Down, Table for history
- fl_set_object_prehandler(obj, C_XMiniBuffer_peek_event);
- obj->u_vdata = this;
- obj->wantkey = FL_KEY_TAB;
-
- return obj;
-}
-
-