IF Computer > IF/Prolog > Manuals > IF/Prolog V4.1 マニュアル > IF/Prolog Interfaces > Athena インタフェースマニュアル > X11.3 IF/Prologの拡張 > IF/Prolog-X11.3へのWidgetsの追加 > 外部関数の述語としての実現 > C述語に対するクラス引数

C述語に対するクラス引数

IF/Prolog by Siemens
MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

あるC述語に対する引数としてwidgetクラスが必要な場合には、Prologのクラス名からtoolkitのクラスポインタへの変換が行われなければなりません。これは、以下を呼び出すことによって行われます。

    xt$class(+Class, ?ClassIntern, +Exc)

内部クラス表現はPtrPC()を使って、Cパ−トにおいてCに変換されなければなりません。

例題:xtCreateWidgetの実現のPrologパ−ト

xtCreateWidget(PrologName, ResourceName, Class, Parent, ArgList) :- xt$GetNewWidgetName(PrologName, xtCreateWidget(PrologName, ResourceName, Class, Parent, ArgList)), xt$CreateWidget(InternName, ResourceName, ClassIntern, Parent, ArgList), xt$RegisterWidget(PrologName, InternName)),!.

document: http://www.ifcomputer.co.jp/IFProlog/Manuals/v4.1/advanced_feature/athena/xext/adwidget/impextf/classp/print_en.html
published 2008/7/7 update 1995/11/6 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS