Class: RWin::Brush
- Inherits:
-
Data
- Object
- Data
- RWin::Brush
- Defined in:
- ext/rwin/rw_resources.c
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
1051 1052 1053 1054 1055 1056 1057 |
# File 'ext/rwin/rw_resources.c', line 1051 static VALUE rwbrush_initialize(int argc, VALUE *argv, VALUE obj){ RwBrush *rb; RwBrush_Data_Get_Struct(obj, rb); init_rwbrush(argc, argv, rb); return obj; } |
Instance Method Details
#_hbrush ⇒ Object
1059 1060 1061 1062 1063 1064 |
# File 'ext/rwin/rw_resources.c', line 1059 static VALUE rwbrush_hbrush(VALUE obj){ RwBrush *rb; RwBrush_Data_Get_Struct(obj, rb); return ULONG_PTR2NUM((ULONG_PTR)rb->hbrush); } |
#dispose ⇒ Object
1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'ext/rwin/rw_resources.c', line 1066 static VALUE rwbrush_dispose(VALUE obj){ RwBrush *rb; RwBrush_Data_Get_Struct(obj, rb); if (rb->hbrush) { DeleteObject(rb->hbrush); rb->hbrush = NULL; return Qtrue; } return Qnil; } |