draw_xldT_draw_xldDrawXldDrawXld (Operator)

Name

draw_xldT_draw_xldDrawXldDrawXld — Interaktives Erstellen einer Kontur.

Signatur

draw_xld( : ContOut : WindowHandle, Rotate, Move, Scale, KeepRatio : )

Herror T_draw_xld(Hobject* ContOut, const Htuple WindowHandle, const Htuple Rotate, const Htuple Move, const Htuple Scale, const Htuple KeepRatio)

void DrawXld(HObject* ContOut, const HTuple& WindowHandle, const HTuple& Rotate, const HTuple& Move, const HTuple& Scale, const HTuple& KeepRatio)

void HXLDCont::DrawXld(const HWindow& WindowHandle, const HString& Rotate, const HString& Move, const HString& Scale, const HString& KeepRatio)

void HXLDCont::DrawXld(const HWindow& WindowHandle, const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio)

void HXLDCont::DrawXld(const HWindow& WindowHandle, const wchar_t* Rotate, const wchar_t* Move, const wchar_t* Scale, const wchar_t* KeepRatio)   (Nur Windows)

HXLDCont HWindow::DrawXld(const HString& Rotate, const HString& Move, const HString& Scale, const HString& KeepRatio) const

HXLDCont HWindow::DrawXld(const char* Rotate, const char* Move, const char* Scale, const char* KeepRatio) const

HXLDCont HWindow::DrawXld(const wchar_t* Rotate, const wchar_t* Move, const wchar_t* Scale, const wchar_t* KeepRatio) const   (Nur Windows)

static void HOperatorSet.DrawXld(out HObject contOut, HTuple windowHandle, HTuple rotate, HTuple move, HTuple scale, HTuple keepRatio)

void HXLDCont.DrawXld(HWindow windowHandle, string rotate, string move, string scale, string keepRatio)

HXLDCont HWindow.DrawXld(string rotate, string move, string scale, string keepRatio)

Beschreibung

draw_xlddraw_xldDrawXldDrawXldDrawXld liefert eine Kontur, die interaktiv durch den Benutzer im Fenster erzeugt worden ist.

Direkt nach dem Aufruf von draw_xlddraw_xldDrawXldDrawXldDrawXld kann man, durch Drücken der linken Maustaste, Punkte zur Kontur hinzufügen. Der zuletzt angehängte Punkt kann durch Drücken der Steuerungstaste (Strg, Ctrl) gelöscht werden. Sobald die Kontur aus 3 Punkten besteht, werden 5 Pickpunkte dargestellt, einer in der Mitte und die anderen an den 4 Ecken des umschließenden Rechtecks. Durch Klicken auf einen dieser Pickpunkte kann die Kontur geschlossen und wieder geöffnet werden. Bei einer geschlossenen Kontur werden die Pickpunkte als Rechtecke dargestellt, ansonsten gleicht ihre Form einem 'u'.

Bei einer geschlossene Kontur kann man

Durch Drücken der Umschalttaste kann in den Modus zum Transformieren der Kontur gewechselt werden. In diesem Modus kann die Kontur rotiert, verschoben und skaliert werden, jedoch nur wenn der entsprechenden Parameter RotateRotateRotateRotaterotate, MoveMoveMoveMovemove und ScaleScaleScaleScalescale auf 'true'"true""true""true""true" gesetzt wurde. Die Kontur wird zusammen mit einem Kreuz in der Mitte und einem Pfeil nach rechts, falls RotateRotateRotateRotaterotate auf 'true'"true""true""true""true" gesetzt wurde, und einem Doppelpfeil, falls ScaleScaleScaleScalescale auf 'true'"true""true""true""true" gesetzt wurde, dargestellt.

Die Kontur kann

Ein Klick mit der rechten Maustaste beendet die Prozedur. Unter macOS kann draw_xlddraw_xldDrawXldDrawXldDrawXld auch durch Drücken der Escape-Taste beendet werden.

Achtung

Für die Nutzung des Zeichenoperators in einem Puffer-Fenster muss die Anwendung Maus-Events senden. Der Zeichenoperator muss dabei in einem anderen Thread ausgeführt werden.

Ausführungsinformationen

Parameter

ContOutContOutContOutContOutcontOut (output_object)  xld_cont objectHXLDContHXLDContHobject *

Modifizierte Kontur.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fenster-Handle.

RotateRotateRotateRotaterotate (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Rotation ermöglichen?

Defaultwert: 'true' "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false", 'true'"true""true""true""true"

MoveMoveMoveMovemove (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Verschieben ermöglichen?

Defaultwert: 'true' "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false", 'true'"true""true""true""true"

ScaleScaleScaleScalescale (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Skalieren ermöglichen?

Defaultwert: 'true' "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false", 'true'"true""true""true""true"

KeepRatioKeepRatioKeepRatioKeepRatiokeepRatio (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Seitenverhältnis beim Skalieren beibehalten?

Defaultwert: 'true' "true" "true" "true" "true"

Werteliste: 'false'"false""false""false""false", 'true'"true""true""true""true"

Ergebnis

draw_xlddraw_xldDrawXldDrawXldDrawXld liefert den Wert 2 (H_MSG_TRUE), falls das Fenster gültig und der benötigte Zeichenmodus (siehe set_insertset_insertSetInsertSetInsertSetInsert) verfügbar ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowOpenWindowOpenWindow

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, disp_regiondisp_regionDispRegionDispRegionDispRegion, set_coloredset_coloredSetColoredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth, set_drawset_drawSetDrawSetDrawSetDraw, set_insertset_insertSetInsertSetInsertSetInsert

Alternativen

draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2DrawRectangle2, draw_rectangle1draw_rectangle1DrawRectangle1DrawRectangle1DrawRectangle1, draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2DrawRectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion

Siehe auch

gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, draw_circledraw_circleDrawCircleDrawCircleDrawCircle, draw_ellipsedraw_ellipseDrawEllipseDrawEllipseDrawEllipse, set_insertset_insertSetInsertSetInsertSetInsert

Modul

Foundation