import Toybox.Graphics; import Toybox.Lang; import Toybox.WatchUi; class IBackground extends Drawable { typedef BackgroundParams as { :Identifier as Object, }; enum BackgroundStyleType { SOLID_BACKGROUND, } static function getBackground(style as BackgroundStyleType) as IBackground { switch (style) { case SOLID_BACKGROUND: default: return new SolidBackground({}); } } function initialize(options as BackgroundParams) { Drawable.initialize({:identifier => options[:Identifier]}); } function draw(dc as Dc) as Void { drawBackground(dc); } function drawBackground(dc as Dc) as Void {} }