68 lines
2.1 KiB
C
68 lines
2.1 KiB
C
![]() |
/*
|
||
|
* Copyright (C) 2006 OpenedHand
|
||
|
* Copyright (C) 2023 Red Hat
|
||
|
*
|
||
|
* 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/>.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "clutter-backend.h"
|
||
|
#include "clutter-stage-manager.h"
|
||
|
#include "clutter-settings.h"
|
||
|
#include "cogl-pango/cogl-pango.h"
|
||
|
|
||
|
typedef enum _ClutterContextFlags
|
||
|
{
|
||
|
CLUTTER_CONTEXT_FLAG_NONE = 0,
|
||
|
CLUTTER_CONTEXT_FLAG_NO_A11Y = 1 << 0,
|
||
|
} ClutterContextFlags;
|
||
|
|
||
|
typedef ClutterBackend * (* ClutterBackendConstructor) (gpointer user_data);
|
||
|
|
||
|
#define CLUTTER_TYPE_CONTEXT (clutter_context_get_type ())
|
||
|
CLUTTER_EXPORT
|
||
|
G_DECLARE_FINAL_TYPE (ClutterContext, clutter_context,
|
||
|
CLUTTER, CONTEXT, GObject)
|
||
|
|
||
|
/**
|
||
|
* clutter_context_new: (skip)
|
||
|
*/
|
||
|
ClutterContext * clutter_context_new (ClutterContextFlags flags,
|
||
|
ClutterBackendConstructor backend_constructor,
|
||
|
gpointer user_data,
|
||
|
GError **error);
|
||
|
|
||
|
/**
|
||
|
* clutter_context_destroy: (skip)
|
||
|
*/
|
||
|
CLUTTER_EXPORT
|
||
|
void clutter_context_destroy (ClutterContext *context);
|
||
|
|
||
|
/**
|
||
|
* clutter_context_get_backend:
|
||
|
*
|
||
|
* Returns: (transfer none): The %ClutterBackend
|
||
|
*/
|
||
|
CLUTTER_EXPORT
|
||
|
ClutterBackend * clutter_context_get_backend (ClutterContext *context);
|
||
|
|
||
|
/**
|
||
|
* clutter_context_get_pango_fontmap: (skip)
|
||
|
*/
|
||
|
CoglPangoFontMap * clutter_context_get_pango_fontmap (ClutterContext *context);
|
||
|
|
||
|
ClutterTextDirection clutter_context_get_text_direction (ClutterContext *context);
|