示例#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());
 }
 public IEffect genPalmMute(CommandSelections selection)
 {
     return(PalmMute.createInstance());
 }