'\" t .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 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 \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by .\" Digital Equipment Corporation .\" .\" Portions Copyright \(co 1990, 1991 by .\" Tektronix, Inc. .\" .\" Permission to use, copy, modify and distribute this documentation for .\" any purpose and without fee is hereby granted, provided that the above .\" copyright notice appears in all copies and that both that copyright notice .\" and this permission notice appear in all copies, and that the names of .\" Digital and Tektronix not be used in in advertising or publicity pertaining .\" to this documentation without specific, written prior permission. .\" Digital and Tektronix makes no representations about the suitability .\" of this documentation for any purpose. .\" It is provided ``as is'' without express or implied warranty. .\" .\" 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. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Mon Oct 6 21:58:24 JST 1998 .\" by FUJIWARA Teruyoshi .\" Corrected by NAKANO Takeo .\" Updated Sat Sep 22 17:43:21 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/X11/XASHints.man,v 1.4 2001/02/09 03:47:44 tsi Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface .ds xL Xlib \- C Language X Interface .ds xC Inter-Client Communication Conventions Manual .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 hN .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 '\" t .TH XAllocSizeHints 3X11 "Release 6.5" "X Version 11" "XLIB FUNCTIONS" .SH 名前 .\"0 XAllocSizeHints, XSetWMNormalHints, XGetWMNormalHints, XSetWMSizeHints, XGetWMSizeHints, XSizeHints \- allocate size hints structure and set or read a window's WM_NORMAL_HINTS property XAllocSizeHints, XSetWMNormalHints, XGetWMNormalHints, XSetWMSizeHints, XGetWMSizeHints, XSizeHints \- サイズヒント構造体の割り当てと、ウィンドウの WM_NORMAL_HINTS プロパティの設定・取得 .SH 書式 XSizeHints *XAllocSizeHints\^(\|) .LP void XSetWMNormalHints\^(\^\fIdisplay\fP, \fIw\fP, \fIhints\fP\^) .br Display *\fIdisplay\fP\^; .br Window \fIw\fP\^; .br XSizeHints *\fIhints\fP\^; .LP Status XGetWMNormalHints\^(\^\fIdisplay\fP, \fIw\fP, \fIhints_return\fP, \fIsupplied_return\fP\^) .br Display *\fIdisplay\fP\^; .br Window \fIw\fP\^; .br XSizeHints *\fIhints_return\fP\^; .br long *\fIsupplied_return\fP\^; .LP void XSetWMSizeHints\^(\^\fIdisplay\fP, \fIw\fP, \fIhints\fP, \fIproperty\fP\^) .br Display *\fIdisplay\fP\^; .br Window \fIw\fP\^; .br XSizeHints *\fIhints\fP\^; .br Atom \fIproperty\fP\^; .LP Status XGetWMSizeHints\^(\^\fIdisplay\fP, \fIw\fP, \fIhints_return\fP, \fIsupplied_return\fP, \fIproperty\fP\^) .br Display *\fIdisplay\fP\^; .br Window \fIw\fP\^; .br XSizeHints *\fIhints_return\fP\^; .br long *\fIsupplied_return\fP\^; .br Atom \fIproperty\fP\^; .SH 引き数 .IP \fIdisplay\fP 1i .\"0 Specifies the connection to the X server. X サーバへの接続を指定する。 .IP \fIhints\fP 1i .\"0 Specifies the size hints for the window in its normal state. 通常の状態におけるウィンドウのサイズヒントを指定する。 .IP \fIhints\fP 1i .\"0 Specifies the .\"0 .ZN XSizeHints .\"0 structure to be used. 使われる .ZN XSizeHints 構造体を指定する。 .IP \fIhints_return\fP 1i .\"0 Returns the size hints for the window in its normal state. 通常の状態でのウィンドウのサイズヒントが返される。 .IP \fIproperty\fP 1i .\"0 Specifies the property name. プロパティ名を指定する。 .IP \fIsupplied_return\fP 1i .\"0 Returns the hints that were supplied by the user. ユーザが与えたヒントが返される。 .IP \fIw\fP 1i .\"0 Specifies the window. ウィンドウを指定する。 .SH 説明 .\"0 The .\"0 .ZN XAllocSizeHints .\"0 function allocates and returns a pointer to a .\"0 .ZN XSizeHints .\"0 structure. 関数 .ZN XAllocSizeHints は .ZN XSizeHints 構造体を割り当て、その構造体を指すポインタを返す。 .\"0 Note that all fields in the .\"0 .ZN XSizeHints .\"0 structure are initially set to zero. .ZN XSizeHints 構造体の全てのフィールドは 0 で初期化される点に注意すること。 .\"0 If insufficient memory is available, .\"0 .ZN XAllocSizeHints .\"0 returns NULL. 十分なメモリが確保できない場合、 .ZN XAllocSizeHints は NULL を返す。 .\"0 To free the memory allocated to this structure, .\"0 use .\"0 .ZN XFree . この構造体に割り当てられたメモリを解放するには .ZN XFree を使うこと。 .LP .\"0 The .\"0 .ZN XSetWMNormalHints .\"0 function replaces the size hints for the WM_NORMAL_HINTS property .\"0 on the specified window. 関数 .ZN XSetWMNormalHints は指定したウィンドウの WM_NORMAL_HINTS プロパティのサイズヒントを置き 換える。 .\"0 If the property does not already exist, .\"0 .ZN XSetWMNormalHints .\"0 sets the size hints for the WM_NORMAL_HINTS property on the specified window. このプロパティがまだ存在しない場合、 .ZN XSetWMNormalHints は指定したウィンドウの WM_NORMAL_HINTS プロパティにサイズヒントを設定 する。 .\"0 The property is stored with a type of WM_SIZE_HINTS and a format of 32. このプロパティは WM_SIZE_HINTS 型、フォーマット 32 で格納される。 .LP .\"0 .ZN XSetWMNormalHints .\"0 can generate .\"0 .ZN BadAlloc .\"0 and .\"0 .ZN BadWindow .\"0 errors. .ZN XSetWMNormalHints はエラー .ZN BadAlloc , .ZN BadWindow を起こすことがある。 .LP .\"0 The .\"0 .ZN XGetWMNormalHints .\"0 function returns the size hints stored in the WM_NORMAL_HINTS property .\"0 on the specified window. 関数 .ZN XGetWMNormalHints は、指定したウィンドウの WM_NORMAL_HINTS プロパティに格納されている サイズヒントを返す。 .\"0 If the property is of type WM_SIZE_HINTS, is of format 32, .\"0 and is long enough to contain either an old (pre-ICCCM) .\"0 or new size hints structure, .\"0 .ZN XGetWMNormalHints .\"0 sets the various fields of the .\"0 .ZN XSizeHints .\"0 structure, sets the supplied_return argument to the list of fields .\"0 that were supplied by the user (whether or not they contained defined values), .\"0 and returns a nonzero status. このプロパティが WM_SIZE_HINTS 型、フォーマット 32 であり、新旧いず れのサイズヒント構造体(古いものは ICCCM 以前の形式)でも格納できる十分 な長さを持つ場合、 .ZN XGetWMNormalHints は .ZN XSizeHints の各フィールドを設定し、ユーザが与えたフィールドのリストを(既に定義 されている値を含んでいるかどうかに関わらず)引き数 supplied_return に 設定し、0 でないステータスを返す。 .\"0 Otherwise, it returns a zero status. この条件を満たさない場合は、この関数はステータスとして 0 を返す。 .LP .\"0 If .\"0 .ZN XGetWMNormalHints .\"0 returns successfully and a pre-ICCCM size hints property is read, .\"0 the supplied_return argument will contain the following bits: .ZN XGetWMNormalHints が成功した時に ICCCM 形式の古いサイズヒントプロパティが取得された場合、 引き数 supplied_return には次のビットが含まれる。 .LP .Ds (USPosition|USSize|PPosition|PSize|PMinSize| PMaxSize|PResizeInc|PAspect) .De .LP .\"0 If the property is large enough to contain the base size .\"0 and window gravity fields as well, .\"0 the supplied_return argument will also contain the following bits: プロパティが十分大きく、プロパティがベースサイズとウィンドウの gravity 値も持つことができた場合、引き数 supplied_return には次のビットが含ま れる。 .LP .Ds PBaseSize|PWinGravity .De .LP .\"0 .ZN XGetWMNormalHints .\"0 can generate a .\"0 PN BadWindow .\"0 error. .ZN XGetWMNormalHints はエラー .ZN BadWindow を起こすことがある。 .LP .\"0 The .\"0 .ZN XSetWMSizeHints .\"0 function replaces the size hints for the specified property .\"0 on the named window. 関数 .ZN XSetWMSizeHints は指定したウィンドウの指定したプロパティのサイズヒントを置き換える。 .\"0 If the specified property does not already exist, .\"0 .ZN XSetWMSizeHints .\"0 sets the size hints for the specified property .\"0 on the named window. そのプロパティがまだ存在しない場合、 .ZN XSetWMSizeHints は指定したウィンドウのプロパティにサイズヒントを設定する。 .\"0 The property is stored with a type of WM_SIZE_HINTS and a format of 32. このプロパティは WM_SIZE_HINTS 型、フォーマット 32 で格納される。 .\"0 To set a window's normal size hints, .\"0 you can use the .\"0 .ZN XSetWMNormalHints .\"0 function. ウィンドウの通常のサイズヒントを設定するには、関数 .ZN XSetWMNormalHints を使うことができる。 .LP .\"0 .ZN XSetWMSizeHints .\"0 can generate .\"0 .ZN BadAlloc , .\"0 .ZN BadAtom , .\"0 and .\"0 .ZN BadWindow .\"0 errors. .ZN XSetWMSizeHints はエラー .ZN BadAlloc , .ZN BadAtom , .ZN BadWindow を起こすことがある。 .LP .\"0 The .\"0 .ZN XGetWMSizeHints .\"0 function returns the size hints stored in the specified property .\"0 on the named window. 関数 .ZN XGetWMSizeHints は、指定したウィンドウの指定したプロパティに格納されているサイズヒント を返す。 .\"0 If the property is of type WM_SIZE_HINTS, is of format 32, .\"0 and is long enough to contain either an old (pre-ICCCM) .\"0 or new size hints structure, .\"0 .ZN XGetWMSizeHints .\"0 sets the various fields of the .\"0 .ZN XSizeHints .\"0 structure, sets the supplied_return argument to the .\"0 list of fields that were supplied by the user .\"0 (whether or not they contained defined values), .\"0 and returns a nonzero status. このプロパティが WM_SIZE_HINTS 型、フォーマット 32 であり、新旧いず れのサイズヒント構造体(古いものは ICCCM 以前の形式)も格納できる十分な 長さを持つ場合、 .ZN XGetWMSizeHints は .ZN XSizeHints の各フィールドを設定し、ユーザが与えたフィールドのリストを(既に定義 されている値を含んでいるかどうかに関わらず)引き数 supplied_return に 設定し、0 でないステータスを返す。 .\"0 Otherwise, it returns a zero status. この条件を満たさない場合は、この関数はステータスとして 0 を返す。 .\"0 To get a window's normal size hints, .\"0 you can use the .\"0 .ZN XGetWMNormalHints .\"0 function. ウィンドウの通常のサイズヒントを取得するためには、関数 .ZN XGetWMNormalHints を利用できる。 .LP .\"0 If .\"0 .ZN XGetWMSizeHints .\"0 returns successfully and a pre-ICCCM size hints property is read, .\"0 the supplied_return argument will contain the following bits: .ZN XGetWMSizeHints が成功し、ICCCM の古いサイズヒントプロパティが取得された場合、引き数 supplied_return は次のビットを含む。 .LP .Ds (USPosition|USSize|PPosition|PSize|PMinSize| PMaxSize|PResizeInc|PAspect) .De .LP .\"0 If the property is large enough to contain the base size .\"0 and window gravity fields as well, .\"0 the supplied_return argument will also contain the following bits: プロパティが十分大きく、プロパティがベースサイズとウィンドウの gravity 値も含むことができた場合、引き数 supplied_return には次のビットが含まれ る。 .LP .Ds PBaseSize|PWinGravity .De .LP .\"0 .ZN XGetWMSizeHints .\"0 can generate .\"0 .ZN BadAtom .\"0 and .\"0 .ZN BadWindow .\"0 errors. .ZN XGetWMSizeHints はエラー .ZN BadAtom , .ZN BadWindow を起こすことがある。 .SH プロパティ .TP 1i \s-1WM_NORMAL_HINTS\s+1 .\"0 Size hints for a window in its normal state. .\"0 The C type of this property is .\"0 .ZN XSizeHints . 通常の状態のウィンドウのサイズヒント。 このプロパティの C 言語における型は .ZN XSizeHints である。 .SH 構造体 .\"0 The .\"0 .ZN XSizeHints .\"0 structure contains: .ZN XSizeHints 構造体の内容を示す: .LP .TS lw(.5i) lw(1.1i) lw(1.5i) lw(3.1i). T{ \&#define T} T{ .ZN USPosition T} T{ (1L << 0) T} T{ T} T{ \&#define T} T{ .ZN USSize T} T{ (1L << 1) T} T{ T} T{ \&#define T} T{ .ZN PPosition T} T{ (1L << 2) T} T{ T} T{ \&#define T} T{ .ZN PSize T} T{ (1L << 3) T} T{ T} T{ \&#define T} T{ .ZN PMinSize T} T{ (1L << 4) T} T{ T} T{ \&#define T} T{ .ZN PMaxSize T} T{ (1L << 5) T} T{ T} T{ \&#define T} T{ .ZN PResizeInc T} T{ (1L << 6) T} T{ T} T{ \&#define T} T{ .ZN PAspect T} T{ (1L << 7) T} T{ T} T{ \&#define T} T{ .ZN PBaseSize T} T{ (1L << 8) T} T{ \&#define T} T{ .ZN PWinGravity T} T{ (1L << 9) T} T{ \&#define T} T{ .ZN PAllHints T} T{ (PPosition|PSize| .br PMinSize|PMaxSize| .br PResizeInc|PAspect) T} T{ T} .TE .IN "XSizeHints" "" "@DEF@" .Ds 0 .TA .5i 2.5i .ta .5i 2.5i .\"0 /* Values */ /* 値 */ typedef struct { long flags; int x, y; int width, height; int min_width, min_height; int max_width, max_height; int width_inc, height_inc; struct { int x; int y; } min_aspect, max_aspect; int base_width, base_height; int win_gravity; } XSizeHints; .De .LP .\"0 The x, y, width, and height members are now obsolete .\"0 and are left solely for compatibility reasons. x, y, width, height メンバは今は古い仕様の使うべきでないメンバであり、 互換性のために残されているだけである。 .\"0 The min_width and min_height members specify the .\"0 minimum window size that still allows the application to be useful. min_width, min_height メンバはアプリケーションが使いものになる最小限の ウィンドウのサイズを指定する。 .\"0 The max_width and max_height members specify the maximum window size. max_width, max_height メンバはウィンドウの最大サイズを指定する。 .\"0 The width_inc and height_inc members define an arithmetic progression of .\"0 sizes (minimum to maximum) into which the window prefers to be resized. width_inc, height_inc メンバは、そのウィンドウにとって望ましいサイズに 変更する場合の、サイズの増分(最小値から最大値)を定義する。 .\"0 The min_aspect and max_aspect members are expressed .\"0 as ratios of x and y, .\"0 and they allow an application to specify the range of aspect .\"0 ratios it prefers. min_aspect, max_aspect メンバは x, y の比として表され、望ましいアスペ クト比の範囲を指定することができる。 .\"0 The base_width and base_height members define the desired size of the window. base_width, base_height はウィンドウの望ましいサイズを定義する。 .\"0 The window manager will interpret the position of the window .\"0 and its border width to position the point of the outer rectangle .\"0 of the overall window specified by the win_gravity member. ウィンドウマネージャはウィンドウの位置と境界幅を判断し、win_gravity メ ンバで指定されたウィンドウ全体の外側の長方形の位置にウィンドウを配置する。 .\"0 The outer rectangle of the window includes any borders or decorations .\"0 supplied by the window manager. ウィンドウの外側の長方形には、境界とウィンドウマネージャが付けた修飾部 分も含められる。 .\"0 In other words, .\"0 if the window manager decides to place the window where the client asked, .\"0 the position on the parent window's border named by the win_gravity .\"0 will be placed where the client window would have been placed .\"0 in the absence of a window manager. つまり、ウィンドウマネージャがクライアントが要求した位置にそのウィンドウ を配置すると決めたならば、win_gravity で指定される親ウィンドウの境界上 における位置は、ウィンドウマネージャがなければ本来クライアントの ウィンドウとなっていた場所になる。 .LP .\"0 Note that use of the .\"0 .ZN PAllHints .\"0 macro is highly discouraged. マクロ .ZN PAllHints の利用は極めて好ましくない点に注意すること。 .SH 返り値 .TP 1i .ZN BadAlloc .\"0 The server failed to allocate the requested resource or server memory. 要求されたリソースやサーバメモリの割り当てにサーバが失敗した。 .TP 1i .ZN BadAtom .\"0 A value for an Atom argument does not name a defined Atom. 引き数 Atom の値が、定義されている Atom を指していない。 .TP 1i .ZN BadWindow .\"0 A value for a Window argument does not name a defined Window. 引き数 Window の値が、定義されている Window を指していない。 .SH 関連項目 XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocWMHints(3X11), XFree(3X11), XSetCommand(3X11), XSetTransientForHint(3X11), XSetTextProperty(3X11), XSetWMClientMachine(3X11), XSetWMColormapWindows(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWMProtocols(3X11), XStringListToTextProperty(3X11) .br \fI\*(xL\fP