Back to index

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

Go to the source code of this file.

Classes

class  os_wxBitmap

Defines

#define BM_IN_USE(map)   ((map)->selectedIntoDC)
#define ESCAPE_NO_RET_VAL   /*empty*/
#define wxBITMAP_TYPE_PICT   101
#define wxBITMAP_TYPE_UNKNOWN   0
#define wxBITMAP_TYPE_GIF_MASK   (wxBITMAP_TYPE_GIF | wxBITMAP_TYPE_MASK)
#define wxBITMAP_TYPE_PNG_MASK   (wxBITMAP_TYPE_PNG | wxBITMAP_TYPE_MASK)

Functions

static void init_symset_bitmapType (void)
static int unbundle_symset_bitmapType (Scheme_Object *v, const char *where)
static Scheme_Objectbundle_symset_bitmapType (int v)
static void init_symset_saveBitmapType (void)
static int unbundle_symset_saveBitmapType (Scheme_Object *v, const char *where)
static Bool IsColor (wxBitmap *bm)
void wxGetARGBPixels (wxBitmap *bm, double x, double y, int w, int h, char *s, Bool get_alpha)
os_wxBitmap::os_wxBitmap CONSTRUCTOR_ARGS ((bstring x0, int x1, int x2))
os_wxBitmap::os_wxBitmap CONSTRUCTOR_ARGS ((int x0, int x1, Bool x2))
os_wxBitmap::os_wxBitmap CONSTRUCTOR_ARGS ((pathname x0, int x1, class wxColour *x2))
static Scheme_Objectos_wxBitmapwxGetARGBPixels (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapGetGLConfig (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapSetGLConfig (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapSetMask (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapGetMask (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapSaveFile (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapLoadFile (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapIsColor (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapOk (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapGetWidth (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapGetHeight (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmapGetDepth (int n, Scheme_Object *p[])
static Scheme_Objectos_wxBitmap_ConstructScheme (int n, Scheme_Object *p[])
void objscheme_setup_wxBitmap (Scheme_Env *env)
int objscheme_istype_wxBitmap (Scheme_Object *obj, const char *stop, int nullOK)
Scheme_Objectobjscheme_bundle_wxBitmap (class wxBitmap *realobj)
class wxBitmapobjscheme_unbundle_wxBitmap (Scheme_Object *obj, const char *where, int nullOK)

Variables

static Scheme_ObjectbitmapType_wxBITMAP_TYPE_BMP_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_GIF_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_GIF_MASK_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_XBM_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_XPM_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_PICT_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_JPEG_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_PNG_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_PNG_MASK_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_UNKNOWN_sym = NULL
static Scheme_ObjectbitmapType_wxBITMAP_TYPE_MASK_sym = NULL
static Scheme_ObjectsaveBitmapType_wxBITMAP_TYPE_BMP_sym = NULL
static Scheme_ObjectsaveBitmapType_wxBITMAP_TYPE_XBM_sym = NULL
static Scheme_ObjectsaveBitmapType_wxBITMAP_TYPE_XPM_sym = NULL
static Scheme_ObjectsaveBitmapType_wxBITMAP_TYPE_JPEG_sym = NULL
static Scheme_ObjectsaveBitmapType_wxBITMAP_TYPE_PNG_sym = NULL
static Scheme_Objectos_wxBitmap_class

Define Documentation

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

Definition at line 23 of file wxs_bmap.cxx.

#define ESCAPE_NO_RET_VAL   /*empty*/

Definition at line 28 of file wxs_bmap.cxx.

Definition at line 44 of file wxs_bmap.cxx.

#define wxBITMAP_TYPE_PICT   101

Definition at line 40 of file wxs_bmap.cxx.

Definition at line 45 of file wxs_bmap.cxx.

#define wxBITMAP_TYPE_UNKNOWN   0

Definition at line 43 of file wxs_bmap.cxx.


Function Documentation

static Scheme_Object* bundle_symset_bitmapType ( int  v) [static]
os_wxBitmap::os_wxBitmap CONSTRUCTOR_ARGS ( (bstring x0, int x1, int x2)  )

Definition at line 209 of file wxs_bmap.cxx.

                 : wxBitmap(x0, x1, x2))
{
}
os_wxBitmap::os_wxBitmap CONSTRUCTOR_ARGS ( (int x0, int x1, Bool x2)  )

Definition at line 215 of file wxs_bmap.cxx.

                 : wxBitmap(x0, x1, x2))
{
}
os_wxBitmap::os_wxBitmap CONSTRUCTOR_ARGS ( (pathname x0, int x1, class wxColour *x2)  )

Definition at line 222 of file wxs_bmap.cxx.

                 : wxBitmap(x0, x1, x2))
{
}
static void init_symset_bitmapType ( void  ) [static]

Definition at line 59 of file wxs_bmap.cxx.

                                         {
  REMEMBER_VAR_STACK();
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_BMP_sym);
  bitmapType_wxBITMAP_TYPE_BMP_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("bmp"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_GIF_sym);
  bitmapType_wxBITMAP_TYPE_GIF_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("gif"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_GIF_MASK_sym);
  bitmapType_wxBITMAP_TYPE_GIF_MASK_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("gif/mask"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_XBM_sym);
  bitmapType_wxBITMAP_TYPE_XBM_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("xbm"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_XPM_sym);
  bitmapType_wxBITMAP_TYPE_XPM_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("xpm"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_PICT_sym);
  bitmapType_wxBITMAP_TYPE_PICT_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("pict"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_JPEG_sym);
  bitmapType_wxBITMAP_TYPE_JPEG_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("jpeg"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_PNG_sym);
  bitmapType_wxBITMAP_TYPE_PNG_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("png"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_PNG_MASK_sym);
  bitmapType_wxBITMAP_TYPE_PNG_MASK_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("png/mask"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_UNKNOWN_sym);
  bitmapType_wxBITMAP_TYPE_UNKNOWN_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("unknown"));
  wxREGGLOB(bitmapType_wxBITMAP_TYPE_MASK_sym);
  bitmapType_wxBITMAP_TYPE_MASK_sym = WITH_REMEMBERED_STACK(scheme_intern_symbol("unknown/mask"));
}

Here is the caller graph for this function:

static void init_symset_saveBitmapType ( void  ) [static]
static Bool IsColor ( wxBitmap bm) [static]

Definition at line 162 of file wxs_bmap.cxx.

{
  return (bm->GetDepth() != 1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 672 of file wxs_bmap.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_wxBitmap_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_wxBitmap ( Scheme_Object obj,
const char *  stop,
int  nullOK 
)

Definition at line 658 of file wxs_bmap.cxx.

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

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

  wxREGGLOB(os_wxBitmap_class);

  os_wxBitmap_class = WITH_VAR_STACK(objscheme_def_prim_class(env, "bitmap%", "object%", (Scheme_Method_Prim *)os_wxBitmap_ConstructScheme, 12));

  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "get-argb-pixels" " method", (Scheme_Method_Prim *)os_wxBitmapwxGetARGBPixels, 5, 6));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "get-gl-config" " method", (Scheme_Method_Prim *)os_wxBitmapGetGLConfig, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "set-gl-config" " method", (Scheme_Method_Prim *)os_wxBitmapSetGLConfig, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "set-loaded-mask" " method", (Scheme_Method_Prim *)os_wxBitmapSetMask, 1, 1));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "get-loaded-mask" " method", (Scheme_Method_Prim *)os_wxBitmapGetMask, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "save-file" " method", (Scheme_Method_Prim *)os_wxBitmapSaveFile, 2, 3));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "load-file" " method", (Scheme_Method_Prim *)os_wxBitmapLoadFile, 1, 3));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "is-color?" " method", (Scheme_Method_Prim *)os_wxBitmapIsColor, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "ok?" " method", (Scheme_Method_Prim *)os_wxBitmapOk, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "get-width" " method", (Scheme_Method_Prim *)os_wxBitmapGetWidth, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "get-height" " method", (Scheme_Method_Prim *)os_wxBitmapGetHeight, 0, 0));
  WITH_VAR_STACK(scheme_add_method_w_arity(os_wxBitmap_class, "get-depth" " method", (Scheme_Method_Prim *)os_wxBitmapGetDepth, 0, 0));


  WITH_VAR_STACK(scheme_made_class(os_wxBitmap_class));


  READY_TO_RETURN;
}

Here is the call graph for this function:

Here is the caller graph for this function:

class wxBitmap * objscheme_unbundle_wxBitmap ( Scheme_Object obj,
const char *  where,
int  nullOK 
)

Definition at line 699 of file wxs_bmap.cxx.

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

  REMEMBER_VAR_STACK();

  (void)objscheme_istype_wxBitmap(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_wxBitmap *)o->primdata;
  else
    return (wxBitmap *)o->primdata;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 528 of file wxs_bmap.cxx.

{
  SETUP_PRE_VAR_STACK(1);
  PRE_VAR_STACK_PUSH(0, p);
  os_wxBitmap *realobj INIT_NULLED_OUT;
  REMEMBER_VAR_STACK();
  if ((n >= (POFFSET+1)) && WITH_REMEMBERED_STACK(objscheme_istype_pathname(p[POFFSET+0], NULL))) {
    pathname x0 INIT_NULLED_OUT;
    int x1;
    class wxColour* x2 INIT_NULLED_OUT;

    SETUP_VAR_STACK_PRE_REMEMBERED(4);
    VAR_STACK_PUSH(0, p);
    VAR_STACK_PUSH(1, realobj);
    VAR_STACK_PUSH(2, x0);
    VAR_STACK_PUSH(3, x2);

    
    if ((n < (POFFSET+1)) || (n > (POFFSET+3))) 
      WITH_VAR_STACK(scheme_wrong_count_m("initialization in bitmap% (pathname case)", POFFSET+1, POFFSET+3, n, p, 1));
    x0 = (pathname)WITH_VAR_STACK(objscheme_unbundle_pathname(p[POFFSET+0], "initialization in bitmap% (pathname case)"));
    if (n > (POFFSET+1)) {
      x1 = WITH_VAR_STACK(unbundle_symset_bitmapType(p[POFFSET+1], "initialization in bitmap% (pathname case)"));
    } else
      x1 = 0;
    if (n > (POFFSET+2)) {
      x2 = WITH_VAR_STACK(objscheme_unbundle_wxColour(p[POFFSET+2], "initialization in bitmap% (pathname case)", 1));
    } else
      x2 = NULL;

    
    realobj = WITH_VAR_STACK(new os_wxBitmap CONSTRUCTOR_ARGS((x0, x1, x2)));
#ifdef MZ_PRECISE_GC
    WITH_VAR_STACK(realobj->gcInit_wxBitmap(x0, x1, x2));
#endif
    realobj->__gc_external = (void *)p[0];
    if (realobj->Ok()) WITH_VAR_STACK(scheme_thread_block(0.0));
    
    READY_TO_PRE_RETURN;
  } else if ((n >= (POFFSET+1)) && WITH_REMEMBERED_STACK(objscheme_istype_number(p[POFFSET+0], NULL))) {
    int x0;
    int x1;
    Bool x2;

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

    
    if ((n < (POFFSET+2)) || (n > (POFFSET+3))) 
      WITH_VAR_STACK(scheme_wrong_count_m("initialization in bitmap% (width/height case)", POFFSET+2, POFFSET+3, n, p, 1));
    x0 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+0], 1, 10000, "initialization in bitmap% (width/height case)"));
    x1 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+1], 1, 10000, "initialization in bitmap% (width/height case)"));
    if (n > (POFFSET+2)) {
      x2 = WITH_VAR_STACK(objscheme_unbundle_bool(p[POFFSET+2], "initialization in bitmap% (width/height case)"));
    } else
      x2 = 0;

    
    realobj = WITH_VAR_STACK(new os_wxBitmap CONSTRUCTOR_ARGS((x0, x1, x2)));
#ifdef MZ_PRECISE_GC
    WITH_VAR_STACK(realobj->gcInit_wxBitmap(x0, x1, x2));
#endif
    realobj->__gc_external = (void *)p[0];
    
    
    READY_TO_PRE_RETURN;
  } else  {
    bstring x0 INIT_NULLED_OUT;
    int x1;
    int x2;

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

    
    if (n != (POFFSET+3)) 
      WITH_VAR_STACK(scheme_wrong_count_m("initialization in bitmap% (datastring case)", POFFSET+3, POFFSET+3, n, p, 1));
    x0 = (bstring)WITH_VAR_STACK(objscheme_unbundle_bstring(p[POFFSET+0], "initialization in bitmap% (datastring case)"));
    x1 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+1], 1, 10000, "initialization in bitmap% (datastring case)"));
    x2 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+2], 1, 10000, "initialization in bitmap% (datastring case)"));

    if (SCHEME_BYTE_STRTAG_VAL(p[POFFSET]) < (((x1 * x2) + 7) >> 3)) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("bitmap%","initialization"), "byte string too short: ", p[POFFSET]));
    realobj = WITH_VAR_STACK(new os_wxBitmap CONSTRUCTOR_ARGS((x0, x1, x2)));
#ifdef MZ_PRECISE_GC
    WITH_VAR_STACK(realobj->gcInit_wxBitmap(x0, x1, x2));
#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_wxBitmapGetDepth ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 507 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 269 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 486 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 336 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 465 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 423 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 388 of file wxs_bmap.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxBitmap_class, "load-file in bitmap%", n, p);
  pathname x0 INIT_NULLED_OUT;
  int x1;
  class wxColour* x2 INIT_NULLED_OUT;

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

  
  x0 = (pathname)WITH_VAR_STACK(objscheme_unbundle_pathname(p[POFFSET+0], "load-file in bitmap%"));
  if (n > (POFFSET+1)) {
    x1 = WITH_VAR_STACK(unbundle_symset_bitmapType(p[POFFSET+1], "load-file in bitmap%"));
  } else
    x1 = 0;
  if (n > (POFFSET+2)) {
    x2 = WITH_VAR_STACK(objscheme_unbundle_wxColour(p[POFFSET+2], "load-file in bitmap%", 1));
  } else
    x2 = NULL;

  
  r = WITH_VAR_STACK(((wxBitmap *)((Scheme_Class_Object *)p[0])->primdata)->LoadFile(x0, x1, x2));

  if (r) WITH_VAR_STACK(scheme_thread_block(0.0));
  
  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_wxBitmapOk ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 444 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 357 of file wxs_bmap.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  Bool r;
  objscheme_check_valid(os_wxBitmap_class, "save-file in bitmap%", n, p);
  wpathname x0 INIT_NULLED_OUT;
  int x1;
  int x2;

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

  
  x0 = (wpathname)WITH_VAR_STACK(objscheme_unbundle_write_pathname(p[POFFSET+0], "save-file in bitmap%"));
  x1 = WITH_VAR_STACK(unbundle_symset_saveBitmapType(p[POFFSET+1], "save-file in bitmap%"));
  if (n > (POFFSET+2)) {
    x2 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+2], 0, 100, "save-file in bitmap%"));
  } else
    x2 = 75;

  
  r = WITH_VAR_STACK(((wxBitmap *)((Scheme_Class_Object *)p[0])->primdata)->SaveFile(x0, x1, x2));

  if (1) WITH_VAR_STACK(scheme_thread_block(0.0));
  
  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_wxBitmapSetGLConfig ( int  n,
Scheme_Object p[] 
) [static]

Definition at line 290 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 313 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 233 of file wxs_bmap.cxx.

{
  WXS_USE_ARGUMENT(n) WXS_USE_ARGUMENT(p)
  REMEMBER_VAR_STACK();
  objscheme_check_valid(os_wxBitmap_class, "get-argb-pixels in bitmap%", n, p);
  double x0;
  double x1;
  int x2;
  int x3;
  wbstring x4 INIT_NULLED_OUT;
  Bool x5;

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

  
  x0 = WITH_VAR_STACK(objscheme_unbundle_double(p[POFFSET+0], "get-argb-pixels in bitmap%"));
  x1 = WITH_VAR_STACK(objscheme_unbundle_double(p[POFFSET+1], "get-argb-pixels in bitmap%"));
  x2 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+2], 0, 10000, "get-argb-pixels in bitmap%"));
  x3 = WITH_VAR_STACK(objscheme_unbundle_integer_in(p[POFFSET+3], 0, 10000, "get-argb-pixels in bitmap%"));
  x4 = (wbstring)WITH_VAR_STACK(objscheme_unbundle_mutable_bstring(p[POFFSET+4], "get-argb-pixels in bitmap%"));
  if (n > (POFFSET+5)) {
    x5 = WITH_VAR_STACK(objscheme_unbundle_bool(p[POFFSET+5], "get-argb-pixels in bitmap%"));
  } else
    x5 = FALSE;

  { if (!((wxBitmap *)((Scheme_Class_Object *)THEOBJ)->primdata)->Ok()) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("bitmap%","get-argb-pixels"), "bad bitmap: ", THEOBJ)); }if (SCHEME_BYTE_STRTAG_VAL(p[4+POFFSET]) < (x2 * x3 * 4)) WITH_VAR_STACK(scheme_arg_mismatch(METHODNAME("bitmap%","get-argb-pixels"), "byte string too short: ", p[4+POFFSET]));
  WITH_VAR_STACK(wxGetARGBPixels(((wxBitmap *)((Scheme_Class_Object *)p[0])->primdata), 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 int unbundle_symset_bitmapType ( Scheme_Object v,
const char *  where 
) [static]
static int unbundle_symset_saveBitmapType ( Scheme_Object v,
const char *  where 
) [static]

Definition at line 146 of file wxs_bmap.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void wxGetARGBPixels ( wxBitmap bm,
double  x,
double  y,
int  w,
int  h,
char *  s,
Bool  get_alpha 
)

Definition at line 469 of file wxs_dc.cxx.

{
  wxMemoryDC *srcdc;
  SETUP_VAR_STACK(1);
  VAR_STACK_PUSH(0, srcdc);

  srcdc = WITH_VAR_STACK(MakeDC(src));
  WITH_VAR_STACK(dcGetARGBPixels(srcdc, x, y, w, h, (char *)s, get_alpha));
  WITH_VAR_STACK(UnmakeDC(srcdc));

  READY_TO_RETURN;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 47 of file wxs_bmap.cxx.

Definition at line 49 of file wxs_bmap.cxx.

Definition at line 48 of file wxs_bmap.cxx.

Definition at line 53 of file wxs_bmap.cxx.

Definition at line 57 of file wxs_bmap.cxx.

Definition at line 52 of file wxs_bmap.cxx.

Definition at line 55 of file wxs_bmap.cxx.

Definition at line 54 of file wxs_bmap.cxx.

Definition at line 56 of file wxs_bmap.cxx.

Definition at line 50 of file wxs_bmap.cxx.

Definition at line 51 of file wxs_bmap.cxx.

Definition at line 207 of file wxs_bmap.cxx.

Definition at line 126 of file wxs_bmap.cxx.

Definition at line 129 of file wxs_bmap.cxx.

Definition at line 130 of file wxs_bmap.cxx.

Definition at line 127 of file wxs_bmap.cxx.

Definition at line 128 of file wxs_bmap.cxx.