Back to index

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

Go to the source code of this file.

Classes

class  wxsGauge
class  os_wxsGauge

Defines

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

Functions

static void init_symset_gaugeStyle (void)
static int unbundle_symset_gaugeStyle (Scheme_Object *v, const char *where)
os_wxsGauge::os_wxsGauge CONSTRUCTOR_ARGS ((class wxPanel *x0, nstring x1, int x2, int x3, int x4, int x5, int x6, int x7, class wxFont *x8, string x9))
static Scheme_Objectos_wxsGaugeOnDropFile (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugePreOnEvent (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugePreOnChar (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeOnSize (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeOnSetFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeOnKillFocus (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeGetValue (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeSetValue (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeGetRange (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGaugeSetRange (int n, Scheme_Object *p[])
static Scheme_Objectos_wxsGauge_ConstructScheme (int n, Scheme_Object *p[])
void objscheme_setup_wxsGauge (Scheme_Env *env)
int objscheme_istype_wxsGauge (Scheme_Object *obj, const char *stop, int nullOK)
Scheme_Objectobjscheme_bundle_wxsGauge (class wxsGauge *realobj)
class wxsGaugeobjscheme_unbundle_wxsGauge (Scheme_Object *obj, const char *where, int nullOK)

Variables

static Scheme_ObjectgaugeStyle_wxVERTICAL_sym = NULL
static Scheme_ObjectgaugeStyle_wxHORIZONTAL_sym = NULL
static Scheme_ObjectgaugeStyle_wxVERTICAL_LABEL_sym = NULL
static Scheme_ObjectgaugeStyle_wxHORIZONTAL_LABEL_sym = NULL
static Scheme_ObjectgaugeStyle_wxINVISIBLE_sym = NULL
static Scheme_Objectos_wxsGauge_class

Define Documentation

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

Definition at line 23 of file wxs_gage.cxx.

#define ESCAPE_NO_RET_VAL   /*empty*/

Definition at line 28 of file wxs_gage.cxx.


Function Documentation

os_wxsGauge::os_wxsGauge CONSTRUCTOR_ARGS ( (class wxPanel *x0, nstring x1, int x2, int x3, int x4, int x5, int x6, int x7, class wxFont *x8, string x9)  )

Definition at line 172 of file wxs_gage.cxx.

                 : wxsGauge(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9))
{
}
static void init_symset_gaugeStyle ( void  ) [static]

Definition at line 769 of file wxs_gage.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_wxsGauge_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_wxsGauge ( Scheme_Object obj,
const char *  stop,
int  nullOK 
)

Definition at line 755 of file wxs_gage.cxx.

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

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

  wxREGGLOB(os_wxsGauge_class);

  os_wxsGauge_class = WITH_VAR_STACK(objscheme_def_prim_class(env, "gauge%", "item%", (Scheme_Method_Prim *)os_wxsGauge_ConstructScheme, 10));

  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "get-value" " method", (Scheme_Method_Prim *)os_wxsGaugeGetValue, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "set-value" " method", (Scheme_Method_Prim *)os_wxsGaugeSetValue, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "get-range" " method", (Scheme_Method_Prim *)os_wxsGaugeGetRange, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "set-range" " method", (Scheme_Method_Prim *)os_wxsGaugeSetRange, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "on-drop-file" " method", (Scheme_Method_Prim *)os_wxsGaugeOnDropFile, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "pre-on-event" " method", (Scheme_Method_Prim *)os_wxsGaugePreOnEvent, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "pre-on-char" " method", (Scheme_Method_Prim *)os_wxsGaugePreOnChar, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "on-size" " method", (Scheme_Method_Prim *)os_wxsGaugeOnSize, 2, 2));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "on-set-focus" " method", (Scheme_Method_Prim *)os_wxsGaugeOnSetFocus, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxsGauge_class, "on-kill-focus" " method", (Scheme_Method_Prim *)os_wxsGaugeOnKillFocus, 0, 0));


  WITH_VAR_STACK(scheme_made_class(os_wxsGauge_class));


  READY_TO_RETURN;
}

Here is the call graph for this function:

Here is the caller graph for this function:

class wxsGauge* objscheme_unbundle_wxsGauge ( Scheme_Object obj,
const char *  where,
int  nullOK 
)

Definition at line 796 of file wxs_gage.cxx.

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

  REMEMBER_VAR_STACK();

  (void)objscheme_istype_wxsGauge(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_wxsGauge *)o->primdata;
  else
    return (wxsGauge *)o->primdata;
}

Here is the call graph for this function:

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

Definition at line 653 of file wxs_gage.cxx.

{
  SETUP_PRE_VAR_STACK(1);
  PRE_VAR_STACK_PUSH(0, p);
  os_wxsGauge *realobj INIT_NULLED_OUT;
  REMEMBER_VAR_STACK();
  class wxPanel* x0 INIT_NULLED_OUT;
  nstring x1 INIT_NULLED_OUT;
  int x2;
  int x3;
  int x4;
  int x5;
  int x6;
  int x7;
  class wxFont* x8 INIT_NULLED_OUT;
  string x9 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, x8);
  VAR_STACK_PUSH(5, x9);

  
  if ((n < (POFFSET+3)) || (n > (POFFSET+10))) 
    WITH_VAR_STACK(scheme_wrong_count_m("initialization in gauge%", POFFSET+3, POFFSET+10, n, p, 1));
  x0 = WITH_VAR_STACK(objscheme_unbundle_wxPanel(p[POFFSET+0], "initialization in gauge%", 0));
  x1 = (nstring)WITH_VAR_STACK(objscheme_unbundle_nullable_string(p[POFFSET+1], "initialization in gauge%"));
  x2 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+2], "initialization in gauge%"));
  if (n > (POFFSET+3)) {
    x3 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+3], "initialization in gauge%"));
  } else
    x3 = -1;
  if (n > (POFFSET+4)) {
    x4 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+4], "initialization in gauge%"));
  } else
    x4 = -1;
  if (n > (POFFSET+5)) {
    x5 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+5], "initialization in gauge%"));
  } else
    x5 = -1;
  if (n > (POFFSET+6)) {
    x6 = WITH_VAR_STACK(objscheme_unbundle_integer(p[POFFSET+6], "initialization in gauge%"));
  } else
    x6 = -1;
  if (n > (POFFSET+7)) {
    x7 = WITH_VAR_STACK(unbundle_symset_gaugeStyle(p[POFFSET+7], "initialization in gauge%"));
  } else
    x7 = wxHORIZONTAL;
  if (n > (POFFSET+8)) {
    x8 = WITH_VAR_STACK(objscheme_unbundle_wxFont(p[POFFSET+8], "initialization in gauge%", 1));
  } else
    x8 = NULL;
  if (n > (POFFSET+9)) {
    x9 = (string)WITH_VAR_STACK(objscheme_unbundle_string(p[POFFSET+9], "initialization in gauge%"));
  } else
    x9 = "gauge";

  if (!x5) x5 = -1;if (!x6) x6 = -1;
  realobj = WITH_VAR_STACK(new os_wxsGauge CONSTRUCTOR_ARGS((x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)));
#ifdef MZ_PRECISE_GC
  WITH_VAR_STACK(realobj->gcInit_wxsGauge(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9));
#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_wxsGaugeGetRange ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 451 of file wxs_gage.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 408 of file wxs_gage.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 494 of file wxs_gage.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 630 of file wxs_gage.cxx.

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

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

  

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    WITH_VAR_STACK(((os_wxsGauge *)((Scheme_Class_Object *)p[0])->primdata)->wxsGauge::OnKillFocus());
  else
    WITH_VAR_STACK(((wxsGauge *)((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_wxsGaugeOnSetFocus ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 607 of file wxs_gage.cxx.

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

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

  

  
  if (((Scheme_Class_Object *)p[0])->primflag)
    WITH_VAR_STACK(((os_wxsGauge *)((Scheme_Class_Object *)p[0])->primdata)->wxsGauge::OnSetFocus());
  else
    WITH_VAR_STACK(((wxsGauge *)((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_wxsGaugeOnSize ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 580 of file wxs_gage.cxx.

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

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

Definition at line 550 of file wxs_gage.cxx.

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

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

Definition at line 520 of file wxs_gage.cxx.

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

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

Definition at line 472 of file wxs_gage.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 429 of file wxs_gage.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 111 of file wxs_gage.cxx.

                                                                           {
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, v);
  if (!gaugeStyle_wxINVISIBLE_sym) WITH_VAR_STACK(init_symset_gaugeStyle());
  Scheme_Object *i INIT_NULLED_OUT, *l = v;
  long result = 0;
  while (SCHEME_PAIRP(l)) {
  i = SCHEME_CAR(l);
  if (0) { }
  else if (i == gaugeStyle_wxVERTICAL_sym) { result = result | wxVERTICAL; }
  else if (i == gaugeStyle_wxHORIZONTAL_sym) { result = result | wxHORIZONTAL; }
  else if (i == gaugeStyle_wxVERTICAL_LABEL_sym) { result = result | wxVERTICAL_LABEL; }
  else if (i == gaugeStyle_wxHORIZONTAL_LABEL_sym) { result = result | wxHORIZONTAL_LABEL; }
  else if (i == gaugeStyle_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, "gaugeStyle 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 94 of file wxs_gage.cxx.

Definition at line 92 of file wxs_gage.cxx.

Definition at line 95 of file wxs_gage.cxx.

Definition at line 93 of file wxs_gage.cxx.

Definition at line 91 of file wxs_gage.cxx.

Definition at line 170 of file wxs_gage.cxx.