Sha256: ef7a548d0d19ec9427ba64539050cfedd095e42ac15bdb5a8bcd5dd784e0e880

Contents?: true

Size: 1.38 KB

Versions: 12

Compression:

Stored size: 1.38 KB

Contents

/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/************************************************

  rbpangoengine.c -

  $Author: mutoh $
  $Date: 2005/10/15 04:32:01 $

  Copyright (C) 2005 Masao Mutoh
************************************************/

#include "rbpango.h"

#ifdef PANGO_TYPE_ENGINE

#define _SELF(self) (PANGO_ENGINE(RVAL2GOBJ(self)))

/* FIXME
static VALUE
rbpango_s_engine_list(VALUE self)
{
    PangoEngineInfo* engines = g_new(PangoEngineInfo, 1);
    int i, n;
    VALUE ary;

    script_engine_list(&engines, &n);
    ary = rb_ary_new();

    for(i = 0; i < n; i++){
        rb_ary_push(ary, GOBJ2RVAL(&engines[i]));
    }
    return ary;
}

static VALUE
rbpango_s_engine_create(VALUE self, VALUE id)
{
    return GOBJ2RVAL(script_engine_create(RVAL2CSTR(id)));
}
*/
/*
void        script_engine_init              (GTypeModule *module);
void        script_engine_exit              (void);
PangoEngine* script_engine_create           (const char *id);
*/

#endif

void
Init_pango_engine()
{
#ifdef PANGO_TYPE_ENGINE
    G_DEF_CLASS(PANGO_TYPE_ENGINE, "Engine", mPango);

/* FIXME
    rb_define_singleton_method(engine, "engines", rbpango_s_engine_list, 0);
    rb_define_singleton_method(engine, "create", rbpango_s_engine_create, 1);
*/
    G_DEF_CLASS(PANGO_TYPE_ENGINE_LANG, "EngineLang", mPango);
    G_DEF_CLASS(PANGO_TYPE_ENGINE_SHAPE, "EngineShape", mPango);
#endif
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pango-1.0.3-x86-mingw32 ext/pango/rbpangoengine.c
pango-1.0.3 ext/pango/rbpangoengine.c
pango-1.0.2-x86-mingw32 ext/pango/rbpangoengine.c
pango-1.0.2 ext/pango/rbpangoengine.c
pango-1.0.1 ext/pango/rbpangoengine.c
pango-1.0.1-x86-mingw32 ext/pango/rbpangoengine.c
pango-1.0.0-x86-mingw32 ext/pango/rbpangoengine.c
pango-1.0.0 ext/pango/rbpangoengine.c
pango-0.90.9 ext/pango/rbpangoengine.c
pango-0.90.9-x86-mingw32 ext/pango/rbpangoengine.c
pango-0.90.8-x86-mingw32 ext/pango/rbpangoengine.c
pango-0.90.8 ext/pango/rbpangoengine.c