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