Piano / inc /

piano-structs.h

  1. /*
  2. * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the License);
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #ifndef __DEF_PIANO_STRUCTS_H__
  18. #define __DEF_PIANO_STRUCTS_H__
  19.  
  20. #include "main-app.h"
  21. #include "view/window.h"
  22. #include <player.h>
  23. #include <Elementary.h>
  24.  
  25. typedef enum
  26. {
  27. PIANO_NOTE_WHITE,
  28. PIANO_NOTE_BLACK
  29. } piano_note_type_e;
  30.  
  31. struct note_struct;
  32.  
  33. typedef struct
  34. {
  35. Evas_Object *button;
  36. piano_note_type_e type;
  37. char sound_name[MAXNAMLEN];
  38. app_data *ad;
  39. player_h player;
  40. void *next;
  41. void *prev;
  42. Eina_Rectangle rect;
  43. }note_struct;
  44.  
  45. #endif // __DEF_PIANO_STRUCTS_H__