diff options
| author | ruki <[email protected]> | 2017-12-14 00:33:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-13 21:18:51 +0800 |
| commit | 2694f86469cdd776ba2caba9bcd7ec261457aa2c (patch) | |
| tree | cda848781d502ca90804432575d88871be1a8b55 /xmake/core/ui/canvas.lua | |
| parent | fccce25811e0a02bca4ac81a9ecadea85b2f855f (diff) | |
add core.base.dlist
Diffstat (limited to 'xmake/core/ui/canvas.lua')
| -rw-r--r-- | xmake/core/ui/canvas.lua | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/xmake/core/ui/canvas.lua b/xmake/core/ui/canvas.lua index 6511fe127..0662ccca4 100644 --- a/xmake/core/ui/canvas.lua +++ b/xmake/core/ui/canvas.lua @@ -111,37 +111,5 @@ function canvas:attr(attrs, modify) return self end ---[[ -function canvas:line(length) - return Line:create(length) -end - - -function Line:create(length) - self = self() - self._length = length - self._line = curses.new_chstr(length) - return self -end - -function Line:__len() - return self._length -end - -function Line:ch(offset, char, attrs, length) - self._line:set_ch(offset, char, attrs and calc_attr(attrs), length) - return self -end - -function Line:acs(offset, char, attrs, length) - return self:ch(offset, acs(char), attrs, length) -end - -function Line:str(offset, str, attrs, rep) - self._line:set_str(offset, str, calc_attr(attrs), rep) - return self -end -]] - -- return module return canvas |
