ClassesClasses | | Operators

set_insertset_insertSetInsertSetInsert (Operator)

Name

set_insertset_insertSetInsertSetInsert — Define the pixel output function.

Signature

set_insert( : : WindowHandle, Mode : )

Herror set_insert(const Hlong WindowHandle, const char* Mode)

Herror T_set_insert(const Htuple WindowHandle, const Htuple Mode)

void SetInsert(const HTuple& WindowHandle, const HTuple& Mode)

void HWindow::SetInsert(const HString& Mode) const

void HWindow::SetInsert(const char* Mode) const

static void HOperatorSet.SetInsert(HTuple windowHandle, HTuple mode)

void HWindow.SetInsert(string mode)

Description

set_insertset_insertSetInsertSetInsertSetInsert defines the function, with which pixels are displayed in the output window. It is e.g. possible for a pixel to overwrite the old value. In most of the cases there is a functional relationship between old and new values.

The definition value is only valid for the valid window. Output operators that honor ModeModeModeModemode are e.g. disp_regiondisp_regionDispRegionDispRegionDispRegion, disp_polygondisp_polygonDispPolygonDispPolygonDispPolygon,disp_circledisp_circleDispCircleDispCircleDispCircle.

Possible display functions are:

'copy':

overwrite displayed pixels

'xor':

display old "xor" new pixels

'complement':

complement displayed pixels

There may not be all functions available, depending on the physical display. However, “copy” is always available.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Window handle.

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

Name of the display function.

Default value: 'copy' "copy" "copy" "copy" "copy"

List of values: 'complement'"complement""complement""complement""complement", 'copy'"copy""copy""copy""copy", 'xor'"xor""xor""xor""xor"

Result

set_insertset_insertSetInsertSetInsertSetInsert returns 2 (H_MSG_TRUE) if the parameter is correct and the window is valid. Otherwise an exception is raised.

Possible Predecessors

query_insertquery_insertQueryInsertQueryInsertQueryInsert, get_insertget_insertGetInsertGetInsertGetInsert

Possible Successors

disp_regiondisp_regionDispRegionDispRegionDispRegion

See also

get_insertget_insertGetInsertGetInsertGetInsert, query_insertquery_insertQueryInsertQueryInsertQueryInsert

Module

Foundation


ClassesClasses | | Operators