MicroPython/framebuf.py

changeset 2
2c3f30af031d
equal deleted inserted replaced
1:afcd3f0662b1 2:2c3f30af031d
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module containing stubs for API generation of the def 'framebuf' module.
8 """
9
10 MONO_VLSB = 0
11 MONO_HLSB = 0
12 MONO_HMSB = 0
13 RGB565 = 0
14 GS2_HMSB = 0
15 GS4_HMSB = 0
16 GS8 = 0
17
18 class FrameBuffer():
19 def __init__(self, buffer, width, height, format, stride=None):
20 pass
21
22 def fill(self, c):
23 pass
24
25 def pixel(self, x, y, c=None):
26 pass
27
28 def hline(self, x, y, w, c):
29 pass
30
31 def vline(self, x, y, h, c):
32 pass
33
34 def line(self, x1, y1, x2, y2, c):
35 pass
36
37 def rect(self, x, y, w, h, c):
38 pass
39
40 def fill_rect(self, x, y, w, h, c):
41 pass
42
43 def text(self, s, x, y, c=None):
44 pass
45
46 def scroll(self, xstep, ystep):
47 pass
48
49 def blit(self, fbuf, x, y, key=None):
50 pass

eric ide

mercurial