Skip to content

set_window_attrSetWindowAttrSetWindowAttrset_window_attrset_window_attr🔗

説明🔗

set_window_attrSetWindowAttrSetWindowAttrset_window_attrset_window_attr — ウインドウの特性を設定する。

書式🔗

set_window_attr( string AttributeName, string AttributeValue )void SetWindowAttr( const HTuple& AttributeName, const HTuple& AttributeValue )static void HOperatorSet.SetWindowAttr( HTuple attributeName, HTuple attributeValue )def set_window_attr( attribute_name: str, attribute_value: Union[str, int] ) -> None

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

Herror T_set_window_attr( const Htuple AttributeName, const Htuple AttributeValue )

static void HSystem::SetWindowAttr( const HString& AttributeName, const HTuple& AttributeValue )

static void HSystem::SetWindowAttr( const HString& AttributeName, const HString& AttributeValue )

static void HSystem::SetWindowAttr( const char* AttributeName, const char* AttributeValue )

static void HSystem::SetWindowAttr( const wchar_t* AttributeName, const wchar_t* AttributeValue ) (Windows only)

static void HSystem.SetWindowAttr( string attributeName, HTuple attributeValue )

static void HSystem.SetWindowAttr( string attributeName, string attributeValue )

説明🔗

グラフィックウィンドウの特定の特徴を設定するために set_window_attrSetWindowAttr を使用します。以下に示すパラメーターが変更 可能です。

  • ‘border_width’ ウインドウ境界の幅 (ピクセル単位) Windows では実装されません。

  • ‘border_color’ ウィンドウ境界のカラー。 Windows では実装されません。

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

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

注意🔗

open_windowOpenWindow を呼び出す前に、 set_window_attrSetWindowAttr を呼び出す必要があります。

実行情報🔗

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

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

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

パラメーター🔗

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 (input_control) string → (string / integer)HTuple (HString / Hlong)HTuple (string / int / long)Union[str, int]Htuple (char* / Hlong)

変更する属性の値

値のリスト: 0, 1, 2, 'MyName', 'black', 'default', 'white'0, 1, 2, "MyName", "black", "default", "white"

結果🔗

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

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

組み合わせ

前処理の候補

open_windowOpenWindow, set_drawSetDraw, set_colorSetColor, set_coloredSetColored, set_line_widthSetLineWidth

関連項目

open_windowOpenWindow, get_window_attrGetWindowAttr, set_window_paramSetWindowParam

モジュール🔗

Foundation