| 131 | // ModEntryButton |
| 132 | |
| 133 | ModEntryButton::ModEntryButton(Element *parent, uint32_t mod_index) : Element(parent, Events(EventType::Click, EventType::Hover, EventType::Focus, EventType::Drag)) { |
| 134 | this->mod_index = mod_index; |
| 135 | |
| 136 | set_drag(Drag::Drag); |
| 137 | enable_focus(); |
| 138 | |
| 139 | ContextId context = get_current_context(); |
| 140 | view = context.create_element<ModEntryView>(this); |
| 141 | } |
| 142 | |
| 143 | ModEntryButton::~ModEntryButton() { |
| 144 |