~unity-team/nux/nux.armel-fixes

« back to all changes in this revision

Viewing changes to examples/gestures.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-10-02 01:05:45 UTC
  • mfrom: (667.2.5 1056633)
  • Revision ID: tarmac-20121002010545-jphizk30nj3oe9ui
Added -Wextra to compiler flags and removed a large number of warnings about unused parameters. Code compiles clean now without warnings, except for one remaining warning (see bug #1052765).. Fixes: https://bugs.launchpad.net/bugs/1056633. Approved by Michi Henning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
  virtual ~GesturalWindow() {}
44
44
 
45
 
  virtual GestureDeliveryRequest GestureEvent(const nux::GestureEvent &event)
 
45
  virtual GestureDeliveryRequest GestureEvent(const nux::GestureEvent & /* event */)
46
46
  {
47
47
    std::cout << "GesturalWindow got GestureEvent "
48
48
              << ++event_count << "\n";
54
54
};
55
55
NUX_IMPLEMENT_OBJECT_TYPE(GesturalWindow);
56
56
 
57
 
int GesturesEventInspector(Area* area, Event* event, void* data)
 
57
int GesturesEventInspector(Area* /* area */, Event* event, void* /* data */)
58
58
{
59
59
  if (event->type < EVENT_GESTURE_BEGIN || event->type > EVENT_GESTURE_END)
60
60
    return false;
73
73
  return false;
74
74
}
75
75
 
76
 
void UserInterfaceInitialization(NThread* thread, void* InitData)
 
76
void UserInterfaceInitialization(NThread* /* thread */, void* /* InitData */)
77
77
{
78
78
  window = new GesturalWindow(TEXT("Gestural Window"), NUX_TRACKER_LOCATION);
79
79
  window->SetBaseXY(100, 20);