Skip to content

get_window_attrGetWindowAttrGetWindowAttrget_window_attrget_window_attr🔗

説明🔗

get_window_attrGetWindowAttrGetWindowAttrget_window_attrget_window_attr — ウインドウ特性を取得する。

書式🔗

get_window_attr( string AttributeName, out string AttributeValue )void GetWindowAttr( const HTuple& AttributeName, HTuple* AttributeValue )static void HOperatorSet.GetWindowAttr( HTuple attributeName, out HTuple attributeValue )def get_window_attr( attribute_name: str ) -> Union[str, int]

Herror get_window_attr( const char* AttributeName, char* AttributeValue )

Herror T_get_window_attr( const Htuple AttributeName, Htuple* AttributeValue )

static HTuple HSystem::GetWindowAttr( const HString& AttributeName )

static HTuple HSystem::GetWindowAttr( const char* AttributeName )

static HTuple HSystem::GetWindowAttr( const wchar_t* AttributeName ) (Windows only)

static HTuple HSystem.GetWindowAttr( string attributeName )

説明🔗

オペレーター get_window_attrGetWindowAttr は、set_window_attrSetWindowAttr を用いて指定したグラフィックスウインドウの特性を読むために使用され ます。以下に示すウインドウパラメーターに対して問い合わせることがで きます:

  • ‘border_width’ ウインドウ境界の幅 (ピクセル単位)

  • ‘border_color’ ウィンドウ境界のカラー。

  • ‘background_color’ ウィンドウの背景色。

  • ‘window_title’ タイトルバーのウィンドウの名前

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

AttributeNameattributeNameattribute_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

返されるべき属性名

値のリスト: 'background_color', 'border_color', 'border_width', 'window_title'"background_color", "border_color", "border_width", "window_title"

AttributeValueattributeValueattribute_value (output_control) string → (string / integer)HTuple (HString / Hlong)HTuple (string / int / long)Union[str, int]Htuple (char* / Hlong)

属性の値

結果🔗

パラメーターが正しい場合、get_window_attrGetWindowAttr は 2 (H_MSG_TRUE) を返しま す。 必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_windowOpenWindow, set_drawSetDraw, set_colorSetColor, set_coloredSetColored, set_line_widthSetLineWidth

関連項目

open_windowOpenWindow, set_window_attrSetWindowAttr

モジュール🔗

Foundation