Back to index

plt-scheme  4.2.1
Classes | Defines | Functions | Variables
wxs_item.cxx File Reference
#include "wx_item.h"
#include "wx_messg.h"
#include "wxscheme.h"
#include "wxs_item.h"

Go to the source code of this file.

Classes

class  os_wxItem
class  os_wxMessage

Defines

#define BM_IN_USE(map)   ((map)->selectedIntoDC)
#define ESCAPE_NO_RET_VAL   /*empty*/

Functions

static Scheme_Objectos_wxItemSetLabel (int n, Scheme_Object *p[])
static Scheme_Objectos_wxItemGetLabel (int n, Scheme_Object *p[])
static Scheme_Objectos_wxItemCommand (int n, Scheme_Object *p[])
void objscheme_setup_wxItem (Scheme_Env *env)
int objscheme_istype_wxItem (Scheme_Object *obj, const char *stop, int nullOK)
Scheme_Objectobjscheme_bundle_wxItem (class wxItem *realobj)
class wxItemobjscheme_unbundle_wxItem (Scheme_Object *obj, const char *where, int nullOK)
static void init_symset_messageStyle (void)
static int unbundle_symset_messageStyle (Scheme_Object *v, const char *where)
static int istype_symset_messageStyle (Scheme_Object *v, const char *where)
static void init_symset_iconID (void)
static int unbundle_symset_iconID (Scheme_Object *v, const char *where)
static int istype_symset_iconID (Scheme_Object *v, const char *where)
os_wxMessage::os_wxMessage CONSTRUCTOR_ARGS ((class wxPanel *x0, string x1, int x2, int x3, int x4, class wxFont *x5, string x6))
os_wxMessage::os_wxMessage CONSTRUCTOR_ARGS ((class wxPanel *x0, class wxBitmap *x1, int x2, int x3, int x4, class wxFont *x5, string x6))
os_wxMessage::os_wxMessage CONSTRUCTOR_ARGS ((class wxPanel *x0, int x1, int x2, int x3, int x4, class wxFont *x5, string x6))
static Scheme_Objectos_wxMessageOnDropFile (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessagePreOnEvent (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessagePreOnChar (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessageOnSize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessageOnSetFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessageOnKillFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessageGetFont (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessageSetLabel (int n, Scheme_Object *p[])
static Scheme_Objectos_wxMessage_ConstructScheme (int n, Scheme_Object *p[])
void objscheme_setup_wxMessage (Scheme_Env *env)
int objscheme_istype_wxMessage (Scheme_Object *obj, const char *stop, int nullOK)
Scheme_Objectobjscheme_bundle_wxMessage (class wxMessage *realobj)
class wxMessageobjscheme_unbundle_wxMessage (Scheme_Object *obj, const char *where, int nullOK)

Variables

static Scheme_Objectos_wxItem_class
static Scheme_ObjectmessageStyle_wxINVISIBLE_sym = NULL
static Scheme_ObjecticonID_wxMSGICON_APP_sym = NULL
static Scheme_ObjecticonID_wxMSGICON_WARNING_sym = NULL
static Scheme_ObjecticonID_wxMSGICON_ERROR_sym = NULL
static Scheme_Objectos_wxMessage_class

Define Documentation

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

Definition at line 24 of file wxs_item.cxx.

#define ESCAPE_NO_RET_VAL   /*empty*/

Definition at line 29 of file wxs_item.cxx.


Function Documentation

os_wxMessage::os_wxMessage CONSTRUCTOR_ARGS ( (class wxPanel *x0, string x1, int x2, int x3, int x4, class wxFont *x5, string x6)  )

Definition at line 352 of file wxs_item.cxx.

                 : wxMessage(x0, x1, x2, x3, x4, x5, x6))
{
}
os_wxMessage::os_wxMessage CONSTRUCTOR_ARGS ( (class wxPanel *x0, class wxBitmap *x1, int x2, int x3, int x4, class wxFont *x5, string x6)  )

Definition at line 358 of file wxs_item.cxx.

                 : wxMessage(x0, x1, x2, x3, x4, x5, x6))
{
}
os_wxMessage::os_wxMessage CONSTRUCTOR_ARGS ( (class wxPanel *x0, int x1, int x2, int x3, int x4, class wxFont *x5, string x6)  )

Definition at line 365 of file wxs_item.cxx.

                 : wxMessage(x0, x1, x2, x3, x4, x5, x6))
{
}
static void init_symset_iconID ( void  ) [static]
static void init_symset_messageStyle ( void  ) [static]

Definition at line 222 of file wxs_item.cxx.

Here is the caller graph for this function:

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

Definition at line 294 of file wxs_item.cxx.

                                                                     {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!iconID_wxMSGICON_ERROR_sym) WITH_VAR_STACK(init_symset_iconID());
  if (0) { }
  else if (v == iconID_wxMSGICON_APP_sym) { READY_TO_RETURN; return 1; }
  else if (v == iconID_wxMSGICON_WARNING_sym) { READY_TO_RETURN; return 1; }
  else if (v == iconID_wxMSGICON_ERROR_sym) { READY_TO_RETURN; return 1; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "iconID 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:

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

Definition at line 247 of file wxs_item.cxx.

                                                                           {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!messageStyle_wxINVISIBLE_sym) WITH_VAR_STACK(init_symset_messageStyle());
  Scheme_Object *i INIT_NULLED_OUT, *l = v;
  long result = 1;
  while (SCHEME_PAIRP(l)) {
  i = SCHEME_CAR(l);
  if (0) { }
  else if (i == messageStyle_wxINVISIBLE_sym) { ; }
  else { break; } 
  l = SCHEME_CDR(l);
  }
  if (SCHEME_NULLP(l)) { READY_TO_RETURN; return result; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "messageStyle symbol list", -1, 0, &v));
  READY_TO_RETURN;
  return 0;
}

Here is the call graph for this function:

Definition at line 177 of file wxs_item.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_ITEM) && (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_wxItem_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:

Definition at line 1038 of file wxs_item.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 ((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_wxMessage_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:

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

Definition at line 163 of file wxs_item.cxx.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1024 of file wxs_item.cxx.

{
  REMEMBER_VAR_STACK();
  if (nullOK && XC_SCHEME_NULLP(obj)) return 1;
  if (objscheme_is_a(obj,  os_wxMessage_class))
    return 1;
  else {
    if (!stop)
       return 0;
    WITH_REMEMBERED_STACK(scheme_wrong_type(stop, nullOK ? "message% object or " XC_NULL_STR: "message% 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 999 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

class wxItem* objscheme_unbundle_wxItem ( Scheme_Object obj,
const char *  where,
int  nullOK 
)

Definition at line 204 of file wxs_item.cxx.

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

  REMEMBER_VAR_STACK();

  (void)objscheme_istype_wxItem(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_wxItem *)o->primdata;
  else
    return (wxItem *)o->primdata;
}

Here is the call graph for this function:

class wxMessage* objscheme_unbundle_wxMessage ( Scheme_Object obj,
const char *  where,
int  nullOK 
)

Definition at line 1065 of file wxs_item.cxx.

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

  REMEMBER_VAR_STACK();

  (void)objscheme_istype_wxMessage(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_wxMessage *)o->primdata;
  else
    return (wxMessage *)o->primdata;
}

Here is the call graph for this function:

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

Definition at line 119 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 98 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 75 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 830 of file wxs_item.cxx.

{
  SETUP_PRE_VAR_STACK(1);
  PRE_VAR_STACK_PUSH(0, p);
  os_wxMessage *realobj INIT_NULLED_OUT;
  REMEMBER_VAR_STACK();
  if ((n >= (POFFSET+2)) && WITH_REMEMBERED_STACK(objscheme_istype_wxPanel(p[POFFSET+0], NULL, 0)) && WITH_REMEMBERED_STACK(istype_symset_iconID(p[POFFSET+1], NULL))) {
    class wxPanel* x0 INIT_NULLED_OUT;
    int x1;
    int x2;
    int x3;
    int x4;
    class wxFont* x5 INIT_NULLED_OUT;
    string x6 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, x5);
    VAR_STACK_PUSH(4, x6);

    
    if ((n < (POFFSET+2)) || (n > (POFFSET+7))) 
      WITH_VAR_STACK(scheme_wrong_count_m("initialization in message% (icon label case)", POFFSET+2, POFFSET+7, n, p, 1));
    x0 = WITH_VAR_STACK(objscheme_unbundle_wxPanel(p[POFFSET+0], "initialization in message% (icon label case)", 0));
    x1 = WITH_VAR_STACK(unbundle_symset_iconID(p[POFFSET+1], "initialization in message% (icon label case)"));
    if (n > (POFFSET+2)) {
      x2 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+2], "initialization in message% (icon label case)"));
    } else
      x2 = -1;
    if (n > (POFFSET+3)) {
      x3 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+3], "initialization in message% (icon label case)"));
    } else
      x3 = -1;
    if (n > (POFFSET+4)) {
      x4 = WITH_VAR_STACK(unbundle_symset_messageStyle(p[POFFSET+4], "initialization in message% (icon label case)"));
    } else
      x4 = 0;
    if (n > (POFFSET+5)) {
      x5 = WITH_VAR_STACK(objscheme_unbundle_wxFont(p[POFFSET+5], "initialization in message% (icon label case)", 1));
    } else
      x5 = NULL;
    if (n > (POFFSET+6)) {
      x6 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+6], "initialization in message% (icon label case)"));
    } else
      x6 = "message";

    
    realobj = WITH_VAR_STACK(new os_wxMessage CONSTRUCTOR_ARGS((x0, x1, x2, x3, x4, x5, x6)));
