actfw_raspberrypi.vc4 package¶
Subpackages¶
Submodules¶
actfw_raspberrypi.vc4.display module¶
actfw_raspberrypi.vc4.dispmanx module¶
- class actfw_raspberrypi.vc4.dispmanx.DISPMANX_MODEINFO_T¶
- Bases: - _ctypes.Structure- display_num¶
- Structure/Union member 
 - height¶
- Structure/Union member 
 - input_format¶
- Structure/Union member 
 - transform¶
- Structure/Union member 
 - width¶
- Structure/Union member 
 
- class actfw_raspberrypi.vc4.dispmanx.Display(display_num=0)¶
- Bases: - object- Display using VideoCore4 dispmanx - close()¶
 - get_info()¶
- Get display information. - Returns
- display information 
- Return type
- DISPMANX_MODEINFO_T
 
 - open_window(dst, size, layer)¶
- Open new window. - Parameters
- dst ((int, int, int, int)) – destination rectangle (left, top, width, height) 
- size ((int, int)) – window size (width, height) 
- layer (int) – layer 
 
- Returns
- window 
- Return type
- Window
 
 - size()¶
- Get display size. - Returns
- (width, height) 
- Return type
- ((int, int)) 
 
 
- class actfw_raspberrypi.vc4.dispmanx.VC_DISPMANX_ALPHA_T¶
- Bases: - _ctypes.Structure- flags¶
- Structure/Union member 
 - height¶
- Structure/Union member 
 - mask¶
- Structure/Union member 
 - opacity¶
- Structure/Union member 
 
- class actfw_raspberrypi.vc4.dispmanx.VC_RECT_T¶
- Bases: - _ctypes.Structure- height¶
- Structure/Union member 
 - width¶
- Structure/Union member 
 - x¶
- Structure/Union member 
 - y¶
- Structure/Union member 
 
- class actfw_raspberrypi.vc4.dispmanx.Window(display, dst, size, layer)¶
- Bases: - object- Double buffered window. - blit(image)¶
- Blit image to window. - Parameters
- image (bytes) – RGB image with which size is the same as window size 
 
 - clear(rgb=(0, 0, 0))¶
- Clear window. - Parameters
- rgb ((int, int, int)) – clear color 
 
 - close()¶
- Close window. 
 - set_layer(layer)¶
- Set window layer. - Parameters
- layer (int) – new layer 
 
 - swap_layer(window)¶
- Swap window layer. - Parameters
- window ( - Window) – target window
 
 - update()¶
- Update window.