class DRAW_KIT

All features

DRAW_KIT is a tool to make some free drawing, you may consider it as a pen. You can draw points, lines, rectangles, arcs, words... Difference with DRAW_STYLE is that you pre-select the drawable to draw into and drawing functions automatically use this drawable.

Direct parents

conformant parents

DRAW_STYLE

Summary

creation features

exported features

Details

default_create

Default creation method. It is used when no creation method is specified if allowed. Note it may be renamed.

set_drawable (d: DRAWABLE)

Set the drawable to use in future drawing function calls.

require

  • d /= Void

ensure

  • valid_drawable

point (x1: INTEGER, y1: INTEGER)

require

  • valid_drawable

line (x1: INTEGER, y1: INTEGER, x2: INTEGER, y2: INTEGER)

TODO: explain how line width is used

require

  • valid_drawable

rectangle (x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER)

TODO: explain how line width is used

require

  • w > 0
  • h > 0
  • valid_drawable

arc (x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER, angle1: REAL, angle2: REAL)

TODO: explain how line width is used arc will be drawn inside the rectangle defined with x1, y1, w, h

require

  • w > 0
  • h > 0
  • valid_drawable

arc_radius (x: INTEGER, y: INTEGER, r1: INTEGER, r2: INTEGER, angle1: REAL, angle2: REAL)

TODO: explain how line width is used arc will be drawn using (x, y) as center and r1/r2 as horizontal/vertical radius

require

  • r1 > 0
  • r2 > 0
  • valid_drawable

fill_rectangle (x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER)

require

  • w > 0
  • h > 0
  • valid_drawable

fill_arc (x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER, angle1: REAL, angle2: REAL)

arc will be drawn inside the rectangle defined with x1, y1, w, h

require

  • w > 0
  • h > 0
  • valid_drawable

fill_arc_radius (x: INTEGER, y: INTEGER, r1: INTEGER, r2: INTEGER, angle1: REAL, angle2: REAL)

arc will be drawn using (x, y) as center and r1/r2 as horizontal/vertical radius

require

  • r1 > 0
  • r2 > 0
  • valid_drawable

put_string (s: UNICODE_STRING, x: INTEGER, y: INTEGER)

require

  • s /= Void
  • valid_drawable

valid_drawable: BOOLEAN
drawable: POINTER
default_create

Default creation method. It is used when no creation method is specified if allowed. Note it may be renamed.

color: COLOR
set_color (c: COLOR)

require

  • c /= Void

line_width: INTEGER
set_line_width (w: INTEGER)

require

  • w > 0

draw_rectangle (d: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER)

require

  • w > 0
  • h > 0
  • d /= default_pointer

draw_fill_rectangle (d: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER)

require

  • w > 0
  • h > 0
  • d /= default_pointer

draw_line (d: POINTER, x1: INTEGER, y1: INTEGER, x2: INTEGER, y2: INTEGER)

require

  • d /= default_pointer

draw_string (d: POINTER, s: UNICODE_STRING, x: INTEGER, y: INTEGER)

require

  • s /= Void
  • d /= default_pointer

draw_point (d: POINTER, x1: INTEGER, y1: INTEGER)

require

  • d /= default_pointer

draw_arc (d: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER, angle1: REAL, angle2: REAL)

arc will be drawn inside the rectangle defined with x1, y1, w, h

require

  • w > 0
  • h > 0
  • d /= default_pointer

draw_arc_radius (d: POINTER, x: INTEGER, y: INTEGER, r1: INTEGER, r2: INTEGER, angle1: REAL, angle2: REAL)

arc will be drawn using (x, y) as center and r1/r2 as horizontal/vertical radius

require

  • r1 > 0
  • r2 > 0
  • d /= default_pointer

draw_fill_arc (d: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER, angle1: REAL, angle2: REAL)

arc will be drawn inside the rectangle defined with x1, y1, w, h

require

  • w > 0
  • h > 0
  • d /= default_pointer

draw_fill_arc_radius (d: POINTER, x: INTEGER, y: INTEGER, r1: INTEGER, r2: INTEGER, angle1: REAL, angle2: REAL)

arc will be drawn using (x, y) as center and r1/r2 as horizontal/vertical radius

require

  • r1 > 0
  • r2 > 0
  • d /= default_pointer

style: POINTER
font: BASIC_FONT
dispose

Action to be executed just before garbage collection reclaims an object.

basic_style_new: POINTER
basic_style_set_color (sty: POINTER, color_: POINTER)
basic_style_set_line_width (sty: POINTER, w: INTEGER)
basic_style_set_font (sty: POINTER, f: POINTER)
basic_style_free (sty: POINTER)
basic_draw_point (draw: POINTER, sty: POINTER, x1: INTEGER, y1: INTEGER)
basic_draw_line (draw: POINTER, sty: POINTER, x1: INTEGER, y1: INTEGER, x2: INTEGER, y2: INTEGER)
basic_draw_rectangle (draw: POINTER, sty: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER)
basic_draw_arc (draw: POINTER, sty: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER, a1: REAL, a2: REAL)
basic_draw_fill_rectangle (draw: POINTER, sty: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER)
basic_draw_fill_arc (draw: POINTER, sty: POINTER, x1: INTEGER, y1: INTEGER, w: INTEGER, h: INTEGER, a1: REAL, a2: REAL)
basic_draw_text (draw: POINTER, sty: POINTER, x: INTEGER, y: INTEGER, bl: INTEGER, text: POINTER, length: INTEGER)
vision: VISION
font_manager: FONT_MANAGER
default_font: BASIC_FONT
white_color: COLOR
black_color: COLOR
dim_grey_color: COLOR
dark_grey_color: COLOR
grey_color: COLOR
light_grey_color: COLOR
dark_blue_color: COLOR
medium_blue_color: COLOR
blue_color: COLOR
royal_blue_color: COLOR
deep_sky_blue_color: COLOR
sky_blue_color: COLOR
light_sky_blue_color: COLOR
steel_blue_color: COLOR
light_steel_blue_color: COLOR
light_blue_color: COLOR
pale_turquoise_color: COLOR
dark_turquoise_color: COLOR
medium_turquoise_color: COLOR
turquoise_color: COLOR
dark_cyan_color: COLOR
cyan_color: COLOR
light_cyan_color: COLOR
dark_green_color: COLOR
green_color: COLOR
light_green_color: COLOR
yellow_green_color: COLOR
dark_khaki_color: COLOR
khaki_color: COLOR
yellow_color: COLOR
light_yellow_color: COLOR
gold_color: COLOR
beige_color: COLOR
chocolate_color: COLOR
firebrick_color: COLOR
brown_color: COLOR
dark_salmon_color: COLOR
salmon_color: COLOR
light_salmon_color: COLOR
dark_orange_color: COLOR
orange_color: COLOR
orange_red_color: COLOR
dark_red_color: COLOR
red_color: COLOR
hot_pink_color: COLOR
deep_pink_color: COLOR
pink_color: COLOR
light_pink_color: COLOR
pale_violet_red_color: COLOR
maroon_color: COLOR
medium_violet_red_color: COLOR
violet_red_color: COLOR
violet_color: COLOR
dark_magenta_color: COLOR
magenta_color: COLOR
dark_violet_color: COLOR
blue_violet_color: COLOR
medium_purple_color: COLOR
purple_color: COLOR
state_normal: INTEGER
state_active: INTEGER
state_prelight: INTEGER
state_selected: INTEGER
state_insensitive: INTEGER
center_alignment: ALIGNMENT
left_alignment: ALIGNMENT
right_alignment: ALIGNMENT
top_alignment: ALIGNMENT
down_alignment: ALIGNMENT
top_left_alignment: ALIGNMENT
top_right_alignment: ALIGNMENT
down_right_alignment: ALIGNMENT
down_left_alignment: ALIGNMENT