Dart Documentationdock_spawnDockWheelItem

DockWheelItem Class

Constructors

Code new DockWheelItem(DockWheel wheel, String id) #

DockWheelItem(this.wheel, this.id) {
  var wheelType = id.replaceAll("-s", "");
  element = new DivElement();
  element.classes.add("dock-wheel-item");
  element.classes.add("disable-selection");
  element.classes.add("dock-wheel-$wheelType");
  element.classes.add("dock-wheel-$wheelType-icon");
  hoverIconClass = "dock-wheel-$wheelType-icon-hover";
  mouseOverHandler = onMouseMoved;
  mouseOutHandler = onMouseOut;
  element.on.mouseOver.add(mouseOverHandler);
  element.on.mouseOut.add(mouseOutHandler);
}

Methods

Code void onMouseMoved(MouseEvent e) #

void onMouseMoved(MouseEvent e) {
  active = true;
  element.classes.add(hoverIconClass);
  wheel.onMouseOver(this, e);
}

Code void onMouseOut(MouseEvent e) #

void onMouseOut(MouseEvent e) {
  active = false;
  element.classes.remove(hoverIconClass);
  wheel.onMouseOut(this, e);
}

Fields

Code bool active #

bool active = false;

Code DivElement element #

DivElement element;

Code String hoverIconClass #

String hoverIconClass;

Code String id #

String id;

Code var mouseOutHandler #

var mouseOutHandler;

Code var mouseOverHandler #

var mouseOverHandler;

Code var mouseUpHandler #

var mouseUpHandler;

Code DockWheel wheel #

DockWheel wheel;