include/SDL_gesture.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 31 Jul 2010 20:38:37 -0700
changeset 4679 5ee96ba0c01e
parent 4678 f8431f66613d
child 5262 b530ef003506
permissions -rw-r--r--
Fixed various type and print format issues
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /**
    24  *  \file SDL_gesture.h
    25  *  
    26  *  Include file for SDL gesture event handling.
    27  */
    28 
    29 #ifndef _SDL_gesture_h
    30 #define _SDL_gesture_h
    31 
    32 #include "SDL_stdinc.h"
    33 #include "SDL_error.h"
    34 #include "SDL_video.h"
    35 
    36 #include "SDL_touch.h"
    37 
    38 
    39 #include "begin_code.h"
    40 /* Set up for C function definitions, even when using C++ */
    41 #ifdef __cplusplus
    42 /* *INDENT-OFF* */
    43 extern "C" {
    44 /* *INDENT-ON* */
    45 #endif
    46 
    47 typedef Sint64 SDL_GestureID;
    48 
    49 /* Function prototypes */
    50 
    51 /**
    52  *  \brief Begin Recording a gesture on the specified touch, or all touches (-1)
    53  *
    54  *
    55  */
    56 extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
    57 
    58 
    59 /**
    60  *  \brief Save all currently loaded Dollar Gesture templates
    61  *
    62  *
    63  */
    64 extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *src);
    65 
    66 /**
    67  *  \brief Save a currently loaded Dollar Gesture template
    68  *
    69  *
    70  */
    71 extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src);
    72 
    73 
    74 /**
    75  *  \brief Load Dollar Gesture templates from a file
    76  *
    77  *
    78  */
    79 extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);
    80 
    81 
    82 /* Ends C function definitions when using C++ */
    83 #ifdef __cplusplus
    84 /* *INDENT-OFF* */
    85 }
    86 /* *INDENT-ON* */
    87 #endif
    88 #include "close_code.h"
    89 
    90 #endif /* _SDL_gesture_h */
    91 
    92 /* vi: set ts=4 sw=4 expandtab: */