clutter/backend: Mark [get|set]_font_options as private
The cairo_font_options is only meant to be consumed by ClutterActor when creating a PangoContext and as those APIs are never used externally, mark them private to not expose more cairo APIs. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4106>
This commit is contained in:

committed by
Marge Bot

parent
53fd1e43f1
commit
f4d97bb53f
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cairo.h>
|
||||||
|
|
||||||
#include "clutter/clutter-backend.h"
|
#include "clutter/clutter-backend.h"
|
||||||
#include "clutter/clutter-seat.h"
|
#include "clutter/clutter-seat.h"
|
||||||
#include "clutter/clutter-stage-window.h"
|
#include "clutter/clutter-stage-window.h"
|
||||||
@@ -100,4 +102,9 @@ gboolean clutter_backend_is_display_server (ClutterBackend *backend);
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
void clutter_backend_destroy (ClutterBackend *backend);
|
void clutter_backend_destroy (ClutterBackend *backend);
|
||||||
|
|
||||||
|
void clutter_backend_set_font_options (ClutterBackend *backend,
|
||||||
|
const cairo_font_options_t *options);
|
||||||
|
|
||||||
|
const cairo_font_options_t * clutter_backend_get_font_options (ClutterBackend *backend);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
@@ -27,8 +27,6 @@
|
|||||||
#error "Only <clutter/clutter.h> can be included directly."
|
#error "Only <clutter/clutter.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cairo.h>
|
|
||||||
|
|
||||||
#include "cogl/cogl.h"
|
#include "cogl/cogl.h"
|
||||||
|
|
||||||
#include "clutter/clutter-keymap.h"
|
#include "clutter/clutter-keymap.h"
|
||||||
@@ -53,12 +51,6 @@ ClutterBackend * clutter_get_default_backend (void);
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
gdouble clutter_backend_get_resolution (ClutterBackend *backend);
|
gdouble clutter_backend_get_resolution (ClutterBackend *backend);
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
void clutter_backend_set_font_options (ClutterBackend *backend,
|
|
||||||
const cairo_font_options_t *options);
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
const cairo_font_options_t * clutter_backend_get_font_options (ClutterBackend *backend);
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
CoglContext * clutter_backend_get_cogl_context (ClutterBackend *backend);
|
CoglContext * clutter_backend_get_cogl_context (ClutterBackend *backend);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user