MenuDsl

com.bilalfazlani.swiftbar4s.dsl.MenuDsl
trait MenuDsl extends Plugin

Attributes

Graph
Supertypes
class Plugin
class Object
trait Matchable
class Any
Known subtypes
trait PluginDsl

Members list

Type members

Classlikes

case object DefaultValue

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
enum Iconize

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object topLevel

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
topLevel.type

Types

type AlternateDsl = Boolean | DefaultValue.type
type ColorDsl = String | DefaultValue.type
type FontDsl = String | DefaultValue.type
type LengthDsl = Int | DefaultValue.type
type ShortcutDsl = String | None.type
type TextSizeDsl = Int | DefaultValue.type
type ToolTipDsl = String | None.type

Value members

Concrete methods

infix def ---: () ?=> MenuBuilder
def action(text: String, action: String, metadata: Option[String], showTerminal: Boolean, refresh: Boolean, color: ColorDsl, textSize: TextSizeDsl, font: FontDsl, length: LengthDsl, image: Image, templateImage: Image, checked: Boolean, ansi: Boolean, iconize: Iconize, tooltip: ToolTipDsl, alternate: AlternateDsl, shortcut: ShortcutDsl): () ?=> MenuBuilder
def appMenu: Menu | Publisher[Menu]
def build(items: Seq[AllowedType]): Menu
def shellCommand(text: String, executable: String, showTerminal: Boolean, refresh: Boolean, color: ColorDsl, textSize: TextSizeDsl, font: FontDsl, length: LengthDsl, image: Image, templateImage: Image, checked: Boolean, ansi: Boolean, iconize: Iconize, tooltip: ToolTipDsl, alternate: AlternateDsl, shortcut: ShortcutDsl, params: String*): () ?=> MenuBuilder
def text(text: String, color: ColorDsl, textSize: TextSizeDsl, font: FontDsl, length: LengthDsl, image: Image, templateImage: Image, checked: Boolean, ansi: Boolean, iconize: Iconize, tooltip: ToolTipDsl, shortcut: ShortcutDsl): () ?=> MenuBuilder

Inherited methods

Attributes

Inherited from:
Plugin
def main(args: Array[String]): Unit

Attributes

Inherited from:
Plugin

Inherited fields

val parser: Parser

Attributes

Inherited from:
Plugin

Extensions

Extensions

extension [T](value: T)(value: T)
infix def ifDark[A <: T](value2: A)(using Option[SwiftBarRuntime]): T