Home
last modified time | relevance | path

Searched refs:cairo_context (Results 1 – 25 of 75) sorted by relevance

123

/dports/graphics/drawing/drawing-0.8.4/src/tools/
H A Dutilities_overlay.py66 cairo_context.move_to(x1, y1)
67 cairo_context.line_to(x1, y2)
68 cairo_context.line_to(x2, y2)
69 cairo_context.line_to(x2, y1)
70 cairo_context.close_path()
75 cairo_context.stroke()
106 cairo_context.move_to(x, y)
108 cairo_context.close_path()
112 cairo_context.stroke()
119 cairo_context.set_dash([])
[all …]
H A Dutilities_paths.py45 cairo_context.move_to(x, y)
85 cairo_context.line_to(x, y)
103 cairo_context.close_path()
105 return cairo_context.copy_path()
166 cairo_context.close_path()
171 cairo_context.move_to(*head[0])
173 cairo_context.line_to(*head[0])
174 cairo_context.line_to(*head[1])
175 cairo_context.line_to(*head[2])
211 cairo_context.move_to(x2, y2)
[all …]
/dports/graphics/drawing/drawing-0.8.4/src/tools/classic_tools/
H A Dtool_experiment.py186 cairo_context.new_path()
187 cairo_context.line_to(50, 70)
188 cairo_context.line_to(70, 50)
189 cairo_context.line_to(90, 60)
190 cairo_context.line_to(110, 85)
202 cairo_context.stroke()
209 cairo_context.new_path()
212 cairo_context.stroke()
219 cairo_context.new_path()
225 cairo_context.new_path()
[all …]
H A Dtool_shape.py179 cairo_context.stroke_preserve()
202 cairo_context.close_path()
217 cairo_context.close_path()
226 cairo_context.scale(halfw, halfh)
229 cairo_context.close_path()
278 cairo_context.set_source(pattern)
279 cairo_context.fill_preserve()
284 cairo_context.fill_preserve()
299 cairo_context.close_path()
331 cairo_context.stroke()
[all …]
H A Dtool_points.py126 cairo_context.set_line_width(line_width)
137 cairo_context.fill()
140 cairo_context.move_to(x, y - half_width)
141 cairo_context.line_to(x, y + half_width)
142 cairo_context.move_to(x - half_width, y)
143 cairo_context.line_to(x + half_width, y)
150 cairo_context.set_line_width(point_width)
151 cairo_context.move_to(x, y - half_width)
152 cairo_context.line_to(x, y + half_width)
161 cairo_context.move_to(num_x, num_y)
[all …]
H A Dtool_arc.py80 cairo_context = self.get_context()
82 cairo_context.move_to(self.x_press, self.y_press)
83 cairo_context.line_to(event_x, event_y)
88 self._path = cairo_context.copy_path()
98 cairo_context = self.get_context()
104 self._path = cairo_context.copy_path()
135 cairo_context.set_line_width(line_width)
150 cairo_context.append_path(operation['path'])
163 cairo_context.stroke_preserve()
165 cairo_context.set_line_width(line_width)
[all …]
H A Dtool_pencil.py71 cairo_context = self.get_context()
73 cairo_context.move_to(self.x_press, self.y_press)
75 cairo_context.append_path(self._path)
76 cairo_context.line_to(event_x, event_y)
77 self._path = cairo_context.copy_path()
110 cairo_context = self.start_tool_operation(operation)
112 cairo_context.set_operator(operation['operator'])
123 cairo_context.set_line_width(line_width * 1.2 + 2)
124 cairo_context.stroke_preserve()
128 cairo_context.set_line_width(line_width)
[all …]
H A Dtool_eraser.py115 cairo_context = self.get_context()
120 cairo_context.close_path()
121 self._path = cairo_context.copy_path()
159 cairo_context.append_path(operation['path'])
160 cairo_context.fill()
166 cairo_context.stroke()
169 cairo_context.append_path(operation['path'])
171 [r0, r1, r2, r3] = cairo_context.path_extents()
195 cairo_context.clip()
198 cairo_context.set_source_surface(bs, r0, r1)
[all …]
H A Dtool_line.py112 cairo_context = self.start_tool_operation(operation)
113 cairo_context.set_operator(operation['operator'])
115 cairo_context.set_line_width(line_width)
140 self.set_dashes_and_cap(cairo_context, line_width, \
148 cairo_context.move_to(x1, y1)
149 cairo_context.line_to(x2, y2)
156 cairo_context.set_line_width(line_width * 1.2 + 2)
157 cairo_context.stroke_preserve()
163 cairo_context.set_source(pattern)
166 cairo_context.set_line_width(line_width)
[all …]
H A Dtool_paint.py99 cairo_context = self.get_context()
102 cairo_context.paint()
109 cairo_context = self.get_context()
112 cairo_context.append_path(operation['path'])
118 cairo_context.fill()
139 cairo_context = cairo.Context(surface)
142 cairo_context.set_source_rgba(255, 255, 255, 1.0)
143 cairo_context.append_path(operation['path'])
146 cairo_context.set_antialias(cairo.Antialias.NONE)
147 cairo_context.stroke_preserve()
[all …]
/dports/graphics/drawing/drawing-0.8.4/src/tools/classic_tools/brushes/
H A Dbrush_simple.py20 cairo_context.set_line_cap(cairo.LineCap.ROUND)
24 super().draw_preview(operation, cairo_context)
50 cairo_context.new_path()
52 cairo_context.line_to(pt['x'], pt['y'])
53 raw_path = cairo_context.copy_path()
56 cairo_context.new_path()
58 smoothed_path = cairo_context.copy_path()
65 cairo_context.new_path()
74 self._add_segment(cairo_context, segment)
75 cairo_context.stroke()
[all …]
H A Dbrush_hairy.py15 def draw_preview(self, operation, cairo_context): argument
16 cairo_context.set_line_cap(cairo.LineCap.ROUND)
17 cairo_context.set_line_join(cairo.LineJoin.BEVEL)
20 super().draw_preview(operation, cairo_context)
31 self.operation_on_mask(operation, cairo_context)
34 cairo_context.set_line_cap(cairo.LineCap.ROUND)
35 cairo_context.set_line_join(cairo.LineJoin.ROUND)
36 cairo_context.set_line_width(1)
53 cairo_context.new_path()
59 cairo_context.line_to(px, py)
[all …]
H A Dbrush_nib.py18 def draw_preview(self, operation, cairo_context): argument
19 cairo_context.set_line_cap(cairo.LineCap.BUTT)
20 cairo_context.set_line_join(cairo.LineJoin.ROUND)
23 super().draw_preview(operation, cairo_context)
34 self.operation_on_mask(operation, cairo_context)
70 cairo_context.new_path()
73 cairo_context.move_to(x, y)
76 cairo_context.line_to(x, y)
79 cairo_context.line_to(x, y)
82 cairo_context.line_to(x, y)
[all …]
H A Dbrush_airbrush.py17 def do_brush_operation(self, cairo_context, operation): argument
21 cairo_context.set_operator(operation['operator'])
23 cairo_context.set_source_rgba(rgba.red, rgba.green, rgba.blue, rgba.alpha)
29 cairo_context.set_line_width(1)
39 cairo_context.new_path()
42 cairo_context.move_to(x, y)
43 cairo_context.rel_line_to(1, 1)
44 cairo_context.stroke()
H A Dabstract_brush.py17 def draw_preview(self, operation, cairo_context): argument
18 cairo_context.set_operator(operation['operator'])
19 cairo_context.set_line_width(operation['line_width'])
20 cairo_context.new_path()
22 cairo_context.line_to(pt['x'], pt['y'])
23 cairo_context.stroke()
64 def do_brush_operation(self, cairo_context, operation): argument
67 def do_masked_brush_op(self, cairo_context, operation): argument
/dports/www/chromium-legacy/chromium-88.0.4324.182/remoting/host/
H A Ddisconnect_window_linux.cc86 cairo_close_path(cairo_context); in AddRoundRectPath()
95 cairo_save(cairo_context); in DrawBackground()
98 cairo_paint(cairo_context); in DrawBackground()
99 cairo_restore(cairo_context); in DrawBackground()
102 cairo_clip(cairo_context); in DrawBackground()
106 cairo_paint(cairo_context); in DrawBackground()
112 cairo_stroke(cairo_context); in DrawBackground()
125 cairo_stroke(cairo_context); in DrawBackground()
129 cairo_stroke(cairo_context); in DrawBackground()
135 cairo_stroke(cairo_context); in DrawBackground()
[all …]
/dports/graphics/drawing/drawing-0.8.4/src/
H A Dselection_manager.py71 cairo_context.new_path()
73 cairo_context.fill_preserve()
140 cairo_context.close_path()
141 return cairo_context.copy_path()
153 cairo_context.paint()
168 cairo_context = self._get_context()
169 cairo_context.new_path()
185 cairo_context = self._get_context()
190 cairo_context.close_path()
199 cairo_context = self._get_context()
[all …]
/dports/graphics/drawing/drawing-0.8.4/src/tools/selection_tools/
H A Dselect_free.py68 cairo_context = self.get_context()
69 cairo_context.set_source_rgba(0.5, 0.5, 0.5, 0.5)
71 cairo_context.set_dash([3 * thickness, 3 * thickness])
72 cairo_context.set_line_width(thickness)
76 cairo_context.move_to(event_x, event_y)
77 self._pre_load_path(cairo_context.copy_path())
83 cairo_context.close_path()
84 cairo_context.stroke_preserve()
85 self._pre_load_path(cairo_context.copy_path())
88 cairo_context.line_to(int(event_x), int(event_y))
[all …]
/dports/graphics/drawing/drawing-0.8.4/src/tools/transform_tools/
H A Dabstract_transform_tool.py63 cairo_context = self.get_context()
65 cairo_context.paint()
69 cairo_context.paint()
71 cairo_context = self.get_context()
77 cairo_context.paint()
78 cairo_context.set_operator(cairo.Operator.OVER)
139 def on_draw_above(self, area, cairo_context): argument
145 cairo_context.paint()
158 cairo_context = cairo.Context(new_surface)
162 cairo_context.transform(m)
[all …]
/dports/x11/libwacom/libwacom-1.5/tools/
H A Dshow-svg-image.c81 cairo_user_to_device (cairo_context, &tx, &ty); in get_sub_location()
178 print_label (cairo_context, tablet, sub, label, flags); in print_button_labels()
288 cairo_t *cairo_context; in on_expose_cb() local
297 cairo_set_operator (cairo_context, CAIRO_OPERATOR_CLEAR); in on_expose_cb()
298 cairo_paint (cairo_context); in on_expose_cb()
299 cairo_set_operator (cairo_context, CAIRO_OPERATOR_OVER); in on_expose_cb()
305 cairo_scale (cairo_context, scale, scale); in on_expose_cb()
314 cairo_translate (cairo_context, twidth, theight); in on_expose_cb()
317 rsvg_handle_render_cairo (tablet->handle, cairo_context); in on_expose_cb()
318 print_button_labels (cairo_context, tablet); in on_expose_cb()
[all …]
/dports/net-im/coyim/coyim-0.3.11/vendor/github.com/gotk3/gotk3/pango/
H A Dpangocairo.go43 func cairo_context(cr *cairo.Context) *C.cairo_t { func
51 c := C.pango_cairo_create_context(cairo_context(cr))
59 c := C.pango_cairo_create_layout(cairo_context(cr))
68 C.pango_cairo_update_layout(cairo_context(cr), v.native())
78 C.pango_cairo_show_glyph_string(cairo_context(cr), font.native(), glyphs.native())
87 C.pango_cairo_show_glyph_item(cairo_context(cr), (*C.char)(cstr), glyph_item.native())
93 C.pango_cairo_show_layout_line(cairo_context(cr), line.native())
99 C.pango_cairo_show_layout(cairo_context(cr), layout.native())
116 C.pango_cairo_glyph_string_path(cairo_context(cr), font.native(), glyphs.native())
122 C.pango_cairo_layout_line_path(cairo_context(cr), line.native())
[all …]
/dports/x11/nwg-bar/nwg-bar-0.0.1/vendor/github.com/gotk3/gotk3/pango/
H A Dpangocairo.go43 func cairo_context(cr *cairo.Context) *C.cairo_t { func
51 c := C.pango_cairo_create_context(cairo_context(cr))
59 c := C.pango_cairo_create_layout(cairo_context(cr))
68 C.pango_cairo_update_layout(cairo_context(cr), v.native())
78 C.pango_cairo_show_glyph_string(cairo_context(cr), font.native(), glyphs.native())
87 C.pango_cairo_show_glyph_item(cairo_context(cr), (*C.char)(cstr), glyph_item.native())
93 C.pango_cairo_show_layout_line(cairo_context(cr), line.native())
99 C.pango_cairo_show_layout(cairo_context(cr), layout.native())
116 C.pango_cairo_glyph_string_path(cairo_context(cr), font.native(), glyphs.native())
122 C.pango_cairo_layout_line_path(cairo_context(cr), line.native())
[all …]
/dports/x11/nwg-drawer/nwg-drawer-0.2.8/vendor/github.com/gotk3/gotk3/pango/
H A Dpangocairo.go43 func cairo_context(cr *cairo.Context) *C.cairo_t { func
51 c := C.pango_cairo_create_context(cairo_context(cr))
59 c := C.pango_cairo_create_layout(cairo_context(cr))
68 C.pango_cairo_update_layout(cairo_context(cr), v.native())
78 C.pango_cairo_show_glyph_string(cairo_context(cr), font.native(), glyphs.native())
87 C.pango_cairo_show_glyph_item(cairo_context(cr), (*C.char)(cstr), glyph_item.native())
93 C.pango_cairo_show_layout_line(cairo_context(cr), line.native())
99 C.pango_cairo_show_layout(cairo_context(cr), layout.native())
116 C.pango_cairo_glyph_string_path(cairo_context(cr), font.native(), glyphs.native())
122 C.pango_cairo_layout_line_path(cairo_context(cr), line.native())
[all …]
/dports/x11/nwg-dock/nwg-dock-0.2.2/vendor/github.com/gotk3/gotk3/pango/
H A Dpangocairo.go43 func cairo_context(cr *cairo.Context) *C.cairo_t { func
51 c := C.pango_cairo_create_context(cairo_context(cr))
59 c := C.pango_cairo_create_layout(cairo_context(cr))
68 C.pango_cairo_update_layout(cairo_context(cr), v.native())
78 C.pango_cairo_show_glyph_string(cairo_context(cr), font.native(), glyphs.native())
87 C.pango_cairo_show_glyph_item(cairo_context(cr), (*C.char)(cstr), glyph_item.native())
93 C.pango_cairo_show_layout_line(cairo_context(cr), line.native())
99 C.pango_cairo_show_layout(cairo_context(cr), layout.native())
116 C.pango_cairo_glyph_string_path(cairo_context(cr), font.native(), glyphs.native())
122 C.pango_cairo_layout_line_path(cairo_context(cr), line.native())
[all …]
/dports/x11/nwg-menu/nwg-menu-0.1.1/vendor/github.com/gotk3/gotk3/pango/
H A Dpangocairo.go43 func cairo_context(cr *cairo.Context) *C.cairo_t { func
51 c := C.pango_cairo_create_context(cairo_context(cr))
59 c := C.pango_cairo_create_layout(cairo_context(cr))
68 C.pango_cairo_update_layout(cairo_context(cr), v.native())
78 C.pango_cairo_show_glyph_string(cairo_context(cr), font.native(), glyphs.native())
87 C.pango_cairo_show_glyph_item(cairo_context(cr), (*C.char)(cstr), glyph_item.native())
93 C.pango_cairo_show_layout_line(cairo_context(cr), line.native())
99 C.pango_cairo_show_layout(cairo_context(cr), layout.native())
116 C.pango_cairo_glyph_string_path(cairo_context(cr), font.native(), glyphs.native())
122 C.pango_cairo_layout_line_path(cairo_context(cr), line.native())
[all …]

123