| 141 | } |
| 142 | |
| 143 | std::string print() const |
| 144 | { |
| 145 | std::string result; |
| 146 | |
| 147 | if (mValue & Left) |
| 148 | { |
| 149 | if (mValue & Right) |
| 150 | result = "HStretch"; |
| 151 | else |
| 152 | result = "Left"; |
| 153 | } |
| 154 | else if (mValue & Right) |
| 155 | result = "Right"; |
| 156 | else |
| 157 | result = "HCenter"; |
| 158 | |
| 159 | if (mValue & Top) |
| 160 | { |
| 161 | if (mValue & Bottom) |
| 162 | result += " VStretch"; |
| 163 | else |
| 164 | result += " Top"; |
| 165 | } |
| 166 | else if (mValue & Bottom) |
| 167 | result += " Bottom"; |
| 168 | else |
| 169 | result += " VCenter"; |
| 170 | |
| 171 | return result; |
| 172 | } |
| 173 | |
| 174 | friend std::ostream& operator<<(std::ostream& _stream, const Align& _value) |
| 175 | { |
no outgoing calls
no test coverage detected