summaryrefslogtreecommitdiffstats
path: root/ktuberling/action.h
blob: 8fdfeb8ec46c03a0148e6653bdb5b209be2d8f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* -------------------------------------------------------------
   KDE Tuberling
   Action stored in the undo buffer
   mailto:e.bischoff@noos.fr
 ------------------------------------------------------------- */


#ifndef _ACTION_H_
#define _ACTION_H_

#include "todraw.h"

class Action
{
  public:
    Action(const ToDraw *, int,
           const ToDraw *, int);
    inline const ToDraw &DrawnBefore() const {return drawnBefore;}
    inline int ZOrderBefore() const {return zOrderBefore;}
    inline const ToDraw &DrawnAfter() const {return drawnAfter;}
    inline int ZOrderAfter() const {return zOrderAfter;}

  private:
    ToDraw drawnBefore, drawnAfter;
    int zOrderBefore, zOrderAfter;
};

#endif