include/SDL_shape.h
changeset 7191 75360622e65f
parent 6885 700f1b25f77f
child 7480 d0bfce3937e0
     1.1 --- a/include/SDL_shape.h	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/include/SDL_shape.h	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -31,9 +31,7 @@
     1.4  #include "begin_code.h"
     1.5  /* Set up for C function definitions, even when using C++ */
     1.6  #ifdef __cplusplus
     1.7 -/* *INDENT-OFF* */
     1.8  extern "C" {
     1.9 -/* *INDENT-ON* */
    1.10  #endif
    1.11  
    1.12  /** \file SDL_shape.h
    1.13 @@ -47,28 +45,28 @@
    1.14  
    1.15  /**
    1.16   *  \brief Create a window that can be shaped with the specified position, dimensions, and flags.
    1.17 - *  
    1.18 + *
    1.19   *  \param title The title of the window, in UTF-8 encoding.
    1.20 - *  \param x     The x position of the window, ::SDL_WINDOWPOS_CENTERED, or 
    1.21 + *  \param x     The x position of the window, ::SDL_WINDOWPOS_CENTERED, or
    1.22   *               ::SDL_WINDOWPOS_UNDEFINED.
    1.23 - *  \param y     The y position of the window, ::SDL_WINDOWPOS_CENTERED, or 
    1.24 + *  \param y     The y position of the window, ::SDL_WINDOWPOS_CENTERED, or
    1.25   *               ::SDL_WINDOWPOS_UNDEFINED.
    1.26   *  \param w     The width of the window.
    1.27   *  \param h     The height of the window.
    1.28 - *  \param flags The flags for the window, a mask of SDL_WINDOW_BORDERLESS with any of the following: 
    1.29 + *  \param flags The flags for the window, a mask of SDL_WINDOW_BORDERLESS with any of the following:
    1.30   *               ::SDL_WINDOW_OPENGL,     ::SDL_WINDOW_INPUT_GRABBED,
    1.31   *               ::SDL_WINDOW_SHOWN,      ::SDL_WINDOW_RESIZABLE,
    1.32   *               ::SDL_WINDOW_MAXIMIZED,  ::SDL_WINDOW_MINIMIZED,
    1.33 - *		 ::SDL_WINDOW_BORDERLESS is always set, and ::SDL_WINDOW_FULLSCREEN is always unset.
    1.34 - *  
    1.35 + *       ::SDL_WINDOW_BORDERLESS is always set, and ::SDL_WINDOW_FULLSCREEN is always unset.
    1.36 + *
    1.37   *  \return The window created, or NULL if window creation failed.
    1.38 - *  
    1.39 + *
    1.40   *  \sa SDL_DestroyWindow()
    1.41   */
    1.42  extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
    1.43  
    1.44  /**
    1.45 - * \brief Return whether the given window is a shaped window. 
    1.46 + * \brief Return whether the given window is a shaped window.
    1.47   *
    1.48   * \param window The window to query for being shaped.
    1.49   *
    1.50 @@ -79,31 +77,31 @@
    1.51  
    1.52  /** \brief An enum denoting the specific type of contents present in an SDL_WindowShapeParams union. */
    1.53  typedef enum {
    1.54 -	/** \brief The default mode, a binarized alpha cutoff of 1. */
    1.55 -	ShapeModeDefault,
    1.56 -	/** \brief A binarized alpha cutoff with a given integer value. */
    1.57 -	ShapeModeBinarizeAlpha,
    1.58 -	/** \brief A binarized alpha cutoff with a given integer value, but with the opposite comparison. */
    1.59 -	ShapeModeReverseBinarizeAlpha,
    1.60 -	/** \brief A color key is applied. */
    1.61 -	ShapeModeColorKey
    1.62 +    /** \brief The default mode, a binarized alpha cutoff of 1. */
    1.63 +    ShapeModeDefault,
    1.64 +    /** \brief A binarized alpha cutoff with a given integer value. */
    1.65 +    ShapeModeBinarizeAlpha,
    1.66 +    /** \brief A binarized alpha cutoff with a given integer value, but with the opposite comparison. */
    1.67 +    ShapeModeReverseBinarizeAlpha,
    1.68 +    /** \brief A color key is applied. */
    1.69 +    ShapeModeColorKey
    1.70  } WindowShapeMode;
    1.71  
    1.72  #define SDL_SHAPEMODEALPHA(mode) (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha)
    1.73  
    1.74  /** \brief A union containing parameters for shaped windows. */
    1.75  typedef union {
    1.76 -	/** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */
    1.77 -	Uint8 binarizationCutoff;
    1.78 -	SDL_Color colorKey;
    1.79 +    /** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */
    1.80 +    Uint8 binarizationCutoff;
    1.81 +    SDL_Color colorKey;
    1.82  } SDL_WindowShapeParams;
    1.83  
    1.84  /** \brief A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. */
    1.85  typedef struct SDL_WindowShapeMode {
    1.86 -	/** \brief The mode of these window-shape parameters. */
    1.87 -	WindowShapeMode mode;
    1.88 -	/** \brief Window-shape parameters. */
    1.89 -	SDL_WindowShapeParams parameters;
    1.90 +    /** \brief The mode of these window-shape parameters. */
    1.91 +    WindowShapeMode mode;
    1.92 +    /** \brief Window-shape parameters. */
    1.93 +    SDL_WindowShapeParams parameters;
    1.94  } SDL_WindowShapeMode;
    1.95  
    1.96  /**
    1.97 @@ -138,9 +136,7 @@
    1.98  
    1.99  /* Ends C function definitions when using C++ */
   1.100  #ifdef __cplusplus
   1.101 -/* *INDENT-OFF* */
   1.102  }
   1.103 -/* *INDENT-ON* */
   1.104  #endif
   1.105  #include "close_code.h"
   1.106