Age | Commit message (Collapse) | Author | Files | Lines |
|
* cairomm/fontface.cc:
* cairomm/fontface.h: Change UserFontFace implementation to a vfunc-based
implementation rather than requiring people to supply callbacks at runtime as
sigc::slot objects. This was requested by Ian Britten on the mailing list and
was my original plan but ran into issues in my original implementation. This
isn't a fully-working implementation yet, but I think I can overcome the
issues now, so I'm moving forward on the redesign.
* tests/test-font-face.cc: disable UserFontFace tests for now
Conflicts:
ChangeLog
cairomm/fontface.cc
cairomm/fontface.h
|
|
|
|
|
|
* cairomm/context.cc:
* cairomm/context.h: remove has_show_text_glyphs() (moved to Surface)
* cairomm/surface.cc:
* cairomm/surface.h: added has_show_text_glyphs() (moved from Context)
* cairomm/enums.h: removed LcdFilter enum, added a TextClusterFlags enum
* cairomm/fontface.cc:
* cairomm/fontface.h: changed the 'backwards' bool argument of
SlotTextToGlyphs to use TextClusterFlags instead. Same general change for the
C callback text_to_glyphs_cb
* cairomm/fontoptions.cc:
* cairomm/fontoptions.h: remove get/set_lcd_filter() since it was removed from
cairo just before the 1.8 release
* cairomm/scaledfont.cc:
* cairomm/scaledfont.h: changed the 'backwards' bool argument of
text_to_glyphs() to use TextClusterFlags instead
* tests/test-context.cc:
* tests/test-font-face.cc:
* tests/test-font-options.cc:
* tests/test-scaled-font.cc:
* tests/test-surface.cc: update tests for API changes
|
|
Also fix a distcheck issue where the example png file was not being opened from
the correct location when builddir != srcdir
|
|
* cairomm/matrix.cc:
* cairomm/matrix.h: Add documentation for newly-wrapped matrix functions.
Also, changed how the cairo_matrix_init_XXX() functions are wrapped.
Initially I had basically wrapped them directly (as Matrix::init_XXX()),
however, on the advice of Chong Kai Xiong (descender) on IRC, I have moved
these into standalone 'generator' functions:
- scaled_matrix()
- translation_matrix()
- rotation_matrix()
- identity_matrix()
* tests/test-font-face.cc:
* tests/test-matrix.cc: modify the tests for the change in API. The new API
does make things much more comfortable to use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In order to avoid ambiguous template overload issues (I was getting compile
failures when passing a literal string for the std::string parameter of the
normal create() function)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cairo_write_func_t or cairo_read_func_t
|
|
|
|
|
|
|
|
including:
Context::get_target()
Context::get_target() const
Context::get_source()
Context::get_source() const
Context::get_group_target()
Context::get_group_target() const
Context::pop_group()
* tests/test-context.cc: a few additional tests to verify the const /
non-const versions both work with dynamic casting.
|
|
instead of the slightly unexpected std::valarray argument
* tests/test-context.cc: test that both API work correctly and compile
correctly without any problems
|
|
mappings
The matrix transformation 'test' does nothing more than call the functions to
excercise them a bit
Also used BOOST_CHECK_EQUAL in most places instead of BOOST_CHECK to get more
meaningful failure messages.
|
|
* cairomm/context.cc: when getting the source pattern of a Cairo::Context,
check which type of Pattern it is so that we create the correct C++ wrapper.
Without this, RefPtr<>::cast_dynamic() doesn't seem to work as we would expect
it to.
* tests/test-context.cc: improve the Context::get_source() /
Context::set_source () tests now that dynamic casting works correctly
|
|
-Werror
|
|
* Makefile.am:
* autogen.sh:
* configure.in:
* m4/ax_boost_base.m4:
* m4/ax_boost_unit_test_framework.m4: Add some basic test infrastructure.
It's disabled by default, and must be explicitly enabled by passing
--enable-tests to configure (or by setting the CAIROMM_DEVEL environment
variable to "on"). It uses the boost unit test framework, but this should
not be required unless you've explicitly enabled tests. If tests are
enabled, you can easily run them with 'make check'
* tests/Makefile.am:
* tests/test-context.cc: added the beginning of a test for Cairo::Context.
Most of these tests are really very interesting. Basically what I'm trying
to do is a) test some basic behaviors, and b) excercise the functionality a
little bit. One of the tests currently fails due to a RefPtr::cast_dynamic
failure, so I have to see what's going on there.
|