Пример #1
0
 public PalmMuteBounds(PalmMute pm, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     palm_mute   = pm;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
        private TreeNode buildPalmMute(PalmMute palm_mute, Note note, IBounds bounds)
        {
            var bounded = new StaticSingleBounded(new PalmMuteBounds(palm_mute, note, bounds, info, new UnorderedDelegate()));
            var handler = new StaticEffectMouseHandler(bounded.Bounds, new UnorderedMouseDelegate());
            var drawing = new StaticDrawingVisual(new PalmMuteDrawingStrategy(palm_mute, bounded.Bounds, info, new UnorderedDelegate()));

            return(new EffectTreeNode(palm_mute, bounded, handler, drawing));
        }
Пример #3
0
        public PalmMuteDrawingStrategy(PalmMute pm, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info      = v_info;
            palm_mute = pm;
        }
Пример #4
0
 public override IEffect createEffect()
 {
     return(PalmMute.createInstance());
 }
Пример #5
0
 public IEffect genPalmMute(CommandSelections selection)
 {
     return(PalmMute.createInstance());
 }