Add Ui::GL::Rect::empty method.
This commit is contained in:
		
							parent
							
								
									808f8c7dea
								
							
						
					
					
						commit
						52d5934dff
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -59,6 +59,10 @@ public:
 | 
				
			||||||
		return _y + _height;
 | 
							return _y + _height;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						[[nodiscard]] bool empty() const {
 | 
				
			||||||
 | 
							return (_width <= 0) || (_height <= 0);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
	float _x = 0;
 | 
						float _x = 0;
 | 
				
			||||||
	float _y = 0;
 | 
						float _y = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue