Skip to content
Snippets Groups Projects
FXRuby.cpp 63.6 KiB
Newer Older
extern "C" void Init_layout(void);
extern "C" void Init_list(void);
extern "C" void Init_mdi(void);
extern "C" void Init_menu(void);
#ifdef WITH_FXSCINTILLA
extern "C" void Init_scintilla(void);
#endif
extern "C" void Init_table(void);
extern "C" void Init_text(void);
extern "C" void Init_treelist(void);
extern "C" void Init_ui(void);

#ifdef USE_RB_REQUIRE
#define REQUIRE(fname) rb_require((fname))
#else
#define REQUIRE(fname) rb_funcall(rb_mKernel,rb_intern("require"),1,rb_str_new2((fname))) 
#endif

extern "C" void
#if defined _WIN32
__declspec(dllexport)
#endif
Init_fox16(void) {
  Init_core();
  Init_dc();
  Init_frames();
  Init_layout();
  Init_label();
  Init_ui();
  Init_iconlist();
  Init_list();
  Init_dialogs();
  Init_image();
  Init_icons();
  Init_menu();
  Init_mdi();
  Init_fx3d();
#ifdef WITH_FXSCINTILLA
  Init_scintilla();
#endif
  Init_table();
  Init_text();
  Init_treelist();
  REQUIRE("fox16/core");
  REQUIRE("fox16/dict");
  REQUIRE("fox16/settings");
  REQUIRE("fox16/iterators");
  REQUIRE("fox16/keys");
  REQUIRE("fox16/aliases");
  REQUIRE("fox16/responder2");
  REQUIRE("fox16/glgroup");
  REQUIRE("fox16/execute_nonmodal");
  REQUIRE("fox16/version");
  REQUIRE("fox16/kwargs");
  REQUIRE("fox16/exceptions_for_fxerror");
  
  id_assocs=rb_intern("@assocs");
  id_backtrace=rb_intern("backtrace");
  id_cmp=rb_intern("<=>");
  id_begin=rb_intern("begin");
  id_end=rb_intern("end");
  id_exclude_endp=rb_intern("exclude_end?");
  
  FXRuby_Objects=st_init_numtable();
  appSensitiveObjs=st_init_numtable();
  appSensitiveDCs=st_init_numtable();
  }