Update libraries to latest stable released version (except gnomecanvasmm, which is strangely packaged...). Fixes building (at least here). git-svn-id: svn://localhost/ardour2/trunk@2790 d708f5d6-7413-0410-9779-e7cbd77b26cf
61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
/* $Id: coverage.hg,v 1.1 2003/01/21 13:41:03 murrayc Exp $ */
|
|
|
|
/* coverage.h
|
|
*
|
|
* Copyright (C) 1998-1999 The gtkmm Development Team
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the Free
|
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#include <glibmm/arrayhandle.h>
|
|
#include <pango/pango-font.h>
|
|
|
|
_DEFS(pangomm,pango)
|
|
|
|
namespace Pango
|
|
{
|
|
|
|
_CC_INCLUDE(pango/pango-enum-types.h)
|
|
_WRAP_ENUM(CoverageLevel, PangoCoverageLevel)
|
|
|
|
|
|
/** A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel.
|
|
* It is often necessary in pango to determine if a particular font can represent a particular character,
|
|
* and also how well it can represent that character. Pango::Coverage holds this information.
|
|
*/
|
|
class Coverage
|
|
{
|
|
_CLASS_OPAQUE_REFCOUNTED(Coverage, PangoCoverage, pango_coverage_new, pango_coverage_ref, pango_coverage_unref)
|
|
_IGNORE(pango_coverage_ref, pango_coverage_unref)
|
|
_IGNORE(pango_coverage_copy) //pango ref doc: "This function may now be unecessary since we refcount the structure. Mail otaylor redhat.com if you use it."
|
|
_IGNORE(pango_coverage_to_bytes)
|
|
|
|
public:
|
|
_WRAP_METHOD(static Glib::RefPtr<Coverage> create(const guchar* bytes, int n_bytes), pango_coverage_from_bytes)
|
|
|
|
//_WRAP_METHOD(Glib::RefPtr<Coverage> copy() const, pango_coverage_copy) //see above
|
|
|
|
_WRAP_METHOD(CoverageLevel get(int index) const, pango_coverage_get)
|
|
_WRAP_METHOD(void set(int index, CoverageLevel level), pango_coverage_set)
|
|
_WRAP_METHOD(void max(const Glib::RefPtr<Coverage>& other) const, pango_coverage_max)
|
|
|
|
/** Convert the coverage map into a flat binary format.
|
|
* @return An array of bytes representing the coverage map.
|
|
*/
|
|
Glib::ArrayHandle<unsigned char> to_bytes() const;
|
|
};
|
|
|
|
} // namespace Pango
|