# Rewrite 5
- Move Libraries Source into pd directory and give them all their own CMakeLists.txt - Partial rewrite core (color, autogenerated vec), lithium (now uses UNIQUE PTR for Commands), UI7 - Use MenuV2 as new standart in UI7 - Implementz ViewPort Pre alpha to UI7 - Add Line Drawing to DrawList (not Working) - Implement a Complete new drievrs API (static Drivers) - NO SUPPORT FOR SHARED LIBRARY BUILDS IN VERSION 5 YET - Add Tools to Autogenerate Headers and Stuff
This commit is contained in:
		
							
								
								
									
										6
									
								
								include/pd/ui7/container/dynobj.hpp
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										6
									
								
								include/pd/ui7/container/dynobj.hpp
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -44,12 +44,14 @@ class PD_UI7_API DynObj : public Container { | ||||
|    * @param pos Base Position | ||||
|    * @param lr Reference to the Renderer | ||||
|    */ | ||||
|   DynObj(std::function<void(UI7::IO::Ref, UI7::DrawList::Ref, Container*)> | ||||
|   DynObj(std::function<void(UI7::IO::Ref, Li::DrawList::Ref, Container*)> | ||||
|              RenderFunc) { | ||||
|     pRenFun = RenderFunc; | ||||
|   } | ||||
|   ~DynObj() = default; | ||||
|  | ||||
|   PD_SHARED(DynObj); | ||||
|  | ||||
|   /** Return true if butten is pressed*/ | ||||
|   bool IsPressed() { return pressed; } | ||||
|   /** | ||||
| @@ -69,7 +71,7 @@ class PD_UI7_API DynObj : public Container { | ||||
|  private: | ||||
|   UI7Color color = UI7Color_Button;  ///< current button color | ||||
|   bool pressed = false;              ///< ispressed value | ||||
|   std::function<void(UI7::IO::Ref, UI7::DrawList::Ref, Container*)> pRenFun; | ||||
|   std::function<void(UI7::IO::Ref, Li::DrawList::Ref, Container*)> pRenFun; | ||||
| }; | ||||
| }  // namespace UI7 | ||||
| }  // namespace PD | ||||
		Reference in New Issue
	
	Block a user