X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fm17n-gui.h;h=d73b7e0f25ce566423098c8ff2a72ba570ff1625;hb=0793e3bffb93b37b42eab1223c19ffc70c4ba1ae;hp=00f21cb117c8bb67b047e2f5bb3726d3c321cb85;hpb=b5b8aa7815757a933f7fc8174781e1df34303de6;p=m17n%2Fm17n-lib.git diff --git a/src/m17n-gui.h b/src/m17n-gui.h index 00f21cb..d73b7e0 100644 --- a/src/m17n-gui.h +++ b/src/m17n-gui.h @@ -410,15 +410,11 @@ typedef struct /***en @brief Type of hook function of face. - The type #MFaceHookFunc is to specify the #Mhook property of a - face. The value of the property must be function of this - type. */ + #MFaceHookFunc is a type of a hook function of a face. */ /***ja @brief ¥Õ¥§¡¼¥¹¤Î¥Õ¥Ã¥¯´Ø¿ô¤Î·¿Àë¸À. - #MFaceHookFunc ¤Ï¥Õ¥§¡¼¥¹¤Î #Mhook ¥×¥í¥Ñ¥Æ¥£¤ò»ØÄꤹ¤ë·¿¤Ç¤¢¤ë¡£ - ¤³¤Î¥×¥í¥Ñ¥Æ¥£¤ÎÃͤϡ¢¤³¤Î·¿¤Î´Ø¿ô¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£ - */ + #MFaceHookFunc ¤Ï¥Õ¥§¡¼¥¹¤Î¥Õ¥Ã¥¯´Ø¿ô¤Î·¿¤Ç¤¢¤ë¡£*/ typedef void (*MFaceHookFunc) (MFace *face, void *arg, void *info); /*=*/ @@ -426,6 +422,10 @@ extern void *mface_get_prop (MFace *face, MSymbol key); extern int mface_put_prop (MFace *face, MSymbol key, void *val); +extern MFaceHookFunc mface_get_hook (MFace *face); + +extern int mface_put_hook (MFace *face, MFaceHookFunc func); + extern void mface_update (MFrame *frame, MFace *face); /* end of face module */