mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:52:43 +00:00 
			
		
		
		
	LibDraw: Put all classes in the Gfx namespace
I started adding things to a Draw namespace, but it somehow felt really wrong seeing Draw::Rect and Draw::Bitmap, etc. So instead, let's rename the library to LibGfx. :^)
This commit is contained in:
		
							parent
							
								
									939a605334
								
							
						
					
					
						commit
						11580babbf
					
				
					 269 changed files with 1513 additions and 1315 deletions
				
			
		|  | @ -34,19 +34,19 @@ public: | |||
|     static NonnullRefPtr<GIconImpl> create() { return adopt(*new GIconImpl); } | ||||
|     ~GIconImpl() {} | ||||
| 
 | ||||
|     const GraphicsBitmap* bitmap_for_size(int) const; | ||||
|     void set_bitmap_for_size(int, RefPtr<GraphicsBitmap>&&); | ||||
|     const Gfx::Bitmap* bitmap_for_size(int) const; | ||||
|     void set_bitmap_for_size(int, RefPtr<Gfx::Bitmap>&&); | ||||
| 
 | ||||
| private: | ||||
|     GIconImpl() {} | ||||
|     HashMap<int, RefPtr<GraphicsBitmap>> m_bitmaps; | ||||
|     HashMap<int, RefPtr<Gfx::Bitmap>> m_bitmaps; | ||||
| }; | ||||
| 
 | ||||
| class GIcon { | ||||
| public: | ||||
|     GIcon(); | ||||
|     explicit GIcon(RefPtr<GraphicsBitmap>&&); | ||||
|     explicit GIcon(RefPtr<GraphicsBitmap>&&, RefPtr<GraphicsBitmap>&&); | ||||
|     explicit GIcon(RefPtr<Gfx::Bitmap>&&); | ||||
|     explicit GIcon(RefPtr<Gfx::Bitmap>&&, RefPtr<Gfx::Bitmap>&&); | ||||
|     explicit GIcon(const GIconImpl&); | ||||
|     GIcon(const GIcon&); | ||||
|     ~GIcon() {} | ||||
|  | @ -60,8 +60,8 @@ public: | |||
|         return *this; | ||||
|     } | ||||
| 
 | ||||
|     const GraphicsBitmap* bitmap_for_size(int size) const { return m_impl->bitmap_for_size(size); } | ||||
|     void set_bitmap_for_size(int size, RefPtr<GraphicsBitmap>&& bitmap) { m_impl->set_bitmap_for_size(size, move(bitmap)); } | ||||
|     const Gfx::Bitmap* bitmap_for_size(int size) const { return m_impl->bitmap_for_size(size); } | ||||
|     void set_bitmap_for_size(int size, RefPtr<Gfx::Bitmap>&& bitmap) { m_impl->set_bitmap_for_size(size, move(bitmap)); } | ||||
| 
 | ||||
|     const GIconImpl& impl() const { return *m_impl; } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling