Sha256: 53af49a6ab8d16a780918c54b4d43a20818ecdb9535ba5c281e3fd92619a9e26

Contents?: true

Size: 1.07 KB

Versions: 12

Compression:

Stored size: 1.07 KB

Contents

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

  rbatkobjectfactory.c -

  $Author: mutoh $
  $Date: 2003/12/07 18:12:33 $

  Copyright (C) 2003 Masao Mutoh
************************************************/
#include "rbatk.h"

#define _SELF(s) (ATK_OBJECT_FACTORY(RVAL2GOBJ(s)))

static VALUE
rbatkfact_create_accessible(VALUE self, VALUE obj)
{
    return GOBJ2RVAL(atk_object_factory_create_accessible(_SELF(self), RVAL2GOBJ(obj)));
}

static VALUE
rbatkfact_get_accessible_type(VALUE self)
{
    return GTYPE2CLASS(atk_object_factory_get_accessible_type(_SELF(self)));
}

static VALUE
rbatkfact_invalidate(VALUE self)
{
    atk_object_factory_invalidate(_SELF(self));
    return self;
}

void
Init_atk_objectfactory()
{
    VALUE fact = G_DEF_CLASS(ATK_TYPE_OBJECT_FACTORY, "ObjectFactory", mAtk);
    rb_define_method(fact, "create_accessible", rbatkfact_create_accessible, 0);
    rb_define_method(fact, "accessible_type", rbatkfact_get_accessible_type, 0);
    rb_define_method(fact, "invalidate", rbatkfact_invalidate, 0);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
atk-1.0.3-x86-mingw32 ext/atk/rbatkobjectfactory.c
atk-1.0.3 ext/atk/rbatkobjectfactory.c
atk-1.0.2-x86-mingw32 ext/atk/rbatkobjectfactory.c
atk-1.0.2 ext/atk/rbatkobjectfactory.c
atk-1.0.1 ext/atk/rbatkobjectfactory.c
atk-1.0.1-x86-mingw32 ext/atk/rbatkobjectfactory.c
atk-1.0.0-x86-mingw32 ext/atk/rbatkobjectfactory.c
atk-1.0.0 ext/atk/rbatkobjectfactory.c
atk-0.90.9 ext/atk/rbatkobjectfactory.c
atk-0.90.9-x86-mingw32 ext/atk/rbatkobjectfactory.c
atk-0.90.8-x86-mingw32 ext/atk/rbatkobjectfactory.c
atk-0.90.8 ext/atk/rbatkobjectfactory.c