mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Documentation for NotificationManager
This commit is contained in:
		
							parent
							
								
									1d0b947fa8
								
							
						
					
					
						commit
						95d65f9f30
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -150,7 +150,9 @@ private: | |||
| 		const int                duration; | ||||
| 		const std::string        text1; | ||||
| 		const std::string        hypertext; | ||||
| 		// Callback for hypertext - returns if notif shall close.
 | ||||
| 		// Callback for hypertext - returns true if notification should close after triggering
 | ||||
| 		// Usually sends event to UI thread thru wxEvtHandler.
 | ||||
| 		// Examples in basic_notifications.
 | ||||
| 		std::function<bool(wxEvtHandler*)> callback { nullptr }; | ||||
| 		const std::string        text2; | ||||
| 	}; | ||||
|  | @ -227,7 +229,8 @@ private: | |||
| 		void         render_left_sign(ImGuiWrapper& imgui); | ||||
| 		virtual void render_minimize_button(ImGuiWrapper& imgui, | ||||
| 			                                const float win_pos_x, const float win_pos_y); | ||||
| 		// Hypertext action, returns if close notification
 | ||||
| 		// Hypertext action, returns true if notification should close.
 | ||||
| 		// Action is stored in NotificationData::callback as std::function<bool(wxEvtHandler*)>
 | ||||
| 		virtual bool on_text_click(); | ||||
| 
 | ||||
| 		const NotificationData m_data; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik