Back to index

plt-scheme  4.2.1
Classes | Defines | Functions | Variables
wxs_lbox.cxx File Reference
#include "wx_lbox.h"
#include "wxscheme.h"
#include "wxs_lbox.h"

Go to the source code of this file.

Classes

class  os_wxListBox

Defines

#define BM_IN_USE(map)   ((map)->selectedIntoDC)
#define ESCAPE_NO_RET_VAL   /*empty*/
#define CB_FUNCTYPE   wxFunction
#define CALLBACKCLASS   os_wxListBox
#define CB_REALCLASS   wxListBox
#define CB_UNBUNDLE   objscheme_unbundle_wxListBox
#define CB_USER   METHODNAME("list-box%","initialization")
#define CB_TOSCHEME   wxListBoxCallbackToScheme
#define CB_TOC   wxListBoxCallbackToC
#define l_ADDRESS
#define l_DEREF
#define l_NEWATOMIC   (UseGC)
#define l_NULLOK   0
#define l_TEST
#define l_POINT
#define l_EXTRA   0
#define l_TERMINATE
#define l_COPY   l_COPYDEST=l_COPYSRC;
#define l_OKTEST
#define l_INTTYPE   int
#define l_DIRECTMALLOC   0
#define l_TYPE   string
#define l_LIST_ITEM_BUNDLE   objscheme_bundle_string
#define l_LIST_ITEM_UNBUNDLE   objscheme_unbundle_string
#define l_MAKE_LIST   __MakestringList
#define l_MAKE_ARRAY   __MakestringArray
#define l_COPYDEST   f[i]
#define l_COPYSRC   (l_DEREF WITH_VAR_STACK(l_LIST_ITEM_UNBUNDLE(SCHEME_CAR(l), who l_TEST)))
#define RANGECLASS   wxListBox
#define THISOBJECT   ((RANGECLASS *)((Scheme_Class_Object *)THEOBJ)->primdata)

Functions

static Scheme_ObjectGetSelectionList (wxListBox *l)
static void init_symset_kind (void)
static int unbundle_symset_kind (Scheme_Object *v, const char *where)
static void init_symset_style (void)
static int unbundle_symset_style (Scheme_Object *v, const char *where)
wxCommandEventobjscheme_unbundle_wxCommandEvent (Scheme_Object *, const char *, int)
Scheme_Objectobjscheme_bundle_wxCommandEvent (wxCommandEvent *)
static void CB_TOSCHEME (CB_REALCLASS *obj, wxCommandEvent *event)
static Scheme_Objectl_MAKE_LIST (l_TYPE l_POINT *f, l_INTTYPE c)
static l_TYPE l_POINTl_MAKE_ARRAY (Scheme_Object *l, l_INTTYPE *c, char *who)
os_wxListBox::os_wxListBox CONSTRUCTOR_ARGS ((class wxPanel *x0, wxFunction x1, nstring x2, int x3, int x4, int x5, int x6, int x7, int x8, string *x9, int x10, class wxFont *x11, class wxFont *x12, string x13))
static Scheme_Objectos_wxListBoxOnDropFile (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxPreOnEvent (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxPreOnChar (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxOnSize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxOnSetFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxOnKillFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxGetLabelFont (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSetString (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSetFirstItem (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSet (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxGetSelectionList (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxGetFirstItem (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxNumberOfVisibleItems (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxNumber (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxGetSelection (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSetClientData (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxGetClientData (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSelected (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSetOneSelection (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxSetSelection (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxDelete (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxClear (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBoxAppend (int n, Scheme_Object *p[])
static Scheme_Objectos_wxListBox_ConstructScheme (int n, Scheme_Object *p[])
void objscheme_setup_wxListBox (Scheme_Env *env)
int objscheme_istype_wxListBox (Scheme_Object *obj, const char *stop, int nullOK)
Scheme_Objectobjscheme_bundle_wxListBox (class wxListBox *realobj)
class wxListBoxobjscheme_unbundle_wxListBox (Scheme_Object *obj, const char *where, int nullOK)

Variables

static Scheme_Objectkind_wxSINGLE_sym = NULL
static Scheme_Objectkind_wxMULTIPLE_sym = NULL
static Scheme_Objectkind_wxEXTENDED_sym = NULL
static Scheme_Objectstyle_wxALWAYS_SB_sym = NULL
static Scheme_Objectstyle_wxHSCROLL_sym = NULL
static Scheme_Objectstyle_wxINVISIBLE_sym = NULL
static Scheme_Objectstyle_wxVERTICAL_LABEL_sym = NULL
static Scheme_Objectstyle_wxHORIZONTAL_LABEL_sym = NULL
static Scheme_Objectos_wxListBox_class

Define Documentation

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

Definition at line 23 of file wxs_lbox.cxx.

Definition at line 145 of file wxs_lbox.cxx.

#define CB_FUNCTYPE   wxFunction

Definition at line 137 of file wxs_lbox.cxx.

#define CB_REALCLASS   wxListBox

Definition at line 146 of file wxs_lbox.cxx.

#define CB_TOC   wxListBoxCallbackToC

Definition at line 153 of file wxs_lbox.cxx.

#define CB_TOSCHEME   wxListBoxCallbackToScheme

Definition at line 152 of file wxs_lbox.cxx.

Definition at line 147 of file wxs_lbox.cxx.

#define CB_USER   METHODNAME("list-box%","initialization")

Definition at line 148 of file wxs_lbox.cxx.

#define ESCAPE_NO_RET_VAL   /*empty*/

Definition at line 28 of file wxs_lbox.cxx.

#define l_ADDRESS

Definition at line 182 of file wxs_lbox.cxx.

#define l_COPY   l_COPYDEST=l_COPYSRC;

Definition at line 190 of file wxs_lbox.cxx.

#define l_COPYDEST   f[i]
#define l_DEREF

Definition at line 183 of file wxs_lbox.cxx.

#define l_DIRECTMALLOC   0

Definition at line 193 of file wxs_lbox.cxx.

#define l_EXTRA   0

Definition at line 188 of file wxs_lbox.cxx.

#define l_INTTYPE   int

Definition at line 192 of file wxs_lbox.cxx.

Definition at line 196 of file wxs_lbox.cxx.

Definition at line 197 of file wxs_lbox.cxx.

#define l_MAKE_ARRAY   __MakestringArray

Definition at line 199 of file wxs_lbox.cxx.

#define l_MAKE_LIST   __MakestringList

Definition at line 198 of file wxs_lbox.cxx.

#define l_NEWATOMIC   (UseGC)

Definition at line 184 of file wxs_lbox.cxx.

#define l_NULLOK   0

Definition at line 185 of file wxs_lbox.cxx.

#define l_OKTEST

Definition at line 191 of file wxs_lbox.cxx.

#define l_POINT

Definition at line 187 of file wxs_lbox.cxx.

#define l_TERMINATE

Definition at line 189 of file wxs_lbox.cxx.

#define l_TEST

Definition at line 186 of file wxs_lbox.cxx.

#define l_TYPE   string

Definition at line 195 of file wxs_lbox.cxx.

#define RANGECLASS   wxListBox

Definition at line 281 of file wxs_lbox.cxx.

#define THISOBJECT   ((RANGECLASS *)((Scheme_Class_Object *)THEOBJ)->primdata)

Definition at line 283 of file wxs_lbox.cxx.


Function Documentation

static void CB_TOSCHEME ( CB_REALCLASS obj,
wxCommandEvent event 
) [static]

Definition at line 1320 of file wxs_lbox.cxx.

{
  Scheme_Object *p[2];
  Scheme_Class_Object *obj;
  mz_jmp_buf savebuf;
  Scheme_Thread *thread;
  SETUP_VAR_STACK(4);
  VAR_STACK_PUSH(0, obj);
  VAR_STACK_PUSH(1, event);
  VAR_STACK_PUSH(2, p[0]);
  VAR_STACK_PUSH(3, p[1]);

  p[0] = NULL;
  p[1] = NULL;

  obj = (Scheme_Class_Object *)realobj->__gc_external;

  if (!obj) {
    // scheme_signal_error("bad callback object");
    return;
  }

  p[0] = (Scheme_Object *)obj;
  p[1] = WITH_VAR_STACK(objscheme_bundle_wxCommandEvent(event));

  thread = scheme_get_current_thread();
  COPY_JMPBUF(savebuf, *(thread->error_buf));

  if (!scheme_setjmp(*(thread->error_buf)))
    WITH_VAR_STACK(scheme_apply_multi(((CALLBACKCLASS *)obj->primdata)->callback_closure, 2, p));

  thread = scheme_get_current_thread();
  COPY_JMPBUF(*(thread->error_buf), savebuf);

  READY_TO_RETURN;
}

Here is the call graph for this function:

os_wxListBox::os_wxListBox CONSTRUCTOR_ARGS ( (class wxPanel *x0, wxFunction x1, nstring x2, int x3, int x4, int x5, int x6, int x7, int x8, string *x9, int x10, class wxFont *x11, class wxFont *x12, string x13)  )

Definition at line 323 of file wxs_lbox.cxx.

                 : wxListBox(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13))
{
}
static Scheme_Object* GetSelectionList ( wxListBox l) [static]

Definition at line 38 of file wxs_lbox.cxx.

{
  int c, *v = NULL;
  Scheme_Object *cdr = NULL, *obj = NULL;
  SETUP_VAR_STACK(3);
  VAR_STACK_PUSH(0, l);
  VAR_STACK_PUSH(1, v);
  VAR_STACK_PUSH(2, cdr);


  c = WITH_VAR_STACK(l->GetSelections(&v));

  cdr = scheme_null;

  while (c--) {
    obj = WITH_VAR_STACK(scheme_make_integer(v[c]));
    cdr = WITH_VAR_STACK(scheme_make_pair(obj, cdr));
  }
  
  READY_TO_RETURN;

  return cdr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void init_symset_kind ( void  ) [static]
static void init_symset_style ( void  ) [static]
static l_TYPE l_POINT* l_MAKE_ARRAY ( Scheme_Object l,
l_INTTYPE c,
char *  who 
) [static]

Definition at line 221 of file wxs_lbox.cxx.

{
  Scheme_Object *orig_l = l;
  int i = 0;
  long len;
  l_TYPE l_POINT *f = NULL;

  SETUP_VAR_STACK(3);
  VAR_STACK_PUSH(0, l);
  VAR_STACK_PUSH(1, orig_l);
  VAR_STACK_PUSH(2, f);

  len = WITH_VAR_STACK(scheme_proper_list_length(l));
  if (len < 0) WITH_VAR_STACK(scheme_wrong_type(who, "proper-list", -1, 0, &l));
  if (c) *c = len;

  if (!(len + l_EXTRA)) {
    READY_TO_RETURN;
    return NULL;
  }

#if l_DIRECTMALLOC
  f = (l_TYPE l_POINT *)WITH_VAR_STACK(GC_malloc_atomic(sizeof(l_TYPE l_POINT) * (len + l_EXTRA)));
#else
  f = WITH_VAR_STACK(new l_NEWATOMIC l_TYPE l_POINT[len + l_EXTRA]);
#endif

  while (!SCHEME_NULLP(l)) {
    if (!SCHEME_LISTP(l)) {
      WITH_VAR_STACK(scheme_arg_mismatch(who, "expected a proper list: ", orig_l));
      READY_TO_RETURN;
      return NULL;
    }

#define l_COPYDEST f[i]
#define l_COPYSRC (l_DEREF WITH_VAR_STACK(l_LIST_ITEM_UNBUNDLE(SCHEME_CAR(l), who l_TEST)))

    l_COPY

    l_OKTEST

    i++;

    l = SCHEME_CDR(l);
  }
  l_TERMINATE

  READY_TO_RETURN;

  return f;
}
static Scheme_Object* l_MAKE_LIST ( l_TYPE l_POINT f,
l_INTTYPE  c 
) [static]

Definition at line 205 of file wxs_lbox.cxx.

Definition at line 513 of file wxs_evnt.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_wxCommandEvent_class));

  obj->primdata = realobj;
  obj->primflag = 0;

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

Definition at line 1276 of file wxs_lbox.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_LIST_BOX) && (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_wxListBox_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_wxListBox ( Scheme_Object obj,
const char *  stop,
int  nullOK 
)

Definition at line 1262 of file wxs_lbox.cxx.

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

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

  wxREGGLOB(os_wxListBox_class);

  os_wxListBox_class = WITH_VAR_STACK(objscheme_def_prim_class(env, "list-box%", "item%", (Scheme_Method_Prim *)os_wxListBox_ConstructScheme, 23));

  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "get-label-font" " method", (Scheme_Method_Prim *)os_wxListBoxGetLabelFont, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "set-string" " method", (Scheme_Method_Prim *)os_wxListBoxSetString, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "set-first-visible-item" " method", (Scheme_Method_Prim *)os_wxListBoxSetFirstItem, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "set" " method", (Scheme_Method_Prim *)os_wxListBoxSet, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "get-selections" " method", (Scheme_Method_Prim *)os_wxListBoxGetSelectionList, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "get-first-item" " method", (Scheme_Method_Prim *)os_wxListBoxGetFirstItem, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "number-of-visible-items" " method", (Scheme_Method_Prim *)os_wxListBoxNumberOfVisibleItems, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "number" " method", (Scheme_Method_Prim *)os_wxListBoxNumber, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "get-selection" " method", (Scheme_Method_Prim *)os_wxListBoxGetSelection, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "set-data" " method", (Scheme_Method_Prim *)os_wxListBoxSetClientData, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "get-data" " method", (Scheme_Method_Prim *)os_wxListBoxGetClientData, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "selected?" " method", (Scheme_Method_Prim *)os_wxListBoxSelected, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "set-selection" " method", (Scheme_Method_Prim *)os_wxListBoxSetOneSelection, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "select" " method", (Scheme_Method_Prim *)os_wxListBoxSetSelection, 1, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "delete" " method", (Scheme_Method_Prim *)os_wxListBoxDelete, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "clear" " method", (Scheme_Method_Prim *)os_wxListBoxClear, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "append" " method", (Scheme_Method_Prim *)os_wxListBoxAppend, 1, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "on-drop-file" " method", (Scheme_Method_Prim *)os_wxListBoxOnDropFile, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "pre-on-event" " method", (Scheme_Method_Prim *)os_wxListBoxPreOnEvent, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "pre-on-char" " method", (Scheme_Method_Prim *)os_wxListBoxPreOnChar, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "on-size" " method", (Scheme_Method_Prim *)os_wxListBoxOnSize, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "on-set-focus" " method", (Scheme_Method_Prim *)os_wxListBoxOnSetFocus, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxListBox_class, "on-kill-focus" " method", (Scheme_Method_Prim *)os_wxListBoxOnKillFocus, 0, 0));


  WITH_VAR_STACK(scheme_made_class(os_wxListBox_class));

  WITH_VAR_STACK(objscheme_install_bundler((Objscheme_Bundler)objscheme_bundle_wxListBox, wxTYPE_LIST_BOX));

  READY_TO_RETURN;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 539 of file wxs_evnt.cxx.

class wxListBox* objscheme_unbundle_wxListBox ( Scheme_Object obj,
const char *  where,
int  nullOK 
)

Definition at line 1303 of file wxs_lbox.cxx.

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

  REMEMBER_VAR_STACK();

  (void)objscheme_istype_wxListBox(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_wxListBox *)o->primdata;
  else
    return (wxListBox *)o->primdata;
}

Here is the call graph for this function:

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

Definition at line 1128 of file wxs_lbox.cxx.

{
  SETUP_PRE_VAR_STACK(1);
  PRE_VAR_STACK_PUSH(0, p);
  os_wxListBox *realobj INIT_NULLED_OUT;
  REMEMBER_VAR_STACK();
  class wxPanel* x0 INIT_NULLED_OUT;
  wxFunction x1;
  nstring x2 INIT_NULLED_OUT;
  int x3;
  int x4;
  int x5;
  int x6;
  int x7;
  int x8;
  string* x9 INIT_NULLED_OUT;
  int x10;
  class wxFont* x11 INIT_NULLED_OUT;
  class wxFont* x12 INIT_NULLED_OUT;
  string x13 INIT_NULLED_OUT;

  SETUP_VAR_STACK_PRE_REMEMBERED(8);
  VAR_STACK_PUSH(0, p);
  VAR_STACK_PUSH(1, realobj);
  VAR_STACK_PUSH(2, x0);
  VAR_STACK_PUSH(3, x2);
  VAR_STACK_PUSH(4, x9);
  VAR_STACK_PUSH(5, x11);
  VAR_STACK_PUSH(6, x12);
  VAR_STACK_PUSH(7, x13);

  int cb_pos = 0;
  if ((n < (POFFSET+3)) || (n > (POFFSET+13))) 
    WITH_VAR_STACK(scheme_wrong_count_m("initialization in list-box%", POFFSET+3, POFFSET+13, n, p, 1));
  x0 = WITH_VAR_STACK(objscheme_unbundle_wxPanel(p[POFFSET+0], "initialization in list-box%", 0));
  x1 = (SCHEME_NULLP(p[POFFSET+1]) ? NULL : (WITH_REMEMBERED_STACK(objscheme_istype_proc2(p[POFFSET+1], CB_USER)), cb_pos = 1, (CB_FUNCTYPE)CB_TOSCHEME));
  x2 = (nstring)WITH_VAR_STACK(objscheme_unbundle_nullable_string(p[POFFSET+2], "initialization in list-box%"));
  if (n > (POFFSET+3)) {
    x3 = WITH_VAR_STACK(unbundle_symset_kind(p[POFFSET+3], "initialization in list-box%"));
  } else
    x3 = wxSINGLE;
  if (n > (POFFSET+4)) {
    x4 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+4], "initialization in list-box%"));
  } else
    x4 = -1;
  if (n > (POFFSET+5)) {
    x5 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+5], "initialization in list-box%"));
  } else
    x5 = -1;
  if (n > (POFFSET+6)) {
    x6 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+6], "initialization in list-box%"));
  } else
    x6 = -1;
  if (n > (POFFSET+7)) {
    x7 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+7], "initialization in list-box%"));
  } else
    x7 = -1;
  if (n > (POFFSET+8)) {
    x9 = NULL;
  } else
    x9 = NULL;
  if (n > (POFFSET+9)) {
    x10 = WITH_VAR_STACK(unbundle_symset_style(p[POFFSET+9], "initialization in list-box%"));
  } else
    x10 = 0;
  if (n > (POFFSET+10)) {
    x11 = WITH_VAR_STACK(objscheme_unbundle_wxFont(p[POFFSET+10], "initialization in list-box%", 1));
  } else
    x11 = NULL;
  if (n > (POFFSET+11)) {
    x12 = WITH_VAR_STACK(objscheme_unbundle_wxFont(p[POFFSET+11], "initialization in list-box%", 1));
  } else
    x12 = NULL;
  if (n > (POFFSET+12)) {
    x13 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+12], "initialization in list-box%"));
  } else
    x13 = "button";

  if (!x6) x6 = -1;if (!x7) x7 = -1;x9 = WITH_VAR_STACK(__MakestringArray((8+POFFSET < n) ? p[POFFSET+8] : scheme_null, &x8, METHODNAME("list-box%","initialization")));
  realobj = WITH_VAR_STACK(new os_wxListBox CONSTRUCTOR_ARGS((x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)));
#ifdef MZ_PRECISE_GC
  WITH_VAR_STACK(realobj->gcInit_wxListBox(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13));
#endif
  realobj->__gc_external = (void *)p[0];
  /* delete[] x9; */
  realobj->callback_closure = p[POFFSET+cb_pos];
  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_wxListBoxAppend ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 918 of file wxs_lbox.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_wxListBox_class, "append in list-box%", n, p);
  if ((n >= (POFFSET+2)) && WITH_REMEMBERED_STACK(objscheme_istype_string(p[POFFSET+0], NULL)) && 1) {
    string x0 INIT_NULLED_OUT;
    string x1 INIT_NULLED_OUT;

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

    
    if (n != (POFFSET+2)) 
      WITH_VAR_STACK(scheme_wrong_count_m("append in list-box% (with data case)", POFFSET+2, POFFSET+2, n, p, 1));
    x0 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+0], "append in list-box% (with data case)"));
    x1 = ((char *)p[POFFSET+1]);

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

    
    
    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("append in list-box% (without data case)", POFFSET+1, POFFSET+1, n, p, 1));
    x0 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+0], "append in list-box% (without data case)"));

    
    WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->Append(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 Scheme_Object* os_wxListBoxClear ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 898 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 876 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 781 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  nstring r;
  objscheme_check_valid(os_wxListBox_class, "get-data in list-box%", n, p);
  int x0;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "get-data in list-box%"));

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return XC_SCHEME_NULL; }
  r = WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->GetClientData(x0));

  
  
  READY_TO_RETURN;
  return ((r) ? ((Scheme_Object *)r) : XC_SCHEME_NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 672 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 559 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 735 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 651 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 714 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 693 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 969 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1105 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1082 of file wxs_lbox.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1055 of file wxs_lbox.cxx.

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

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

Definition at line 1025 of file wxs_lbox.cxx.

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

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

Definition at line 995 of file wxs_lbox.cxx.

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

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

Definition at line 804 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxListBox_class, "selected? in list-box%", n, p);
  int x0;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "selected? in list-box%"));

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return scheme_false; }
  r = WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->Selected(x0));

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

Definition at line 627 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxListBox_class, "set in list-box%", n, p);
  int x0;
  string* x1 INIT_NULLED_OUT;

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

  
  x1 = NULL;

  x1 = WITH_VAR_STACK(__MakestringArray((0+POFFSET < n) ? p[POFFSET+0] : scheme_null, &x0, METHODNAME("list%","set")));
  WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->Set(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_wxListBoxSetClientData ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 756 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxListBox_class, "set-data in list-box%", n, p);
  int x0;
  string x1 INIT_NULLED_OUT;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "set-data in list-box%"));
  x1 = ((char *)p[POFFSET+1]);

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return scheme_void; }
  WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->SetClientData(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_wxListBoxSetFirstItem ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 605 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxListBox_class, "set-first-visible-item in list-box%", n, p);
  int x0;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "set-first-visible-item in list-box%"));

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return scheme_void; }
  WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->SetFirstItem(x0));

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

Definition at line 827 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxListBox_class, "set-selection in list-box%", n, p);
  int x0;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "set-selection in list-box%"));

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return scheme_void; }
  WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->SetOneSelection(x0));

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

Definition at line 849 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxListBox_class, "select in list-box%", n, p);
  int x0;
  Bool x1;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "select in list-box%"));
  if (n > (POFFSET+1)) {
    x1 = WITH_VAR_STACK(objscheme_unbundle_bool(p[POFFSET+1], "select in list-box%"));
  } else
    x1 = TRUE;

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return scheme_void; }
  WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->SetSelection(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_wxListBoxSetString ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 580 of file wxs_lbox.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxListBox_class, "set-string in list-box%", n, p);
  int x0;
  string x1 INIT_NULLED_OUT;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+0], "set-string in list-box%"));
  x1 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+1], "set-string in list-box%"));

  if ((x0 < 0) || (x0 >= THISOBJECT->Number())) { READY_TO_RETURN; return scheme_void; }
  WITH_VAR_STACK(((wxListBox *)((Scheme_Class_Object *)p[0])->primdata)->SetString(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 int unbundle_symset_kind ( Scheme_Object v,
const char *  where 
) [static]

Definition at line 76 of file wxs_lbox.cxx.

                                                                     {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!kind_wxEXTENDED_sym) WITH_VAR_STACK(init_symset_kind());
  if (0) { }
  else if (v == kind_wxSINGLE_sym) { READY_TO_RETURN; return wxSINGLE; }
  else if (v == kind_wxMULTIPLE_sym) { READY_TO_RETURN; return wxMULTIPLE; }
  else if (v == kind_wxEXTENDED_sym) { READY_TO_RETURN; return wxEXTENDED; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "kind 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 unbundle_symset_style ( Scheme_Object v,
const char *  where 
) [static]

Definition at line 110 of file wxs_lbox.cxx.

                                                                      {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!style_wxHORIZONTAL_LABEL_sym) WITH_VAR_STACK(init_symset_style());
  Scheme_Object *i INIT_NULLED_OUT, *l = v;
  long result = 0;
  while (SCHEME_PAIRP(l)) {
  i = SCHEME_CAR(l);
  if (0) { }
  else if (i == style_wxALWAYS_SB_sym) { result = result | wxALWAYS_SB; }
  else if (i == style_wxHSCROLL_sym) { result = result | wxHSCROLL; }
  else if (i == style_wxINVISIBLE_sym) { result = result | wxINVISIBLE; }
  else if (i == style_wxVERTICAL_LABEL_sym) { result = result | wxVERTICAL_LABEL; }
  else if (i == style_wxHORIZONTAL_LABEL_sym) { result = result | wxHORIZONTAL_LABEL; }
  else { break; } 
  l = SCHEME_CDR(l);
  }
  if (SCHEME_NULLP(l)) { READY_TO_RETURN; return result; }
  if (where) WITH_VAR_STACK(scheme_wrong_type(where, "style 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 64 of file wxs_lbox.cxx.

Definition at line 63 of file wxs_lbox.cxx.

Definition at line 62 of file wxs_lbox.cxx.

Definition at line 321 of file wxs_lbox.cxx.

Definition at line 90 of file wxs_lbox.cxx.

Definition at line 94 of file wxs_lbox.cxx.

Definition at line 91 of file wxs_lbox.cxx.

Definition at line 92 of file wxs_lbox.cxx.

Definition at line 93 of file wxs_lbox.cxx.