| 
									
										
										
										
											2022-10-03 16:25:42 +00:00
										 |  |  | #ifndef MASKELEMENT_H
 | 
					
						
							|  |  |  | #define MASKELEMENT_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "styledelement.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace lunasvg { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class LayoutMask; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 10:37:05 +00:00
										 |  |  | class MaskElement : public StyledElement { | 
					
						
							| 
									
										
										
										
											2022-10-03 16:25:42 +00:00
										 |  |  | public: | 
					
						
							|  |  |  |     MaskElement(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     Length x() const; | 
					
						
							|  |  |  |     Length y() const; | 
					
						
							|  |  |  |     Length width() const; | 
					
						
							|  |  |  |     Length height() const; | 
					
						
							|  |  |  |     Units maskUnits() const; | 
					
						
							|  |  |  |     Units maskContentUnits() const; | 
					
						
							|  |  |  |     std::unique_ptr<LayoutMask> getMasker(LayoutContext* context) const; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     std::unique_ptr<Node> clone() const; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } // namespace lunasvg
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // MASKELEMENT_H
 |