| 1 |
/* viewer-cocoa.h: Header for Cocoa-based viewer |
| 2 |
* |
| 3 |
* Copyright (C) 2025 Khaled Hosny |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Library General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2 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 |
* Library General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Library General Public |
| 16 |
* License along with this library; if not, write to the |
| 17 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 |
* Boston, MA 02111-1307, USA. |
| 19 |
*/ |
| 20 |
#ifndef VIEWER_COCOA_H |
| 21 |
#define VIEWER_COCOA_H |
| 22 |
|
| 23 |
#include <pango/pango.h> |
| 24 |
#include "viewer.h" |
| 25 |
|
| 26 |
typedef struct _CocoaViewer CocoaViewer; |
| 27 |
|
| 28 |
extern const PangoViewer cocoa_viewer; |
| 29 |
|
| 30 |
gpointer cocoa_view_create (const PangoViewer *klass); |
| 31 |
|
| 32 |
void cocoa_view_destroy (gpointer instance); |
| 33 |
|
| 34 |
gpointer cocoa_view_create_surface (gpointer instance, |
| 35 |
int width, |
| 36 |
int height); |
| 37 |
|
| 38 |
void cocoa_view_destroy_surface (gpointer instance, |
| 39 |
gpointer surface); |
| 40 |
|
| 41 |
gpointer cocoa_view_create_window (gpointer instance, |
| 42 |
const char *title, |
| 43 |
int width, |
| 44 |
int height); |
| 45 |
|
| 46 |
void cocoa_view_destroy_window (gpointer instance, |
| 47 |
gpointer window); |
| 48 |
|
| 49 |
gpointer cocoa_view_display (gpointer instance, |
| 50 |
gpointer surface, |
| 51 |
gpointer window, |
| 52 |
int width, |
| 53 |
int height, |
| 54 |
gpointer state); |
| 55 |
|
| 56 |
#endif /* VIEWER_COCOA_H */ |