2018-06-03 22:00:42 +02:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* svprop.h
|
|
|
|
*
|
|
|
|
* The FreeType property service (specification).
|
|
|
|
*
|
|
|
|
* Copyright 2012-2018 by
|
|
|
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
*
|
|
|
|
* This file is part of the FreeType project, and may only be used,
|
|
|
|
* modified, and distributed under the terms of the FreeType project
|
|
|
|
* license, LICENSE.TXT. By continuing to use, modify, or distribute
|
|
|
|
* this file you indicate that you have read the license and
|
|
|
|
* understand and accept it fully.
|
|
|
|
*
|
|
|
|
*/
|
2012-08-30 23:31:55 +02:00
|
|
|
|
|
|
|
|
2016-01-12 21:37:13 +01:00
|
|
|
#ifndef SVPROP_H_
|
|
|
|
#define SVPROP_H_
|
2012-08-30 23:31:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
|
|
|
|
#define FT_SERVICE_ID_PROPERTIES "properties"
|
|
|
|
|
|
|
|
|
|
|
|
typedef FT_Error
|
2012-09-15 09:10:06 +02:00
|
|
|
(*FT_Properties_SetFunc)( FT_Module module,
|
2012-08-30 23:31:55 +02:00
|
|
|
const char* property_name,
|
2016-07-10 07:11:45 +02:00
|
|
|
const void* value,
|
|
|
|
FT_Bool value_is_string );
|
2012-08-30 23:31:55 +02:00
|
|
|
|
|
|
|
typedef FT_Error
|
2012-09-15 09:10:06 +02:00
|
|
|
(*FT_Properties_GetFunc)( FT_Module module,
|
2012-08-30 23:31:55 +02:00
|
|
|
const char* property_name,
|
|
|
|
void* value );
|
|
|
|
|
|
|
|
|
|
|
|
FT_DEFINE_SERVICE( Properties )
|
|
|
|
{
|
|
|
|
FT_Properties_SetFunc set_property;
|
|
|
|
FT_Properties_GetFunc get_property;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define FT_DEFINE_SERVICE_PROPERTIESREC( class_, \
|
|
|
|
set_property_, \
|
|
|
|
get_property_ ) \
|
|
|
|
static const FT_Service_PropertiesRec class_ = \
|
|
|
|
{ \
|
|
|
|
set_property_, \
|
|
|
|
get_property_ \
|
|
|
|
};
|
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
|
|
|
|
2016-01-12 21:37:13 +01:00
|
|
|
#endif /* SVPROP_H_ */
|
2012-08-30 23:31:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|