| 37 | } |
| 38 | |
| 39 | void Label::SetLineWrap( bool wrap ) { |
| 40 | if( wrap == m_wrap ) { |
| 41 | return; |
| 42 | } |
| 43 | |
| 44 | m_wrap = wrap; |
| 45 | |
| 46 | RequestResize(); |
| 47 | |
| 48 | if( wrap ) { |
| 49 | WrapText(); |
| 50 | } |
| 51 | else { |
| 52 | m_wrapped_text = L""; |
| 53 | } |
| 54 | |
| 55 | Invalidate(); |
| 56 | } |
| 57 | |
| 58 | bool Label::GetLineWrap() const { |
| 59 | return m_wrap; |