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.47 include/rays/font.h
rays-0.1.46 include/rays/font.h
rays-0.1.45 include/rays/font.h
rays-0.1.44 include/rays/font.h
rays-0.1.43 include/rays/font.h
rays-0.1.42 include/rays/font.h
rays-0.1.40 include/rays/font.h
rays-0.1.39 include/rays/font.h
rays-0.1.38 include/rays/font.h
rays-0.1.37 include/rays/font.h
rays-0.1.36 include/rays/font.h
rays-0.1.35 include/rays/font.h
rays-0.1.34 include/rays/font.h
rays-0.1.33 include/rays/font.h
rays-0.1.32 include/rays/font.h
rays-0.1.31 include/rays/font.h
rays-0.1.30 include/rays/font.h
rays-0.1.29 include/rays/font.h
rays-0.1.28 include/rays/font.h
rays-0.1.27 include/rays/font.h