| 60 | } |
| 61 | |
| 62 | void ClickButton::UpdateWidth() |
| 63 | { |
| 64 | if (mDisplayStyle == ButtonDisplayStyle::kText || mDisplayStyle == ButtonDisplayStyle::kSampleIcon || mDisplayStyle == ButtonDisplayStyle::kFolderIcon) |
| 65 | { |
| 66 | mWidth = GetStringWidth(GetDisplayName()) + 3 + .25f * strnlen(GetDisplayName().c_str(), 50); |
| 67 | if (mDisplayStyle == ButtonDisplayStyle::kSampleIcon || mDisplayStyle == ButtonDisplayStyle::kFolderIcon) |
| 68 | mWidth += 20; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | void ClickButton::Render() |
| 73 | { |
nothing calls this directly
no test coverage detected