| 
									
										
										
										
											2017-10-14 18:43:32 +08:00
										 |  |  | #include "..\enodes.h"
 | 
					
						
							|  |  |  | #include "..\Win\winbase.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-15 02:46:24 +08:00
										 |  |  | e2d::ERectangle::ERectangle() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | e2d::EColor::Enum e2d::ERectangle::getColor() const | 
					
						
							| 
									
										
										
										
											2017-10-14 18:43:32 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2017-10-15 02:46:24 +08:00
										 |  |  | 	return m_Color; | 
					
						
							| 
									
										
										
										
											2017-10-14 18:43:32 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-15 02:46:24 +08:00
										 |  |  | void e2d::ERectangle::setColor(EColor::Enum color) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	m_Color = color; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void e2d::ERectangle::_onRender() | 
					
						
							| 
									
										
										
										
											2017-10-14 18:43:32 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2017-10-15 02:46:24 +08:00
										 |  |  | 	D2D1_RECT_F rectangle = D2D1::RectF(0, 0, m_fWidth, m_fHeight); | 
					
						
							|  |  |  | 	GetSolidColorBrush()->SetColor(D2D1::ColorF(m_Color, m_fDisplayOpacity)); | 
					
						
							|  |  |  | 	GetRenderTarget()->FillRectangle(&rectangle, GetSolidColorBrush()); | 
					
						
							| 
									
										
										
										
											2017-10-14 18:43:32 +08:00
										 |  |  | } |