mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
473d0e9fc3
Bug #815 - Split up request, allocation, and paint box * clutter/clutter-actor.[ch]: Rework the size allocation, request and paint area. Now ::request_coords() is called ::allocate(), and ::query_coords() has been split into ::get_preferred_width() and ::get_preferred_height(). See the documentation and the layout test on how to implement a container and layout manager with the new API. (#915, based on a patch by Havoc Pennington, Lucas Rocha and Johan Bilien) * clutter/clutter-clone-texture.c: Port CloneTexture to the new size negotiation API; it just means forwarding the requests to the parent texture. * clutter/clutter-deprecated.h: Add deprecated and replaced API. * clutter/clutter-entry.c: Port Entry to the new size negotiation API. * clutter/clutter-group.c: Port Group to the new size negotiation API; the semantics of the Group actor do not change. * clutter/clutter-label.c: Port Label to the new size negotiation API, and vastly simplify the code. * clutter/clutter-main.[ch]: Add API for executing a relayout when needed. * clutter/clutter-private.h: Add new Stage private API. * clutter/clutter-rectangle.c: Update the get_abs_opacity() call to get_paint_opacity(). * clutter/clutter-stage.c: (clutter_stage_get_preferred_width), (clutter_stage_get_preferred_height), (clutter_stage_allocate), (clutter_stage_class_init): Port Stage to the new size negotiation API. * clutter/clutter-texture.c: Port Texture to the new size negotiation API. * clutter/clutter-types.h: Add ClutterRequestMode enumeration. * clutter/x11/clutter-stage-x11.c: Port the X11 stage implementation to the new size negotiation API. * tests/Makefile.am: Add the layout manager test case. * tests/test-opacity.c: Update. * tests/test-project.c: Update. * tests/test-layout.c: Test case for a layout manager implemented using the new size negotiation API; the layout manager handles both transformed and untransformed children.
73 lines
3.3 KiB
Makefile
73 lines
3.3 KiB
Makefile
noinst_PROGRAMS = test-textures test-events test-offscreen test-scale \
|
|
test-actors test-behave test-text test-entry test-project \
|
|
test-perspective test-rotate test-depth \
|
|
test-threads test-timeline test-timeline-dup-frames \
|
|
test-timeline-interpolate test-timeline-rewind \
|
|
test-timeline-smoothness \
|
|
test-threads test-timeline test-score test-script \
|
|
test-model test-grab test-effects test-fullscreen \
|
|
test-shader test-unproject test-viewport test-fbo \
|
|
test-opacity test-multistage \
|
|
test-cogl-primitives test-cogl-tex-tile \
|
|
test-cogl-tex-convert test-cogl-tex-foreign \
|
|
test-cogl-tex-getset test-cogl-offscreen \
|
|
test-cogl-tex-polygon test-stage-read-pixels \
|
|
test-random-text test-clip test-paint-wrapper \
|
|
test-texture-quality test-entry-auto test-layout
|
|
|
|
if X11_TESTS
|
|
noinst_PROGRAMS += test-pixmap
|
|
endif
|
|
|
|
INCLUDES = -I$(top_srcdir)/ -I$(top_srcdir)/clutter -I$(top_builddir)/clutter
|
|
LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_MAJORMINOR@.la
|
|
AM_CFLAGS = $(CLUTTER_CFLAGS)
|
|
AM_LDFLAGS = $(CLUTTER_LIBS)
|
|
|
|
test_textures_SOURCES = test-textures.c
|
|
test_events_SOURCES = test-events.c
|
|
test_offscreen_SOURCES = test-offscreen.c
|
|
test_scale_SOURCES = test-scale.c
|
|
test_actors_SOURCES = test-actors.c
|
|
test_grab_SOURCES = test-grab.c
|
|
test_behave_SOURCES = test-behave.c
|
|
test_text_SOURCES = test-text.c
|
|
test_entry_SOURCES = test-entry.c
|
|
test_project_SOURCES = test-project.c
|
|
test_unproject_SOURCES = test-unproject.c
|
|
test_perspective_SOURCES = test-perspective.c
|
|
test_rotate_SOURCES = test-rotate.c
|
|
test_depth_SOURCES = test-depth.c
|
|
test_threads_SOURCES = test-threads.c
|
|
test_timeline_SOURCES = test-timeline.c
|
|
test_timeline_dup_frames_SOURCES = test-timeline-dup-frames.c
|
|
test_timeline_interpolate_SOURCES = test-timeline-interpolate.c
|
|
test_timeline_rewind_SOURCES = test-timeline-rewind.c
|
|
test_timeline_smoothness_SOURCES = test-timeline-smoothness.c
|
|
test_shader_SOURCES = test-shader.c
|
|
test_score_SOURCES = test-score.c
|
|
test_script_SOURCES = test-script.c
|
|
test_model_SOURCES = test-model.c
|
|
test_effects_SOURCES = test-effects.c
|
|
test_fullscreen_SOURCES = test-fullscreen.c
|
|
test_viewport_SOURCES = test-viewport.c
|
|
test_fbo_SOURCES = test-fbo.c
|
|
test_opacity_SOURCES = test-opacity.c
|
|
test_multistage_SOURCES = test-multistage.c
|
|
test_pixmap_SOURCES = test-pixmap.c
|
|
test_pixmap_LDFLAGS = -lXcomposite
|
|
test_cogl_primitives_SOURCES = test-cogl-primitives.c
|
|
test_cogl_tex_tile_SOURCES = test-cogl-tex-tile.c
|
|
test_cogl_tex_convert_SOURCES = test-cogl-tex-convert.c
|
|
test_cogl_tex_foreign_SOURCES = test-cogl-tex-foreign.c
|
|
test_cogl_tex_getset_SOURCES = test-cogl-tex-getset.c
|
|
test_cogl_offscreen_SOURCES = test-cogl-offscreen.c
|
|
test_stage_read_pixels_SOURCES = test-stage-read-pixels.c
|
|
test_random_text_SOURCES = test-random-text.c
|
|
test_paint_wrapper_SOURCES = test-paint-wrapper.c
|
|
test_texture_quality_SOURCES = test-texture-quality.c
|
|
test_entry_auto_SOURCES = test-entry-auto.c
|
|
test_layout_SOURCES = test-layout.c
|
|
|
|
EXTRA_DIST = redhand.png test-script.json
|