packages feed

wxcore-0.10.4: wxc/src/eljfontdlg.cpp

#include "wrapper.h"

extern "C"
{

EWXWEXPORT(void*, wxFontDialog_Create) (void* _prt, void* fnt)
{
#if WXWIN_COMPATIBILITY_2_6
  #ifdef wxMAC_USE_EXPERIMENTAL_FONTDIALOG
	  return (void*) new wxFontDialog ((wxWindow*)_prt, (wxFontData&) fnt);
  #else
	  return (void*) new wxFontDialog ((wxWindow*)_prt, (wxFontData*) fnt);
  #endif
#else
	return (void*) new wxFontDialog ((wxWindow*)_prt, (wxFontData&) fnt);
#endif
}

EWXWEXPORT(void, wxFontDialog_GetFontData)(void* _obj, void* _ref)
{
	*((wxFontData*)_ref) = ((wxFontDialog*)_obj)->GetFontData();
}

}