Add Graphics#restore_window
Requested by matias1lol.
This commit is contained in:
		
							parent
							
								
									7b9d436ede
								
							
						
					
					
						commit
						df9494e60c
					
				
					 4 changed files with 27 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -218,6 +218,15 @@ RB_METHOD(graphicsMaximizeWindow)
 | 
			
		|||
	return Qnil;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
RB_METHOD(graphicsRestoreWindow)
 | 
			
		||||
{
 | 
			
		||||
	RB_UNUSED_PARAM;
 | 
			
		||||
 | 
			
		||||
	shState->eThread().requestWindowRestore();
 | 
			
		||||
 | 
			
		||||
	return Qnil;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DEF_GRA_PROP_I(FrameRate)
 | 
			
		||||
DEF_GRA_PROP_I(FrameCount)
 | 
			
		||||
DEF_GRA_PROP_I(Brightness)
 | 
			
		||||
| 
						 | 
				
			
			@ -278,4 +287,5 @@ void graphicsBindingInit()
 | 
			
		|||
 | 
			
		||||
	_rb_define_module_function(module, "resize_window", graphicsResizeWindow);
 | 
			
		||||
	_rb_define_module_function(module, "maximize_window", graphicsMaximizeWindow);
 | 
			
		||||
	_rb_define_module_function(module, "restore_window", graphicsRestoreWindow);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue