mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much better visual clue about what type of metric is being used.
This commit is contained in:
		
							parent
							
								
									656b01eb0f
								
							
						
					
					
						commit
						116cf92156
					
				
					 212 changed files with 1144 additions and 1144 deletions
				
			
		|  | @ -224,19 +224,19 @@ Variant::Variant(Color color) | |||
|     m_value.as_color = color.value(); | ||||
| } | ||||
| 
 | ||||
| Variant::Variant(const Gfx::Point& point) | ||||
| Variant::Variant(const Gfx::IntPoint& point) | ||||
|     : m_type(Type::Point) | ||||
| { | ||||
|     m_value.as_point = { point.x(), point.y() }; | ||||
| } | ||||
| 
 | ||||
| Variant::Variant(const Gfx::Size& size) | ||||
| Variant::Variant(const Gfx::IntSize& size) | ||||
|     : m_type(Type::Size) | ||||
| { | ||||
|     m_value.as_size = { size.width(), size.height() }; | ||||
| } | ||||
| 
 | ||||
| Variant::Variant(const Gfx::Rect& rect) | ||||
| Variant::Variant(const Gfx::IntRect& rect) | ||||
|     : m_type(Type::Rect) | ||||
| { | ||||
|     m_value.as_rect = (const RawRect&)rect; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling