.\" $Xorg: XtClass.man,v 1.3 2000/08/17 19:41:59 cpqbld Exp $ .\" .\" Copyright 1993 X Consortium .\" .\" Permission is hereby granted, free of charge, to any person obtaining .\" a copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, .\" distribute, sublicense, and/or sell copies of the Software, and to .\" permit persons to whom the Software is furnished to do so, subject to .\" the following conditions: .\" .\" The above copyright notice and this permission notice shall be .\" included in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR .\" OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of the X Consortium shall .\" not be used in advertising or otherwise to promote the sale, use or .\" other dealings in this Software without prior written authorization .\" from the X Consortium. .\" .\" Copyright (c) 1998, 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" Translated .\" by Ito Hiromi .\" Updated Thu Oct 11 00:44:52 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/Xt/XtClass.man,v 1.2 2001/01/27 18:20:24 dawes Exp $ .\" .\"0 .ds tk X Toolkit .ds tk X ツールキット .\"0 .ds xT X Toolkit Intrinsics \- C Language Interface .ds xT X ツールキット イントリンシクス \- C 言語インターフェイス .\"0 .ds xI Intrinsics .ds xI イントリンシクス .\"0 .ds xW X Toolkit Athena Widgets \- C Language Interface .ds xW X ツールキット Athena ウィジェット \- C 言語インターフェイス .\"0 .ds xL Xlib \- C Language X Interface .ds xL Xlib \- C 言語 X インターフェイス .\"0 .ds xC Inter-Client Communication Conventions Manual .ds xC クライアント間通信規約マニュアル .ds Rn 3 .ds Vn 2.2 .hw XtCheck-Subclass XtIs-Object XtIs-RectObj XtIs-Widget XtIs-Composite XtIs-Constraint XtIs-Shell XtIs-Override-Shell XtIs-WM-Shell XtIs-Vendor-Shell XtIs-Transient-Shell XtIs-Top-Level-Shell XtIs-Application-Shell wid-get .na .de Ds .nf .\\$1D \\$2 \\$1 .ft 1 .ps \\n(PS .\".if \\n(VS>=40 .vs \\n(VSu .\".if \\n(VS<=39 .vs \\n(VSp .. .de De .ce 0 .if \\n(BD .DF .nr BD 0 .in \\n(OIu .if \\n(TM .ls 2 .sp \\n(DDu .fi .. .de FD .LP .KS .TA .5i 3i .ta .5i 3i .nf .. .de FN .fi .KE .LP .. .de IN \" send an index entry to the stderr .. .de C{ .KS .nf .D .\" .\" choose appropriate monospace font .\" the imagen conditional, 480, .\" may be changed to L if LB is too .\" heavy for your eyes... .\" .ie "\\*(.T"480" .ft L .el .ie "\\*(.T"300" .ft L .el .ie "\\*(.T"202" .ft PO .el .ie "\\*(.T"aps" .ft CW .el .ft R .ps \\n(PS .ie \\n(VS>40 .vs \\n(VSu .el .vs \\n(VSp .. .de C} .DE .R .. .de Pn .ie t \\$1\fB\^\\$2\^\fR\\$3 .el \\$1\fI\^\\$2\^\fP\\$3 .. .de ZN .ie t \fB\^\\$1\^\fR\\$2 .el \fI\^\\$1\^\fP\\$2 .. .de NT .ne 7 .ds NO Note .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1 .ie n .sp .el .sp 10p .TB .ce \\*(NO .ie n .sp .el .sp 5p .if '\\$1'C' .ce 99 .if '\\$2'C' .ce 99 .in +5n .ll -5n .R .. . \" Note End -- doug kraft 3/85 .de NE .ce 0 .in -5n .ll +5n .ie n .sp .el .sp 10p .. .ny0 .TH XtClass 3Xt "Release 6.5" "X Version 11" "XT FUNCTIONS" .SH 名前 .\"0 XtClass, XtSuperclass, XtIsSubclass, XtCheckSubclass, XtIsObject, .\"0 XtIsRectObj, XtIsWidget, XtIsComposite, XtIsConstraint, XtIsShell, .\"0 XtIsOverrideShell, XtIsWMShell, XtIsVendorShell, XtIsTransientShell, .\"0 XtIsTopLevelShell, XtIsApplicationShell, .\"0 XtIsSessionShell \- obtain and verify a widget's class XtClass, XtSuperclass, XtIsSubclass, XtCheckSubclass, XtIsObject, XtIsRectObj, XtIsWidget, XtIsComposite, XtIsConstraint, XtIsShell, XtIsOverrideShell, XtIsWMShell, XtIsVendorShell, XtIsTransientShell, XtIsTopLevelShell, XtIsApplicationShell, XtIsSessionShell \- ウィジェットクラスを取得・確認する .SH 書式 WidgetClass XtClass(\fIw\fP) .br Widget \fIw\fP; .LP WidgetClass XtSuperclass(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsSubclass(\fIw\fP, \fIwidget_class\fP) .br Widget \fIw\fP; .br WidgetClass \fIwidget_class\fP; .LP void XtCheckSubclass(\fIwidget\fP, \fIwidget_class\fP, \fImessage\fP) .br Widget \fIwidget\fP; .br WidgetClass \fIwidget_class\fP; .br String \fImessage\fP; .LP Boolean XtIsObject(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsRectObj(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsWidget(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsComposite(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsConstraint(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsOverrideShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsWMShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsVendorShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsTransientShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsTopLevelShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsApplicationShell(\fIw\fP) .br Widget \fIw\fP; .LP Boolean XtIsSessionShell(\fIw\fP) .br Widget \fIw\fP; .LP .SH 引き数 .IP \fIw\fP 1i .\"0 Specifies the widget. ウィジェットを指定する。 .IP \fIwidget_class\fP 1i .\"0 Specifies the widget class\*(Wc. ウィジェットのクラスを指定する。 .ds Me used .IP \fImessage\fP 1i .\"0 Specifies the message that is to be used. 使用するメッセージを指定する。 .SH 説明 .\"0 The .\"0 .ZN XtClass .\"0 function returns a pointer to the widget's class structure. .ZN XtClass 関数は、ウィジェットのクラス構造体へのポインタを返す。 .LP .\"0 The .\"0 .ZN XtSuperclass .\"0 function returns a pointer to the widget's superclass class structure. .ZN XtSuperclass 関数は、ウィジェットのスーパークラスのクラス構造体へのポインタを返す。 .LP .\"0 The .\"0 .ZN XtIsSubclass .\"0 function returns .\"0 .ZN True .\"0 if the class of the specified widget is equal to or is a subclass of .\"0 the specified class. .ZN XtIsSubclass 関数は、指定されたウィジェットのクラスが指定されたクラスと同一、または そのサブクラスの場合、 .ZN True を返す。 .\"0 The widget's class can be any number of subclasses .\"0 down the chain and need not be an immediate subclass of the specified .\"0 class. ウィジェットのクラスは、チェインの下にかなり多くのサブクラスを持つこと ができる。この関数は、指定したクラスの直接のサブクラスでなくても .ZN True を返す。 .\"0 Composite widgets that need to restrict the class of the items .\"0 they contain can use .\"0 .ZN XtIsSubclass .\"0 to find out if a widget belongs to the desired class of objects. composite ウィジェットは、含めることのできるアイテムのクラスを制限して いる。この場合、ウィジェットが要求されるオブジェクトのクラスに属してい るかどうかを検査するために、 .ZN XtIsSubclass を使用することができる。 .LP .\"0 The .\"0 .ZN XtCheckSubclass .\"0 macro determines if the class of the specified widget is equal to .\"0 or is a subclass of the specified widget class. 指定したウィジェットが指定したウィジェットのクラスと同じか、またはその サブクラスかどうかを、 .ZN XtCheckSubclass マクロは確認する。 .\"0 The widget can be any number of subclasses down the chain .\"0 and need not be an immediate subclass of the specified widget class. ウィジェットはチェインの下にかなり多くのサブクラスを持つことができる。 これは指定したウィジェットのクラスにおける、直接のサブクラスでなくても よい。 .\"0 If the specified widget is not a subclass, .\"0 .ZN XtCheckSubclass .\"0 constructs an error message from the supplied message, .\"0 the widget's actual class, and the expected class and calls .\"0 .ZN XtErrorMsg . 指定したウィジェットがサブクラスでないならば、 .ZN XtCheckSubclass は提供されたメッセージ、ウィジェットの実際のクラス、予想されるクラスか らエラーメッセージを作成し、 .ZN XtErrorMsg を呼び出す。 .\"0 .ZN XtCheckSubclass .\"0 should be used at the entry point of exported routines to ensure .\"0 that the client has passed in a valid widget class for the exported .\"0 operation. .ZN XtCheckSubclass は、エクスポートルーチンのエントリポイントで使用されなければならない。 これはエクスポートされているルーチンに有効なウィジェットのクラスを、ク ライアントが渡すのを確実にするためである。 .LP .\"0 .ZN XtCheckSubclass .\"0 is only executed when the widget has been compiled with the compiler symbol .\"0 DEBUG defined; otherwise, it is defined as the empty string .\"0 and generates no code. ウィジェットがコンパイラシンボル DEBUG を定義し、コンパイルされている 時だけ .ZN XtCheckSubclass が実行される。定義していなければ、空の文字列として定義され、コードは生 成されない。 .LP .\"0 To test if a given widget belongs to a subclass of an Intrinsics-defined .\"0 class, the Intrinsics defines macros or functions equivalent to .\"0 .ZN XtIsSubclass .\"0 for each of the built-in classes. 与えられたウィジェットが、イントリンシクスで定義されたクラスのサブクラ スに所属しているかどうかをテストするために、イントリンシクスは組込みの クラスの各々に対してマクロ、または .ZN XtIsSubclass と等価な関数を定義している。 .\"0 These procedures are .\"0 .ZN XtIsObject , .\"0 .ZN XtIsRectObj , .\"0 .ZN XtIsWidget , .\"0 .ZN XtIsComposite , .\"0 .ZN XtIsConstraint , .\"0 .ZN XtIsShell , .\"0 .ZN XtIsOverrideShell , .\"0 .ZN XtIsWMShell , .\"0 .ZN XtIsVendorShell , .\"0 .ZN XtIsTransientShell , .\"0 .ZN XtIsTopLevelShell , .\"0 .ZN XtIsApplicationShell , .\"0 and .\"0 .ZN XtIsSessionShell . その手続きは .ZN XtIsObject , .ZN XtIsRectObj , .ZN XtIsWidget , .ZN XtIsComposite , .ZN XtIsConstraint , .ZN XtIsShell , .ZN XtIsOverrideShell , .ZN XtIsWMShell , .ZN XtIsVendorShell , .ZN XtIsTransientShell , .ZN XtIsTopLevelShell , .ZN XtIsApplicationShell , .ZN XtIsSessionShell である。 .LP .SH 関連項目 XtAppErrorMsg(3Xt), XtDisplay(3Xt) .br \*(xT .br \*(xL