| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | #include "..\e2dnode.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | e2d::TextStyle::TextStyle()  | 
					
						
							|  |  |  | 	: fontFamily("") | 
					
						
							|  |  |  | 	, fontSize(22) | 
					
						
							|  |  |  | 	, color(Color::WHITE) | 
					
						
							| 
									
										
										
										
											2018-04-22 13:15:57 +08:00
										 |  |  | 	, fontWeight(FontWeight::NORMAL) | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | 	, italic(false) | 
					
						
							| 
									
										
										
										
											2018-04-24 21:22:34 +08:00
										 |  |  | 	, alignment(TextAlign::LEFT) | 
					
						
							|  |  |  | 	, wrapping(false) | 
					
						
							|  |  |  | 	, wrappingWidth(0.0) | 
					
						
							|  |  |  | 	, lineSpacing(0.0) | 
					
						
							| 
									
										
										
										
											2018-04-22 14:08:29 +08:00
										 |  |  | 	, hasUnderline(false) | 
					
						
							|  |  |  | 	, hasStrikethrough(false) | 
					
						
							|  |  |  | 	, hasOutline(true) | 
					
						
							| 
									
										
										
										
											2018-04-22 16:14:04 +08:00
										 |  |  | 	, outlineColor(Color(Color::BLACK, 0.5)) | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | 	, outlineWidth(1.0) | 
					
						
							|  |  |  | 	, outlineJoin(LineJoin::ROUND) | 
					
						
							|  |  |  | {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | e2d::TextStyle::TextStyle( | 
					
						
							| 
									
										
										
										
											2018-05-07 15:48:06 +08:00
										 |  |  | 	const String& fontFamily, | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | 	double fontSize,  | 
					
						
							| 
									
										
										
										
											2018-04-22 13:15:57 +08:00
										 |  |  | 	Color color,  | 
					
						
							|  |  |  | 	UINT32 fontWeight,  | 
					
						
							| 
									
										
										
										
											2018-04-24 21:22:34 +08:00
										 |  |  | 	bool italic, | 
					
						
							|  |  |  | 	TextAlign alignment, | 
					
						
							|  |  |  | 	bool wrapping, | 
					
						
							|  |  |  | 	double wrappingWidth, | 
					
						
							|  |  |  | 	double lineSpacing, | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | 	bool hasUnderline,  | 
					
						
							|  |  |  | 	bool hasStrikethrough,  | 
					
						
							| 
									
										
										
										
											2018-04-22 14:08:29 +08:00
										 |  |  | 	bool hasOutline, | 
					
						
							| 
									
										
										
										
											2018-04-22 13:15:57 +08:00
										 |  |  | 	Color outlineColor, | 
					
						
							|  |  |  | 	double outlineWidth, | 
					
						
							| 
									
										
										
										
											2018-04-24 21:22:34 +08:00
										 |  |  | 	LineJoin outlineJoin | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | ) | 
					
						
							|  |  |  | 	: fontFamily(fontFamily) | 
					
						
							|  |  |  | 	, fontSize(fontSize) | 
					
						
							|  |  |  | 	, color(color) | 
					
						
							| 
									
										
										
										
											2018-04-22 13:15:57 +08:00
										 |  |  | 	, fontWeight(fontWeight) | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | 	, italic(italic) | 
					
						
							| 
									
										
										
										
											2018-04-24 21:22:34 +08:00
										 |  |  | 	, alignment(alignment) | 
					
						
							|  |  |  | 	, wrapping(wrapping) | 
					
						
							|  |  |  | 	, wrappingWidth(wrappingWidth) | 
					
						
							|  |  |  | 	, lineSpacing(lineSpacing) | 
					
						
							| 
									
										
										
										
											2018-04-22 14:08:29 +08:00
										 |  |  | 	, hasUnderline(hasUnderline) | 
					
						
							|  |  |  | 	, hasStrikethrough(hasStrikethrough) | 
					
						
							|  |  |  | 	, hasOutline(hasOutline) | 
					
						
							| 
									
										
										
										
											2018-04-22 00:33:20 +08:00
										 |  |  | 	, outlineColor(outlineColor) | 
					
						
							|  |  |  | 	, outlineWidth(outlineWidth) | 
					
						
							|  |  |  | 	, outlineJoin(outlineJoin) | 
					
						
							|  |  |  | {} |