 389ff92cc1
			
		
	
	
		389ff92cc1
		
			
		
	
	
	
	
		
			
			* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
		
			
				
	
	
		
			32 lines
		
	
	
		
			719 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			719 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "text_input_vm.h"
 | |
| 
 | |
| TextInputVM::TextInputVM() {
 | |
|     text_input = text_input_alloc();
 | |
| }
 | |
| 
 | |
| TextInputVM::~TextInputVM() {
 | |
|     text_input_free(text_input);
 | |
| }
 | |
| 
 | |
| View* TextInputVM::get_view() {
 | |
|     return text_input_get_view(text_input);
 | |
| }
 | |
| 
 | |
| void TextInputVM::clean() {
 | |
|     text_input_clean(text_input);
 | |
| }
 | |
| 
 | |
| void TextInputVM::set_result_callback(
 | |
|     TextInputCallback callback,
 | |
|     void* callback_context,
 | |
|     char* text,
 | |
|     uint8_t max_text_length,
 | |
|     bool clear_default_text) {
 | |
|     text_input_set_result_callback(
 | |
|         text_input, callback, callback_context, text, max_text_length, clear_default_text);
 | |
| }
 | |
| 
 | |
| void TextInputVM::set_header_text(const char* text) {
 | |
|     text_input_set_header_text(text_input, text);
 | |
| }
 |