Sha256: 1fd69f43b3b798f49a041347dfd9a8663c195bbbfad8add771c8423adeebd2c0

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 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 ();

			Font copy () const;

			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::PImpl<Data, true> self;

	};// Font


	const Font& default_font ();


}// Rays


#endif//EOH

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rays-0.1.12 include/rays/font.h
rays-0.1.11 include/rays/font.h
rays-0.1.10 include/rays/font.h
rays-0.1.9 include/rays/font.h
rays-0.1.8 include/rays/font.h
rays-0.1.7 include/rays/font.h