 d3ff787864
			
		
	
	
		d3ff787864
		
			
		
	
	
	
	
		
			
			* GUI: abolish API injection into instances. Update usage by 3rd party apps. * GUI: update documentation. Cleanup api usage. Adjust status bar item spacing.
		
			
				
	
	
		
			34 lines
		
	
	
		
			530 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			530 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "canvas.h"
 | |
| 
 | |
| /*
 | |
|  * Allocate memory and initialize canvas
 | |
|  */
 | |
| Canvas* canvas_init();
 | |
| 
 | |
| /*
 | |
|  * Free canvas memory
 | |
|  */
 | |
| void canvas_free(Canvas* canvas);
 | |
| 
 | |
| /*
 | |
|  * Reset canvas drawing tools configuration
 | |
|  */
 | |
| void canvas_reset(Canvas* canvas);
 | |
| 
 | |
| /*
 | |
|  * Commit canvas. Send buffer to display
 | |
|  */
 | |
| void canvas_commit(Canvas* canvas);
 | |
| 
 | |
| /*
 | |
|  * Set drawing region relative to real screen buffer
 | |
|  */
 | |
| void canvas_frame_set(
 | |
|     Canvas* canvas,
 | |
|     uint8_t offset_x,
 | |
|     uint8_t offset_y,
 | |
|     uint8_t width,
 | |
|     uint8_t height);
 |