| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2020-09-09 21:53:24 +02:00
										 |  |  | <class name="Shortcut" inherits="Resource" version="4.0"> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2017-11-26 14:58:38 -05:00
										 |  |  | 		A shortcut for binding input. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2017-11-26 14:58:38 -05:00
										 |  |  | 		A shortcut for binding input. | 
					
						
							|  |  |  | 		Shortcuts are commonly used for interacting with a [Control] element from a [InputEvent]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<methods> | 
					
						
							|  |  |  | 		<method name="get_as_text" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="String"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2018-09-16 10:52:21 -07:00
										 |  |  | 				Returns the shortcut's [InputEvent] as a [String]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="is_shortcut" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="bool"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="event" type="InputEvent"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2018-09-16 10:52:21 -07:00
										 |  |  | 				Returns [code]true[/code] if the shortcut's [InputEvent] equals [code]event[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="is_valid" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="bool"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2018-12-20 13:46:54 +01:00
										 |  |  | 				If [code]true[/code], this shortcut is valid. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							|  |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2019-07-15 20:42:47 +02:00
										 |  |  | 		<member name="shortcut" type="InputEvent" setter="set_shortcut" getter="get_shortcut"> | 
					
						
							| 
									
										
										
										
											2018-09-16 10:52:21 -07:00
										 |  |  | 			The shortcut's [InputEvent]. | 
					
						
							| 
									
										
										
										
											2017-11-26 14:58:38 -05:00
										 |  |  | 			Generally the [InputEvent] is a keyboard key, though it can be any [InputEvent]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							|  |  |  | 	<constants> | 
					
						
							|  |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |