Skip to content

Commit 73e98f4

Browse files
aidinioactionless
authored andcommitted
Add tests
1 parent b85a0d9 commit 73e98f4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

lib/gears/shape.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ function module.partially_rounded_rect(cr, width, height, tl, tr, br, bl, rad)
318318
end
319319

320320
--- A rounded rect with individually defined corner radii.
321+
--
322+
-- @DOC_gears_shape_individually_rounded_rect_EXAMPLE@
323+
--
321324
-- @param cr A cairo context
322325
-- @tparam number width The shape width
323326
-- @tparam number height The shape height
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--DOC_GEN_IMAGE --DOC_HIDE
2+
local shape,cr,show = ... --DOC_HIDE
3+
4+
shape.individually_rounded_rect(cr, 70, 70, 0, 10, 20, 30)
5+
show(cr) --DOC_HIDE
6+
7+
shape.individually_rounded_rect(cr, 70, 70, 10, 0, 35, 5)
8+
show(cr) --DOC_HIDE
9+
10+
shape.individually_rounded_rect(cr, 70, 70, 30, 20, 10, 1)
11+
show(cr) --DOC_HIDE
12+
13+
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

0 commit comments

Comments
 (0)