blob: a91e7dca3a033cea479076833638d3971c16f694 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.model.TabWidget
import at.hannibal2.skyhanni.utils.LorenzUtils.isAnyOf
/** The events get send on change of the widget and on island switch */
open class WidgetUpdateEvent(
val widget: TabWidget,
val lines: List<String>,
) : LorenzEvent() {
fun isWidget(widgetType: TabWidget) = widget == widgetType
fun isWidget(vararg widgetType: TabWidget) = widget.isAnyOf(*widgetType)
fun isClear() = lines.isEmpty()
}
|