Files
gtk/gsk/gsktypes.h
Benjamin Otte e48be683c7 gsk: Add GskCodeSource
This is basically the source format we use to represent source code.

It can be created either from a file or from a GBytes, so we can use it
to hold all data that can be provided by user input (#defines) or by
actual files.
2017-10-30 02:58:02 +01:00

48 lines
1.6 KiB
C

/* GSK - The GTK Scene Kit
* Copyright 2016 Endless
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GSK_TYPES_H__
#define __GSK_TYPES_H__
#if !defined (__GSK_H_INSIDE__) && !defined (GSK_COMPILATION)
#error "Only <gsk/gsk.h> can be included directly."
#endif
#include <graphene.h>
#include <gdk/gdk.h>
#include <gsk/gskenums.h>
typedef struct _GskCodeLocation GskCodeLocation;
typedef struct _GskCodeSource GskCodeSource;
typedef struct _GskPixelShader GskPixelShader;
typedef struct _GskRenderer GskRenderer;
typedef struct _GskSlCompiler GskSlCompiler;
typedef struct _GskSlProgram GskSlProgram;
typedef struct _GskTexture GskTexture;
struct _GskCodeLocation
{
GskCodeSource *source;
gsize bytes;
gsize chars;
gsize lines;
gsize line_bytes;
gsize line_chars;
};
#endif /* __GSK_TYPES_H__ */