ForeignCallback.h
/*
* $Id: ForeignCallback.h 2961 2009-11-25 13:28:03Z karijes $
*
* Foreign callbacks
* Copyright (c) 2005-2009 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_FOREIGNCALLBACK_H__
#define __EDELIB_FOREIGNCALLBACK_H__
#include "edelib-global.h"
class Fl_Window;
EDELIB_NS_BEGIN
void foreign_callback_add(Fl_Window *win, const char *id, void (*cb)(Fl_Window*, void*), void *data = 0);
void foreign_callback_remove(void (*cb)(Fl_Window*, void*));
void foreign_callback_call(const char *id);
EDELIB_NS_END
#endif
edelib::foreign_callback_remove
void foreign_callback_remove(void(*cb)(Fl_Window *, void *))
edelib::foreign_callback_call
void foreign_callback_call(const char *id)
edelib::foreign_callback_add
void foreign_callback_add(Fl_Window *win, const char *id, void(*cb)(Fl_Window *, void *), void *data=0)