os/graphics/graphicscomposition/openwfcompositionengine/composition/include/wfcelement.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicscomposition/openwfcompositionengine/composition/include/wfcelement.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,93 @@
1.4 +/* Copyright (c) 2009 The Khronos Group Inc.
1.5 + * Portions copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies)
1.6 + *
1.7 + * Permission is hereby granted, free of charge, to any person obtaining a
1.8 + * copy of this software and/or associated documentation files (the
1.9 + * "Materials"), to deal in the Materials without restriction, including
1.10 + * without limitation the rights to use, copy, modify, merge, publish,
1.11 + * distribute, sublicense, and/or sell copies of the Materials, and to
1.12 + * permit persons to whom the Materials are furnished to do so, subject to
1.13 + * the following conditions:
1.14 + *
1.15 + * The above copyright notice and this permission notice shall be included
1.16 + * in all copies or substantial portions of the Materials.
1.17 + *
1.18 + * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1.19 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1.20 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1.21 + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1.22 + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1.23 + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1.24 + * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
1.25 + */
1.26 +/*! \ingroup wfc
1.27 + * \file wfcelement.h
1.28 + *
1.29 + * \brief Element handling interface
1.30 + */
1.31 +#ifndef WFCELEMENT_H_
1.32 +#define WFCELEMENT_H_
1.33 +
1.34 +#include "WF/wfc.h"
1.35 +#include "wfcstructs.h"
1.36 +
1.37 +#ifdef __cplusplus
1.38 +extern "C"
1.39 +{
1.40 +#endif
1.41 +
1.42 +/*!
1.43 + * \brief Create new element into context
1.44 + *
1.45 + * \param context Context into which to create the element
1.46 + *
1.47 + * \return New element object or NULL
1.48 + */
1.49 +OWF_API_CALL WFC_ELEMENT*
1.50 +WFC_Element_Create(WFC_CONTEXT* context);
1.51 +
1.52 +OWF_API_CALL WFC_ELEMENT*
1.53 +WFC_Element_Clone(WFC_ELEMENT* element);
1.54 +
1.55 +OWF_API_CALL void
1.56 +WFC_Element_Destroy(WFC_ELEMENT* element);
1.57 +
1.58 +OWF_API_CALL WFCErrorCode
1.59 +WFC_Element_SetAttribiv(WFC_ELEMENT* element,
1.60 + WFCElementAttrib attrib,
1.61 + WFCint count,
1.62 + const WFCint* values);
1.63 +
1.64 +OWF_API_CALL WFCErrorCode
1.65 +WFC_Element_SetAttribfv(WFC_ELEMENT* element,
1.66 + WFCElementAttrib attrib,
1.67 + WFCint count,
1.68 + const WFCfloat* values);
1.69 +
1.70 +OWF_API_CALL WFCErrorCode
1.71 +WFC_Element_GetAttribiv(WFC_ELEMENT* element,
1.72 + WFCElementAttrib attrib,
1.73 + WFCint count,
1.74 + WFCint* values);
1.75 +
1.76 +OWF_API_CALL WFCErrorCode
1.77 +WFC_Element_GetAttribfv(WFC_ELEMENT* element,
1.78 + WFCElementAttrib attrib,
1.79 + WFCint count,
1.80 + WFCfloat* values);
1.81 +
1.82 +OWF_API_CALL WFCboolean
1.83 +WFC_Element_HasConflicts(WFC_ELEMENT* element);
1.84 +
1.85 +/** Returns False if attribute values "will not affect composition results" in API doc **/
1.86 +OWF_API_CALL WFCboolean
1.87 +WFC_Element_AffectsCompositionResults(WFC_ELEMENT* element);
1.88 +
1.89 +OWF_API_CALL void
1.90 +WFC_Element_Commit(WFC_ELEMENT* element);
1.91 +
1.92 +#ifdef __cplusplus
1.93 +}
1.94 +#endif
1.95 +
1.96 +#endif /*WFCELEMENT_H_*/