~oif-packaging/frame/debian

« back to all changes in this revision

Viewing changes to src/frame.h

  • Committer: Daniel d'Andrada
  • Date: 2012-11-08 16:04:20 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: daniel.dandrada@canonical.com-20121108160420-ql9g1jm5t9xifyxs
Tags: upstream-2.4.3
ImportĀ upstreamĀ versionĀ 2.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  virtual ~UFFrame_() {}
34
34
};
35
35
 
 
36
struct UFBackendFrame_ {
 
37
  UFBackendFrame_(oif::frame::UFFrame* frame)
 
38
    : shared_ptr(frame) {}
 
39
 
 
40
  oif::frame::SharedUFFrame shared_ptr;
 
41
};
 
42
 
36
43
namespace oif {
37
44
namespace frame {
38
45
 
39
46
class UFFrame : public UFFrame_, public Property<UFFrameProperty> {
40
47
 public:
41
 
  UFFrame() : prev_(), window_(), touches_array_(), touches_map_() {}
42
 
  UFFrame(const SharedWindow& window, const SharedUFFrame& prev);
 
48
  UFFrame() : prev_(), touches_array_(), touches_map_() {}
 
49
  UFFrame(const SharedUFFrame& prev);
43
50
 
44
51
  UFTouch* CopyTouch(UFTouchId touchid, UFTouchState new_state) const;
45
52
  bool IsTouchOwned(UFTouchId touchid);
 
53
  UFStatus GiveTouch(SharedUFTouch& touch);
46
54
  void UpdateTouch(const SharedUFTouch& touch);
47
55
  bool IsEnded() const;
 
56
  unsigned int GetNumTouches() const { return touches_array_.size(); }
48
57
  UFStatus GetPreviousTouchValue(const UFTouch* touch, UFAxisType type,
49
58
                                 float* value) const;
50
59
  UFStatus GetPreviousTouchProperty(const UFTouch* touch,
51
60
                                    UFTouchProperty property, void* value) const;
52
61
  UFStatus GetTouchByIndex(unsigned int index, ::UFTouch* touch) const;
 
62
  SharedUFTouch* GetSharedTouchById(UFTouchId touch_id);
53
63
  UFStatus GetTouchById(UFTouchId touch_id, ::UFTouch* touch) const;
54
64
  void ReleasePreviousFrame();
55
65
 
58
68
 
59
69
 private:
60
70
  SharedUFFrame prev_;
61
 
  SharedWindow window_;
62
71
  std::vector<SharedUFTouch> touches_array_;
63
72
  std::map<UFTouchId, unsigned int> touches_map_;
64
73
};