1
+ name : canvas
2
+ scope : " desktop"
3
+ desc : " Contains functions for working with graphics"
4
+ desc_ru : " Содержит функции для работы с графикой"
5
+ constants :
6
+ - name : " VK_DOWN"
7
+ typeName : number
8
+ type : 1
9
+ value : " 40"
10
+ desc : " arrow down key code"
11
+ desc_ru : " код клавиши стрелка вниз"
12
+ - name : " VK_ESCAPE"
13
+ typeName : number
14
+ type : 1
15
+ value : " 27"
16
+ desc : " Esc key code"
17
+ desc_ru : " код клавиши Esc"
18
+ - name : " VK_FIRE"
19
+ typeName : number
20
+ type : 1
21
+ value : " 10"
22
+ desc : " Enter key code"
23
+ desc_ru : " код клавиши Enter"
24
+ - name : " VK_LEFT"
25
+ typeName : number
26
+ type : 1
27
+ value : " 37"
28
+ desc : " arrow left key code"
29
+ desc_ru : " код клавиши стрелка влево"
30
+ - name : " VK_RIGHT"
31
+ typeName : number
32
+ type : 1
33
+ value : " 39"
34
+ desc : " arrow left key code"
35
+ desc_ru : " код клавиши стрелка вправо"
36
+ - name : " VK_UP"
37
+ typeName : number
38
+ type : 1
39
+ value : " 38"
40
+ desc : " arrow up key code"
41
+ desc_ru : " код клавиши стрелка вверх"
42
+ functions :
43
+ - name : " clip"
44
+ args : " x, y, w, h"
45
+ desc : " sets the current clip to the rectangle specified by the given coordinates"
46
+ desc_ru : " устанавливает текущий клип в прямоугольник, заданный данными координатами"
47
+ - name : " color"
48
+ args : " rgb"
49
+ desc : " sets color drawing. `rgb` - color with the specified combined RGB value"
50
+ desc_ru : " устанвливает цвет рисования. `rgb` - целое, комбинация цветов RGB, например `#FFGGFF`"
51
+ - name : " color"
52
+ args : " red, green, blue"
53
+ desc : " sets color with the specified red, green, and blue values in the range (0 - 255)"
54
+ desc_ru : " устанвливает цвет рисования c отдельными уровнями красного, зеленого и синего в диапазоне (0 - 255)"
55
+ - name : " drawstring"
56
+ args : " text, x, y"
57
+ desc : " draws string `text` at position `x`, `y`"
58
+ desc_ru : " рисует строку `text` с координатами `x`, `y`"
59
+ - name : " foval"
60
+ args : " x, y, w, h"
61
+ desc : " draws a filled oval at position `x`,` y`, size `w`,` h`"
62
+ desc_ru : " рисует закрашенный овал на позиции `x`, `y`, размером `w`, `h`"
63
+ - name : " frect"
64
+ args : " x, y, w, h"
65
+ desc : " draws a filled rectangle at position `x`,` y`, size `w`,` h`"
66
+ desc_ru : " рисует закрашенный прямоугольник на позиции `x`, `y`, размером `w`, `h`"
67
+ - name : " keypressed"
68
+ args : " "
69
+ desc : " returns the code of the pressed key (see the constant section)"
70
+ desc_ru : " возрвращает код нажатой клавиши (см. раздел константы)"
71
+ - name : " line"
72
+ args : " x1, y1, x2, y2"
73
+ desc : " draws line from point (`x1`;y1`) to (`x2`;y2`)"
74
+ desc_ru : " рисует линию от позиции (`x1`;y1`) до (`x2`;y2`)"
75
+ - name : " mousehover"
76
+ args : " "
77
+ desc : " returns array with current mouse pointer coordinates"
78
+ desc_ru : " возвращает массив с текущими координатами указателя мыши"
79
+ - name : " oval"
80
+ args : " x, y, w, h"
81
+ desc : " draws a oval at position `x`,` y`, size `w`,` h`"
82
+ desc_ru : " рисует овал на позиции `x`, `y`, размером `w`, `h`"
83
+ - name : " prompt"
84
+ args : " message"
85
+ desc : " displays a dialog box that prompts the visitor for input"
86
+ desc_ru : " показывает диалог для ввода значения от пользователя"
87
+ - name : " rect"
88
+ args : " x, y, w, h"
89
+ desc : " draws a rectangle at position `x`,` y`, size `w`,` h`"
90
+ desc_ru : " рисует прямоугольник на позиции `x`, `y`, размером `w`, `h`"
91
+ - name : " repaint"
92
+ args : " "
93
+ desc : " draws elements from graphics buffer on canvas"
94
+ desc_ru : " прорисовывает элементы из буфера на холсте"
95
+ - name : " window"
96
+ args : " name, width, hight"
97
+ desc : " creates a new window with the specified `name` and size `width`x`height`"
98
+ desc_ru : " создает новое окно с именем `name` и размером `width`x`height`"
0 commit comments