Back to index

plt-scheme  4.2.1
Classes | Defines | Functions | Variables
wxs_fram.cxx File Reference
#include "wx_frame.h"
#include "wx_gdi.h"
#include "wxscheme.h"
#include "wxs_fram.h"

Go to the source code of this file.

Classes

class  os_wxFrame

Defines

#define BM_IN_USE(map)   ((map)->selectedIntoDC)
#define ESCAPE_NO_RET_VAL   /*empty*/
#define GET_THE_MENU_BAR(f)   (f)->wx_menu_bar
#define wxALLOW_AUTO_RESIZE   0
#define wxTOOLBAR_BUTTON   0
#define wxHIDE_MENUBAR   0
#define wxMETAL   0
#define XTMAC_UNUSED(x)

Functions

voidwxsCheckEventspace (char *)
static wxMenuBarGetTheMenuBar (wxFrame *f)
static void init_symset_frameStyle (void)
static int unbundle_symset_frameStyle (Scheme_Object *v, const char *where)
static void init_symset_iconKind (void)
static int unbundle_symset_iconKind (Scheme_Object *v, const char *where)
static void frameMenu (wxFrame *XTMAC_UNUSED(f))
static void DesignateRootFrame (wxFrame *f)
os_wxFrame::os_wxFrame CONSTRUCTOR_ARGS ((class wxFrame *x0, string x1, int x2, int x3, int x4, int x5, int x6, string x7))
static Scheme_Objectos_wxFrameOnDropFile (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFramePreOnEvent (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFramePreOnChar (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnSize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnSetFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnKillFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnToolbarButton (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnMenuClick (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnMenuCommand (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnMDIActivate (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnClose (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameOnActivate (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameEnforceSize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameDesignateRootFrame (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameframeMenu (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameSetFrameModified (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameCreateStatusLine (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameIsMaximized (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameMaximize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameStatusLineExists (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameIconized (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameSetStatusText (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameGetTheMenuBar (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameSetMenuBar (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameSetIcon (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameIconize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrameSetTitle (int n, Scheme_Object *p[])
static Scheme_Objectos_wxFrame_ConstructScheme (int n, Scheme_Object *p[])
void objscheme_setup_wxFrame (Scheme_Env *env)
int objscheme_istype_wxFrame (Scheme_Object *obj, const char *stop, int nullOK)
Scheme_Objectobjscheme_bundle_wxFrame (class wxFrame *realobj)
class wxFrameobjscheme_unbundle_wxFrame (Scheme_Object *obj, const char *where, int nullOK)

Variables

static Scheme_ObjectframeStyle_wxNO_CAPTION_sym = NULL
static Scheme_ObjectframeStyle_wxMDI_PARENT_sym = NULL
static Scheme_ObjectframeStyle_wxMDI_CHILD_sym = NULL
static Scheme_ObjectframeStyle_wxNO_SYSTEM_MENU_sym = NULL
static Scheme_ObjectframeStyle_wxNO_RESIZE_BORDER_sym = NULL
static Scheme_ObjectframeStyle_wxTOOLBAR_BUTTON_sym = NULL
static Scheme_ObjectframeStyle_wxHIDE_MENUBAR_sym = NULL
static Scheme_ObjectframeStyle_wxMETAL_sym = NULL
static Scheme_ObjectframeStyle_wxFLOAT_FRAME_sym = NULL
static Scheme_ObjecticonKind_0_sym = NULL
static Scheme_ObjecticonKind_1_sym = NULL
static Scheme_ObjecticonKind_2_sym = NULL
static Scheme_Objectos_wxFrame_class

Define Documentation

#define BM_IN_USE (   map)    ((map)->selectedIntoDC)

Definition at line 24 of file wxs_fram.cxx.

#define ESCAPE_NO_RET_VAL   /*empty*/

Definition at line 29 of file wxs_fram.cxx.

#define GET_THE_MENU_BAR (   f)    (f)->wx_menu_bar

Definition at line 42 of file wxs_fram.cxx.

#define wxALLOW_AUTO_RESIZE   0

Definition at line 48 of file wxs_fram.cxx.

#define wxHIDE_MENUBAR   0

Definition at line 64 of file wxs_fram.cxx.

#define wxMETAL   0

Definition at line 67 of file wxs_fram.cxx.

#define wxTOOLBAR_BUTTON   0

Definition at line 61 of file wxs_fram.cxx.

#define XTMAC_UNUSED (   x)

Definition at line 161 of file wxs_fram.cxx.


Function Documentation

os_wxFrame::os_wxFrame CONSTRUCTOR_ARGS ( (class wxFrame *x0, string x1, int x2, int x3, int x4, int x5, int x6, string x7)  )

Definition at line 227 of file wxs_fram.cxx.

                 : wxFrame(x0, x1, x2, x3, x4, x5, x6, x7))
{
}
static void DesignateRootFrame ( wxFrame f) [static]

Definition at line 171 of file wxs_fram.cxx.

{
#ifdef wx_mac
  f->DesignateRootFrame();
#endif
}

Here is the caller graph for this function:

static void frameMenu ( wxFrame XTMAC_UNUSEDf) [static]

Definition at line 164 of file wxs_fram.cxx.

{
#ifdef wx_msw
  f->SystemMenu();
#endif
}

Here is the caller graph for this function:

static wxMenuBar* GetTheMenuBar ( wxFrame f) [static]

Definition at line 55 of file wxs_fram.cxx.

{
  return GET_THE_MENU_BAR(f);
}

Here is the caller graph for this function:

static void init_symset_frameStyle ( void  ) [static]
static void init_symset_iconKind ( void  ) [static]

Definition at line 1461 of file wxs_fram.cxx.

{
  Scheme_Class_Object *obj INIT_NULLED_OUT;
  Scheme_Object *sobj INIT_NULLED_OUT;

  if (!realobj) return XC_SCHEME_NULL;

  if (realobj->__gc_external)
    return (Scheme_Object *)realobj->__gc_external;

  SETUP_VAR_STACK(2);
  VAR_STACK_PUSH(0, obj);
  VAR_STACK_PUSH(1, realobj);

  if ((realobj->__type != wxTYPE_FRAME) && (sobj = WITH_VAR_STACK(objscheme_bundle_by_type(realobj, realobj->__type))))
    { READY_TO_RETURN; return sobj; }
  obj = (Scheme_Class_Object *)WITH_VAR_STACK(scheme_make_uninited_object(os_wxFrame_class));

  obj->primdata = realobj;
  WITH_VAR_STACK(objscheme_register_primpointer(obj, &obj->primdata));
  obj->primflag = 0;

  realobj->__gc_external = (void *)obj;
  READY_TO_RETURN;
  return (Scheme_Object *)obj;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int objscheme_istype_wxFrame ( Scheme_Object obj,
const char *  stop,
int  nullOK 
)

Definition at line 1447 of file wxs_fram.cxx.

{
  REMEMBER_VAR_STACK();
  if (nullOK && XC_SCHEME_NULLP(obj)) return 1;
  if (objscheme_is_a(obj,  os_wxFrame_class))
    return 1;
  else {
    if (!stop)
       return 0;
    WITH_REMEMBERED_STACK(scheme_wrong_type(stop, nullOK ? "frame% object or " XC_NULL_STR: "frame% object", -1, 0, &obj));
    return 0;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1402 of file wxs_fram.cxx.

{
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, env);

  wxREGGLOB(os_wxFrame_class);

  os_wxFrame_class = WITH_VAR_STACK(objscheme_def_prim_class(env, "frame%", "window%", (Scheme_Method_Prim *)os_wxFrame_ConstructScheme, 27));

  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-drop-file" " method", (Scheme_Method_Prim *)os_wxFrameOnDropFile, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "pre-on-event" " method", (Scheme_Method_Prim *)os_wxFramePreOnEvent, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "pre-on-char" " method", (Scheme_Method_Prim *)os_wxFramePreOnChar, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-size" " method", (Scheme_Method_Prim *)os_wxFrameOnSize, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-set-focus" " method", (Scheme_Method_Prim *)os_wxFrameOnSetFocus, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-kill-focus" " method", (Scheme_Method_Prim *)os_wxFrameOnKillFocus, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-toolbar-click" " method", (Scheme_Method_Prim *)os_wxFrameOnToolbarButton, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-menu-click" " method", (Scheme_Method_Prim *)os_wxFrameOnMenuClick, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-menu-command" " method", (Scheme_Method_Prim *)os_wxFrameOnMenuCommand, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-mdi-activate" " method", (Scheme_Method_Prim *)os_wxFrameOnMDIActivate, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "enforce-size" " method", (Scheme_Method_Prim *)os_wxFrameEnforceSize, 6, 6));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-close" " method", (Scheme_Method_Prim *)os_wxFrameOnClose, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "on-activate" " method", (Scheme_Method_Prim *)os_wxFrameOnActivate, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "designate-root-frame" " method", (Scheme_Method_Prim *)os_wxFrameDesignateRootFrame, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "system-menu" " method", (Scheme_Method_Prim *)os_wxFrameframeMenu, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "set-modified" " method", (Scheme_Method_Prim *)os_wxFrameSetFrameModified, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "create-status-line" " method", (Scheme_Method_Prim *)os_wxFrameCreateStatusLine, 0, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "is-maximized?" " method", (Scheme_Method_Prim *)os_wxFrameIsMaximized, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "maximize" " method", (Scheme_Method_Prim *)os_wxFrameMaximize, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "status-line-exists?" " method", (Scheme_Method_Prim *)os_wxFrameStatusLineExists, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "iconized?" " method", (Scheme_Method_Prim *)os_wxFrameIconized, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "set-status-text" " method", (Scheme_Method_Prim *)os_wxFrameSetStatusText, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "get-menu-bar" " method", (Scheme_Method_Prim *)os_wxFrameGetTheMenuBar, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "set-menu-bar" " method", (Scheme_Method_Prim *)os_wxFrameSetMenuBar, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "set-icon" " method", (Scheme_Method_Prim *)os_wxFrameSetIcon, 1, 3));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "iconize" " method", (Scheme_Method_Prim *)os_wxFrameIconize, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxFrame_class, "set-title" " method", (Scheme_Method_Prim *)os_wxFrameSetTitle, 1, 1));


  WITH_VAR_STACK(scheme_made_class(os_wxFrame_class));

  WITH_VAR_STACK(objscheme_install_bundler((Objscheme_Bundler)objscheme_bundle_wxFrame, wxTYPE_FRAME));

  READY_TO_RETURN;
}

Here is the call graph for this function:

Here is the caller graph for this function:

class wxFrame * objscheme_unbundle_wxFrame ( Scheme_Object obj,
const char *  where,
int  nullOK 
)

Definition at line 1488 of file wxs_fram.cxx.

{
  if (nullOK && XC_SCHEME_NULLP(obj)) return NULL;

  REMEMBER_VAR_STACK();

  (void)objscheme_istype_wxFrame(obj, where, nullOK);
  Scheme_Class_Object *o = (Scheme_Class_Object *)obj;
  WITH_REMEMBERED_STACK(objscheme_check_valid(NULL, NULL, 0, &obj));
  if (o->primflag)
    return (os_wxFrame *)o->primdata;
  else
    return (wxFrame *)o->primdata;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrame_ConstructScheme ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1335 of file wxs_fram.cxx.

{
  SETUP_PRE_VAR_STACK(1);
  PRE_VAR_STACK_PUSH(0, p);
  os_wxFrame *realobj INIT_NULLED_OUT;
  REMEMBER_VAR_STACK();
  class wxFrame* x0 INIT_NULLED_OUT;
  string x1 INIT_NULLED_OUT;
  int x2;
  int x3;
  int x4;
  int x5;
  int x6;
  string x7 INIT_NULLED_OUT;

  SETUP_VAR_STACK_PRE_REMEMBERED(5);
  VAR_STACK_PUSH(0, p);
  VAR_STACK_PUSH(1, realobj);
  VAR_STACK_PUSH(2, x0);
  VAR_STACK_PUSH(3, x1);
  VAR_STACK_PUSH(4, x7);

  
  if ((n < (POFFSET+2)) || (n > (POFFSET+8))) 
    WITH_VAR_STACK(scheme_wrong_count_m("initialization in frame%", POFFSET+2, POFFSET+8, n, p, 1));
  x0 = WITH_VAR_STACK(objscheme_unbundle_wxFrame(p[POFFSET+0], "initialization in frame%", 1));
  x1 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+1], "initialization in frame%"));
  if (n > (POFFSET+2)) {
    x2 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+2], "initialization in frame%"));
  } else
    x2 = -1;
  if (n > (POFFSET+3)) {
    x3 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+3], "initialization in frame%"));
  } else
    x3 = -1;
  if (n > (POFFSET+4)) {
    x4 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+4], "initialization in frame%"));
  } else
    x4 = -1;
  if (n > (POFFSET+5)) {
    x5 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+5], "initialization in frame%"));
  } else
    x5 = -1;
  if (n > (POFFSET+6)) {
    x6 = WITH_VAR_STACK(unbundle_symset_frameStyle(p[POFFSET+6], "initialization in frame%"));
  } else
    x6 = 0;
  if (n > (POFFSET+7)) {
    x7 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+7], "initialization in frame%"));
  } else
    x7 = "frame";

  WITH_VAR_STACK(wxsCheckEventspace(METHODNAME("frame%","initialization")));if (!x4) x4 = -1;if (!x5) x5 = -1;
  realobj = WITH_VAR_STACK(new os_wxFrame CONSTRUCTOR_ARGS((x0, x1, x2, x3, x4, x5, x6, x7)));
#ifdef MZ_PRECISE_GC
  WITH_VAR_STACK(realobj->gcInit_wxFrame(x0, x1, x2, x3, x4, x5, x6, x7));
#endif
  realobj->__gc_external = (void *)p[0];
  
  
  READY_TO_RETURN;
  ((Scheme_Class_Object *)p[0])->primdata = realobj;
  ((Scheme_Class_Object *)p[0])->primflag = 1;
  WITH_REMEMBERED_STACK(objscheme_register_primpointer(p[0], &((Scheme_Class_Object *)p[0])->primdata));
  return scheme_void;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameCreateStatusLine ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1073 of file wxs_fram.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxFrame_class, "create-status-line in frame%", n, p);
  int x0;
  string x1 INIT_NULLED_OUT;

  SETUP_VAR_STACK_REMEMBERED(2);
  VAR_STACK_PUSH(0, p);
  VAR_STACK_PUSH(1, x1);

  
  if (n > (POFFSET+0)) {
    x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "create-status-line in frame%"));
  } else
    x0 = 1;
  if (n > (POFFSET+1)) {
    x1 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+1], "create-status-line in frame%"));
  } else
    x1 = "status_line";

  
  WITH_VAR_STACK(((wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->CreateStatusLine(x0, x1));

  
  
  READY_TO_RETURN;
  return scheme_void;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameDesignateRootFrame ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1011 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameEnforceSize ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 930 of file wxs_fram.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxFrame_class, "enforce-size in frame%", n, p);
  int x0;
  int x1;
  int x2;
  int x3;
  int x4;
  int x5;

  SETUP_VAR_STACK_REMEMBERED(1);
  VAR_STACK_PUSH(0, p);

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "enforce-size in frame%"));
  x1 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+1], "enforce-size in frame%"));
  x2 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+2], "enforce-size in frame%"));
  x3 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+3], "enforce-size in frame%"));
  x4 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+4], "enforce-size in frame%"));
  x5 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+5], "enforce-size in frame%"));

  
  WITH_VAR_STACK(((wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->EnforceSize(x0, x1, x2, x3, x4, x5));

  
  
  READY_TO_RETURN;
  return scheme_void;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameframeMenu ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1031 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameGetTheMenuBar ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1212 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameIconize ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1290 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameIconized ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1168 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameIsMaximized ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1104 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameMaximize ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1125 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnActivate ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 986 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnClose ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 962 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnDropFile ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 675 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnKillFocus ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 811 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnMDIActivate ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 905 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnMenuClick ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 857 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnMenuCommand ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 880 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnSetFocus ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 788 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnSize ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 761 of file wxs_fram.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxFrame_class, "on-size in frame%", n, p);
  int x0;
  int x1;

  SETUP_VAR_STACK_REMEMBERED(1);
  VAR_STACK_PUSH(0, p);

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "on-size in frame%"));
  x1 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+1], "on-size in frame%"));

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    WITH_VAR_STACK(((os_wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->wxFrame::OnSize(x0, x1));
  else
    WITH_VAR_STACK(((wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->OnSize(x0, x1));

  
  
  READY_TO_RETURN;
  return scheme_void;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFrameOnToolbarButton ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 834 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFramePreOnChar ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 731 of file wxs_fram.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxFrame_class, "pre-on-char in frame%", n, p);
  class wxWindow* x0 INIT_NULLED_OUT;
  class wxKeyEvent* x1 INIT_NULLED_OUT;

  SETUP_VAR_STACK_REMEMBERED(3);
  VAR_STACK_PUSH(0, p);
  VAR_STACK_PUSH(1, x0);
  VAR_STACK_PUSH(2, x1);

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_wxWindow(p[POFFSET+0], "pre-on-char in frame%", 0));
  x1 = WITH_VAR_STACK(objscheme_unbundle_wxKeyEvent(p[POFFSET+1], "pre-on-char in frame%", 0));

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    r = WITH_VAR_STACK(((os_wxFrame *)((Scheme_Class_Object *)p[0])->primdata)-> wxWindow::PreOnChar(x0, x1));
  else
    r = WITH_VAR_STACK(((wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->PreOnChar(x0, x1));

  
  
  READY_TO_RETURN;
  return (r ? scheme_true : scheme_false);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object * os_wxFramePreOnEvent ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 701 of file wxs_fram.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxFrame_class, "pre-on-event in frame%", n, p);
  class wxWindow* x0 INIT_NULLED_OUT;
  class wxMouseEvent* x1 INIT_NULLED_OUT;

  SETUP_VAR_STACK_REMEMBERED(3);
  VAR_STACK_PUSH(0, p);
  VAR_STACK_PUSH(1, x0);
  VAR_STACK_PUSH(2, x1);

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_wxWindow(p[POFFSET+0], "pre-on-event in frame%", 0));
  x1 = WITH_VAR_STACK(objscheme_unbundle_wxMouseEvent(p[POFFSET+1], "pre-on-event in frame%", 0));

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    r = WITH_VAR_STACK(((os_wxFrame *)((Scheme_Class_Object *)p[0])->primdata)-> wxWindow::PreOnEvent(x0, x1));
  else
    r = WITH_VAR_STACK(((wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->PreOnEvent(x0, x1));

  
  
  READY_TO_RETURN;
  return (r ? scheme_true : scheme_false);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameSetFrameModified ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1051 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameSetIcon ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1256 of file wxs_fram.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxFrame_class, "set-icon in frame%", n, p);
  class wxBitmap* x0 INIT_NULLED_OUT;
  class wxBitmap* x1 INIT_NULLED_OUT;
  int x2;

  SETUP_VAR_STACK_REMEMBERED(3);
  VAR_STACK_PUSH(0, p);
  VAR_STACK_PUSH(1, x0);
  VAR_STACK_PUSH(2, x1);

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_wxBitmap(p[POFFSET+0], "set-icon in frame%", 0));
  if (n > (POFFSET+1)) {
    x1 = WITH_VAR_STACK(objscheme_unbundle_wxBitmap(p[POFFSET+1], "set-icon in frame%", 1));
  } else
    x1 = NULL;
  if (n > (POFFSET+2)) {
    x2 = WITH_VAR_STACK(unbundle_symset_iconKind(p[POFFSET+2], "set-icon in frame%"));
  } else
    x2 = 0;

  if (x0 && !x0->Ok()) scheme_arg_mismatch(METHODNAME("frame%","set-icon"), "bad bitmap: ", p[POFFSET+0]);if (x1 && !x1->Ok()) scheme_arg_mismatch(METHODNAME("frame%","set-icon"), "bad bitmap: ", p[POFFSET+1]);if (x1 && (x1->GetDepth() != 1)) scheme_arg_mismatch(METHODNAME("frame%","set-icon"), "mask bitmap is not monochrome: ", p[POFFSET+1]);
  WITH_VAR_STACK(((wxFrame *)((Scheme_Class_Object *)p[0])->primdata)->SetIcon(x0, x1, x2));

  
  
  READY_TO_RETURN;
  return scheme_void;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameSetMenuBar ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1233 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameSetStatusText ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1189 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameSetTitle ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1312 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static Scheme_Object* os_wxFrameStatusLineExists ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 1147 of file wxs_fram.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

static int unbundle_symset_frameStyle ( Scheme_Object v,
const char *  where 
) [static]

Definition at line 102 of file wxs_fram.cxx.

                                                                           {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!frameStyle_wxFLOAT_FRAME_sym) WITH_VAR_STACK(init_symset_frameStyle());
  Scheme_Object *i INIT_NULLED_OUT, *l = v;
  long result = 0;
  while (SCHEME_PAIRP(l)) {
  i = SCHEME_CAR(l);
  if (0) { }
  else if (i == frameStyle_wxNO_CAPTION_sym) { result = result | wxNO_CAPTION; }
  else if (i == frameStyle_wxMDI_PARENT_sym) { result = result | wxMDI_PARENT; }
  else if (i == frameStyle_wxMDI_CHILD_sym) { result = result | wxMDI_CHILD; }
  else if (i == frameStyle_wxNO_SYSTEM_MENU_sym) { result = result | wxNO_SYSTEM_MENU; }
  else if (i == frameStyle_wxNO_RESIZE_BORDER_sym) { result = result | wxNO_RESIZE_BORDER; }
  else if (i == frameStyle_wxTOOLBAR_BUTTON_sym) { result = result | wxTOOLBAR_BUTTON; }
  else if (i == frameStyle_wxHIDE_MENUBAR_sym) { result = result | wxHIDE_MENUBAR; }
  else if (i == frameStyle_wxMETAL_sym) { result = result | wxMETAL; }
  else if (i == frameStyle_wxFLOAT_FRAME_sym) { result = result | wxFLOAT_FRAME; }
  else { break; } 
  l = SCHEME_CDR(l);
  }
  if (SCHEME_NULLP(l)) { READY_TO_RETURN; return result; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "frameStyle symbol list", -1, 0, &v));
  READY_TO_RETURN;
  return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static int unbundle_symset_iconKind ( Scheme_Object v,
const char *  where 
) [static]

Definition at line 144 of file wxs_fram.cxx.

                                                                         {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!iconKind_2_sym) WITH_VAR_STACK(init_symset_iconKind());
  if (0) { }
  else if (v == iconKind_0_sym) { READY_TO_RETURN; return 0; }
  else if (v == iconKind_1_sym) { READY_TO_RETURN; return 1; }
  else if (v == iconKind_2_sym) { READY_TO_RETURN; return 2; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "iconKind symbol", -1, 0, &v));
  READY_TO_RETURN;
  return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void* wxsCheckEventspace ( char *  )

Definition at line 578 of file mred.cxx.

{
  MrEdContext *c;
  c = (MrEdContext *)wxGetContextForFrame();

  if (c->killed)
    scheme_signal_error("%s: the current eventspace has been shutdown", who);

  return (void *)c;
}

Variable Documentation

Definition at line 78 of file wxs_fram.cxx.

Definition at line 76 of file wxs_fram.cxx.

Definition at line 72 of file wxs_fram.cxx.

Definition at line 71 of file wxs_fram.cxx.

Definition at line 77 of file wxs_fram.cxx.

Definition at line 70 of file wxs_fram.cxx.

Definition at line 74 of file wxs_fram.cxx.

Definition at line 73 of file wxs_fram.cxx.

Definition at line 75 of file wxs_fram.cxx.

Definition at line 130 of file wxs_fram.cxx.

Definition at line 131 of file wxs_fram.cxx.

Definition at line 132 of file wxs_fram.cxx.

Definition at line 225 of file wxs_fram.cxx.