ruby-****@sourc*****
ruby-****@sourc*****
2005年 9月 13日 (火) 04:42:34 JST
------------------------- REMOTE_ADDR = 83.76.32.78 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?How+to+Implement+Ruby-GNOME2 ------------------------- @@ -9,7 +9,7 @@ == Macros You need to know that there are some macros which can help you to easily implement a new class/method. -Almost of those macros are in the header files glib/src/rbgobject.h, rbglib.h and gtk/src/rbgtk.h. +Almost all of these macros are in the header files glib/src/rbgobject.h, rbglib.h and gtk/src/rbgtk.h. === Define class/interface These macros are used in Init_*() functions: @@ -20,7 +20,7 @@ This returns a new ruby class value. --- G_DEF_CLASS3(gtype_name, name, module) - Define a class dynamicaly. This is for private gtype classes such as GdkScreenX11, GdkWindowImplWin32. + Define a class dynamically. This is for private gtype classes such as GdkScreenX11, GdkWindowImplWin32. This returns nothing. These classes can't define the methods/constants by themselves. And these classes appear since a method which creates the private gtype has been called by ruby script. --- G_DEF_INTERFACE(gtype, name, module) @@ -29,7 +29,7 @@ --- G_DEF_ERROR(domain_quark, name, module, parent, enum_type) --- G_DEF_ERROR2(domain_quark, name, module, parent) - Define a error class which is called by RAISE_GERROR. + Define an error class which is called by RAISE_GERROR. --- void rbgobj_boxed_not_copy_obj(GType gtype) Use this method if the GBoxed object shouldn't be copied during its RVALUE conversion (for example in GBOXED2RVAL or G_INITIALIZE).