get_window_attrget_window_attrGetWindowAttrGetWindowAttrget_window_attr (Operator)

Name

get_window_attrget_window_attrGetWindowAttrGetWindowAttrget_window_attr — Lesen von Fenstereigenschaften.

Signatur

get_window_attr( : : AttributeName : AttributeValue)

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

Herror T_get_window_attr(const Htuple AttributeName, Htuple* AttributeValue)

void GetWindowAttr(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)   (Nur Windows)

static void HOperatorSet.GetWindowAttr(HTuple attributeName, out HTuple attributeValue)

static HTuple HSystem.GetWindowAttr(string attributeName)

def get_window_attr(attribute_name: str) -> Union[str, int]

Beschreibung

get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttrget_window_attr dient zum Auslesen von Eigenschaften von Grafikfenstern, die mit set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr gesetzt wurden. Folgende Parameter eines Fenster können ausgelesen werden:

'border_width'

Breite des Fensterrandes in Pixel.

'border_color'

Farbe des Fensterrandes.

'background_color'

Hintergrundfarbe des Fensters.

'window_title'

Name des Fensters in der Titelleiste.

Ausführungsinformationen

Parameter

AttributeNameAttributeNameAttributeNameAttributeNameattributeNameattribute_name (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name des Attributs, das gelesen werden soll.

Werteliste: 'background_color'"background_color""background_color""background_color""background_color""background_color", 'border_color'"border_color""border_color""border_color""border_color""border_color", 'border_width'"border_width""border_width""border_width""border_width""border_width", 'window_title'"window_title""window_title""window_title""window_title""window_title"

AttributeValueAttributeValueAttributeValueAttributeValueattributeValueattribute_value (output_control)  string HTupleUnion[str, int]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Attributwert.

Ergebnis

get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttrget_window_attr liefert den Wert 2 (H_MSG_TRUE), falls die Parameter korrekt sind. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

Siehe auch

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr

Modul

Foundation