Skip to content

draw_pointDrawPointDrawPointdraw_pointT_draw_pointπŸ”—

Short descriptionπŸ”—

draw_pointDrawPointDrawPointdraw_pointT_draw_point β€” Draw a point.

SignatureπŸ”—

draw_point( window WindowHandle, out point.y Row, out point.x Column )void DrawPoint( const HTuple& WindowHandle, HTuple* Row, HTuple* Column )static void HOperatorSet.DrawPoint( HTuple windowHandle, out HTuple row, out HTuple column )def draw_point( window_handle: HHandle ) -> Tuple[float, float]

Herror T_draw_point( const Htuple WindowHandle, Htuple* Row, Htuple* Column )

void HWindow::DrawPoint( double* Row, double* Column ) const

void HWindow.DrawPoint( out double row, out double column )

DescriptionπŸ”—

draw_pointDrawPoint returns the parameter for a point, which has been created interactively by the user in the window.

To create a point you have to press the left mouse button. While keeping the button pressed you may β€œdrag” the point in any direction. Pressing the right mouse button terminates the procedure.

After terminating the procedure the point is not visible in the window any longer.

AttentionπŸ”—

If used in a buffer window, mouse events have to be supplied by the application, while the draw operator must be run in another thread.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

WindowHandlewindowHandlewindow_handle (input_control) window β†’ (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Rowrowrow (output_control) point.y β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Row index of the point.

Columncolumncolumn (output_control) point.x β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Column index of the point.

ExampleπŸ”—

(HDevelop)

draw_point(WindowHandle,Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)
(C)
draw_point(WindowHandle,&Row,&Column)\;
gen_cross_contour_xld (&Cross, Row, Column, 6.0, 0.0)\;

ResultπŸ”—

draw_pointDrawPoint returns 2 (H_MSG_TRUE) if the window is valid. If necessary, an exception is raised.

Combinations with other operatorsπŸ”—

Combinations

Possible predecessors

open_windowOpenWindow

Possible successors

reduce_domainReduceDomain, disp_lineDispLine, set_coloredSetColored, set_line_widthSetLineWidth, set_drawSetDraw

See also

draw_point_modDrawPointMod, draw_circleDrawCircle, draw_ellipseDrawEllipse

ModuleπŸ”—

Foundation