os/graphics/graphicscomposition/openwfcompositionengine/composition/include/wfcelement.h
First public contribution.
1 /* Copyright (c) 2009 The Khronos Group Inc.
2 * Portions copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and/or associated documentation files (the
6 * "Materials"), to deal in the Materials without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Materials, and to
9 * permit persons to whom the Materials are furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Materials.
15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
26 * \brief Element handling interface
32 #include "wfcstructs.h"
40 * \brief Create new element into context
42 * \param context Context into which to create the element
44 * \return New element object or NULL
46 OWF_API_CALL WFC_ELEMENT*
47 WFC_Element_Create(WFC_CONTEXT* context);
49 OWF_API_CALL WFC_ELEMENT*
50 WFC_Element_Clone(WFC_ELEMENT* element);
53 WFC_Element_Destroy(WFC_ELEMENT* element);
55 OWF_API_CALL WFCErrorCode
56 WFC_Element_SetAttribiv(WFC_ELEMENT* element,
57 WFCElementAttrib attrib,
59 const WFCint* values);
61 OWF_API_CALL WFCErrorCode
62 WFC_Element_SetAttribfv(WFC_ELEMENT* element,
63 WFCElementAttrib attrib,
65 const WFCfloat* values);
67 OWF_API_CALL WFCErrorCode
68 WFC_Element_GetAttribiv(WFC_ELEMENT* element,
69 WFCElementAttrib attrib,
73 OWF_API_CALL WFCErrorCode
74 WFC_Element_GetAttribfv(WFC_ELEMENT* element,
75 WFCElementAttrib attrib,
79 OWF_API_CALL WFCboolean
80 WFC_Element_HasConflicts(WFC_ELEMENT* element);
82 /** Returns False if attribute values "will not affect composition results" in API doc **/
83 OWF_API_CALL WFCboolean
84 WFC_Element_AffectsCompositionResults(WFC_ELEMENT* element);
87 WFC_Element_Commit(WFC_ELEMENT* element);
93 #endif /*WFCELEMENT_H_*/