mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Add line label accessors
This commit is contained in:
		
							parent
							
								
									0481281680
								
							
						
					
					
						commit
						0108799718
					
				
					 2 changed files with 38 additions and 0 deletions
				
			
		|  | @ -41,6 +41,36 @@ LineLabel::LineLabel(QWidget* parent) : | |||
| 
 | ||||
| LineLabel::~LineLabel() {} | ||||
| 
 | ||||
| boost::gil::rgba8_pixel_t LineLabel::border_color() const | ||||
| { | ||||
|    return p->borderColor_; | ||||
| } | ||||
| 
 | ||||
| boost::gil::rgba8_pixel_t LineLabel::highlight_color() const | ||||
| { | ||||
|    return p->highlightColor_; | ||||
| } | ||||
| 
 | ||||
| boost::gil::rgba8_pixel_t LineLabel::line_color() const | ||||
| { | ||||
|    return p->lineColor_; | ||||
| } | ||||
| 
 | ||||
| std::size_t LineLabel::border_width() const | ||||
| { | ||||
|    return p->borderWidth_; | ||||
| } | ||||
| 
 | ||||
| std::size_t LineLabel::highlight_width() const | ||||
| { | ||||
|    return p->highlightWidth_; | ||||
| } | ||||
| 
 | ||||
| std::size_t LineLabel::line_width() const | ||||
| { | ||||
|    return p->lineWidth_; | ||||
| } | ||||
| 
 | ||||
| void LineLabel::set_border_width(std::size_t width) | ||||
| { | ||||
|    p->borderWidth_ = width; | ||||
|  |  | |||
|  | @ -20,6 +20,14 @@ public: | |||
|    explicit LineLabel(QWidget* parent = nullptr); | ||||
|    ~LineLabel(); | ||||
| 
 | ||||
|    boost::gil::rgba8_pixel_t border_color() const; | ||||
|    boost::gil::rgba8_pixel_t highlight_color() const; | ||||
|    boost::gil::rgba8_pixel_t line_color() const; | ||||
| 
 | ||||
|    std::size_t border_width() const; | ||||
|    std::size_t highlight_width() const; | ||||
|    std::size_t line_width() const; | ||||
| 
 | ||||
|    void set_border_color(boost::gil::rgba8_pixel_t color); | ||||
|    void set_highlight_color(boost::gil::rgba8_pixel_t color); | ||||
|    void set_line_color(boost::gil::rgba8_pixel_t color); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat