Compare commits

...

113 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
9056fb00b0 gitlab-ci: run tests too 2018-11-14 02:46:16 -06:00
Marco Trevisan (Treviño)
0503ecaf84 tests: add headless_tests support
Run tests using Xvfb so that we can run them in CI
2018-11-14 02:19:09 -06:00
Marco Trevisan (Treviño)
dec20d13e1 meson, tests: Use suites for test cases
They allows to filter tests better and so we can just launch tests with:
  meson test --suite [mutter/stacking|cogl|clutter] [single-test-name]
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
0242c1a527 meson, tests: Add single stacking tests with suite
Don't launch the stacking tests in one single shot, to allow better debugging
and being able to launch just one single test using meson test.

Those tests can now be all launched with:
  meson test --suite stacking [single-test-name]
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
8652ec9ee2 window-x11: Focus the default window waiting for take focus
It's not guaranteed that a focus window will require the focus (this doesn't
happen for no-input gtk windows in fact [to be fixed there too]).
And in such case instead of unsetting the focus, while waiting the take focus
request to arrive, we should focus the current workspace default focus window
instead.
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
4c607164fd window: Add is_focusable class method
Implement is_focusable for both x11 and wayland and just use this check
so that we can abstract things more and be less dependent on window backend.
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
08f920606e tests: Verify focused window in closed-transient tests
Ensure that we have a focused window when closing transient windows with
no-focus or no-take-focus atoms
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
ef3ea0a59c test-runner: Add assert_focused command
This allows to verify which window should have the focus, which might not
be the same as the top of the stack.
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
a5f360cb9e workspace: Focus only ancestors who can be actually focused
When destroying a window that has a parent, we initially try to focus one of
its ancestors. However if no ancestor can be focused, then we should instead
focus the fault window instead of trying to request focus for a window
that can't get focus anyways.

Fixes #308
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
26cb0a5a75 tests, stacking: Add tests with no-input and no-take-focus windows
When a window with no frame, that doesn't accept focus and that has no take-focus
atom set is destroyed, we end up in not changing the current_focus window, causing
a crash.

Added test cases that verify this situation (expected to fail).

See #308
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
7c89167644 tests: Add take_focus command to runner and client
Allow to set/unset WM_TAKE_FOCUS from client window.
This is added by default by gtk, but this might not happen in other toolkits,
so add an ability to (un)set this.

So fetch the protocols with XGetWMProtocols and unset the atom.

test-client now needs to depend on Xlib directly in meson build.
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
984d27f050 tests: Add accept_focus command to client and runner
Under the hood, calls gtk_window_set_accept_focus in the client
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
5b13372fd4 meson, tests: Add missing stacking tests
Those .metatest where added to autotools and where missing in meson port.
2018-11-13 22:14:22 -06:00
Marco Trevisan (Treviño)
4334534742 tests: Accept warnings when initializing mutter
Initializing mutter, might cause warning such as the `failed to bind to` when
another XServer is running. However these warnings are not critical, so we can
safely ignore them.
2018-11-13 22:14:22 -06:00
Florian Müllner
9a12befd22 Bump version to 3.31.2
Update NEWS.
2018-11-14 02:01:25 +01:00
Florian Müllner
9f79cf8a60 Revert "clutter: Avoid redundant margin changes"
This reverts commit 59acb38951.
2018-11-14 01:56:47 +01:00
Daniel van Vugt
59acb38951 clutter: Avoid redundant margin changes
When profiling gnome-shell it was found that one of the main triggers
of `clutter_actor_queue_relayout` during animations was
`clutter_actor_set_margin_internal` continuously setting the same
zero margins. That's obviously pointless but also expensive since it
incurs full stage relayouts and reallocation. So just avoid redundant
margin changes.

Helps to further improve:
https://gitlab.gnome.org/GNOME/mutter/issues/233,
https://gitlab.gnome.org/GNOME/gnome-shell/issues/349
2018-11-13 14:21:31 +00:00
Olivier Fourdan
fa495286a1 window: Really force update monitor on hot plugs
Commit 8d3e05305 ("window: Force update monitor on hot plugs") added the
flag `META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE` passed to
`update_monitor()` from `update_for_monitors_changed()`.

However, `update_for_monitors_changed()` may choose to call another code
path to `move_between_rects()` and `meta_window_move_resize_internal()`
eventually.

As `meta_window_move_resize_internal()` does not use the "force" flag,
we may still end up in case where the window->monitor is left unchanged.

To avoid that problem, add a new `MetaMoveResizeFlags` that
`update_for_monitors_changed()` can use to force the monitor update from
`meta_window_move_resize_internal()`.

Fixes: 8d3e05305 ("window: Force update monitor on hot plugs")
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/189
2018-11-13 10:10:30 +01:00
Niels De Graef
0b9404dcbe clutter/device-manager/evdev: Fix constraint cb
As pointed out by @jadahl, this shouldn't matter too much, as the
`constraint_callback` should always be set when initializing the mutter
backend.
2018-11-12 15:38:04 +01:00
Niels De Graef
9fb46cca55 clutter/keyframe-transition: Properly compare keys 2018-11-12 15:36:29 +01:00
Niels De Graef
2a4f1be81b clutter/actor: Don't forget va_end if using varargs 2018-11-12 15:36:27 +01:00
Alexander Mikhaylenko
1dff74e71c build: Fix libs and cflags in autotools .pc file
Similar to b86d87453d
2018-11-10 16:20:46 +00:00
Jonas Ådahl
25c53b2fb2 backend: Freeze frame clock when headless
Don't schedule redraws when being headless; there is nothing to draw so
don't attempt to draw. This also makes a flaky test become non-flaky, as
it previously spuriously got warnings due to windows being "painted"
when headless but lacking frame timings, as nothing was actually
painted.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/170
2018-11-09 11:16:30 +01:00
Jonas Ådahl
213ed80284 backends: Move clutter frame clock freeze/thaw API to ClutterSTage
It had nothing to do with EGL or the eglnative backend, and will be used
by non-native backends, so move it to a common place.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/170
2018-11-09 11:16:30 +01:00
Jonas Ådahl
9adf8826d2 backends/stage: Remove unused function declaration
https://gitlab.gnome.org/GNOME/mutter/merge_requests/170
2018-11-09 11:16:30 +01:00
Jonas Ådahl
19930c6577 backends/stage: Remove MetaStagePrivate
The empty MetaStage was in meta-stage-private.h for no reason, so lets
move it to the C file. This makes it pointless to have a private
instance struct, so just move the fields to the private struct
_MetaStage.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/170
2018-11-09 11:16:30 +01:00
Jonas Ådahl
80d5f326e8 clutter: Assume XGE is available at build time
Almost a decade old, lets just assume it's there. This makes the button
on cally-atktext-example work again when building with meson, and
probably other things too.
2018-11-08 18:40:53 +00:00
Jonas Ådahl
15732851bc clutter-shader: Don't include unistd.h
It isn't needed.
2018-11-08 18:40:53 +00:00
Jonas Ådahl
996949806a cogl: Silence some introspection warnings
Mostly skipping functions of non-introspected types, but also added a
missing callback scope.
2018-11-08 16:20:19 -02:00
Georges Basile Stavracas Neto
c5ac3d6217 theme: Drop gtk_css_provider_get_default()
Instead of using gtk_css_provider_get_default(), add a
static GtkCssProvider and fetch it instead. Creating
GtkCssProviders consume a bit more memory, so keeping
a single one alive is slightly more memory saving.
2018-11-08 16:20:19 -02:00
Georges Basile Stavracas Neto
3d23ecc456 clutter: Drop g_object_newv from ClutterScriptParser
Build an additional set of (GStrv, GValue[]) and pass it
to the non-deprecated g_object_new_with_properties().
2018-11-08 16:20:19 -02:00
Georges Basile Stavracas Neto
cbf6e74915 tests: Remove deprecated ATK functions 2018-11-08 18:08:57 +00:00
Georges Basile Stavracas Neto
b5c4437287 tests: Remove extra const 2018-11-08 18:08:57 +00:00
Georges Basile Stavracas Neto
426d7f3bdf tests: Enumerate all possible events 2018-11-08 18:08:57 +00:00
Georges Basile Stavracas Neto
3483be8566 tests: Remove unused variables 2018-11-08 18:08:57 +00:00
Peter Uithoven
4a7a803c34 README: Mention usage by Gala 2018-11-08 17:11:27 +01:00
Jonas Ådahl
4673eeaf5f wayland/xdg-shell: Add toplevel tile state support
The second version of xdg_wm_base added toplevel tile states (top,
right, bottom, left), so lets communicate that.
2018-11-08 13:21:53 +01:00
Jonas Ådahl
4f3de88b3d wayland/legacy-xdg-shell: Use helper to fill state array 2018-11-08 13:21:53 +01:00
Jonas Ådahl
180bb02fa5 wayland/gtk-shell: Use helper to fill state array 2018-11-08 13:21:53 +01:00
Jonas Ådahl
d59cf98690 wayland/gtk-shell: Fix signedness of resource version variable
wl_resource_get_version() returns an int, not an unsigned int.
2018-11-08 13:21:49 +01:00
Jonas Ådahl
27fee69ca4 wayland/xdg-shell: Add helper for adding state enum values 2018-11-08 13:21:21 +01:00
Jonas Ådahl
640a04d0e4 window: Make edge constraint code more readable
It relied on indices in arrays determining tile direction and
non-obvious bitmask logic to translate to _GTK_EDGE_CONSTRAINTS. Change
this to explicitly named edge constraints, and clear translation methods
that converts between mutters and GTK+s edge constraint formats.
2018-11-08 13:21:21 +01:00
Jonas Ådahl
5fc07fcc23 window: Store tile mode as MetaTileMode
An unnecessary memory optimization, storing the tile mode as a 2 bit
unsigned integer, was used. While saving a few bytes, it made debugging
harder. Remove the useless byte packing.
2018-11-08 13:21:21 +01:00
Daniel van Vugt
f31cf0c3ef clutter-offscreen-effect: Disable if no texture
If texture allocation fails (e.g. on an old GPU with size limit 2048)
then `update_fbo` would return `FALSE` but leaves `priv->offscreen`
as non-NULL. So the next paint will try to use the offscreen with a
`NULL` texture and crashes. The solution is simply to ensure that
`priv->offscreen` is NULL if there is no `priv->texture`, so the default
(non-offscreen) paint path gets used instead.

Bug reported and fix provided by Gert van de Kraats.

https://launchpad.net/bugs/1795774
2018-11-08 10:18:25 +00:00
Daniel van Vugt
d21478b0f0 cogl-auto-texture: Avoid a double-free crash
If texture allocation fails (e.g. on an old GPU with size limit 2048)
then `cogl_texture_new_with_size` was trying to use the same CoglError
twice. The second time was after it had already been freed.

Bug reported and fix provided by Gert van de Kraats.

https://launchpad.net/bugs/1790525
2018-11-08 10:18:25 +00:00
Jonas Ådahl
b86d87453d build: Fix include and lib paths in autotools .pc files
Some hadn't been updated after lib/mutter/ changed to lib/mutter-N/.

Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/382
2018-11-07 14:29:30 +01:00
Jonas Ådahl
cf7c39e2c1 build: Add soversion to shared libraries
It's easier to add it now, then adding it later would so be needed.
2018-11-07 13:00:47 +00:00
Jonas Ådahl
7c774ab53e build: Also build mutter-restart-helper executable
Was left out by mistake. Lets add it.
2018-11-07 13:00:47 +00:00
Jonas Ådahl
c03a401f4c clutter: Install x11 related header files when using autotools again
clutter-x11.h and x11/clutter-x11-texture-pixmap.h were not installed
any longer. Fix that.
2018-11-07 12:54:41 +00:00
Jonas Ådahl
c7e6cd4e27 plugins/Makefile.am: Install libdefault.so in plugin directory
It was incorrectly installed directly in $(libdir)/mutter-N/ while it
should be installed in $(libdir)/mutter-N/plugins/
2018-11-07 12:54:41 +00:00
Jonas Ådahl
fc5b94e077 clutter: Install cally headers again when using autotools
The install step was accidentally removed.
2018-11-07 12:54:41 +00:00
Georges Basile Stavracas Neto
4ce4a2b134 cogl: Expose more headers for introspection
This will allow CoglFramebuffer and its implementations to be exposed
to GJS and other language bindings. This is a necessary part of the
bigger work to make framebuffer management explicit.
2018-11-07 11:27:51 +00:00
Georges Basile Stavracas Neto
93e20cf21c cogl/framebuffer: Mark CoglOffscreen as a CoglFramebuffer implementation
CoglOffscreen is effectively a CoglFramebuffer, but it isn't being marked as
such by the GType machinery. This makes it impossible for introspection to
correctly set this class up.

Fix that by adding a COGL_GTYPE_IMPLEMENT_INTERFACE() code into the declaration
of CoglOffscreen. This does not have any functional changes though.
2018-11-07 11:27:51 +00:00
Jonas Ådahl
a8e9f46ed8 Add .gitlab-ci.yml for build testing
This adds compilation testing using meson on the gitlab instance. It
uses a prebuild image built, described in .gitlab-ci/Dockerfile, based
on Fedora 29.

The image is build and published by running:

  cd .gitlab-ci/
  docker build -t registry.gitlab.gnome.org/gnome/mutter/master:v1 .
  docker push registry.gitlab.gnome.org/gnome/mutter/master:v1

Resolves: https://gitlab.gnome.org/GNOME/mutter/merge_requests/132
2018-11-07 11:24:28 +00:00
Georges Basile Stavracas Neto
fe78467815 build: Make libmutter-cogl-path a dependency for test-journal
Otherwise, it might trigger the actual race condition that Continuous
is running into, and access the generated enum headers before they're
created.
2018-11-06 19:15:24 -02:00
Georges Basile Stavracas Neto
d1c4c46281 build: Prefer dependencies instead of link_with
Meson uses the 'dependencies' field to determine and
parallelize build steps, but that isn't entirely true
with 'link_with'; this might cause a race condition
when generating header files while trying to build
them.

Fix that by only using 'dependencies' instead of 'link_with'.
2018-11-06 17:50:24 -02:00
Georges Basile Stavracas Neto
d3dc7d6f49 gudev: Require 232
gudev and libudev might have different versions, and
since 361bf847 we require gudev >= 232 to be able to
use g_autoptr with gudev types.

Since the previous commit, however, the meson build
was using the same version for libudev and gudev.

Fix that by requiring different versions for gudev
(>= 232) and libudev (>= 228).
2018-11-06 17:04:12 -02:00
Georges Basile Stavracas Neto
b607d35aad build: Make minimum udev version as 228
Continuous' latest udev version is 228, and that is
not going to change too soon. Since we do not depend
on udev 232 specific features or bugfixes, just lower
the minimum version and make Continouos happy.
2018-11-06 16:48:47 -02:00
Jonas Ådahl
ef85d1a643 Add meson build support
This commit adds meson build support to mutter. It takes a step away
from the three separate code bases with three different autotools setups
into a single meson build system. There are still places that can be
unified better, for example by removing various "config.h" style files
from cogl and clutter, centralizing debug C flags and other configurable
macros, and similar artifacts that are there only because they were once
separate code bases.

There are some differences between the autotools setup and the new
meson. Here are a few:

The meson setup doesn't generate wrapper scripts for various cogl and
clutter test cases. What these tests did was more or less generate a
tiny script that called an executable with a test name as the argument.
To run particular tests, just run the test executable with the name of
the test as the argument.

The meson setup doesn't install test files anymore. The autotools test
suite was designed towards working with installed tests, but it didn't
really still, and now with meson, it doesn't install anything at all,
but instead makes sure that everything runs with the uninstalled input
files, binaries and libraries when running the test suite. Installable
tests may come later.

Tests from cogl, clutter and mutter are run on 'meson test'. In
autotools, only cogl and clutter tests were run on 'make check'.
2018-11-06 18:51:44 +01:00
Jonas Ådahl
417c00b8fa wayland/eglstream: Don't build skeleton when disabled
Instead of calling no-op functions when EGLStream support isn't enabled,
make it clear at the call site that EGLStream support is optional.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
6192e944b8 wayland/touch: Only handle touch when using the native backend
The touch handling code uses evdev API, thus will not work on other
backends. Thus, put touch handling code behind runtime backend checks
and only include the code when native backend support is enabled.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
8f2680c612 wayland/tablet: Fix warnings when native backend is disabled 2018-11-06 17:17:36 +01:00
Jonas Ådahl
d686dc9f46 Fix compiler errors when Wayland support is disabled 2018-11-06 17:17:36 +01:00
Jonas Ådahl
f139360569 Make it possible to build without GLX support 2018-11-06 17:17:36 +01:00
Jonas Ådahl
bf42b54faa Make it possible to build without EGL support
This will avoid building anything related to EGL. For meson, this will
mean that both the native backend an the Wayland support must also be
disabled.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
d48d56f831 autotools: Make install directories paths more consistent
Install include files in
$prefix/include/mutter-$apiversion/[clutter,cogl,...,meta]/, and
datafiles in /usr/share/mutter-$apiversion/.... We still would conflict
e.g. given that our gettext name is "mutter", and how keybindings are
installed, but it's a step in the right direction.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
32f3bb02e1 tests: Move out test client path init into helper function
Makes the common test init function simpler to read.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
d21022f562 tests/headless-start-test: Use common test init function
Outsource the initialization of GTest to the same function used by the
other tests.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
2af229fe98 tests: Call g_test_init() in test-runner too
This makes the log handler that breaks test redundant, as GTest already
does this.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
c65617cb5a Fix some of introspection comment issues
Missing colon and incorrect type reference in descriptions.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
c663f4ae84 tests: Add env var to override plugin used for tests
This is so that the test suite can point at the non-installed version.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
0afaf5262b plugin: Rename the .so file from plugin.so to libplugin.so
This is the filename convention you get when you define a shared module
in meson, and since there is no particular reason to not include the
"lib" prefix, lets make it easier to port it over. While at it,
de-duplicate the retrieval of the plugin name.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
85fbf66179 Move meta-enum-type.*.in into meta/
It'll be installed in the meta/ directory, so put the template files in
the corresponding directory in the tarball. This will also simplify the
port to meson.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
a97cc84b81 Fix warnings when building without verbose mode 2018-11-06 17:17:36 +01:00
Jonas Ådahl
bc32655c28 Pass -D_GNU_SOURCE instead of defining it in source 2018-11-06 17:17:36 +01:00
Jonas Ådahl
176e6fcded x11: Require XInput 2.3 at build time
The needed libXi version was released 5 years ago, so should be fine.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
ecec99eedb x11: Require xrandr 1.5 at build time
While leaving the runtime checks in place, requiring xrandr 1.5 at build
time allows us to remove some seemingly unnecessary conditional
inclusion of functionality.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
2f4a68c8c3 Clean up include macros mess
The order and way include macros were structured was chaotic, with no
real common thread between files. Try to tidy up the mess with some
common scheme, to make things look less messy.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
92f4ffc0dd tests: Make testboxes an actual test
testboxes was a binary that did unit testing, but it wasn't integrated
to the test system, so in effect, it was never run. Instead integrate it
into the other mutter unit tests. This includes changing a few of
meta_warning()s into g_warning()s so that the GTest framework can handle
them.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
8a03f1ad02 Always generate meta-default-modes.h
This adds a hard requirement on having cvt installed, which in the past
was soft, where the generated file was added to the repository.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
e0727aba5f clutter/tests/micro-bench: Don't define unused macro
TESTS_DATA_DIR was not used by any of the tests, so no use defining it.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
14be04a630 clutter/tests: Unconditionally include tests using gdk-pixbuf
We already have gdk-pixbuf as a dependency, so there is no reason to
make it conditional here.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
0067f78155 clutter: Unconditionalize a few X11 extensions
We now require xcomposite, xkb, xi 2.2, at least at compile time.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
3e03d1e38e clutter/configure.ac: Remove left-over gbm and drm dependencies
The gbm and drm facing code has since long been moved into mutter.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
fe7a67f0e7 clutter/configure.ac: Remove unused gdk dependency 2018-11-06 17:17:36 +01:00
Jonas Ådahl
db77e2e187 clutter: Assume compiler supports visibility flag and attributes
Unconditionally pass -fvisibility=hidden to compiler and define
_CLUTTER_EXTERN to __attribute__((visibility("default"))) extern.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
e3c6e3b84d clutter: Fix a couple of guard macros
Use #ifdef instead of #if in a couple of places.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
0d9391e282 clutter: Remove examples
Running clutter apps standalone using mutters fork is not something
worth supporting.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
1e2610e4f4 clutter: Remove useless OS_LINUX macro
It was unconditionally set to 1.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
0095c2e340 clutter: Require full relative path when including 2018-11-06 17:17:36 +01:00
Jonas Ådahl
c90e63a91d clutter: Stop defining some unused macros 2018-11-06 17:17:36 +01:00
Jonas Ådahl
8c0e13ca7a clutter: Remove clutter specific version
Use the mutter version when something is still needed.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
8894ec462a cogl: Pass unit-tests file to run-tests.sh
There are different unit-tests file generated containing lists of tests
the test-runner.sh should run. Running run-tests.sh read the unit-tests
in the current directory, which is inconvenient to do when using meson.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
331e830cf6 cogl: Fix HAVE_COGL_GL guard
Macro was only defined when defined to 1.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
d68fcbc887 cogl: Make cogl-config.h include check explicit
Don't rely on some combination of macros, but an explicit definition to
check whether cogl-config.h was included.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
9dbdf6b724 cogl: Require relative full paths when including
I.e. including a OpenGL driver file, the path "driver/gl/..." must be
specified when including.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
530861b24d cogl: Remove left-over WebGL paths 2018-11-06 17:17:36 +01:00
Jonas Ådahl
11f8b12a9d clutter: Unconditionally include clutter-build-config.h 2018-11-06 17:17:36 +01:00
Jonas Ådahl
0163a0b0cd cogl: Unconditionally include cogl-config.h 2018-11-06 17:17:36 +01:00
Jonas Ådahl
12171e413b cogl: Unconditionally depend on cairo 2018-11-06 17:17:36 +01:00
Jonas Ådahl
99fb79f4cb cogl: Unconditionally include "strings.h" 2018-11-06 17:17:36 +01:00
Jonas Ådahl
24d8d40deb cogl/tests: Mark failing test as known failure
This allows us to enable running the tests again. Not fixing the
failure is at least better than not running the tests at all.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
97004e6114 cogl: Remove ARBfp pipeline support
As with fixed pipelines, we require the use of the GLSL pipeline in
mutter, and no point in supporting ARBfp anyway.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
8f58ad02fb cogl: Remove fixed pipeline support
We require being able to use shaders so stop supporting a pipeline that
wouldn't work to begin with.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
98af9bb251 cogl: Remove notion of a "cogl" version
Mutters copy of cogl isn't a separate library with its own version, so
remove the old version macros.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
7b2eaa76a4 cogl: Remove support for GLESv1
We have no need for it in mutters cogl variant.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
00a5523667 cogl: Remove some left over KMS backend stuff 2018-11-06 17:17:36 +01:00
Jonas Ådahl
f30cef3046 cogl: Always build CoglPango support 2018-11-06 17:17:36 +01:00
Jonas Ådahl
fba7d8c79c cogl: Always build CoglPath support 2018-11-06 17:17:36 +01:00
Jonas Ådahl
46942c24a3 cogl: Make various functions non-optional
Remove fallback implementations of some functions available in
gcc/clang and Linux/BSDs.
2018-11-06 17:17:36 +01:00
Jonas Ådahl
9846a4d812 cogl: Make _Static_assert non-optional 2018-11-06 17:17:36 +01:00
Jonas Ådahl
da741ead25 cogl-gles2/Makefile.am: Add cogl/ includedir
Otherwise cogl-egl-defines.h isn't found when building out-of-tree.
2018-11-06 17:17:36 +01:00
Andrea Azzarone
31f525d566 x11: close display in an idle function
Closing a GdkDisplay during an event handler is not currently supported by Gdk
and it will result in a crash when doing e.g. 'mutter --replace'. Using an idle
function will close it safely in a subsequent main loop iteration.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/595
2018-11-05 12:04:01 +00:00
826 changed files with 8933 additions and 13889 deletions

1
.gitignore vendored
View File

@@ -131,3 +131,4 @@ ltversion.m4
lt~obsolete.m4 lt~obsolete.m4
.dirstamp .dirstamp
**/tags.* **/tags.*
build/

46
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,46 @@
image: registry.gitlab.gnome.org/gnome/mutter/master:v1
stages:
- build
- test
build-mutter:
stage: build
script:
- meson . build -Degl_device=true -Dwayland_eglstream=true -Dheadless_tests=enabled
- ninja -C build
- ninja -C build install
- meson test -v -C build --suite headless
# artifacts:
# paths:
# - build
# test-cogl:
# stage: test
# dependencies:
# - build-mutter
# artifacts:
# paths:
# - build
# script:
# - meson test -v -C build --suite cogl-headless
# test-clutter:
# stage: test
# dependencies:
# - build-mutter
# artifacts:
# paths:
# - build
# script:
# - meson test -v -C build --suite clutter-headless
# test-mutter:
# stage: test
# dependencies:
# - build-mutter
# artifacts:
# paths:
# - build
# script:
# - meson test -v -C build --suite mutter-headless

14
.gitlab-ci/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM fedora:29
RUN dnf -y update && dnf -y upgrade && \
dnf install -y 'dnf-command(builddep)' && \
dnf builddep -y mutter && \
# Until Fedora catches up with meson build-deps
dnf install -y meson xorg-x11-server-Xorg gnome-settings-daemon-devel egl-wayland-devel xorg-x11-server-Xwayland && \
# To enable testing headless
dnf install -y xorg-x11-server-Xvfb && \
dnf install -y intltool redhat-rpm-config make && \
dnf clean all

View File

@@ -1,3 +1,5 @@
pkgdatadir = $(datadir)/mutter-$(LIBMUTTER_API_VERSION)
pkglibdir = $(libdir)/mutter-$(LIBMUTTER_API_VERSION)
SUBDIRS = cogl clutter data src po doc SUBDIRS = cogl clutter data src po doc

17
NEWS
View File

@@ -1,3 +1,20 @@
3.31.2
======
* Fix handling of non-UTF8 encodings [Florian; !227]
* Fix memory leaks introduced in 3.30.1 [Jonas; #653]
* Fix regression when overriding workspace layout [Ron; #270]
* Fix crash when restarting window manager [Andrea; gnome-shell#595]
* Add meson build support [Jonas; !167]
* Freeze clock when headless [Jonas; !170]
* Fix crash on monitor hotplug [Olivier; #189]
* Misc. bug fixes [Jonas; #353, !132, #382]
Contributors:
Jonas Ådahl, Andrea Azzarone, Olivier Fourdan, Niels De Graef,
Alexander Mikhaylenko, Florian Müllner, Akira Nakajima,
Georges Basile Stavracas Neto, Pekka Paalanen, Peter Uithoven,
Daniel van Vugt, Ron Yorston
3.30.1 3.30.1
====== ======
* Improve trackball detection [Tony; #258] * Improve trackball detection [Tony; #258]

View File

@@ -17,9 +17,10 @@ Internally it uses a fork of Cogl, a hardware acceleration abstraction library
used to simplify usage of OpenGL pipelines, as well as a fork af Clutter, a used to simplify usage of OpenGL pipelines, as well as a fork af Clutter, a
scene graph and user interface toolkit. scene graph and user interface toolkit.
Mutter is used by GNOME Shell, the GNOME core user interface. It can also be run Mutter is used by, for example, GNOME Shell, the GNOME core user interface, and
standalone, using the command "mutter", but just running plain mutter is only by Gala, elementary OS's window manager. It can also be run standalone, using
intended for debugging purposes. the command "mutter", but just running plain mutter is only intended for
debugging purposes.
## License ## License

1
clutter/.gitignore vendored
View File

@@ -23,7 +23,6 @@ clutter-build-config.h.in
clutter-config.h clutter-config.h
clutter-enum-types.[ch] clutter-enum-types.[ch]
clutter-marshal.[ch] clutter-marshal.[ch]
clutter-version.h
gcov-report.txt gcov-report.txt
clutter-json.h clutter-json.h
clutter-lcov.info clutter-lcov.info

View File

@@ -2,11 +2,7 @@ NULL =
SUBDIRS = build clutter tests SUBDIRS = build clutter tests
if BUILD_EXAMPLES DIST_SUBDIRS = clutter tests build
SUBDIRS += examples
endif
DIST_SUBDIRS = clutter tests examples build
# XXX - this is a massive hack to make autoreconf honour the ACLOCAL_FLAGS # XXX - this is a massive hack to make autoreconf honour the ACLOCAL_FLAGS
# that jhbuild sets while still retaining build/autotools as the authoritative # that jhbuild sets while still retaining build/autotools as the authoritative

View File

@@ -10,17 +10,13 @@ EXTRA_DIST =
BUILT_SOURCES = BUILT_SOURCES =
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-DCLUTTER_PREFIX=\""$(prefix)"\" \
-DCLUTTER_LIBDIR=\""$(libdir)"\" \
-DCLUTTER_DATADIR=\""$(datadir)"\" \
-DCLUTTER_LOCALEDIR=\""$(localedir)"\" \
-DCLUTTER_SYSCONFDIR=\""$(sysconfdir)"\" \ -DCLUTTER_SYSCONFDIR=\""$(sysconfdir)"\" \
-DCLUTTER_COMPILATION=1 \ -DCLUTTER_COMPILATION=1 \
-DCOGL_DISABLE_DEPRECATION_WARNINGS \ -DCOGL_DISABLE_DEPRECATION_WARNINGS \
-DG_LOG_DOMAIN=\"Clutter\" \ -DG_LOG_DOMAIN=\"Clutter\" \
-fvisibility=hidden \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/clutter \ -I$(top_srcdir)/clutter \
-I$(top_srcdir)/clutter/cally \
-I$(top_builddir) \ -I$(top_builddir) \
-I$(top_builddir)/clutter \ -I$(top_builddir)/clutter \
-I$(top_srcdir)/../cogl \ -I$(top_srcdir)/../cogl \
@@ -28,7 +24,6 @@ AM_CPPFLAGS = \
-I$(top_builddir)/../cogl/cogl \ -I$(top_builddir)/../cogl/cogl \
$(CLUTTER_DEPRECATED_CFLAGS) \ $(CLUTTER_DEPRECATED_CFLAGS) \
$(CLUTTER_DEBUG_CFLAGS) \ $(CLUTTER_DEBUG_CFLAGS) \
$(CLUTTER_HIDDEN_VISIBILITY_CFLAGS) \
$(NULL) $(NULL)
AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
@@ -37,7 +32,7 @@ AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
INTROSPECTION_GIRS = INTROSPECTION_GIRS =
# the base include path for headers # the base include path for headers
clutter_base_includedir = $(includedir)/mutter/clutter-$(LIBMUTTER_API_VERSION) clutter_base_includedir = $(includedir)/mutter-$(LIBMUTTER_API_VERSION)/clutter
clutter_includedir = $(clutter_base_includedir)/clutter clutter_includedir = $(clutter_base_includedir)/clutter
clutter_deprecateddir = $(clutter_base_includedir)/clutter/deprecated clutter_deprecateddir = $(clutter_base_includedir)/clutter/deprecated
@@ -355,10 +350,6 @@ built_source_h = \
DISTCLEANFILES += clutter-config.h DISTCLEANFILES += clutter-config.h
EXTRA_DIST += clutter-config.h.in EXTRA_DIST += clutter-config.h.in
# version header
DISTCLEANFILES += clutter-version.h
EXTRA_DIST += clutter-version.h.in clutter-version.h
# key symbol update script # key symbol update script
EXTRA_DIST += clutter-keysyms-update.pl EXTRA_DIST += clutter-keysyms-update.pl
@@ -498,9 +489,6 @@ backend_source_c_priv += $(evdev_c_priv)
backend_source_h_priv += $(evdev_h_priv) backend_source_h_priv += $(evdev_h_priv)
backend_source_h += $(evdev_h) backend_source_h += $(evdev_h)
clutterevdev_includedir = $(clutter_includedir)/evdev
clutterevdev_include_HEADERS = $(evdev_h)
backend_source_c += evdev/clutter-xkb-utils.c backend_source_c += evdev/clutter-xkb-utils.c
backend_source_h_priv += evdev/clutter-xkb-utils.h backend_source_h_priv += evdev/clutter-xkb-utils.h
@@ -520,15 +508,10 @@ backend_source_h += $(wayland_compositor_source_h)
backend_source_c += \ backend_source_c += \
wayland/clutter-wayland-surface.c wayland/clutter-wayland-surface.c
wayland_compositor_includedir = $(clutter_includedir)/wayland
wayland_compositor_include_HEADERS = $(wayland_compositor_source_h)
backend_source_h += $(egl_source_h) backend_source_h += $(egl_source_h)
backend_source_c += $(egl_source_c) backend_source_c += $(egl_source_c)
backend_source_h_priv += $(egl_source_h_priv) backend_source_h_priv += $(egl_source_h_priv)
clutteregl_includedir = $(clutter_includedir)/egl
clutteregl_include_HEADERS = $(egl_source_h)
endif # SUPPORT_WAYLAND endif # SUPPORT_WAYLAND
# cally # cally
@@ -585,12 +568,12 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pc_files) pkgconfig_DATA = $(pc_files)
DISTCLEANFILES += $(pc_files) DISTCLEANFILES += $(pc_files)
clutter_include_HEADERS = $(source_h) clutter.h clutter-version.h clutter-autocleanups.h clutter-mutter.h clutter_include_HEADERS = $(source_h) clutter.h clutter-autocleanups.h clutter-mutter.h
nodist_clutter_include_HEADERS = clutter-config.h $(built_source_h) nodist_clutter_include_HEADERS = clutter-config.h $(built_source_h)
clutter_deprecated_HEADERS = $(deprecated_h) clutter_deprecated_HEADERS = $(deprecated_h)
mutterlibdir = $(libdir)/mutter mutterlibdir = $(libdir)/mutter-@LIBMUTTER_API_VERSION@
mutterlib_LTLIBRARIES = libmutter-clutter-@LIBMUTTER_API_VERSION@.la mutterlib_LTLIBRARIES = libmutter-clutter-@LIBMUTTER_API_VERSION@.la
libmutter_clutter_@LIBMUTTER_API_VERSION@_la_LIBADD = \ libmutter_clutter_@LIBMUTTER_API_VERSION@_la_LIBADD = \

View File

@@ -67,9 +67,7 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <glib.h> #include <glib.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>

View File

@@ -126,19 +126,19 @@ struct _CallyActorClass
gpointer _padding_dummy[32]; gpointer _padding_dummy[32];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_actor_get_type (void) G_GNUC_CONST; GType cally_actor_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject* cally_actor_new (ClutterActor *actor); AtkObject* cally_actor_new (ClutterActor *actor);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
guint cally_actor_add_action (CallyActor *cally_actor, guint cally_actor_add_action (CallyActor *cally_actor,
const gchar *action_name, const gchar *action_name,
const gchar *action_description, const gchar *action_description,
const gchar *action_keybinding, const gchar *action_keybinding,
CallyActionFunc action_func); CallyActionFunc action_func);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
guint cally_actor_add_action_full (CallyActor *cally_actor, guint cally_actor_add_action_full (CallyActor *cally_actor,
const gchar *action_name, const gchar *action_name,
const gchar *action_description, const gchar *action_description,
@@ -147,11 +147,11 @@ guint cally_actor_add_action_full (CallyActor *cally_actor,
gpointer user_data, gpointer user_data,
GDestroyNotify notify); GDestroyNotify notify);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gboolean cally_actor_remove_action (CallyActor *cally_actor, gboolean cally_actor_remove_action (CallyActor *cally_actor,
gint action_id); gint action_id);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gboolean cally_actor_remove_action_by_name (CallyActor *cally_actor, gboolean cally_actor_remove_action_by_name (CallyActor *cally_actor,
const gchar *action_name); const gchar *action_name);

View File

@@ -74,9 +74,9 @@ struct _CallyCloneClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_clone_get_type (void) G_GNUC_CONST; GType cally_clone_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject *cally_clone_new (ClutterActor *actor); AtkObject *cally_clone_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@@ -77,9 +77,9 @@ struct _CallyGroupClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_group_get_type (void) G_GNUC_CONST; GType cally_group_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject* cally_group_new (ClutterActor *actor); AtkObject* cally_group_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@@ -34,9 +34,9 @@
G_BEGIN_DECLS G_BEGIN_DECLS
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gboolean cally_get_cally_initialized (void); gboolean cally_get_cally_initialized (void);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gboolean cally_accessibility_init (void); gboolean cally_accessibility_init (void);
G_END_DECLS G_END_DECLS

View File

@@ -74,9 +74,9 @@ struct _CallyRectangleClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_rectangle_get_type (void) G_GNUC_CONST; GType cally_rectangle_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject* cally_rectangle_new (ClutterActor *actor); AtkObject* cally_rectangle_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@@ -74,9 +74,9 @@ struct _CallyRootClass
gpointer _padding_dummy[16]; gpointer _padding_dummy[16];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_root_get_type (void) G_GNUC_CONST; GType cally_root_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject *cally_root_new (void); AtkObject *cally_root_new (void);
G_END_DECLS G_END_DECLS

View File

@@ -74,9 +74,9 @@ struct _CallyStageClass
gpointer _padding_dummy[16]; gpointer _padding_dummy[16];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_stage_get_type (void) G_GNUC_CONST; GType cally_stage_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject *cally_stage_new (ClutterActor *actor); AtkObject *cally_stage_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@@ -39,9 +39,7 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "cally-text.h" #include "cally-text.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"

View File

@@ -74,9 +74,9 @@ struct _CallyTextClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_text_get_type (void) G_GNUC_CONST; GType cally_text_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject* cally_text_new (ClutterActor *actor); AtkObject* cally_text_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@@ -74,9 +74,9 @@ struct _CallyTextureClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_texture_get_type (void) G_GNUC_CONST; GType cally_texture_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
AtkObject *cally_texture_new (ClutterActor *actor); AtkObject *cally_texture_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@@ -38,9 +38,7 @@
* available any accessible object. * available any accessible object.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@@ -144,7 +142,7 @@ cally_util_get_toolkit_name (void)
static const gchar * static const gchar *
cally_util_get_toolkit_version (void) cally_util_get_toolkit_version (void)
{ {
return CLUTTER_VERSION_S; return MUTTER_VERSION;
} }
static guint static guint

View File

@@ -74,7 +74,7 @@ struct _CallyUtilClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType cally_util_get_type (void) G_GNUC_CONST; GType cally_util_get_type (void) G_GNUC_CONST;
void _cally_util_override_atk_util (void); void _cally_util_override_atk_util (void);

View File

@@ -29,9 +29,7 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS #define CLUTTER_DISABLE_DEPRECATION_WARNINGS

View File

@@ -41,9 +41,7 @@
* #ClutterAction is available since Clutter 1.4 * #ClutterAction is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-action.h" #include "clutter-action.h"

View File

@@ -78,32 +78,32 @@ struct _ClutterActionClass
void (* _clutter_action8) (void); void (* _clutter_action8) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_action_get_type (void) G_GNUC_CONST; GType clutter_action_get_type (void) G_GNUC_CONST;
/* ClutterActor API */ /* ClutterActor API */
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_add_action (ClutterActor *self, void clutter_actor_add_action (ClutterActor *self,
ClutterAction *action); ClutterAction *action);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_add_action_with_name (ClutterActor *self, void clutter_actor_add_action_with_name (ClutterActor *self,
const gchar *name, const gchar *name,
ClutterAction *action); ClutterAction *action);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_remove_action (ClutterActor *self, void clutter_actor_remove_action (ClutterActor *self,
ClutterAction *action); ClutterAction *action);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_remove_action_by_name (ClutterActor *self, void clutter_actor_remove_action_by_name (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterAction *clutter_actor_get_action (ClutterActor *self, ClutterAction *clutter_actor_get_action (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GList * clutter_actor_get_actions (ClutterActor *self); GList * clutter_actor_get_actions (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_clear_actions (ClutterActor *self); void clutter_actor_clear_actions (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_actor_has_actions (ClutterActor *self); gboolean clutter_actor_has_actions (ClutterActor *self);
G_END_DECLS G_END_DECLS

View File

@@ -1,6 +1,4 @@
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -41,9 +41,7 @@
* #ClutterActorMeta is available since Clutter 1.4 * #ClutterActorMeta is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-actor-meta-private.h" #include "clutter-actor-meta-private.h"

View File

@@ -97,21 +97,21 @@ struct _ClutterActorMetaClass
void (* _clutter_meta7) (void); void (* _clutter_meta7) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_actor_meta_get_type (void) G_GNUC_CONST; GType clutter_actor_meta_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_meta_set_name (ClutterActorMeta *meta, void clutter_actor_meta_set_name (ClutterActorMeta *meta,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
const gchar * clutter_actor_meta_get_name (ClutterActorMeta *meta); const gchar * clutter_actor_meta_get_name (ClutterActorMeta *meta);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_meta_set_enabled (ClutterActorMeta *meta, void clutter_actor_meta_set_enabled (ClutterActorMeta *meta,
gboolean is_enabled); gboolean is_enabled);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gboolean clutter_actor_meta_get_enabled (ClutterActorMeta *meta); gboolean clutter_actor_meta_get_enabled (ClutterActorMeta *meta);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterActor * clutter_actor_meta_get_actor (ClutterActorMeta *meta); ClutterActor * clutter_actor_meta_get_actor (ClutterActorMeta *meta);
G_END_DECLS G_END_DECLS

View File

@@ -9024,7 +9024,7 @@ _clutter_actor_queue_only_relayout (ClutterActor *self)
priv->needs_allocation) priv->needs_allocation)
return; /* save some cpu cycles */ return; /* save some cpu cycles */
#if CLUTTER_ENABLE_DEBUG #ifdef CLUTTER_ENABLE_DEBUG
if (!CLUTTER_ACTOR_IS_TOPLEVEL (self) && CLUTTER_ACTOR_IN_RELAYOUT (self)) if (!CLUTTER_ACTOR_IS_TOPLEVEL (self) && CLUTTER_ACTOR_IN_RELAYOUT (self))
{ {
g_warning ("The actor '%s' is currently inside an allocation " g_warning ("The actor '%s' is currently inside an allocation "
@@ -21156,6 +21156,7 @@ clutter_actor_bind_model_with_properties (ClutterActor *self,
model_property = va_arg (args, char *); model_property = va_arg (args, char *);
} }
va_end (args);
clutter_actor_bind_model (self, model, bind_child_with_properties, clos, bind_closure_free); clutter_actor_bind_model (self, model, bind_child_with_properties, clos, bind_closure_free);
} }

View File

@@ -61,7 +61,7 @@ G_BEGIN_DECLS
* internal state. * internal state.
*/ */
#define CLUTTER_ACTOR_SET_FLAGS(a,f) \ #define CLUTTER_ACTOR_SET_FLAGS(a,f) \
CLUTTER_MACRO_DEPRECATED_IN_1_24 \ CLUTTER_MACRO_DEPRECATED \
(((ClutterActor*)(a))->flags |= (f)) (((ClutterActor*)(a))->flags |= (f))
/** /**
@@ -76,23 +76,23 @@ G_BEGIN_DECLS
* internal state. * internal state.
*/ */
#define CLUTTER_ACTOR_UNSET_FLAGS(a,f) \ #define CLUTTER_ACTOR_UNSET_FLAGS(a,f) \
CLUTTER_MACRO_DEPRECATED_IN_1_24 \ CLUTTER_MACRO_DEPRECATED \
(((ClutterActor*)(a))->flags &= ~(f)) (((ClutterActor*)(a))->flags &= ~(f))
#define CLUTTER_ACTOR_IS_MAPPED(a) \ #define CLUTTER_ACTOR_IS_MAPPED(a) \
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_is_mapped instead") \ CLUTTER_MACRO_DEPRECATED_FOR ("Deprecated macro. Use clutter_actor_is_mapped instead") \
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_MAPPED) != FALSE) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_MAPPED) != FALSE)
#define CLUTTER_ACTOR_IS_REALIZED(a) \ #define CLUTTER_ACTOR_IS_REALIZED(a) \
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_is_realized instead") \ CLUTTER_MACRO_DEPRECATED_FOR ("Deprecated macro. Use clutter_actor_is_realized instead") \
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REALIZED) != FALSE) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REALIZED) != FALSE)
#define CLUTTER_ACTOR_IS_VISIBLE(a) \ #define CLUTTER_ACTOR_IS_VISIBLE(a) \
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_is_visible instead") \ CLUTTER_MACRO_DEPRECATED_FOR ("Deprecated macro. Use clutter_actor_is_visible instead") \
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_VISIBLE) != FALSE) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_VISIBLE) != FALSE)
#define CLUTTER_ACTOR_IS_REACTIVE(a) \ #define CLUTTER_ACTOR_IS_REACTIVE(a) \
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_get_reactive instead") \ CLUTTER_MACRO_DEPRECATED_FOR ("Deprecated macro. Use clutter_actor_get_reactive instead") \
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REACTIVE) != FALSE) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REACTIVE) != FALSE)
typedef struct _ClutterActorClass ClutterActorClass; typedef struct _ClutterActorClass ClutterActorClass;
@@ -322,97 +322,97 @@ struct _ClutterActorIter
gpointer CLUTTER_PRIVATE_FIELD (dummy5); gpointer CLUTTER_PRIVATE_FIELD (dummy5);
}; };
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_actor_get_type (void) G_GNUC_CONST; GType clutter_actor_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActor * clutter_actor_new (void); ClutterActor * clutter_actor_new (void);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_flags (ClutterActor *self, void clutter_actor_set_flags (ClutterActor *self,
ClutterActorFlags flags); ClutterActorFlags flags);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_unset_flags (ClutterActor *self, void clutter_actor_unset_flags (ClutterActor *self,
ClutterActorFlags flags); ClutterActorFlags flags);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterActorFlags clutter_actor_get_flags (ClutterActor *self); ClutterActorFlags clutter_actor_get_flags (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_show (ClutterActor *self); void clutter_actor_show (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_hide (ClutterActor *self); void clutter_actor_hide (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_realize (ClutterActor *self); void clutter_actor_realize (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_unrealize (ClutterActor *self); void clutter_actor_unrealize (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_map (ClutterActor *self); void clutter_actor_map (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_unmap (ClutterActor *self); void clutter_actor_unmap (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_paint (ClutterActor *self); void clutter_actor_paint (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_continue_paint (ClutterActor *self); void clutter_actor_continue_paint (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_queue_redraw (ClutterActor *self); void clutter_actor_queue_redraw (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_queue_redraw_with_clip (ClutterActor *self, void clutter_actor_queue_redraw_with_clip (ClutterActor *self,
const cairo_rectangle_int_t *clip); const cairo_rectangle_int_t *clip);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_queue_relayout (ClutterActor *self); void clutter_actor_queue_relayout (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_destroy (ClutterActor *self); void clutter_actor_destroy (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_name (ClutterActor *self, void clutter_actor_set_name (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
const gchar * clutter_actor_get_name (ClutterActor *self); const gchar * clutter_actor_get_name (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
AtkObject * clutter_actor_get_accessible (ClutterActor *self); AtkObject * clutter_actor_get_accessible (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
gboolean clutter_actor_is_visible (ClutterActor *self); gboolean clutter_actor_is_visible (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
gboolean clutter_actor_is_mapped (ClutterActor *self); gboolean clutter_actor_is_mapped (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
gboolean clutter_actor_is_realized (ClutterActor *self); gboolean clutter_actor_is_realized (ClutterActor *self);
/* Size negotiation */ /* Size negotiation */
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_request_mode (ClutterActor *self, void clutter_actor_set_request_mode (ClutterActor *self,
ClutterRequestMode mode); ClutterRequestMode mode);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterRequestMode clutter_actor_get_request_mode (ClutterActor *self); ClutterRequestMode clutter_actor_get_request_mode (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_preferred_width (ClutterActor *self, void clutter_actor_get_preferred_width (ClutterActor *self,
gfloat for_height, gfloat for_height,
gfloat *min_width_p, gfloat *min_width_p,
gfloat *natural_width_p); gfloat *natural_width_p);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_preferred_height (ClutterActor *self, void clutter_actor_get_preferred_height (ClutterActor *self,
gfloat for_width, gfloat for_width,
gfloat *min_height_p, gfloat *min_height_p,
gfloat *natural_height_p); gfloat *natural_height_p);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_preferred_size (ClutterActor *self, void clutter_actor_get_preferred_size (ClutterActor *self,
gfloat *min_width_p, gfloat *min_width_p,
gfloat *min_height_p, gfloat *min_height_p,
gfloat *natural_width_p, gfloat *natural_width_p,
gfloat *natural_height_p); gfloat *natural_height_p);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_allocate (ClutterActor *self, void clutter_actor_allocate (ClutterActor *self,
const ClutterActorBox *box, const ClutterActorBox *box,
ClutterAllocationFlags flags); ClutterAllocationFlags flags);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_allocate_preferred_size (ClutterActor *self, void clutter_actor_allocate_preferred_size (ClutterActor *self,
ClutterAllocationFlags flags); ClutterAllocationFlags flags);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_allocate_available_size (ClutterActor *self, void clutter_actor_allocate_available_size (ClutterActor *self,
gfloat x, gfloat x,
gfloat y, gfloat y,
gfloat available_width, gfloat available_width,
gfloat available_height, gfloat available_height,
ClutterAllocationFlags flags); ClutterAllocationFlags flags);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_allocate_align_fill (ClutterActor *self, void clutter_actor_allocate_align_fill (ClutterActor *self,
const ClutterActorBox *box, const ClutterActorBox *box,
gdouble x_align, gdouble x_align,
@@ -420,448 +420,448 @@ void clutter_actor_allocate_align_fill
gboolean x_fill, gboolean x_fill,
gboolean y_fill, gboolean y_fill,
ClutterAllocationFlags flags); ClutterAllocationFlags flags);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_allocation (ClutterActor *self, void clutter_actor_set_allocation (ClutterActor *self,
const ClutterActorBox *box, const ClutterActorBox *box,
ClutterAllocationFlags flags); ClutterAllocationFlags flags);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_allocation_box (ClutterActor *self, void clutter_actor_get_allocation_box (ClutterActor *self,
ClutterActorBox *box); ClutterActorBox *box);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_allocation_vertices (ClutterActor *self, void clutter_actor_get_allocation_vertices (ClutterActor *self,
ClutterActor *ancestor, ClutterActor *ancestor,
ClutterVertex verts[]); ClutterVertex verts[]);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_has_allocation (ClutterActor *self); gboolean clutter_actor_has_allocation (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_size (ClutterActor *self, void clutter_actor_set_size (ClutterActor *self,
gfloat width, gfloat width,
gfloat height); gfloat height);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_size (ClutterActor *self, void clutter_actor_get_size (ClutterActor *self,
gfloat *width, gfloat *width,
gfloat *height); gfloat *height);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_position (ClutterActor *self, void clutter_actor_set_position (ClutterActor *self,
gfloat x, gfloat x,
gfloat y); gfloat y);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_position (ClutterActor *self, void clutter_actor_get_position (ClutterActor *self,
gfloat *x, gfloat *x,
gfloat *y); gfloat *y);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_get_fixed_position_set (ClutterActor *self); gboolean clutter_actor_get_fixed_position_set (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_fixed_position_set (ClutterActor *self, void clutter_actor_set_fixed_position_set (ClutterActor *self,
gboolean is_set); gboolean is_set);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_move_by (ClutterActor *self, void clutter_actor_move_by (ClutterActor *self,
gfloat dx, gfloat dx,
gfloat dy); gfloat dy);
/* Actor geometry */ /* Actor geometry */
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gfloat clutter_actor_get_width (ClutterActor *self); gfloat clutter_actor_get_width (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gfloat clutter_actor_get_height (ClutterActor *self); gfloat clutter_actor_get_height (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_width (ClutterActor *self, void clutter_actor_set_width (ClutterActor *self,
gfloat width); gfloat width);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_height (ClutterActor *self, void clutter_actor_set_height (ClutterActor *self,
gfloat height); gfloat height);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gfloat clutter_actor_get_x (ClutterActor *self); gfloat clutter_actor_get_x (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gfloat clutter_actor_get_y (ClutterActor *self); gfloat clutter_actor_get_y (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_x (ClutterActor *self, void clutter_actor_set_x (ClutterActor *self,
gfloat x); gfloat x);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_y (ClutterActor *self, void clutter_actor_set_y (ClutterActor *self,
gfloat y); gfloat y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_z_position (ClutterActor *self, void clutter_actor_set_z_position (ClutterActor *self,
gfloat z_position); gfloat z_position);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gfloat clutter_actor_get_z_position (ClutterActor *self); gfloat clutter_actor_get_z_position (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_layout_manager (ClutterActor *self, void clutter_actor_set_layout_manager (ClutterActor *self,
ClutterLayoutManager *manager); ClutterLayoutManager *manager);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterLayoutManager * clutter_actor_get_layout_manager (ClutterActor *self); ClutterLayoutManager * clutter_actor_get_layout_manager (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_x_align (ClutterActor *self, void clutter_actor_set_x_align (ClutterActor *self,
ClutterActorAlign x_align); ClutterActorAlign x_align);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActorAlign clutter_actor_get_x_align (ClutterActor *self); ClutterActorAlign clutter_actor_get_x_align (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_y_align (ClutterActor *self, void clutter_actor_set_y_align (ClutterActor *self,
ClutterActorAlign y_align); ClutterActorAlign y_align);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActorAlign clutter_actor_get_y_align (ClutterActor *self); ClutterActorAlign clutter_actor_get_y_align (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_margin_top (ClutterActor *self, void clutter_actor_set_margin_top (ClutterActor *self,
gfloat margin); gfloat margin);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gfloat clutter_actor_get_margin_top (ClutterActor *self); gfloat clutter_actor_get_margin_top (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_margin_bottom (ClutterActor *self, void clutter_actor_set_margin_bottom (ClutterActor *self,
gfloat margin); gfloat margin);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gfloat clutter_actor_get_margin_bottom (ClutterActor *self); gfloat clutter_actor_get_margin_bottom (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_margin_left (ClutterActor *self, void clutter_actor_set_margin_left (ClutterActor *self,
gfloat margin); gfloat margin);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gfloat clutter_actor_get_margin_left (ClutterActor *self); gfloat clutter_actor_get_margin_left (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_margin_right (ClutterActor *self, void clutter_actor_set_margin_right (ClutterActor *self,
gfloat margin); gfloat margin);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gfloat clutter_actor_get_margin_right (ClutterActor *self); gfloat clutter_actor_get_margin_right (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_margin (ClutterActor *self, void clutter_actor_set_margin (ClutterActor *self,
const ClutterMargin *margin); const ClutterMargin *margin);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_get_margin (ClutterActor *self, void clutter_actor_get_margin (ClutterActor *self,
ClutterMargin *margin); ClutterMargin *margin);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_x_expand (ClutterActor *self, void clutter_actor_set_x_expand (ClutterActor *self,
gboolean expand); gboolean expand);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_actor_get_x_expand (ClutterActor *self); gboolean clutter_actor_get_x_expand (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_y_expand (ClutterActor *self, void clutter_actor_set_y_expand (ClutterActor *self,
gboolean expand); gboolean expand);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_actor_get_y_expand (ClutterActor *self); gboolean clutter_actor_get_y_expand (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_actor_needs_expand (ClutterActor *self, gboolean clutter_actor_needs_expand (ClutterActor *self,
ClutterOrientation orientation); ClutterOrientation orientation);
/* Paint */ /* Paint */
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_clip (ClutterActor *self, void clutter_actor_set_clip (ClutterActor *self,
gfloat xoff, gfloat xoff,
gfloat yoff, gfloat yoff,
gfloat width, gfloat width,
gfloat height); gfloat height);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_remove_clip (ClutterActor *self); void clutter_actor_remove_clip (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_has_clip (ClutterActor *self); gboolean clutter_actor_has_clip (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_clip (ClutterActor *self, void clutter_actor_get_clip (ClutterActor *self,
gfloat *xoff, gfloat *xoff,
gfloat *yoff, gfloat *yoff,
gfloat *width, gfloat *width,
gfloat *height); gfloat *height);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_clip_to_allocation (ClutterActor *self, void clutter_actor_set_clip_to_allocation (ClutterActor *self,
gboolean clip_set); gboolean clip_set);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_get_clip_to_allocation (ClutterActor *self); gboolean clutter_actor_get_clip_to_allocation (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_opacity (ClutterActor *self, void clutter_actor_set_opacity (ClutterActor *self,
guint8 opacity); guint8 opacity);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
guint8 clutter_actor_get_opacity (ClutterActor *self); guint8 clutter_actor_get_opacity (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
guint8 clutter_actor_get_paint_opacity (ClutterActor *self); guint8 clutter_actor_get_paint_opacity (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_get_paint_visibility (ClutterActor *self); gboolean clutter_actor_get_paint_visibility (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_actor_set_offscreen_redirect (ClutterActor *self, void clutter_actor_set_offscreen_redirect (ClutterActor *self,
ClutterOffscreenRedirect redirect); ClutterOffscreenRedirect redirect);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
ClutterOffscreenRedirect clutter_actor_get_offscreen_redirect (ClutterActor *self); ClutterOffscreenRedirect clutter_actor_get_offscreen_redirect (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_should_pick_paint (ClutterActor *self); gboolean clutter_actor_should_pick_paint (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_is_in_clone_paint (ClutterActor *self); gboolean clutter_actor_is_in_clone_paint (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_get_paint_box (ClutterActor *self, gboolean clutter_actor_get_paint_box (ClutterActor *self,
ClutterActorBox *box); ClutterActorBox *box);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
gboolean clutter_actor_has_overlaps (ClutterActor *self); gboolean clutter_actor_has_overlaps (ClutterActor *self);
/* Content */ /* Content */
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_content (ClutterActor *self, void clutter_actor_set_content (ClutterActor *self,
ClutterContent *content); ClutterContent *content);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterContent * clutter_actor_get_content (ClutterActor *self); ClutterContent * clutter_actor_get_content (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_content_gravity (ClutterActor *self, void clutter_actor_set_content_gravity (ClutterActor *self,
ClutterContentGravity gravity); ClutterContentGravity gravity);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterContentGravity clutter_actor_get_content_gravity (ClutterActor *self); ClutterContentGravity clutter_actor_get_content_gravity (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_content_scaling_filters (ClutterActor *self, void clutter_actor_set_content_scaling_filters (ClutterActor *self,
ClutterScalingFilter min_filter, ClutterScalingFilter min_filter,
ClutterScalingFilter mag_filter); ClutterScalingFilter mag_filter);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_get_content_scaling_filters (ClutterActor *self, void clutter_actor_get_content_scaling_filters (ClutterActor *self,
ClutterScalingFilter *min_filter, ClutterScalingFilter *min_filter,
ClutterScalingFilter *mag_filter); ClutterScalingFilter *mag_filter);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_content_repeat (ClutterActor *self, void clutter_actor_set_content_repeat (ClutterActor *self,
ClutterContentRepeat repeat); ClutterContentRepeat repeat);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterContentRepeat clutter_actor_get_content_repeat (ClutterActor *self); ClutterContentRepeat clutter_actor_get_content_repeat (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_get_content_box (ClutterActor *self, void clutter_actor_get_content_box (ClutterActor *self,
ClutterActorBox *box); ClutterActorBox *box);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_background_color (ClutterActor *self, void clutter_actor_set_background_color (ClutterActor *self,
const ClutterColor *color); const ClutterColor *color);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_get_background_color (ClutterActor *self, void clutter_actor_get_background_color (ClutterActor *self,
ClutterColor *color); ClutterColor *color);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
const ClutterPaintVolume * clutter_actor_get_paint_volume (ClutterActor *self); const ClutterPaintVolume * clutter_actor_get_paint_volume (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
const ClutterPaintVolume * clutter_actor_get_transformed_paint_volume (ClutterActor *self, const ClutterPaintVolume * clutter_actor_get_transformed_paint_volume (ClutterActor *self,
ClutterActor *relative_to_ancestor); ClutterActor *relative_to_ancestor);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
const ClutterPaintVolume * clutter_actor_get_default_paint_volume (ClutterActor *self); const ClutterPaintVolume * clutter_actor_get_default_paint_volume (ClutterActor *self);
/* Events */ /* Events */
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_reactive (ClutterActor *actor, void clutter_actor_set_reactive (ClutterActor *actor,
gboolean reactive); gboolean reactive);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_get_reactive (ClutterActor *actor); gboolean clutter_actor_get_reactive (ClutterActor *actor);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_has_key_focus (ClutterActor *self); gboolean clutter_actor_has_key_focus (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_grab_key_focus (ClutterActor *self); void clutter_actor_grab_key_focus (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_event (ClutterActor *actor, gboolean clutter_actor_event (ClutterActor *actor,
const ClutterEvent *event, const ClutterEvent *event,
gboolean capture); gboolean capture);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_has_pointer (ClutterActor *self); gboolean clutter_actor_has_pointer (ClutterActor *self);
/* Text */ /* Text */
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
PangoContext * clutter_actor_get_pango_context (ClutterActor *self); PangoContext * clutter_actor_get_pango_context (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
PangoContext * clutter_actor_create_pango_context (ClutterActor *self); PangoContext * clutter_actor_create_pango_context (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
PangoLayout * clutter_actor_create_pango_layout (ClutterActor *self, PangoLayout * clutter_actor_create_pango_layout (ClutterActor *self,
const gchar *text); const gchar *text);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_text_direction (ClutterActor *self, void clutter_actor_set_text_direction (ClutterActor *self,
ClutterTextDirection text_dir); ClutterTextDirection text_dir);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterTextDirection clutter_actor_get_text_direction (ClutterActor *self); ClutterTextDirection clutter_actor_get_text_direction (ClutterActor *self);
/* Actor hierarchy */ /* Actor hierarchy */
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_add_child (ClutterActor *self, void clutter_actor_add_child (ClutterActor *self,
ClutterActor *child); ClutterActor *child);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_insert_child_at_index (ClutterActor *self, void clutter_actor_insert_child_at_index (ClutterActor *self,
ClutterActor *child, ClutterActor *child,
gint index_); gint index_);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_insert_child_above (ClutterActor *self, void clutter_actor_insert_child_above (ClutterActor *self,
ClutterActor *child, ClutterActor *child,
ClutterActor *sibling); ClutterActor *sibling);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_insert_child_below (ClutterActor *self, void clutter_actor_insert_child_below (ClutterActor *self,
ClutterActor *child, ClutterActor *child,
ClutterActor *sibling); ClutterActor *sibling);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_replace_child (ClutterActor *self, void clutter_actor_replace_child (ClutterActor *self,
ClutterActor *old_child, ClutterActor *old_child,
ClutterActor *new_child); ClutterActor *new_child);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_remove_child (ClutterActor *self, void clutter_actor_remove_child (ClutterActor *self,
ClutterActor *child); ClutterActor *child);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_remove_all_children (ClutterActor *self); void clutter_actor_remove_all_children (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_destroy_all_children (ClutterActor *self); void clutter_actor_destroy_all_children (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
GList * clutter_actor_get_children (ClutterActor *self); GList * clutter_actor_get_children (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gint clutter_actor_get_n_children (ClutterActor *self); gint clutter_actor_get_n_children (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActor * clutter_actor_get_child_at_index (ClutterActor *self, ClutterActor * clutter_actor_get_child_at_index (ClutterActor *self,
gint index_); gint index_);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActor * clutter_actor_get_previous_sibling (ClutterActor *self); ClutterActor * clutter_actor_get_previous_sibling (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActor * clutter_actor_get_next_sibling (ClutterActor *self); ClutterActor * clutter_actor_get_next_sibling (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActor * clutter_actor_get_first_child (ClutterActor *self); ClutterActor * clutter_actor_get_first_child (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterActor * clutter_actor_get_last_child (ClutterActor *self); ClutterActor * clutter_actor_get_last_child (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterActor * clutter_actor_get_parent (ClutterActor *self); ClutterActor * clutter_actor_get_parent (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gboolean clutter_actor_contains (ClutterActor *self, gboolean clutter_actor_contains (ClutterActor *self,
ClutterActor *descendant); ClutterActor *descendant);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterActor* clutter_actor_get_stage (ClutterActor *actor); ClutterActor* clutter_actor_get_stage (ClutterActor *actor);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_child_below_sibling (ClutterActor *self, void clutter_actor_set_child_below_sibling (ClutterActor *self,
ClutterActor *child, ClutterActor *child,
ClutterActor *sibling); ClutterActor *sibling);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_child_above_sibling (ClutterActor *self, void clutter_actor_set_child_above_sibling (ClutterActor *self,
ClutterActor *child, ClutterActor *child,
ClutterActor *sibling); ClutterActor *sibling);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_child_at_index (ClutterActor *self, void clutter_actor_set_child_at_index (ClutterActor *self,
ClutterActor *child, ClutterActor *child,
gint index_); gint index_);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_iter_init (ClutterActorIter *iter, void clutter_actor_iter_init (ClutterActorIter *iter,
ClutterActor *root); ClutterActor *root);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_actor_iter_next (ClutterActorIter *iter, gboolean clutter_actor_iter_next (ClutterActorIter *iter,
ClutterActor **child); ClutterActor **child);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_actor_iter_prev (ClutterActorIter *iter, gboolean clutter_actor_iter_prev (ClutterActorIter *iter,
ClutterActor **child); ClutterActor **child);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_iter_remove (ClutterActorIter *iter); void clutter_actor_iter_remove (ClutterActorIter *iter);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_iter_destroy (ClutterActorIter *iter); void clutter_actor_iter_destroy (ClutterActorIter *iter);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_actor_iter_is_valid (const ClutterActorIter *iter); gboolean clutter_actor_iter_is_valid (const ClutterActorIter *iter);
/* Transformations */ /* Transformations */
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_is_rotated (ClutterActor *self); gboolean clutter_actor_is_rotated (ClutterActor *self);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_is_scaled (ClutterActor *self); gboolean clutter_actor_is_scaled (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_pivot_point (ClutterActor *self, void clutter_actor_set_pivot_point (ClutterActor *self,
gfloat pivot_x, gfloat pivot_x,
gfloat pivot_y); gfloat pivot_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_get_pivot_point (ClutterActor *self, void clutter_actor_get_pivot_point (ClutterActor *self,
gfloat *pivot_x, gfloat *pivot_x,
gfloat *pivot_y); gfloat *pivot_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_pivot_point_z (ClutterActor *self, void clutter_actor_set_pivot_point_z (ClutterActor *self,
gfloat pivot_z); gfloat pivot_z);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gfloat clutter_actor_get_pivot_point_z (ClutterActor *self); gfloat clutter_actor_get_pivot_point_z (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_rotation_angle (ClutterActor *self, void clutter_actor_set_rotation_angle (ClutterActor *self,
ClutterRotateAxis axis, ClutterRotateAxis axis,
gdouble angle); gdouble angle);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gdouble clutter_actor_get_rotation_angle (ClutterActor *self, gdouble clutter_actor_get_rotation_angle (ClutterActor *self,
ClutterRotateAxis axis); ClutterRotateAxis axis);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_set_scale (ClutterActor *self, void clutter_actor_set_scale (ClutterActor *self,
gdouble scale_x, gdouble scale_x,
gdouble scale_y); gdouble scale_y);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_scale (ClutterActor *self, void clutter_actor_get_scale (ClutterActor *self,
gdouble *scale_x, gdouble *scale_x,
gdouble *scale_y); gdouble *scale_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_scale_z (ClutterActor *self, void clutter_actor_set_scale_z (ClutterActor *self,
gdouble scale_z); gdouble scale_z);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gdouble clutter_actor_get_scale_z (ClutterActor *self); gdouble clutter_actor_get_scale_z (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_translation (ClutterActor *self, void clutter_actor_set_translation (ClutterActor *self,
gfloat translate_x, gfloat translate_x,
gfloat translate_y, gfloat translate_y,
gfloat translate_z); gfloat translate_z);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_get_translation (ClutterActor *self, void clutter_actor_get_translation (ClutterActor *self,
gfloat *translate_x, gfloat *translate_x,
gfloat *translate_y, gfloat *translate_y,
gfloat *translate_z); gfloat *translate_z);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_transform (ClutterActor *self, void clutter_actor_set_transform (ClutterActor *self,
const ClutterMatrix *transform); const ClutterMatrix *transform);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_get_transform (ClutterActor *self, void clutter_actor_get_transform (ClutterActor *self,
ClutterMatrix *transform); ClutterMatrix *transform);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_set_child_transform (ClutterActor *self, void clutter_actor_set_child_transform (ClutterActor *self,
const ClutterMatrix *transform); const ClutterMatrix *transform);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_actor_get_child_transform (ClutterActor *self, void clutter_actor_get_child_transform (ClutterActor *self,
ClutterMatrix *transform); ClutterMatrix *transform);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_transformed_position (ClutterActor *self, void clutter_actor_get_transformed_position (ClutterActor *self,
gfloat *x, gfloat *x,
gfloat *y); gfloat *y);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_transformed_size (ClutterActor *self, void clutter_actor_get_transformed_size (ClutterActor *self,
gfloat *width, gfloat *width,
gfloat *height); gfloat *height);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_actor_transform_stage_point (ClutterActor *self, gboolean clutter_actor_transform_stage_point (ClutterActor *self,
gfloat x, gfloat x,
gfloat y, gfloat y,
gfloat *x_out, gfloat *x_out,
gfloat *y_out); gfloat *y_out);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_get_abs_allocation_vertices (ClutterActor *self, void clutter_actor_get_abs_allocation_vertices (ClutterActor *self,
ClutterVertex verts[]); ClutterVertex verts[]);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_apply_transform_to_point (ClutterActor *self, void clutter_actor_apply_transform_to_point (ClutterActor *self,
const ClutterVertex *point, const ClutterVertex *point,
ClutterVertex *vertex); ClutterVertex *vertex);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_actor_apply_relative_transform_to_point (ClutterActor *self, void clutter_actor_apply_relative_transform_to_point (ClutterActor *self,
ClutterActor *ancestor, ClutterActor *ancestor,
const ClutterVertex *point, const ClutterVertex *point,
ClutterVertex *vertex); ClutterVertex *vertex);
/* Implicit animations */ /* Implicit animations */
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_save_easing_state (ClutterActor *self); void clutter_actor_save_easing_state (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_restore_easing_state (ClutterActor *self); void clutter_actor_restore_easing_state (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_easing_mode (ClutterActor *self, void clutter_actor_set_easing_mode (ClutterActor *self,
ClutterAnimationMode mode); ClutterAnimationMode mode);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterAnimationMode clutter_actor_get_easing_mode (ClutterActor *self); ClutterAnimationMode clutter_actor_get_easing_mode (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_easing_duration (ClutterActor *self, void clutter_actor_set_easing_duration (ClutterActor *self,
guint msecs); guint msecs);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
guint clutter_actor_get_easing_duration (ClutterActor *self); guint clutter_actor_get_easing_duration (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_set_easing_delay (ClutterActor *self, void clutter_actor_set_easing_delay (ClutterActor *self,
guint msecs); guint msecs);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
guint clutter_actor_get_easing_delay (ClutterActor *self); guint clutter_actor_get_easing_delay (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterTransition * clutter_actor_get_transition (ClutterActor *self, ClutterTransition * clutter_actor_get_transition (ClutterActor *self,
const char *name); const char *name);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_add_transition (ClutterActor *self, void clutter_actor_add_transition (ClutterActor *self,
const char *name, const char *name,
ClutterTransition *transition); ClutterTransition *transition);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_remove_transition (ClutterActor *self, void clutter_actor_remove_transition (ClutterActor *self,
const char *name); const char *name);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_actor_remove_all_transitions (ClutterActor *self); void clutter_actor_remove_all_transitions (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_16 CLUTTER_EXPORT
gboolean clutter_actor_has_mapped_clones (ClutterActor *self); gboolean clutter_actor_has_mapped_clones (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_22 CLUTTER_EXPORT
void clutter_actor_set_opacity_override (ClutterActor *self, void clutter_actor_set_opacity_override (ClutterActor *self,
gint opacity); gint opacity);
CLUTTER_AVAILABLE_IN_1_22 CLUTTER_EXPORT
gint clutter_actor_get_opacity_override (ClutterActor *self); gint clutter_actor_get_opacity_override (ClutterActor *self);
/** /**
@@ -883,13 +883,13 @@ gint clutter_actor_get_opacity_override
typedef ClutterActor * (* ClutterActorCreateChildFunc) (gpointer item, typedef ClutterActor * (* ClutterActorCreateChildFunc) (gpointer item,
gpointer user_data); gpointer user_data);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
void clutter_actor_bind_model (ClutterActor *self, void clutter_actor_bind_model (ClutterActor *self,
GListModel *model, GListModel *model,
ClutterActorCreateChildFunc create_child_func, ClutterActorCreateChildFunc create_child_func,
gpointer user_data, gpointer user_data,
GDestroyNotify notify); GDestroyNotify notify);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
void clutter_actor_bind_model_with_properties (ClutterActor *self, void clutter_actor_bind_model_with_properties (ClutterActor *self,
GListModel *model, GListModel *model,
GType child_type, GType child_type,

View File

@@ -34,9 +34,7 @@
* #ClutterAlignConstraint is available since Clutter 1.4 * #ClutterAlignConstraint is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-align-constraint.h" #include "clutter-align-constraint.h"

View File

@@ -48,28 +48,28 @@ G_BEGIN_DECLS
typedef struct _ClutterAlignConstraint ClutterAlignConstraint; typedef struct _ClutterAlignConstraint ClutterAlignConstraint;
typedef struct _ClutterAlignConstraintClass ClutterAlignConstraintClass; typedef struct _ClutterAlignConstraintClass ClutterAlignConstraintClass;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_align_constraint_get_type (void) G_GNUC_CONST; GType clutter_align_constraint_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterConstraint *clutter_align_constraint_new (ClutterActor *source, ClutterConstraint *clutter_align_constraint_new (ClutterActor *source,
ClutterAlignAxis axis, ClutterAlignAxis axis,
gfloat factor); gfloat factor);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_align_constraint_set_source (ClutterAlignConstraint *align, void clutter_align_constraint_set_source (ClutterAlignConstraint *align,
ClutterActor *source); ClutterActor *source);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterActor * clutter_align_constraint_get_source (ClutterAlignConstraint *align); ClutterActor * clutter_align_constraint_get_source (ClutterAlignConstraint *align);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_align_constraint_set_align_axis (ClutterAlignConstraint *align, void clutter_align_constraint_set_align_axis (ClutterAlignConstraint *align,
ClutterAlignAxis axis); ClutterAlignAxis axis);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterAlignAxis clutter_align_constraint_get_align_axis (ClutterAlignConstraint *align); ClutterAlignAxis clutter_align_constraint_get_align_axis (ClutterAlignConstraint *align);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_align_constraint_set_factor (ClutterAlignConstraint *align, void clutter_align_constraint_set_factor (ClutterAlignConstraint *align,
gfloat factor); gfloat factor);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gfloat clutter_align_constraint_get_factor (ClutterAlignConstraint *align); gfloat clutter_align_constraint_get_factor (ClutterAlignConstraint *align);
G_END_DECLS G_END_DECLS

View File

@@ -45,9 +45,7 @@
* #ClutterAnimatable is available since Clutter 1.0 * #ClutterAnimatable is available since Clutter 1.0
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS #define CLUTTER_DISABLE_DEPRECATION_WARNINGS

View File

@@ -95,21 +95,21 @@ struct _ClutterAnimatableIface
GValue *value); GValue *value);
}; };
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
GType clutter_animatable_get_type (void) G_GNUC_CONST; GType clutter_animatable_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
GParamSpec *clutter_animatable_find_property (ClutterAnimatable *animatable, GParamSpec *clutter_animatable_find_property (ClutterAnimatable *animatable,
const gchar *property_name); const gchar *property_name);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_animatable_get_initial_state (ClutterAnimatable *animatable, void clutter_animatable_get_initial_state (ClutterAnimatable *animatable,
const gchar *property_name, const gchar *property_name,
GValue *value); GValue *value);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_animatable_set_final_state (ClutterAnimatable *animatable, void clutter_animatable_set_final_state (ClutterAnimatable *animatable,
const gchar *property_name, const gchar *property_name,
const GValue *value); const GValue *value);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
gboolean clutter_animatable_interpolate_value (ClutterAnimatable *animatable, gboolean clutter_animatable_interpolate_value (ClutterAnimatable *animatable,
const gchar *property_name, const gchar *property_name,
ClutterInterval *interval, ClutterInterval *interval,

View File

@@ -135,7 +135,7 @@ gboolean _clutter_backend_translate_event (Clutter
gpointer native, gpointer native,
ClutterEvent *event); ClutterEvent *event);
CLUTTER_AVAILABLE_IN_MUTTER CLUTTER_EXPORT
void _clutter_backend_add_event_translator (ClutterBackend *backend, void _clutter_backend_add_event_translator (ClutterBackend *backend,
ClutterEventTranslator *translator); ClutterEventTranslator *translator);
@@ -150,7 +150,7 @@ gint32 _clutter_backend_get_units_serial (Clutter
PangoDirection _clutter_backend_get_keymap_direction (ClutterBackend *backend); PangoDirection _clutter_backend_get_keymap_direction (ClutterBackend *backend);
CLUTTER_AVAILABLE_IN_MUTTER CLUTTER_EXPORT
void _clutter_backend_reset_cogl_framebuffer (ClutterBackend *backend); void _clutter_backend_reset_cogl_framebuffer (ClutterBackend *backend);
void clutter_set_allowed_drivers (const char *drivers); void clutter_set_allowed_drivers (const char *drivers);

View File

@@ -38,9 +38,7 @@
* #ClutterBackend is available since Clutter 0.4 * #ClutterBackend is available since Clutter 0.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API
@@ -53,7 +51,6 @@
#include "clutter-stage-manager-private.h" #include "clutter-stage-manager-private.h"
#include "clutter-stage-private.h" #include "clutter-stage-private.h"
#include "clutter-stage-window.h" #include "clutter-stage-window.h"
#include "clutter-version.h"
#include "clutter-device-manager-private.h" #include "clutter-device-manager-private.h"
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS #define CLUTTER_DISABLE_DEPRECATION_WARNINGS

View File

@@ -53,34 +53,34 @@ G_BEGIN_DECLS
typedef struct _ClutterBackend ClutterBackend; typedef struct _ClutterBackend ClutterBackend;
typedef struct _ClutterBackendClass ClutterBackendClass; typedef struct _ClutterBackendClass ClutterBackendClass;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_backend_get_type (void) G_GNUC_CONST; GType clutter_backend_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterBackend * clutter_get_default_backend (void); ClutterBackend * clutter_get_default_backend (void);
CLUTTER_AVAILABLE_IN_1_16 CLUTTER_EXPORT
void clutter_set_windowing_backend (const char *backend_type); void clutter_set_windowing_backend (const char *backend_type);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gdouble clutter_backend_get_resolution (ClutterBackend *backend); gdouble clutter_backend_get_resolution (ClutterBackend *backend);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_backend_set_font_options (ClutterBackend *backend, void clutter_backend_set_font_options (ClutterBackend *backend,
const cairo_font_options_t *options); const cairo_font_options_t *options);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
const cairo_font_options_t * clutter_backend_get_font_options (ClutterBackend *backend); const cairo_font_options_t * clutter_backend_get_font_options (ClutterBackend *backend);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
CoglContext * clutter_backend_get_cogl_context (ClutterBackend *backend); CoglContext * clutter_backend_get_cogl_context (ClutterBackend *backend);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_backend_bell_notify (ClutterBackend *backend); void clutter_backend_bell_notify (ClutterBackend *backend);
CLUTTER_AVAILABLE_IN_MUTTER CLUTTER_EXPORT
ClutterInputMethod * clutter_backend_get_input_method (ClutterBackend *backend); ClutterInputMethod * clutter_backend_get_input_method (ClutterBackend *backend);
CLUTTER_AVAILABLE_IN_MUTTER CLUTTER_EXPORT
void clutter_backend_set_input_method (ClutterBackend *backend, void clutter_backend_set_input_method (ClutterBackend *backend,
ClutterInputMethod *method); ClutterInputMethod *method);
G_END_DECLS G_END_DECLS

View File

@@ -30,9 +30,7 @@
* across the whole API. * across the whole API.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-types.h" #include "clutter-types.h"
#include "clutter-private.h" #include "clutter-private.h"

View File

@@ -43,9 +43,7 @@
* #ClutterBinLayout is available since Clutter 1.2 * #ClutterBinLayout is available since Clutter 1.2
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -74,10 +74,10 @@ struct _ClutterBinLayoutClass
ClutterLayoutManagerClass parent_class; ClutterLayoutManagerClass parent_class;
}; };
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
GType clutter_bin_layout_get_type (void) G_GNUC_CONST; GType clutter_bin_layout_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterLayoutManager * clutter_bin_layout_new (ClutterBinAlignment x_align, ClutterLayoutManager * clutter_bin_layout_new (ClutterBinAlignment x_align,
ClutterBinAlignment y_align); ClutterBinAlignment y_align);

View File

@@ -80,9 +80,7 @@
* #ClutterBindConstraint is available since Clutter 1.4 * #ClutterBindConstraint is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -48,28 +48,28 @@ G_BEGIN_DECLS
typedef struct _ClutterBindConstraint ClutterBindConstraint; typedef struct _ClutterBindConstraint ClutterBindConstraint;
typedef struct _ClutterBindConstraintClass ClutterBindConstraintClass; typedef struct _ClutterBindConstraintClass ClutterBindConstraintClass;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_bind_constraint_get_type (void) G_GNUC_CONST; GType clutter_bind_constraint_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterConstraint * clutter_bind_constraint_new (ClutterActor *source, ClutterConstraint * clutter_bind_constraint_new (ClutterActor *source,
ClutterBindCoordinate coordinate, ClutterBindCoordinate coordinate,
gfloat offset); gfloat offset);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_bind_constraint_set_source (ClutterBindConstraint *constraint, void clutter_bind_constraint_set_source (ClutterBindConstraint *constraint,
ClutterActor *source); ClutterActor *source);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterActor * clutter_bind_constraint_get_source (ClutterBindConstraint *constraint); ClutterActor * clutter_bind_constraint_get_source (ClutterBindConstraint *constraint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_bind_constraint_set_coordinate (ClutterBindConstraint *constraint, void clutter_bind_constraint_set_coordinate (ClutterBindConstraint *constraint,
ClutterBindCoordinate coordinate); ClutterBindCoordinate coordinate);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterBindCoordinate clutter_bind_constraint_get_coordinate (ClutterBindConstraint *constraint); ClutterBindCoordinate clutter_bind_constraint_get_coordinate (ClutterBindConstraint *constraint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_bind_constraint_set_offset (ClutterBindConstraint *constraint, void clutter_bind_constraint_set_offset (ClutterBindConstraint *constraint,
gfloat offset); gfloat offset);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gfloat clutter_bind_constraint_get_offset (ClutterBindConstraint *constraint); gfloat clutter_bind_constraint_get_offset (ClutterBindConstraint *constraint);
G_END_DECLS G_END_DECLS

View File

@@ -94,9 +94,7 @@
* #ClutterBindingPool is available since Clutter 1.0 * #ClutterBindingPool is available since Clutter 1.0
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-binding-pool.h" #include "clutter-binding-pool.h"
#include "clutter-debug.h" #include "clutter-debug.h"

View File

@@ -71,17 +71,17 @@ typedef gboolean (* ClutterBindingActionFunc) (GObject *gobject,
ClutterModifierType modifiers, ClutterModifierType modifiers,
gpointer user_data); gpointer user_data);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
GType clutter_binding_pool_get_type (void) G_GNUC_CONST; GType clutter_binding_pool_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterBindingPool * clutter_binding_pool_new (const gchar *name); ClutterBindingPool * clutter_binding_pool_new (const gchar *name);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterBindingPool * clutter_binding_pool_get_for_class (gpointer klass); ClutterBindingPool * clutter_binding_pool_get_for_class (gpointer klass);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterBindingPool * clutter_binding_pool_find (const gchar *name); ClutterBindingPool * clutter_binding_pool_find (const gchar *name);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_install_action (ClutterBindingPool *pool, void clutter_binding_pool_install_action (ClutterBindingPool *pool,
const gchar *action_name, const gchar *action_name,
guint key_val, guint key_val,
@@ -89,44 +89,44 @@ void clutter_binding_pool_install_action (ClutterBindingPool
GCallback callback, GCallback callback,
gpointer data, gpointer data,
GDestroyNotify notify); GDestroyNotify notify);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_install_closure (ClutterBindingPool *pool, void clutter_binding_pool_install_closure (ClutterBindingPool *pool,
const gchar *action_name, const gchar *action_name,
guint key_val, guint key_val,
ClutterModifierType modifiers, ClutterModifierType modifiers,
GClosure *closure); GClosure *closure);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_override_action (ClutterBindingPool *pool, void clutter_binding_pool_override_action (ClutterBindingPool *pool,
guint key_val, guint key_val,
ClutterModifierType modifiers, ClutterModifierType modifiers,
GCallback callback, GCallback callback,
gpointer data, gpointer data,
GDestroyNotify notify); GDestroyNotify notify);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_override_closure (ClutterBindingPool *pool, void clutter_binding_pool_override_closure (ClutterBindingPool *pool,
guint key_val, guint key_val,
ClutterModifierType modifiers, ClutterModifierType modifiers,
GClosure *closure); GClosure *closure);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
const gchar * clutter_binding_pool_find_action (ClutterBindingPool *pool, const gchar * clutter_binding_pool_find_action (ClutterBindingPool *pool,
guint key_val, guint key_val,
ClutterModifierType modifiers); ClutterModifierType modifiers);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_remove_action (ClutterBindingPool *pool, void clutter_binding_pool_remove_action (ClutterBindingPool *pool,
guint key_val, guint key_val,
ClutterModifierType modifiers); ClutterModifierType modifiers);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
gboolean clutter_binding_pool_activate (ClutterBindingPool *pool, gboolean clutter_binding_pool_activate (ClutterBindingPool *pool,
guint key_val, guint key_val,
ClutterModifierType modifiers, ClutterModifierType modifiers,
GObject *gobject); GObject *gobject);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_block_action (ClutterBindingPool *pool, void clutter_binding_pool_block_action (ClutterBindingPool *pool,
const gchar *action_name); const gchar *action_name);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_binding_pool_unblock_action (ClutterBindingPool *pool, void clutter_binding_pool_unblock_action (ClutterBindingPool *pool,
const gchar *action_name); const gchar *action_name);

View File

@@ -37,9 +37,7 @@
#define CLUTTER_IS_BLUR_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BLUR_EFFECT)) #define CLUTTER_IS_BLUR_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BLUR_EFFECT))
#define CLUTTER_BLUR_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BLUR_EFFECT, ClutterBlurEffectClass)) #define CLUTTER_BLUR_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BLUR_EFFECT, ClutterBlurEffectClass))
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API

View File

@@ -48,10 +48,10 @@ G_BEGIN_DECLS
typedef struct _ClutterBlurEffect ClutterBlurEffect; typedef struct _ClutterBlurEffect ClutterBlurEffect;
typedef struct _ClutterBlurEffectClass ClutterBlurEffectClass; typedef struct _ClutterBlurEffectClass ClutterBlurEffectClass;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_blur_effect_get_type (void) G_GNUC_CONST; GType clutter_blur_effect_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterEffect *clutter_blur_effect_new (void); ClutterEffect *clutter_blur_effect_new (void);
G_END_DECLS G_END_DECLS

View File

@@ -48,9 +48,7 @@
* #ClutterBoxLayout is available since Clutter 1.2 * #ClutterBoxLayout is available since Clutter 1.2
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -77,41 +77,41 @@ struct _ClutterBoxLayoutClass
ClutterLayoutManagerClass parent_class; ClutterLayoutManagerClass parent_class;
}; };
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
GType clutter_box_layout_get_type (void) G_GNUC_CONST; GType clutter_box_layout_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterLayoutManager * clutter_box_layout_new (void); ClutterLayoutManager * clutter_box_layout_new (void);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_box_layout_set_orientation (ClutterBoxLayout *layout, void clutter_box_layout_set_orientation (ClutterBoxLayout *layout,
ClutterOrientation orientation); ClutterOrientation orientation);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterOrientation clutter_box_layout_get_orientation (ClutterBoxLayout *layout); ClutterOrientation clutter_box_layout_get_orientation (ClutterBoxLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_box_layout_set_spacing (ClutterBoxLayout *layout, void clutter_box_layout_set_spacing (ClutterBoxLayout *layout,
guint spacing); guint spacing);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
guint clutter_box_layout_get_spacing (ClutterBoxLayout *layout); guint clutter_box_layout_get_spacing (ClutterBoxLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_box_layout_set_homogeneous (ClutterBoxLayout *layout, void clutter_box_layout_set_homogeneous (ClutterBoxLayout *layout,
gboolean homogeneous); gboolean homogeneous);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
gboolean clutter_box_layout_get_homogeneous (ClutterBoxLayout *layout); gboolean clutter_box_layout_get_homogeneous (ClutterBoxLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_box_layout_set_pack_start (ClutterBoxLayout *layout, void clutter_box_layout_set_pack_start (ClutterBoxLayout *layout,
gboolean pack_start); gboolean pack_start);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
gboolean clutter_box_layout_get_pack_start (ClutterBoxLayout *layout); gboolean clutter_box_layout_get_pack_start (ClutterBoxLayout *layout);
CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_box_layout_set_orientation) CLUTTER_DEPRECATED_FOR(clutter_box_layout_set_orientation)
void clutter_box_layout_set_vertical (ClutterBoxLayout *layout, void clutter_box_layout_set_vertical (ClutterBoxLayout *layout,
gboolean vertical); gboolean vertical);
CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_box_layout_get_orientation) CLUTTER_DEPRECATED_FOR(clutter_box_layout_get_orientation)
gboolean clutter_box_layout_get_vertical (ClutterBoxLayout *layout); gboolean clutter_box_layout_get_vertical (ClutterBoxLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_box_layout_pack (ClutterBoxLayout *layout, void clutter_box_layout_pack (ClutterBoxLayout *layout,
ClutterActor *actor, ClutterActor *actor,
gboolean expand, gboolean expand,
@@ -119,48 +119,48 @@ void clutter_box_layout_pack (ClutterBoxLayou
gboolean y_fill, gboolean y_fill,
ClutterBoxAlignment x_align, ClutterBoxAlignment x_align,
ClutterBoxAlignment y_align); ClutterBoxAlignment y_align);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_set_alignment (ClutterBoxLayout *layout, void clutter_box_layout_set_alignment (ClutterBoxLayout *layout,
ClutterActor *actor, ClutterActor *actor,
ClutterBoxAlignment x_align, ClutterBoxAlignment x_align,
ClutterBoxAlignment y_align); ClutterBoxAlignment y_align);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_get_alignment (ClutterBoxLayout *layout, void clutter_box_layout_get_alignment (ClutterBoxLayout *layout,
ClutterActor *actor, ClutterActor *actor,
ClutterBoxAlignment *x_align, ClutterBoxAlignment *x_align,
ClutterBoxAlignment *y_align); ClutterBoxAlignment *y_align);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_set_fill (ClutterBoxLayout *layout, void clutter_box_layout_set_fill (ClutterBoxLayout *layout,
ClutterActor *actor, ClutterActor *actor,
gboolean x_fill, gboolean x_fill,
gboolean y_fill); gboolean y_fill);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_get_fill (ClutterBoxLayout *layout, void clutter_box_layout_get_fill (ClutterBoxLayout *layout,
ClutterActor *actor, ClutterActor *actor,
gboolean *x_fill, gboolean *x_fill,
gboolean *y_fill); gboolean *y_fill);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_set_expand (ClutterBoxLayout *layout, void clutter_box_layout_set_expand (ClutterBoxLayout *layout,
ClutterActor *actor, ClutterActor *actor,
gboolean expand); gboolean expand);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
gboolean clutter_box_layout_get_expand (ClutterBoxLayout *layout, gboolean clutter_box_layout_get_expand (ClutterBoxLayout *layout,
ClutterActor *actor); ClutterActor *actor);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_set_use_animations (ClutterBoxLayout *layout, void clutter_box_layout_set_use_animations (ClutterBoxLayout *layout,
gboolean animate); gboolean animate);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
gboolean clutter_box_layout_get_use_animations (ClutterBoxLayout *layout); gboolean clutter_box_layout_get_use_animations (ClutterBoxLayout *layout);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_set_easing_mode (ClutterBoxLayout *layout, void clutter_box_layout_set_easing_mode (ClutterBoxLayout *layout,
gulong mode); gulong mode);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
gulong clutter_box_layout_get_easing_mode (ClutterBoxLayout *layout); gulong clutter_box_layout_get_easing_mode (ClutterBoxLayout *layout);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
void clutter_box_layout_set_easing_duration (ClutterBoxLayout *layout, void clutter_box_layout_set_easing_duration (ClutterBoxLayout *layout,
guint msecs); guint msecs);
CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
guint clutter_box_layout_get_easing_duration (ClutterBoxLayout *layout); guint clutter_box_layout_get_easing_duration (ClutterBoxLayout *layout);
G_END_DECLS G_END_DECLS

View File

@@ -37,9 +37,7 @@
#define CLUTTER_IS_BRIGHTNESS_CONTRAST_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BRIGHTNESS_CONTRAST_EFFECT)) #define CLUTTER_IS_BRIGHTNESS_CONTRAST_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BRIGHTNESS_CONTRAST_EFFECT))
#define CLUTTER_BRIGHTNESS_CONTRAST_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BRIGHTNESS_CONTRAST_EFFECT, ClutterBrightnessContrastEffectClass)) #define CLUTTER_BRIGHTNESS_CONTRAST_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BRIGHTNESS_CONTRAST_EFFECT, ClutterBrightnessContrastEffectClass))
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -49,35 +49,35 @@ G_BEGIN_DECLS
typedef struct _ClutterBrightnessContrastEffect ClutterBrightnessContrastEffect; typedef struct _ClutterBrightnessContrastEffect ClutterBrightnessContrastEffect;
typedef struct _ClutterBrightnessContrastEffectClass ClutterBrightnessContrastEffectClass; typedef struct _ClutterBrightnessContrastEffectClass ClutterBrightnessContrastEffectClass;
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
GType clutter_brightness_contrast_effect_get_type (void) G_GNUC_CONST; GType clutter_brightness_contrast_effect_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterEffect * clutter_brightness_contrast_effect_new (void); ClutterEffect * clutter_brightness_contrast_effect_new (void);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_brightness_contrast_effect_set_brightness_full (ClutterBrightnessContrastEffect *effect, void clutter_brightness_contrast_effect_set_brightness_full (ClutterBrightnessContrastEffect *effect,
float red, float red,
float green, float green,
float blue); float blue);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_brightness_contrast_effect_set_brightness (ClutterBrightnessContrastEffect *effect, void clutter_brightness_contrast_effect_set_brightness (ClutterBrightnessContrastEffect *effect,
float brightness); float brightness);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_brightness_contrast_effect_get_brightness (ClutterBrightnessContrastEffect *effect, void clutter_brightness_contrast_effect_get_brightness (ClutterBrightnessContrastEffect *effect,
float *red, float *red,
float *green, float *green,
float *blue); float *blue);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_brightness_contrast_effect_set_contrast_full (ClutterBrightnessContrastEffect *effect, void clutter_brightness_contrast_effect_set_contrast_full (ClutterBrightnessContrastEffect *effect,
float red, float red,
float green, float green,
float blue); float blue);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_brightness_contrast_effect_set_contrast (ClutterBrightnessContrastEffect *effect, void clutter_brightness_contrast_effect_set_contrast (ClutterBrightnessContrastEffect *effect,
float contrast); float contrast);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_brightness_contrast_effect_get_contrast (ClutterBrightnessContrastEffect *effect, void clutter_brightness_contrast_effect_get_contrast (ClutterBrightnessContrastEffect *effect,
float *red, float *red,
float *green, float *green,

View File

@@ -0,0 +1,14 @@
/* Mutter version */
#mesondefine MUTTER_VERSION
/* List of Cogl drivers */
#mesondefine CLUTTER_DRIVERS
/* Have evdev support for input handling */
#mesondefine HAVE_EVDEV
/* Building with libwacom for advanced tablet management */
#mesondefine HAVE_LIBWACOM
/* Supports PangoFt2 */
#mesondefine HAVE_PANGO_FT2

View File

@@ -27,9 +27,7 @@
* Clutter provides some utility functions for using Cairo. * Clutter provides some utility functions for using Cairo.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-cairo.h" #include "clutter-cairo.h"
#include "clutter-color.h" #include "clutter-color.h"

View File

@@ -50,9 +50,9 @@ G_BEGIN_DECLS
#define CLUTTER_CAIRO_FORMAT_ARGB32 (COGL_PIXEL_FORMAT_ARGB_8888_PRE) #define CLUTTER_CAIRO_FORMAT_ARGB32 (COGL_PIXEL_FORMAT_ARGB_8888_PRE)
#endif #endif
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_cairo_clear (cairo_t *cr); void clutter_cairo_clear (cairo_t *cr);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_cairo_set_source_color (cairo_t *cr, void clutter_cairo_set_source_color (cairo_t *cr,
const ClutterColor *color); const ClutterColor *color);

View File

@@ -42,9 +42,7 @@
* #ClutterCanvas is available since Clutter 1.10. * #ClutterCanvas is available since Clutter 1.10.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <cogl/cogl.h> #include <cogl/cogl.h>
#include <cairo-gobject.h> #include <cairo-gobject.h>

View File

@@ -85,20 +85,20 @@ struct _ClutterCanvasClass
gpointer _padding[16]; gpointer _padding[16];
}; };
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
GType clutter_canvas_get_type (void) G_GNUC_CONST; GType clutter_canvas_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterContent * clutter_canvas_new (void); ClutterContent * clutter_canvas_new (void);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_canvas_set_size (ClutterCanvas *canvas, gboolean clutter_canvas_set_size (ClutterCanvas *canvas,
int width, int width,
int height); int height);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
void clutter_canvas_set_scale_factor (ClutterCanvas *canvas, void clutter_canvas_set_scale_factor (ClutterCanvas *canvas,
int scale); int scale);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
int clutter_canvas_get_scale_factor (ClutterCanvas *canvas); int clutter_canvas_get_scale_factor (ClutterCanvas *canvas);
G_END_DECLS G_END_DECLS

View File

@@ -36,9 +36,8 @@
* *
* #ClutterChildMeta is available since Clutter 0.8 * #ClutterChildMeta is available since Clutter 0.8
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-child-meta.h" #include "clutter-child-meta.h"
#include "clutter-container.h" #include "clutter-container.h"

View File

@@ -109,12 +109,12 @@ struct _ClutterChildMetaClass
GObjectClass parent_class; GObjectClass parent_class;
}; };
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_child_meta_get_type (void) G_GNUC_CONST; GType clutter_child_meta_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterContainer * clutter_child_meta_get_container (ClutterChildMeta *data); ClutterContainer * clutter_child_meta_get_container (ClutterChildMeta *data);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterActor * clutter_child_meta_get_actor (ClutterChildMeta *data); ClutterActor * clutter_child_meta_get_actor (ClutterChildMeta *data);
G_END_DECLS G_END_DECLS

View File

@@ -92,9 +92,7 @@
* #ClutterClickAction is available since Clutter 1.4 * #ClutterClickAction is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-click-action.h" #include "clutter-click-action.h"

View File

@@ -97,22 +97,22 @@ struct _ClutterClickActionClass
void (* _clutter_click_action7) (void); void (* _clutter_click_action7) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_click_action_get_type (void) G_GNUC_CONST; GType clutter_click_action_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterAction * clutter_click_action_new (void); ClutterAction * clutter_click_action_new (void);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
guint clutter_click_action_get_button (ClutterClickAction *action); guint clutter_click_action_get_button (ClutterClickAction *action);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterModifierType clutter_click_action_get_state (ClutterClickAction *action); ClutterModifierType clutter_click_action_get_state (ClutterClickAction *action);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_click_action_get_coords (ClutterClickAction *action, void clutter_click_action_get_coords (ClutterClickAction *action,
gfloat *press_x, gfloat *press_x,
gfloat *press_y); gfloat *press_y);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_click_action_release (ClutterClickAction *action); void clutter_click_action_release (ClutterClickAction *action);
G_END_DECLS G_END_DECLS

View File

@@ -37,9 +37,7 @@
* #ClutterClone is available since Clutter 1.0 * #ClutterClone is available since Clutter 1.0
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API
#include "clutter-actor-private.h" #include "clutter-actor-private.h"

View File

@@ -78,15 +78,15 @@ struct _ClutterCloneClass
void (*_clutter_actor_clone4) (void); void (*_clutter_actor_clone4) (void);
}; };
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
GType clutter_clone_get_type (void) G_GNUC_CONST; GType clutter_clone_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterActor * clutter_clone_new (ClutterActor *source); ClutterActor * clutter_clone_new (ClutterActor *source);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_clone_set_source (ClutterClone *self, void clutter_clone_set_source (ClutterClone *self,
ClutterActor *source); ClutterActor *source);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterActor * clutter_clone_get_source (ClutterClone *self); ClutterActor * clutter_clone_get_source (ClutterClone *self);
G_END_DECLS G_END_DECLS

View File

@@ -33,9 +33,7 @@
* The alpha channel is fully opaque at 255 and fully transparent at 0. * The alpha channel is fully opaque at 255 and fully transparent at 0.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -68,76 +68,76 @@ struct _ClutterColor
*/ */
#define CLUTTER_COLOR_INIT(r,g,b,a) { (r), (g), (b), (a) } #define CLUTTER_COLOR_INIT(r,g,b,a) { (r), (g), (b), (a) }
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_color_get_type (void) G_GNUC_CONST; GType clutter_color_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterColor *clutter_color_new (guint8 red, ClutterColor *clutter_color_new (guint8 red,
guint8 green, guint8 green,
guint8 blue, guint8 blue,
guint8 alpha); guint8 alpha);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterColor *clutter_color_alloc (void); ClutterColor *clutter_color_alloc (void);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterColor *clutter_color_init (ClutterColor *color, ClutterColor *clutter_color_init (ClutterColor *color,
guint8 red, guint8 red,
guint8 green, guint8 green,
guint8 blue, guint8 blue,
guint8 alpha); guint8 alpha);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterColor *clutter_color_copy (const ClutterColor *color); ClutterColor *clutter_color_copy (const ClutterColor *color);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_free (ClutterColor *color); void clutter_color_free (ClutterColor *color);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_add (const ClutterColor *a, void clutter_color_add (const ClutterColor *a,
const ClutterColor *b, const ClutterColor *b,
ClutterColor *result); ClutterColor *result);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_subtract (const ClutterColor *a, void clutter_color_subtract (const ClutterColor *a,
const ClutterColor *b, const ClutterColor *b,
ClutterColor *result); ClutterColor *result);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_lighten (const ClutterColor *color, void clutter_color_lighten (const ClutterColor *color,
ClutterColor *result); ClutterColor *result);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_darken (const ClutterColor *color, void clutter_color_darken (const ClutterColor *color,
ClutterColor *result); ClutterColor *result);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_shade (const ClutterColor *color, void clutter_color_shade (const ClutterColor *color,
gdouble factor, gdouble factor,
ClutterColor *result); ClutterColor *result);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gchar * clutter_color_to_string (const ClutterColor *color); gchar * clutter_color_to_string (const ClutterColor *color);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
gboolean clutter_color_from_string (ClutterColor *color, gboolean clutter_color_from_string (ClutterColor *color,
const gchar *str); const gchar *str);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_to_hls (const ClutterColor *color, void clutter_color_to_hls (const ClutterColor *color,
gfloat *hue, gfloat *hue,
gfloat *luminance, gfloat *luminance,
gfloat *saturation); gfloat *saturation);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_from_hls (ClutterColor *color, void clutter_color_from_hls (ClutterColor *color,
gfloat hue, gfloat hue,
gfloat luminance, gfloat luminance,
gfloat saturation); gfloat saturation);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
guint32 clutter_color_to_pixel (const ClutterColor *color); guint32 clutter_color_to_pixel (const ClutterColor *color);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_color_from_pixel (ClutterColor *color, void clutter_color_from_pixel (ClutterColor *color,
guint32 pixel); guint32 pixel);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
guint clutter_color_hash (gconstpointer v); guint clutter_color_hash (gconstpointer v);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_color_equal (gconstpointer v1, gboolean clutter_color_equal (gconstpointer v1,
gconstpointer v2); gconstpointer v2);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
void clutter_color_interpolate (const ClutterColor *initial, void clutter_color_interpolate (const ClutterColor *initial,
const ClutterColor *final, const ClutterColor *final,
gdouble progress, gdouble progress,
@@ -177,22 +177,22 @@ struct _ClutterParamSpecColor
ClutterColor *default_value; ClutterColor *default_value;
}; };
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
void clutter_value_set_color (GValue *value, void clutter_value_set_color (GValue *value,
const ClutterColor *color); const ClutterColor *color);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
const ClutterColor * clutter_value_get_color (const GValue *value); const ClutterColor * clutter_value_get_color (const GValue *value);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
GType clutter_param_color_get_type (void) G_GNUC_CONST; GType clutter_param_color_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
GParamSpec * clutter_param_spec_color (const gchar *name, GParamSpec * clutter_param_spec_color (const gchar *name,
const gchar *nick, const gchar *nick,
const gchar *blurb, const gchar *blurb,
const ClutterColor *default_value, const ClutterColor *default_value,
GParamFlags flags); GParamFlags flags);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
const ClutterColor *clutter_color_get_static (ClutterStaticColor color); const ClutterColor *clutter_color_get_static (ClutterStaticColor color);
G_END_DECLS G_END_DECLS

View File

@@ -37,9 +37,7 @@
#define CLUTTER_IS_COLORIZE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_COLORIZE_EFFECT)) #define CLUTTER_IS_COLORIZE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_COLORIZE_EFFECT))
#define CLUTTER_COLORIZE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_COLORIZE_EFFECT, ClutterColorizeEffectClass)) #define CLUTTER_COLORIZE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_COLORIZE_EFFECT, ClutterColorizeEffectClass))
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API

View File

@@ -49,16 +49,16 @@ G_BEGIN_DECLS
typedef struct _ClutterColorizeEffect ClutterColorizeEffect; typedef struct _ClutterColorizeEffect ClutterColorizeEffect;
typedef struct _ClutterColorizeEffectClass ClutterColorizeEffectClass; typedef struct _ClutterColorizeEffectClass ClutterColorizeEffectClass;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_colorize_effect_get_type (void) G_GNUC_CONST; GType clutter_colorize_effect_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterEffect *clutter_colorize_effect_new (const ClutterColor *tint); ClutterEffect *clutter_colorize_effect_new (const ClutterColor *tint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_colorize_effect_set_tint (ClutterColorizeEffect *effect, void clutter_colorize_effect_set_tint (ClutterColorizeEffect *effect,
const ClutterColor *tint); const ClutterColor *tint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_colorize_effect_get_tint (ClutterColorizeEffect *effect, void clutter_colorize_effect_get_tint (ClutterColorizeEffect *effect,
ClutterColor *tint); ClutterColor *tint);

View File

@@ -128,9 +128,7 @@
* can be recovered at any point using clutter_actor_meta_get_actor(). * can be recovered at any point using clutter_actor_meta_get_actor().
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <string.h> #include <string.h>

View File

@@ -96,32 +96,32 @@ struct _ClutterConstraintClass
void (* _clutter_constraint7) (void); void (* _clutter_constraint7) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_constraint_get_type (void) G_GNUC_CONST; GType clutter_constraint_get_type (void) G_GNUC_CONST;
/* ClutterActor API */ /* ClutterActor API */
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_add_constraint (ClutterActor *self, void clutter_actor_add_constraint (ClutterActor *self,
ClutterConstraint *constraint); ClutterConstraint *constraint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_add_constraint_with_name (ClutterActor *self, void clutter_actor_add_constraint_with_name (ClutterActor *self,
const gchar *name, const gchar *name,
ClutterConstraint *constraint); ClutterConstraint *constraint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_remove_constraint (ClutterActor *self, void clutter_actor_remove_constraint (ClutterActor *self,
ClutterConstraint *constraint); ClutterConstraint *constraint);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_remove_constraint_by_name (ClutterActor *self, void clutter_actor_remove_constraint_by_name (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GList * clutter_actor_get_constraints (ClutterActor *self); GList * clutter_actor_get_constraints (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterConstraint *clutter_actor_get_constraint (ClutterActor *self, ClutterConstraint *clutter_actor_get_constraint (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_clear_constraints (ClutterActor *self); void clutter_actor_clear_constraints (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_actor_has_constraints (ClutterActor *self); gboolean clutter_actor_has_constraints (ClutterActor *self);
G_END_DECLS G_END_DECLS

View File

@@ -26,9 +26,7 @@
* Author: Emmanuele Bassi <ebassi@openedhand.com> * Author: Emmanuele Bassi <ebassi@openedhand.com>
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <stdarg.h> #include <stdarg.h>
#include <glib-object.h> #include <glib-object.h>

View File

@@ -141,52 +141,52 @@ struct _ClutterContainerIface
GParamSpec *pspec); GParamSpec *pspec);
}; };
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_container_get_type (void) G_GNUC_CONST; GType clutter_container_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterActor * clutter_container_find_child_by_name (ClutterContainer *container, ClutterActor * clutter_container_find_child_by_name (ClutterContainer *container,
const gchar *child_name); const gchar *child_name);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GParamSpec * clutter_container_class_find_child_property (GObjectClass *klass, GParamSpec * clutter_container_class_find_child_property (GObjectClass *klass,
const gchar *property_name); const gchar *property_name);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GParamSpec ** clutter_container_class_list_child_properties (GObjectClass *klass, GParamSpec ** clutter_container_class_list_child_properties (GObjectClass *klass,
guint *n_properties); guint *n_properties);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_create_child_meta (ClutterContainer *container, void clutter_container_create_child_meta (ClutterContainer *container,
ClutterActor *actor); ClutterActor *actor);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_destroy_child_meta (ClutterContainer *container, void clutter_container_destroy_child_meta (ClutterContainer *container,
ClutterActor *actor); ClutterActor *actor);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterChildMeta * clutter_container_get_child_meta (ClutterContainer *container, ClutterChildMeta * clutter_container_get_child_meta (ClutterContainer *container,
ClutterActor *actor); ClutterActor *actor);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_child_set_property (ClutterContainer *container, void clutter_container_child_set_property (ClutterContainer *container,
ClutterActor *child, ClutterActor *child,
const gchar * property, const gchar * property,
const GValue *value); const GValue *value);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_child_get_property (ClutterContainer *container, void clutter_container_child_get_property (ClutterContainer *container,
ClutterActor *child, ClutterActor *child,
const gchar *property, const gchar *property,
GValue *value); GValue *value);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_child_set (ClutterContainer *container, void clutter_container_child_set (ClutterContainer *container,
ClutterActor *actor, ClutterActor *actor,
const gchar *first_prop, const gchar *first_prop,
...) G_GNUC_NULL_TERMINATED; ...) G_GNUC_NULL_TERMINATED;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_child_get (ClutterContainer *container, void clutter_container_child_get (ClutterContainer *container,
ClutterActor *actor, ClutterActor *actor,
const gchar *first_prop, const gchar *first_prop,
...) G_GNUC_NULL_TERMINATED; ...) G_GNUC_NULL_TERMINATED;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_container_child_notify (ClutterContainer *container, void clutter_container_child_notify (ClutterContainer *container,
ClutterActor *child, ClutterActor *child,
GParamSpec *pspec); GParamSpec *pspec);

View File

@@ -36,9 +36,7 @@
* #ClutterContent is available since Clutter 1.10. * #ClutterContent is available since Clutter 1.10.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-content-private.h" #include "clutter-content-private.h"

View File

@@ -88,14 +88,14 @@ struct _ClutterContentIface
void (* invalidate) (ClutterContent *content); void (* invalidate) (ClutterContent *content);
}; };
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
GType clutter_content_get_type (void) G_GNUC_CONST; GType clutter_content_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_content_get_preferred_size (ClutterContent *content, gboolean clutter_content_get_preferred_size (ClutterContent *content,
gfloat *width, gfloat *width,
gfloat *height); gfloat *height);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_content_invalidate (ClutterContent *content); void clutter_content_invalidate (ClutterContent *content);
G_END_DECLS G_END_DECLS

View File

@@ -51,9 +51,7 @@
* deformation algorithm. * deformation algorithm.
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API
#include "clutter-deform-effect.h" #include "clutter-deform-effect.h"

View File

@@ -92,24 +92,24 @@ struct _ClutterDeformEffectClass
void (*_clutter_deform7) (void); void (*_clutter_deform7) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_deform_effect_get_type (void) G_GNUC_CONST; GType clutter_deform_effect_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_deform_effect_set_back_material (ClutterDeformEffect *effect, void clutter_deform_effect_set_back_material (ClutterDeformEffect *effect,
CoglHandle material); CoglHandle material);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
CoglHandle clutter_deform_effect_get_back_material (ClutterDeformEffect *effect); CoglHandle clutter_deform_effect_get_back_material (ClutterDeformEffect *effect);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_deform_effect_set_n_tiles (ClutterDeformEffect *effect, void clutter_deform_effect_set_n_tiles (ClutterDeformEffect *effect,
guint x_tiles, guint x_tiles,
guint y_tiles); guint y_tiles);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_deform_effect_get_n_tiles (ClutterDeformEffect *effect, void clutter_deform_effect_get_n_tiles (ClutterDeformEffect *effect,
guint *x_tiles, guint *x_tiles,
guint *y_tiles); guint *y_tiles);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_deform_effect_invalidate (ClutterDeformEffect *effect); void clutter_deform_effect_invalidate (ClutterDeformEffect *effect);
G_END_DECLS G_END_DECLS

View File

@@ -39,9 +39,7 @@
#define CLUTTER_IS_DESATURATE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_DESATURATE_EFFECT)) #define CLUTTER_IS_DESATURATE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_DESATURATE_EFFECT))
#define CLUTTER_DESATURATE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_DESATURATE_EFFECT, ClutterDesaturateEffectClass)) #define CLUTTER_DESATURATE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_DESATURATE_EFFECT, ClutterDesaturateEffectClass))
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#define CLUTTER_ENABLE_EXPERIMENTAL_API #define CLUTTER_ENABLE_EXPERIMENTAL_API

View File

@@ -48,16 +48,16 @@ G_BEGIN_DECLS
typedef struct _ClutterDesaturateEffect ClutterDesaturateEffect; typedef struct _ClutterDesaturateEffect ClutterDesaturateEffect;
typedef struct _ClutterDesaturateEffectClass ClutterDesaturateEffectClass; typedef struct _ClutterDesaturateEffectClass ClutterDesaturateEffectClass;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_desaturate_effect_get_type (void) G_GNUC_CONST; GType clutter_desaturate_effect_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterEffect *clutter_desaturate_effect_new (gdouble factor); ClutterEffect *clutter_desaturate_effect_new (gdouble factor);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_desaturate_effect_set_factor (ClutterDesaturateEffect *effect, void clutter_desaturate_effect_set_factor (ClutterDesaturateEffect *effect,
gdouble factor); gdouble factor);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
gdouble clutter_desaturate_effect_get_factor (ClutterDesaturateEffect *effect); gdouble clutter_desaturate_effect_get_factor (ClutterDesaturateEffect *effect);
G_END_DECLS G_END_DECLS

View File

@@ -36,9 +36,7 @@
* #ClutterDeviceManager is available since Clutter 1.2 * #ClutterDeviceManager is available since Clutter 1.2
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-backend-private.h" #include "clutter-backend-private.h"
#include "clutter-debug.h" #include "clutter-debug.h"

View File

@@ -125,34 +125,34 @@ struct _ClutterDeviceManagerClass
gpointer _padding[6]; gpointer _padding[6];
}; };
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
GType clutter_device_manager_get_type (void) G_GNUC_CONST; GType clutter_device_manager_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterDeviceManager *clutter_device_manager_get_default (void); ClutterDeviceManager *clutter_device_manager_get_default (void);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
GSList * clutter_device_manager_list_devices (ClutterDeviceManager *device_manager); GSList * clutter_device_manager_list_devices (ClutterDeviceManager *device_manager);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
const GSList * clutter_device_manager_peek_devices (ClutterDeviceManager *device_manager); const GSList * clutter_device_manager_peek_devices (ClutterDeviceManager *device_manager);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterInputDevice * clutter_device_manager_get_device (ClutterDeviceManager *device_manager, ClutterInputDevice * clutter_device_manager_get_device (ClutterDeviceManager *device_manager,
gint device_id); gint device_id);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterInputDevice * clutter_device_manager_get_core_device (ClutterDeviceManager *device_manager, ClutterInputDevice * clutter_device_manager_get_core_device (ClutterDeviceManager *device_manager,
ClutterInputDeviceType device_type); ClutterInputDeviceType device_type);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterVirtualInputDevice *clutter_device_manager_create_virtual_device (ClutterDeviceManager *device_manager, ClutterVirtualInputDevice *clutter_device_manager_create_virtual_device (ClutterDeviceManager *device_manager,
ClutterInputDeviceType device_type); ClutterInputDeviceType device_type);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterVirtualDeviceType clutter_device_manager_get_supported_virtual_device_types (ClutterDeviceManager *device_manager); ClutterVirtualDeviceType clutter_device_manager_get_supported_virtual_device_types (ClutterDeviceManager *device_manager);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_device_manager_set_kbd_a11y_settings (ClutterDeviceManager *device_manager, void clutter_device_manager_set_kbd_a11y_settings (ClutterDeviceManager *device_manager,
ClutterKbdA11ySettings *settings); ClutterKbdA11ySettings *settings);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_device_manager_get_kbd_a11y_settings (ClutterDeviceManager *device_manager, void clutter_device_manager_get_kbd_a11y_settings (ClutterDeviceManager *device_manager,
ClutterKbdA11ySettings *settings); ClutterKbdA11ySettings *settings);

View File

@@ -63,9 +63,7 @@
* #ClutterDragAction is available since Clutter 1.4 * #ClutterDragAction is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-drag-action.h" #include "clutter-drag-action.h"

View File

@@ -105,45 +105,45 @@ struct _ClutterDragActionClass
void (* _clutter_drag_action4) (void); void (* _clutter_drag_action4) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_drag_action_get_type (void) G_GNUC_CONST; GType clutter_drag_action_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterAction * clutter_drag_action_new (void); ClutterAction * clutter_drag_action_new (void);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_drag_action_set_drag_threshold (ClutterDragAction *action, void clutter_drag_action_set_drag_threshold (ClutterDragAction *action,
gint x_threshold, gint x_threshold,
gint y_threshold); gint y_threshold);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_drag_action_get_drag_threshold (ClutterDragAction *action, void clutter_drag_action_get_drag_threshold (ClutterDragAction *action,
guint *x_threshold, guint *x_threshold,
guint *y_threshold); guint *y_threshold);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_drag_action_set_drag_handle (ClutterDragAction *action, void clutter_drag_action_set_drag_handle (ClutterDragAction *action,
ClutterActor *handle); ClutterActor *handle);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterActor * clutter_drag_action_get_drag_handle (ClutterDragAction *action); ClutterActor * clutter_drag_action_get_drag_handle (ClutterDragAction *action);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_drag_action_set_drag_axis (ClutterDragAction *action, void clutter_drag_action_set_drag_axis (ClutterDragAction *action,
ClutterDragAxis axis); ClutterDragAxis axis);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterDragAxis clutter_drag_action_get_drag_axis (ClutterDragAction *action); ClutterDragAxis clutter_drag_action_get_drag_axis (ClutterDragAction *action);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_drag_action_get_press_coords (ClutterDragAction *action, void clutter_drag_action_get_press_coords (ClutterDragAction *action,
gfloat *press_x, gfloat *press_x,
gfloat *press_y); gfloat *press_y);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_drag_action_get_motion_coords (ClutterDragAction *action, void clutter_drag_action_get_motion_coords (ClutterDragAction *action,
gfloat *motion_x, gfloat *motion_x,
gfloat *motion_y); gfloat *motion_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_drag_action_get_drag_area (ClutterDragAction *action, gboolean clutter_drag_action_get_drag_area (ClutterDragAction *action,
ClutterRect *drag_area); ClutterRect *drag_area);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_drag_action_set_drag_area (ClutterDragAction *action, void clutter_drag_action_set_drag_area (ClutterDragAction *action,
const ClutterRect *drag_area); const ClutterRect *drag_area);

View File

@@ -58,9 +58,7 @@
* #ClutterDropAction is available since Clutter 1.8 * #ClutterDropAction is available since Clutter 1.8
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-drop-action.h" #include "clutter-drop-action.h"

View File

@@ -104,10 +104,10 @@ struct _ClutterDropActionClass
void (*_clutter_drop_action8) (void); void (*_clutter_drop_action8) (void);
}; };
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
GType clutter_drop_action_get_type (void) G_GNUC_CONST; GType clutter_drop_action_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
ClutterAction * clutter_drop_action_new (void); ClutterAction * clutter_drop_action_new (void);
G_END_DECLS G_END_DECLS

View File

@@ -160,9 +160,7 @@
* #ClutterEffect is available since Clutter 1.4 * #ClutterEffect is available since Clutter 1.4
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-effect.h" #include "clutter-effect.h"

View File

@@ -91,38 +91,38 @@ struct _ClutterEffectClass
void (* _clutter_effect6) (void); void (* _clutter_effect6) (void);
}; };
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GType clutter_effect_get_type (void) G_GNUC_CONST; GType clutter_effect_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_effect_queue_repaint (ClutterEffect *effect); void clutter_effect_queue_repaint (ClutterEffect *effect);
/* /*
* ClutterActor API * ClutterActor API
*/ */
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_add_effect (ClutterActor *self, void clutter_actor_add_effect (ClutterActor *self,
ClutterEffect *effect); ClutterEffect *effect);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_add_effect_with_name (ClutterActor *self, void clutter_actor_add_effect_with_name (ClutterActor *self,
const gchar *name, const gchar *name,
ClutterEffect *effect); ClutterEffect *effect);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_remove_effect (ClutterActor *self, void clutter_actor_remove_effect (ClutterActor *self,
ClutterEffect *effect); ClutterEffect *effect);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_remove_effect_by_name (ClutterActor *self, void clutter_actor_remove_effect_by_name (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
GList * clutter_actor_get_effects (ClutterActor *self); GList * clutter_actor_get_effects (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
ClutterEffect *clutter_actor_get_effect (ClutterActor *self, ClutterEffect *clutter_actor_get_effect (ClutterActor *self,
const gchar *name); const gchar *name);
CLUTTER_AVAILABLE_IN_1_4 CLUTTER_EXPORT
void clutter_actor_clear_effects (ClutterActor *self); void clutter_actor_clear_effects (ClutterActor *self);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
gboolean clutter_actor_has_effects (ClutterActor *self); gboolean clutter_actor_has_effects (ClutterActor *self);
G_END_DECLS G_END_DECLS

View File

@@ -17,7 +17,7 @@ G_BEGIN_DECLS
/*** END file-production ***/ /*** END file-production ***/
/*** BEGIN value-header ***/ /*** BEGIN value-header ***/
CLUTTER_AVAILABLE_IN_ALL GType @enum_name@_get_type (void) G_GNUC_CONST; CLUTTER_EXPORT GType @enum_name@_get_type (void) G_GNUC_CONST;
#define CLUTTER_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) #define CLUTTER_TYPE_@ENUMSHORT@ (@enum_name@_get_type())
/*** END value-header ***/ /*** END value-header ***/

View File

@@ -29,7 +29,7 @@ struct _ClutterEventTranslatorIface
ClutterEvent *translated); ClutterEvent *translated);
}; };
CLUTTER_AVAILABLE_IN_MUTTER CLUTTER_EXPORT
GType _clutter_event_translator_get_type (void) G_GNUC_CONST; GType _clutter_event_translator_get_type (void) G_GNUC_CONST;
ClutterTranslateReturn _clutter_event_translator_translate_event (ClutterEventTranslator *translator, ClutterTranslateReturn _clutter_event_translator_translate_event (ClutterEventTranslator *translator,

View File

@@ -23,9 +23,7 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-backend-private.h" #include "clutter-backend-private.h"
#include "clutter-debug.h" #include "clutter-debug.h"

View File

@@ -589,185 +589,185 @@ union _ClutterEvent
typedef gboolean (* ClutterEventFilterFunc) (const ClutterEvent *event, typedef gboolean (* ClutterEventFilterFunc) (const ClutterEvent *event,
gpointer user_data); gpointer user_data);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_event_get_type (void) G_GNUC_CONST; GType clutter_event_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_20 CLUTTER_EXPORT
GType clutter_event_sequence_get_type (void) G_GNUC_CONST; GType clutter_event_sequence_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_events_pending (void); gboolean clutter_events_pending (void);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterEvent * clutter_event_get (void); ClutterEvent * clutter_event_get (void);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterEvent * clutter_event_peek (void); ClutterEvent * clutter_event_peek (void);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_event_put (const ClutterEvent *event); void clutter_event_put (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
guint clutter_event_add_filter (ClutterStage *stage, guint clutter_event_add_filter (ClutterStage *stage,
ClutterEventFilterFunc func, ClutterEventFilterFunc func,
GDestroyNotify notify, GDestroyNotify notify,
gpointer user_data); gpointer user_data);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
void clutter_event_remove_filter (guint id); void clutter_event_remove_filter (guint id);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterEvent * clutter_event_new (ClutterEventType type); ClutterEvent * clutter_event_new (ClutterEventType type);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterEvent * clutter_event_copy (const ClutterEvent *event); ClutterEvent * clutter_event_copy (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_event_free (ClutterEvent *event); void clutter_event_free (ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterEventType clutter_event_type (const ClutterEvent *event); ClutterEventType clutter_event_type (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_flags (ClutterEvent *event, void clutter_event_set_flags (ClutterEvent *event,
ClutterEventFlags flags); ClutterEventFlags flags);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterEventFlags clutter_event_get_flags (const ClutterEvent *event); ClutterEventFlags clutter_event_get_flags (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_time (ClutterEvent *event, void clutter_event_set_time (ClutterEvent *event,
guint32 time_); guint32 time_);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
guint32 clutter_event_get_time (const ClutterEvent *event); guint32 clutter_event_get_time (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_state (ClutterEvent *event, void clutter_event_set_state (ClutterEvent *event,
ClutterModifierType state); ClutterModifierType state);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterModifierType clutter_event_get_state (const ClutterEvent *event); ClutterModifierType clutter_event_get_state (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_16 CLUTTER_EXPORT
void clutter_event_get_state_full (const ClutterEvent *event, void clutter_event_get_state_full (const ClutterEvent *event,
ClutterModifierType *button_state, ClutterModifierType *button_state,
ClutterModifierType *base_state, ClutterModifierType *base_state,
ClutterModifierType *latched_state, ClutterModifierType *latched_state,
ClutterModifierType *locked_state, ClutterModifierType *locked_state,
ClutterModifierType *effective_state); ClutterModifierType *effective_state);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
void clutter_event_set_device (ClutterEvent *event, void clutter_event_set_device (ClutterEvent *event,
ClutterInputDevice *device); ClutterInputDevice *device);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
ClutterInputDevice * clutter_event_get_device (const ClutterEvent *event); ClutterInputDevice * clutter_event_get_device (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
void clutter_event_set_source_device (ClutterEvent *event, void clutter_event_set_source_device (ClutterEvent *event,
ClutterInputDevice *device); ClutterInputDevice *device);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
ClutterInputDevice * clutter_event_get_source_device (const ClutterEvent *event); ClutterInputDevice * clutter_event_get_source_device (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_event_set_device_tool (ClutterEvent *event, void clutter_event_set_device_tool (ClutterEvent *event,
ClutterInputDeviceTool *tool); ClutterInputDeviceTool *tool);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterInputDeviceTool *clutter_event_get_device_tool (const ClutterEvent *event); ClutterInputDeviceTool *clutter_event_get_device_tool (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_source (ClutterEvent *event, void clutter_event_set_source (ClutterEvent *event,
ClutterActor *actor); ClutterActor *actor);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterActor * clutter_event_get_source (const ClutterEvent *event); ClutterActor * clutter_event_get_source (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_stage (ClutterEvent *event, void clutter_event_set_stage (ClutterEvent *event,
ClutterStage *stage); ClutterStage *stage);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterStage * clutter_event_get_stage (const ClutterEvent *event); ClutterStage * clutter_event_get_stage (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gint clutter_event_get_device_id (const ClutterEvent *event); gint clutter_event_get_device_id (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterInputDeviceType clutter_event_get_device_type (const ClutterEvent *event); ClutterInputDeviceType clutter_event_get_device_type (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_coords (ClutterEvent *event, void clutter_event_set_coords (ClutterEvent *event,
gfloat x, gfloat x,
gfloat y); gfloat y);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
void clutter_event_get_coords (const ClutterEvent *event, void clutter_event_get_coords (const ClutterEvent *event,
gfloat *x, gfloat *x,
gfloat *y); gfloat *y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_event_get_position (const ClutterEvent *event, void clutter_event_get_position (const ClutterEvent *event,
ClutterPoint *position); ClutterPoint *position);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
float clutter_event_get_distance (const ClutterEvent *source, float clutter_event_get_distance (const ClutterEvent *source,
const ClutterEvent *target); const ClutterEvent *target);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
double clutter_event_get_angle (const ClutterEvent *source, double clutter_event_get_angle (const ClutterEvent *source,
const ClutterEvent *target); const ClutterEvent *target);
CLUTTER_AVAILABLE_IN_1_6 CLUTTER_EXPORT
gdouble * clutter_event_get_axes (const ClutterEvent *event, gdouble * clutter_event_get_axes (const ClutterEvent *event,
guint *n_axes); guint *n_axes);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_event_has_shift_modifier (const ClutterEvent *event); gboolean clutter_event_has_shift_modifier (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_event_has_control_modifier (const ClutterEvent *event); gboolean clutter_event_has_control_modifier (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_event_is_pointer_emulated (const ClutterEvent *event); gboolean clutter_event_is_pointer_emulated (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_key_symbol (ClutterEvent *event, void clutter_event_set_key_symbol (ClutterEvent *event,
guint key_sym); guint key_sym);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
guint clutter_event_get_key_symbol (const ClutterEvent *event); guint clutter_event_get_key_symbol (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_key_code (ClutterEvent *event, void clutter_event_set_key_code (ClutterEvent *event,
guint16 key_code); guint16 key_code);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
guint16 clutter_event_get_key_code (const ClutterEvent *event); guint16 clutter_event_get_key_code (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_key_unicode (ClutterEvent *event, void clutter_event_set_key_unicode (ClutterEvent *event,
gunichar key_unicode); gunichar key_unicode);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
gunichar clutter_event_get_key_unicode (const ClutterEvent *event); gunichar clutter_event_get_key_unicode (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_button (ClutterEvent *event, void clutter_event_set_button (ClutterEvent *event,
guint32 button); guint32 button);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
guint32 clutter_event_get_button (const ClutterEvent *event); guint32 clutter_event_get_button (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
guint clutter_event_get_click_count (const ClutterEvent *event); guint clutter_event_get_click_count (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_related (ClutterEvent *event, void clutter_event_set_related (ClutterEvent *event,
ClutterActor *actor); ClutterActor *actor);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterActor * clutter_event_get_related (const ClutterEvent *event); ClutterActor * clutter_event_get_related (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_event_set_scroll_direction (ClutterEvent *event, void clutter_event_set_scroll_direction (ClutterEvent *event,
ClutterScrollDirection direction); ClutterScrollDirection direction);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
ClutterScrollDirection clutter_event_get_scroll_direction (const ClutterEvent *event); ClutterScrollDirection clutter_event_get_scroll_direction (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_event_set_scroll_delta (ClutterEvent *event, void clutter_event_set_scroll_delta (ClutterEvent *event,
gdouble dx, gdouble dx,
gdouble dy); gdouble dy);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
void clutter_event_get_scroll_delta (const ClutterEvent *event, void clutter_event_get_scroll_delta (const ClutterEvent *event,
gdouble *dx, gdouble *dx,
gdouble *dy); gdouble *dy);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
ClutterEventSequence * clutter_event_get_event_sequence (const ClutterEvent *event); ClutterEventSequence * clutter_event_get_event_sequence (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
guint32 clutter_keysym_to_unicode (guint keyval); guint32 clutter_keysym_to_unicode (guint keyval);
CLUTTER_AVAILABLE_IN_1_10 CLUTTER_EXPORT
guint clutter_unicode_to_keysym (guint32 wc); guint clutter_unicode_to_keysym (guint32 wc);
CLUTTER_AVAILABLE_IN_1_0 CLUTTER_EXPORT
guint32 clutter_get_current_event_time (void); guint32 clutter_get_current_event_time (void);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
const ClutterEvent * clutter_get_current_event (void); const ClutterEvent * clutter_get_current_event (void);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
guint clutter_event_get_touchpad_gesture_finger_count (const ClutterEvent *event); guint clutter_event_get_touchpad_gesture_finger_count (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
gdouble clutter_event_get_gesture_pinch_angle_delta (const ClutterEvent *event); gdouble clutter_event_get_gesture_pinch_angle_delta (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
gdouble clutter_event_get_gesture_pinch_scale (const ClutterEvent *event); gdouble clutter_event_get_gesture_pinch_scale (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
ClutterTouchpadGesturePhase clutter_event_get_gesture_phase (const ClutterEvent *event); ClutterTouchpadGesturePhase clutter_event_get_gesture_phase (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_1_24 CLUTTER_EXPORT
void clutter_event_get_gesture_motion_delta (const ClutterEvent *event, void clutter_event_get_gesture_motion_delta (const ClutterEvent *event,
gdouble *dx, gdouble *dx,
gdouble *dy); gdouble *dy);
@@ -775,10 +775,10 @@ void clutter_event_get_gesture_motion_delta (const Clut
ClutterScrollSource clutter_event_get_scroll_source (const ClutterEvent *event); ClutterScrollSource clutter_event_get_scroll_source (const ClutterEvent *event);
ClutterScrollFinishFlags clutter_event_get_scroll_finish_flags (const ClutterEvent *event); ClutterScrollFinishFlags clutter_event_get_scroll_finish_flags (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
guint clutter_event_get_mode_group (const ClutterEvent *event); guint clutter_event_get_mode_group (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_MUTTER CLUTTER_EXPORT
gboolean clutter_event_get_pad_event_details (const ClutterEvent *event, gboolean clutter_event_get_pad_event_details (const ClutterEvent *event,
guint *number, guint *number,
guint *mode, guint *mode,

View File

@@ -37,9 +37,7 @@
* See also cogl_get_features() and #CoglFeatureFlags * See also cogl_get_features() and #CoglFeatureFlags
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -32,9 +32,9 @@
G_BEGIN_DECLS G_BEGIN_DECLS
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
gboolean clutter_feature_available (ClutterFeatureFlags feature); gboolean clutter_feature_available (ClutterFeatureFlags feature);
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
ClutterFeatureFlags clutter_feature_get_all (void); ClutterFeatureFlags clutter_feature_get_all (void);
G_END_DECLS G_END_DECLS

View File

@@ -34,9 +34,7 @@
* #ClutterFixedLayout is available since Clutter 1.2 * #ClutterFixedLayout is available since Clutter 1.2
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-debug.h" #include "clutter-debug.h"
#include "clutter-fixed-layout.h" #include "clutter-fixed-layout.h"

View File

@@ -71,10 +71,10 @@ struct _ClutterFixedLayoutClass
ClutterLayoutManagerClass parent_class; ClutterLayoutManagerClass parent_class;
}; };
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
GType clutter_fixed_layout_get_type (void) G_GNUC_CONST; GType clutter_fixed_layout_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterLayoutManager *clutter_fixed_layout_new (void); ClutterLayoutManager *clutter_fixed_layout_new (void);
G_END_DECLS G_END_DECLS

View File

@@ -27,9 +27,7 @@
need to do anything on top of the ClutterOffscreenEffect class so need to do anything on top of the ClutterOffscreenEffect class so
it only exists because that class is abstract */ it only exists because that class is abstract */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-flatten-effect.h" #include "clutter-flatten-effect.h"
#include "clutter-private.h" #include "clutter-private.h"

View File

@@ -52,9 +52,7 @@
* #ClutterFlowLayout is available since Clutter 1.2 * #ClutterFlowLayout is available since Clutter 1.2
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <math.h> #include <math.h>

View File

@@ -74,54 +74,54 @@ struct _ClutterFlowLayoutClass
ClutterLayoutManagerClass parent_class; ClutterLayoutManagerClass parent_class;
}; };
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
GType clutter_flow_layout_get_type (void) G_GNUC_CONST; GType clutter_flow_layout_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterLayoutManager * clutter_flow_layout_new (ClutterFlowOrientation orientation); ClutterLayoutManager * clutter_flow_layout_new (ClutterFlowOrientation orientation);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_set_orientation (ClutterFlowLayout *layout, void clutter_flow_layout_set_orientation (ClutterFlowLayout *layout,
ClutterFlowOrientation orientation); ClutterFlowOrientation orientation);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
ClutterFlowOrientation clutter_flow_layout_get_orientation (ClutterFlowLayout *layout); ClutterFlowOrientation clutter_flow_layout_get_orientation (ClutterFlowLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_set_homogeneous (ClutterFlowLayout *layout, void clutter_flow_layout_set_homogeneous (ClutterFlowLayout *layout,
gboolean homogeneous); gboolean homogeneous);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
gboolean clutter_flow_layout_get_homogeneous (ClutterFlowLayout *layout); gboolean clutter_flow_layout_get_homogeneous (ClutterFlowLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_set_column_spacing (ClutterFlowLayout *layout, void clutter_flow_layout_set_column_spacing (ClutterFlowLayout *layout,
gfloat spacing); gfloat spacing);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
gfloat clutter_flow_layout_get_column_spacing (ClutterFlowLayout *layout); gfloat clutter_flow_layout_get_column_spacing (ClutterFlowLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_set_row_spacing (ClutterFlowLayout *layout, void clutter_flow_layout_set_row_spacing (ClutterFlowLayout *layout,
gfloat spacing); gfloat spacing);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
gfloat clutter_flow_layout_get_row_spacing (ClutterFlowLayout *layout); gfloat clutter_flow_layout_get_row_spacing (ClutterFlowLayout *layout);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_set_column_width (ClutterFlowLayout *layout, void clutter_flow_layout_set_column_width (ClutterFlowLayout *layout,
gfloat min_width, gfloat min_width,
gfloat max_width); gfloat max_width);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_get_column_width (ClutterFlowLayout *layout, void clutter_flow_layout_get_column_width (ClutterFlowLayout *layout,
gfloat *min_width, gfloat *min_width,
gfloat *max_width); gfloat *max_width);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_set_row_height (ClutterFlowLayout *layout, void clutter_flow_layout_set_row_height (ClutterFlowLayout *layout,
gfloat min_height, gfloat min_height,
gfloat max_height); gfloat max_height);
CLUTTER_AVAILABLE_IN_1_2 CLUTTER_EXPORT
void clutter_flow_layout_get_row_height (ClutterFlowLayout *layout, void clutter_flow_layout_get_row_height (ClutterFlowLayout *layout,
gfloat *min_height, gfloat *min_height,
gfloat *max_height); gfloat *max_height);
CLUTTER_AVAILABLE_IN_1_16 CLUTTER_EXPORT
void clutter_flow_layout_set_snap_to_grid (ClutterFlowLayout *layout, void clutter_flow_layout_set_snap_to_grid (ClutterFlowLayout *layout,
gboolean snap_to_grid); gboolean snap_to_grid);
CLUTTER_AVAILABLE_IN_1_16 CLUTTER_EXPORT
gboolean clutter_flow_layout_get_snap_to_grid (ClutterFlowLayout *layout); gboolean clutter_flow_layout_get_snap_to_grid (ClutterFlowLayout *layout);
G_END_DECLS G_END_DECLS

View File

@@ -83,9 +83,7 @@
* Since: 1.8 * Since: 1.8
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-gesture-action-private.h" #include "clutter-gesture-action-private.h"

View File

@@ -101,75 +101,75 @@ struct _ClutterGestureActionClass
void (* _clutter_gesture_action6) (void); void (* _clutter_gesture_action6) (void);
}; };
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
GType clutter_gesture_action_get_type (void) G_GNUC_CONST; GType clutter_gesture_action_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
ClutterAction * clutter_gesture_action_new (void); ClutterAction * clutter_gesture_action_new (void);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
gint clutter_gesture_action_get_n_touch_points (ClutterGestureAction *action); gint clutter_gesture_action_get_n_touch_points (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_gesture_action_set_n_touch_points (ClutterGestureAction *action, void clutter_gesture_action_set_n_touch_points (ClutterGestureAction *action,
gint nb_points); gint nb_points);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_gesture_action_get_press_coords (ClutterGestureAction *action, void clutter_gesture_action_get_press_coords (ClutterGestureAction *action,
guint point, guint point,
gfloat *press_x, gfloat *press_x,
gfloat *press_y); gfloat *press_y);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_gesture_action_get_motion_coords (ClutterGestureAction *action, void clutter_gesture_action_get_motion_coords (ClutterGestureAction *action,
guint point, guint point,
gfloat *motion_x, gfloat *motion_x,
gfloat *motion_y); gfloat *motion_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gfloat clutter_gesture_action_get_motion_delta (ClutterGestureAction *action, gfloat clutter_gesture_action_get_motion_delta (ClutterGestureAction *action,
guint point, guint point,
gfloat *delta_x, gfloat *delta_x,
gfloat *delta_y); gfloat *delta_y);
CLUTTER_AVAILABLE_IN_1_8 CLUTTER_EXPORT
void clutter_gesture_action_get_release_coords (ClutterGestureAction *action, void clutter_gesture_action_get_release_coords (ClutterGestureAction *action,
guint point, guint point,
gfloat *release_x, gfloat *release_x,
gfloat *release_y); gfloat *release_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gfloat clutter_gesture_action_get_velocity (ClutterGestureAction *action, gfloat clutter_gesture_action_get_velocity (ClutterGestureAction *action,
guint point, guint point,
gfloat *velocity_x, gfloat *velocity_x,
gfloat *velocity_y); gfloat *velocity_y);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
guint clutter_gesture_action_get_n_current_points (ClutterGestureAction *action); guint clutter_gesture_action_get_n_current_points (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterEventSequence * clutter_gesture_action_get_sequence (ClutterGestureAction *action, ClutterEventSequence * clutter_gesture_action_get_sequence (ClutterGestureAction *action,
guint point); guint point);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterInputDevice * clutter_gesture_action_get_device (ClutterGestureAction *action, ClutterInputDevice * clutter_gesture_action_get_device (ClutterGestureAction *action,
guint point); guint point);
CLUTTER_AVAILABLE_IN_1_14 CLUTTER_EXPORT
const ClutterEvent * clutter_gesture_action_get_last_event (ClutterGestureAction *action, const ClutterEvent * clutter_gesture_action_get_last_event (ClutterGestureAction *action,
guint point); guint point);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_gesture_action_cancel (ClutterGestureAction *action); void clutter_gesture_action_cancel (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
void clutter_gesture_action_set_threshold_trigger_edge (ClutterGestureAction *action, void clutter_gesture_action_set_threshold_trigger_edge (ClutterGestureAction *action,
ClutterGestureTriggerEdge edge); ClutterGestureTriggerEdge edge);
CLUTTER_DEPRECATED_IN_1_20_FOR(clutter_gesture_action_get_threshold_trigger_edge) CLUTTER_DEPRECATED_FOR(clutter_gesture_action_get_threshold_trigger_edge)
ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_egde (ClutterGestureAction *action); ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_egde (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_20 CLUTTER_EXPORT
ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_edge (ClutterGestureAction *action); ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_edge (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
void clutter_gesture_action_set_threshold_trigger_distance (ClutterGestureAction *action, void clutter_gesture_action_set_threshold_trigger_distance (ClutterGestureAction *action,
float x, float x,
float y); float y);
CLUTTER_AVAILABLE_IN_1_18 CLUTTER_EXPORT
void clutter_gesture_action_get_threshold_trigger_distance (ClutterGestureAction *action, void clutter_gesture_action_get_threshold_trigger_distance (ClutterGestureAction *action,
float *x, float *x,
float *y); float *y);

View File

@@ -26,9 +26,7 @@
* Matthias Clasen * Matthias Clasen
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>

View File

@@ -80,13 +80,13 @@ struct _ClutterGridLayoutClass
gpointer _padding[8]; gpointer _padding[8];
}; };
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
GType clutter_grid_layout_get_type (void) G_GNUC_CONST; GType clutter_grid_layout_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterLayoutManager * clutter_grid_layout_new (void); ClutterLayoutManager * clutter_grid_layout_new (void);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_attach (ClutterGridLayout *layout, void clutter_grid_layout_attach (ClutterGridLayout *layout,
ClutterActor *child, ClutterActor *child,
gint left, gint left,
@@ -94,7 +94,7 @@ void clutter_grid_layout_attach (ClutterGrid
gint width, gint width,
gint height); gint height);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_attach_next_to (ClutterGridLayout *layout, void clutter_grid_layout_attach_next_to (ClutterGridLayout *layout,
ClutterActor *child, ClutterActor *child,
ClutterActor *sibling, ClutterActor *sibling,
@@ -102,58 +102,58 @@ void clutter_grid_layout_attach_next_to (ClutterGrid
gint width, gint width,
gint height); gint height);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterActor * clutter_grid_layout_get_child_at (ClutterGridLayout *layout, ClutterActor * clutter_grid_layout_get_child_at (ClutterGridLayout *layout,
gint left, gint left,
gint top); gint top);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_insert_row (ClutterGridLayout *layout, void clutter_grid_layout_insert_row (ClutterGridLayout *layout,
gint position); gint position);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_insert_column (ClutterGridLayout *layout, void clutter_grid_layout_insert_column (ClutterGridLayout *layout,
gint position); gint position);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_insert_next_to (ClutterGridLayout *layout, void clutter_grid_layout_insert_next_to (ClutterGridLayout *layout,
ClutterActor *sibling, ClutterActor *sibling,
ClutterGridPosition side); ClutterGridPosition side);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_set_orientation (ClutterGridLayout *layout, void clutter_grid_layout_set_orientation (ClutterGridLayout *layout,
ClutterOrientation orientation); ClutterOrientation orientation);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
ClutterOrientation clutter_grid_layout_get_orientation (ClutterGridLayout *layout); ClutterOrientation clutter_grid_layout_get_orientation (ClutterGridLayout *layout);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_set_column_spacing (ClutterGridLayout *layout, void clutter_grid_layout_set_column_spacing (ClutterGridLayout *layout,
guint spacing); guint spacing);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
guint clutter_grid_layout_get_column_spacing (ClutterGridLayout *layout); guint clutter_grid_layout_get_column_spacing (ClutterGridLayout *layout);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_set_row_spacing (ClutterGridLayout *layout, void clutter_grid_layout_set_row_spacing (ClutterGridLayout *layout,
guint spacing); guint spacing);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
guint clutter_grid_layout_get_row_spacing (ClutterGridLayout *layout); guint clutter_grid_layout_get_row_spacing (ClutterGridLayout *layout);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_set_column_homogeneous (ClutterGridLayout *layout, void clutter_grid_layout_set_column_homogeneous (ClutterGridLayout *layout,
gboolean homogeneous); gboolean homogeneous);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_grid_layout_get_column_homogeneous (ClutterGridLayout *layout); gboolean clutter_grid_layout_get_column_homogeneous (ClutterGridLayout *layout);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
void clutter_grid_layout_set_row_homogeneous (ClutterGridLayout *layout, void clutter_grid_layout_set_row_homogeneous (ClutterGridLayout *layout,
gboolean homogeneous); gboolean homogeneous);
CLUTTER_AVAILABLE_IN_1_12 CLUTTER_EXPORT
gboolean clutter_grid_layout_get_row_homogeneous (ClutterGridLayout *layout); gboolean clutter_grid_layout_get_row_homogeneous (ClutterGridLayout *layout);
G_END_DECLS G_END_DECLS

View File

@@ -88,7 +88,7 @@ struct _ClutterGroupClass
void (*_clutter_reserved6) (void); void (*_clutter_reserved6) (void);
}; };
CLUTTER_AVAILABLE_IN_ALL CLUTTER_EXPORT
GType clutter_group_get_type (void) G_GNUC_CONST; GType clutter_group_get_type (void) G_GNUC_CONST;
G_END_DECLS G_END_DECLS

View File

@@ -28,9 +28,7 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "clutter-build-config.h" #include "clutter-build-config.h"
#endif
#include "clutter-debug.h" #include "clutter-debug.h"
#include "clutter-id-pool.h" #include "clutter-id-pool.h"

Some files were not shown because too many files have changed in this diff Show More