ClassesClasses | | Operators

disp_circledisp_circleDispCircleDispCircle (Operator)

Name

disp_circledisp_circleDispCircleDispCircle — Displays circles in a window.

Signature

disp_circle( : : WindowHandle, Row, Column, Radius : )

Herror disp_circle(const Hlong WindowHandle, double Row, double Column, double Radius)

Herror T_disp_circle(const Htuple WindowHandle, const Htuple Row, const Htuple Column, const Htuple Radius)

void DispCircle(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column, const HTuple& Radius)

void HWindow::DispCircle(const HTuple& Row, const HTuple& Column, const HTuple& Radius) const

void HWindow::DispCircle(double Row, double Column, double Radius) const

static void HOperatorSet.DispCircle(HTuple windowHandle, HTuple row, HTuple column, HTuple radius)

void HWindow.DispCircle(HTuple row, HTuple column, HTuple radius)

void HWindow.DispCircle(double row, double column, double radius)

Description

disp_circledisp_circleDispCircleDispCircleDispCircle displays one or several circles in the output window. A circle is described by the center (RowRowRowRowrow, ColumnColumnColumnColumncolumn) and the radius RadiusRadiusRadiusRadiusradius. If the used coordinates are not within the window the circle is clipped accordingly.

The operators used to control the display of regions (e.g. set_drawset_drawSetDrawSetDrawSetDraw, set_grayset_graySetGraySetGraySetGray, set_drawset_drawSetDrawSetDrawSetDraw) can also be used with circles. Several circles can be displayed with one call by using tuple parameters. For the use of colors with several circles, see set_colorset_colorSetColorSetColorSetColor.

Attention

The center of the circle must be within the window.

Execution Information

Parameters

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

Window handle.

RowRowRowRowrow (input_control)  circle.center.y(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row index of the center.

Default value: 64

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ Row Row Row Row row ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

ColumnColumnColumnColumncolumn (input_control)  circle.center.x(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column index of the center.

Default value: 64

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ Column Column Column Column column ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

RadiusRadiusRadiusRadiusradius (input_control)  circle.radius(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Radius of the circle.

Default value: 64

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ Radius Radius Radius Radius radius ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Restriction: Radius > 0.0

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button == 1)
close_window(WindowHandle)

Example (C)

open_window(0,0,-1,-1,"root","visible","",&WindowHandle) ;
set_draw(WindowHandle,"fill") ;
set_color(WindowHandle,"white") ;
get_mbutton(WindowHandle,&Row,&Column,&Button) ;
disp_circle(WindowHandle,Row,Column,(Row + Column) mod 50) ;

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button == 1)
close_window(WindowHandle)

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button == 1)
close_window(WindowHandle)

Example (HDevelop)

open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button == 1)
close_window(WindowHandle)

Result

disp_circledisp_circleDispCircleDispCircleDispCircle returns 2 (H_MSG_TRUE).

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindow, set_drawset_drawSetDrawSetDrawSetDraw, set_colorset_colorSetColorSetColorSetColor, set_coloredset_coloredSetColoredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth, set_rgbset_rgbSetRgbSetRgbSetRgb, set_hsiset_hsiSetHsiSetHsiSetHsi

Alternatives

disp_ellipsedisp_ellipseDispEllipseDispEllipseDispEllipse, disp_regiondisp_regionDispRegionDispRegionDispRegion, gen_circlegen_circleGenCircleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse

See also

open_windowopen_windowOpenWindowOpenWindowOpenWindow, set_colorset_colorSetColorSetColorSetColor, set_drawset_drawSetDrawSetDrawSetDraw, set_rgbset_rgbSetRgbSetRgbSetRgb, set_hsiset_hsiSetHsiSetHsiSetHsi

Module

Foundation


ClassesClasses | | Operators