Inheritance: Widget, IKeyEventListener, IMouseClickEventListener, IMouseScrollEventListener
Example #1
0
 protected override void assignMenuItemInformation(MenuItem item)
 {
     Bounds itemBounds = ItemBounds (item);
     item.Bounds.Position = itemBounds.Position;
     item.Bounds.Size = itemBounds.Size;
     base.assignMenuItemInformation (item);
 }
Example #2
0
 /// <summary>
 /// Die von der Auflösung unabhängigen Ausmaße der Menüeinträge.
 /// </summary>
 public Bounds ItemBounds(MenuItem item)
 {
     return new Bounds (
                position: new ScreenPoint (Screen, () => verticalRelativeItemPosition (item.ItemOrder)),
                size: new ScreenPoint (Screen, () => verticalRelativeItemSize (item.ItemOrder))
            );
 }