#ifdef MZ_PRECISE_GC
    WITH_VAR_STACK(realobj->gcInit_wxMessage(x0, x1, x2, x3, x4, x5, x6));
#endif
    realobj->__gc_external = (void *)p[0];
    
    
    READY_TO_PRE_RETURN;
  } else if ((n >= (POFFSET+2)) && WITH_REMEMBERED_STACK(objscheme_istype_wxPanel(p[POFFSET+0], NULL, 0)) && WITH_REMEMBERED_STACK(objscheme_istype_wxBitmap(p[POFFSET+1], NULL, 0))) {
    class wxPanel* x0 INIT_NULLED_OUT;
    class wxBitmap* x1 INIT_NULLED_OUT;
    int x2;
    int x3;
    int x4;
    class wxFont* x5 INIT_NULLED_OUT;
    string x6 INIT_NULLED_OUT;

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

    
    if ((n < (POFFSET+2)) || (n > (POFFSET+7))) 
      WITH_VAR_STACK(scheme_wrong_count_m("initialization in message% (bitmap label case)", POFFSET+2, POFFSET+7, n, p, 1));
    x0 = WITH_VAR_STACK(objscheme_unbundle_wxPanel(p[POFFSET+0], "initialization in message% (bitmap label case)", 0));
    x1 = WITH_VAR_STACK(objscheme_unbundle_wxBitmap(p[POFFSET+1], "initialization in message% (bitmap label case)", 0));
    if (n > (POFFSET+2)) {
      x2 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+2], "initialization in message% (bitmap label case)"));
    } else
      x2 = -1;
    if (n > (POFFSET+3)) {
      x3 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+3], "initialization in message% (bitmap label case)"));
    } else
      x3 = -1;
    if (n > (POFFSET+4)) {
      x4 = WITH_VAR_STACK(unbundle_symset_messageStyle(p[POFFSET+4], "initialization in message% (bitmap label case)"));
    } else
      x4 = 0;
    if (n > (POFFSET+5)) {
      x5 = WITH_VAR_STACK(objscheme_unbundle_wxFont(p[POFFSET+5], "initialization in message% (bitmap label case)", 1));
    } else
      x5 = NULL;
    if (n > (POFFSET+6)) {
      x6 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+6], "initialization in message% (bitmap label case)"));
    } else
      x6 = "message";

    { if (x1 && !x1->Ok()) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("message%","initialization"), "bad bitmap: ", p[POFFSET+1])); if (x1 && BM_SELECTED(x1)) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("message%","initialization"), "bitmap is currently installed into a bitmap-dc%: ", p[POFFSET+1])); }
    realobj = WITH_VAR_STACK(new os_wxMessage CONSTRUCTOR_ARGS((x0, x1, x2, x3, x4, x5, x6)));
#ifdef MZ_PRECISE_GC
    WITH_VAR_STACK(realobj->gcInit_wxMessage(x0, x1, x2, x3, x4, x5, x6));
#endif
    realobj->__gc_external = (void *)p[0];
    
    
    READY_TO_PRE_RETURN;
  } else  {
    class wxPanel* x0 INIT_NULLED_OUT;
    string x1 INIT_NULLED_OUT;
    int x2;
    int x3;
    int x4;
    class wxFont* x5 INIT_NULLED_OUT;
    string x6 INIT_NULLED_OUT;

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

    
    if ((n < (POFFSET+2)) || (n > (POFFSET+7))) 
      WITH_VAR_STACK(scheme_wrong_count_m("initialization in message% (string label case)", POFFSET+2, POFFSET+7, n, p, 1));
    x0 = WITH_VAR_STACK(objscheme_unbundle_wxPanel(p[POFFSET+0], "initialization in message% (string label case)", 0));
    x1 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+1], "initialization in message% (string label case)"));
    if (n > (POFFSET+2)) {
      x2 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+2], "initialization in message% (string label case)"));
    } else
      x2 = -1;
    if (n > (POFFSET+3)) {
      x3 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+3], "initialization in message% (string label case)"));
    } else
      x3 = -1;
    if (n > (POFFSET+4)) {
      x4 = WITH_VAR_STACK(unbundle_symset_messageStyle(p[POFFSET+4], "initialization in message% (string label case)"));
    } else
      x4 = 0;
    if (n > (POFFSET+5)) {
      x5 = WITH_VAR_STACK(objscheme_unbundle_wxFont(p[POFFSET+5], "initialization in message% (string label case)", 1));
    } else
      x5 = NULL;
    if (n > (POFFSET+6)) {
      x6 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+6], "initialization in message% (string label case)"));
    } else
      x6 = "message";

    
    realobj = WITH_VAR_STACK(new os_wxMessage CONSTRUCTOR_ARGS((x0, x1, x2, x3, x4, x5, x6)));
#ifdef MZ_PRECISE_GC
    WITH_VAR_STACK(realobj->gcInit_wxMessage(x0, x1, x2, x3, x4, x5, x6));
#endif
    realobj->__gc_external = (void *)p[0];
    
    
    READY_TO_PRE_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_wxMessageGetFont ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 602 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 671 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 807 of file wxs_item.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxMessage_class, "on-kill-focus in message%", n, p);

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

  

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    WITH_VAR_STACK(((os_wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->wxMessage::OnKillFocus());
  else
    WITH_VAR_STACK(((wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->OnKillFocus());

  
  
  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_wxMessageOnSetFocus ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 784 of file wxs_item.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxMessage_class, "on-set-focus in message%", n, p);

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

  

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    WITH_VAR_STACK(((os_wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->wxMessage::OnSetFocus());
  else
    WITH_VAR_STACK(((wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->OnSetFocus());

  
  
  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_wxMessageOnSize ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 757 of file wxs_item.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxMessage_class, "on-size in message%", 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 message%"));
  x1 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+1], "on-size in message%"));

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    WITH_VAR_STACK(((os_wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->wxMessage::OnSize(x0, x1));
  else
    WITH_VAR_STACK(((wxMessage *)((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_wxMessagePreOnChar ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 727 of file wxs_item.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxMessage_class, "pre-on-char in message%", 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 message%", 0));
  x1 = WITH_VAR_STACK(objscheme_unbundle_wxKeyEvent(p[POFFSET+1], "pre-on-char in message%", 0));

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    r = WITH_VAR_STACK(((os_wxMessage *)((Scheme_Class_Object *)p[0])->primdata)-> wxWindow::PreOnChar(x0, x1));
  else
    r = WITH_VAR_STACK(((wxMessage *)((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_wxMessagePreOnEvent ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 697 of file wxs_item.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxMessage_class, "pre-on-event in message%", 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 message%", 0));
  x1 = WITH_VAR_STACK(objscheme_unbundle_wxMouseEvent(p[POFFSET+1], "pre-on-event in message%", 0));

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    r = WITH_VAR_STACK(((os_wxMessage *)((Scheme_Class_Object *)p[0])->primdata)-> wxWindow::PreOnEvent(x0, x1));
  else
    r = WITH_VAR_STACK(((wxMessage *)((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_wxMessageSetLabel ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 623 of file wxs_item.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  SETUP_PRE_VAR_STACK(1);
  PRE_VAR_STACK_PUSH(0, p);
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxMessage_class, "set-label in message%", n, p);
  if ((n >= (POFFSET+1)) && WITH_REMEMBERED_STACK(objscheme_istype_wxBitmap(p[POFFSET+0], NULL, 0))) {
    class wxBitmap* x0 INIT_NULLED_OUT;

    SETUP_VAR_STACK_PRE_REMEMBERED(2);
    VAR_STACK_PUSH(0, p);
    VAR_STACK_PUSH(1, x0);

    
    if (n != (POFFSET+1)) 
      WITH_VAR_STACK(scheme_wrong_count_m("set-label in message% (bitmap label case)", POFFSET+1, POFFSET+1, n, p, 1));
    x0 = WITH_VAR_STACK(objscheme_unbundle_wxBitmap(p[POFFSET+0], "set-label in message% (bitmap label case)", 0));

    { if (x0 && !x0->Ok()) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("message%","set-label"), "bad bitmap: ", p[POFFSET+0])); if (x0 && BM_SELECTED(x0)) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("message%","set-label"), "bitmap is currently installed into a bitmap-dc%: ", p[POFFSET+0])); }
    WITH_VAR_STACK(((wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->SetLabel(x0));

    
    
    READY_TO_PRE_RETURN;
  } else  {
    string x0 INIT_NULLED_OUT;

    SETUP_VAR_STACK_PRE_REMEMBERED(2);
    VAR_STACK_PUSH(0, p);
    VAR_STACK_PUSH(1, x0);

    
    if (n != (POFFSET+1)) 
      WITH_VAR_STACK(scheme_wrong_count_m("set-label in message% (string label case)", POFFSET+1, POFFSET+1, n, p, 1));
    x0 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+0], "set-label in message% (string label case)"));

    
    WITH_VAR_STACK(((wxMessage *)((Scheme_Class_Object *)p[0])->primdata)->SetLabel(x0));

    
    
    READY_TO_PRE_RETURN;
  }

  return scheme_void;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 281 of file wxs_item.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 228 of file wxs_item.cxx.

                                                                             {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!messageStyle_wxINVISIBLE_sym) WITH_VAR_STACK(init_symset_messageStyle());
  Scheme_Object *i INIT_NULLED_OUT, *l = v;
  long result = 0;
  while (SCHEME_PAIRP(l)) {
  i = SCHEME_CAR(l);
  if (0) { }
  else if (i == messageStyle_wxINVISIBLE_sym) { result = result | wxINVISIBLE; }
  else { break; } 
  l = SCHEME_CDR(l);
  }
  if (SCHEME_NULLP(l)) { READY_TO_RETURN; return result; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "messageStyle 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:


Variable Documentation

Definition at line 267 of file wxs_item.cxx.

Definition at line 269 of file wxs_item.cxx.

Definition at line 268 of file wxs_item.cxx.

Definition at line 220 of file wxs_item.cxx.

Definition at line 68 of file wxs_item.cxx.

Definition at line 350 of file wxs_item.cxx.