mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Fix default value for DisplayServer::virtual_keyboard_show Rect2 parameter
This commit is contained in:
		
							parent
							
								
									48b61159b2
								
							
						
					
					
						commit
						fd02f529fa
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -515,7 +515,7 @@
 | 
			
		|||
		<method name="virtual_keyboard_show">
 | 
			
		||||
			<return type="void" />
 | 
			
		||||
			<argument index="0" name="existing_text" type="String" />
 | 
			
		||||
			<argument index="1" name="position" type="Rect2" default="Rect2i(0, 0, 0, 0)" />
 | 
			
		||||
			<argument index="1" name="position" type="Rect2" default="Rect2(0, 0, 0, 0)" />
 | 
			
		||||
			<argument index="2" name="multiline" type="bool" default="false" />
 | 
			
		||||
			<argument index="3" name="max_length" type="int" default="-1" />
 | 
			
		||||
			<argument index="4" name="cursor_start" type="int" default="-1" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -451,7 +451,7 @@ void DisplayServer::_bind_methods() {
 | 
			
		|||
	ClassDB::bind_method(D_METHOD("ime_get_selection"), &DisplayServer::ime_get_selection);
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("ime_get_text"), &DisplayServer::ime_get_text);
 | 
			
		||||
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("virtual_keyboard_show", "existing_text", "position", "multiline", "max_length", "cursor_start", "cursor_end"), &DisplayServer::virtual_keyboard_show, DEFVAL(Rect2i()), DEFVAL(false), DEFVAL(-1), DEFVAL(-1), DEFVAL(-1));
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("virtual_keyboard_show", "existing_text", "position", "multiline", "max_length", "cursor_start", "cursor_end"), &DisplayServer::virtual_keyboard_show, DEFVAL(Rect2()), DEFVAL(false), DEFVAL(-1), DEFVAL(-1), DEFVAL(-1));
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("virtual_keyboard_hide"), &DisplayServer::virtual_keyboard_hide);
 | 
			
		||||
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("virtual_keyboard_get_height"), &DisplayServer::virtual_keyboard_get_height);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue