draw_pointT_draw_pointDrawPointDrawPointdraw_point (算子)

名称

draw_pointT_draw_pointDrawPointDrawPointdraw_point — 画一个点。

签名

draw_point( : : WindowHandle : Row, Column)

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

void DrawPoint(const HTuple& WindowHandle, HTuple* Row, HTuple* Column)

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

static void HOperatorSet.DrawPoint(HTuple windowHandle, out HTuple row, out HTuple column)

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

def draw_point(window_handle: HHandle) -> Tuple[float, float]

描述

draw_pointdraw_pointDrawPointDrawPointDrawPointdraw_point 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.

注意

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.

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

RowRowRowRowrowrow (输出控制)  point.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Row index of the point.

ColumnColumnColumnColumncolumncolumn (输出控制)  point.x HTuplefloatHTupleHtuple (real) (double) (double) (double)

Column index of the point.

示例(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);

示例(HDevelop)

draw_point(WindowHandle,Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)

示例(HDevelop)

draw_point(WindowHandle,Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)

示例(HDevelop)

draw_point(WindowHandle,Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)

结果

draw_pointdraw_pointDrawPointDrawPointDrawPointdraw_point returns 2 ( H_MSG_TRUE) , if the window is valid and the needed drawing mode is available。如有必要,则抛出异常。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

可能的后继

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, disp_linedisp_lineDispLineDispLineDispLinedisp_line, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_insertset_insertSetInsertSetInsertSetInsertset_insert

另见

draw_point_moddraw_point_modDrawPointModDrawPointModDrawPointModdraw_point_mod, draw_circledraw_circleDrawCircleDrawCircleDrawCircledraw_circle, draw_ellipsedraw_ellipseDrawEllipseDrawEllipseDrawEllipsedraw_ellipse, set_insertset_insertSetInsertSetInsertSetInsertset_insert

模块

基础