Class: RWin::Pen

Inherits:
Data
  • Object
show all
Defined in:
ext/rwin/rw_resources.c

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



970
971
972
973
974
975
# File 'ext/rwin/rw_resources.c', line 970

static VALUE
rwpen_initialize(int argc, VALUE *argv, VALUE self){
    RwPen *rp = DATA_PTR(self);
    init_rwpen(argc, argv, rp);
    return self;  
}

Instance Method Details

#_hpenObject



977
978
979
980
981
# File 'ext/rwin/rw_resources.c', line 977

static VALUE
rwpen_hpen(VALUE self){
    RwPen *rp = DATA_PTR(self);
    return ULONG_PTR2NUM((ULONG_PTR)rp->hpen);
}

#disposeObject



983
984
985
986
987
988
989
990
991
992
# File 'ext/rwin/rw_resources.c', line 983

static VALUE
rwpen_dispose(VALUE self){
    RwPen *rp = DATA_PTR(self);
    if (rp->hpen) {
  DeleteObject(rp->hpen);
  rp->hpen = NULL;
  return Qtrue;
    }
    return Qnil;
}