Sha256: 021bfa88010550328523679dbe5921f57b6ee68a6472165bc7ed34015c6d5e21

Contents?: true

Size: 627 Bytes

Versions: 34

Compression:

Stored size: 627 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __RAYS_FONT_H__
#define __RAYS_FONT_H__


#include <xot/pimpl.h>
#include <rays/defs.h>


namespace Rays
{


	class Font
	{

		public:

			Font ();

			Font (const char* name, coord size = 0);

			~Font ();

			String name () const;

			coord size () const;

			coord get_width (const char* str) const;

			coord get_height (
				coord* ascent  = NULL,
				coord* descent = NULL,
				coord* leading = NULL) const;

			operator bool () const;

			bool operator ! () const;

			struct Data;

			Xot::PSharedImpl<Data> self;

	};// Font


	const Font& default_font ();


}// Rays


#endif//EOH

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rays-0.1.26 include/rays/font.h
rays-0.1.25 include/rays/font.h
rays-0.1.24 include/rays/font.h
rays-0.1.23 include/rays/font.h
rays-0.1.22 include/rays/font.h
rays-0.1.21 include/rays/font.h
rays-0.1.20 include/rays/font.h
rays-0.1.19 include/rays/font.h
rays-0.1.18 include/rays/font.h
rays-0.1.17 include/rays/font.h
rays-0.1.16 include/rays/font.h
rays-0.1.15 include/rays/font.h
rays-0.1.14 include/rays/font.h
rays-0.1.13 include/rays/font.h