os/graphics/graphicscomposition/openwfcompositionengine/composition/include/wfcelement.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /* Copyright (c) 2009 The Khronos Group Inc.
     2  * Portions copyright (c) 2009-2010  Nokia Corporation and/or its subsidiary(-ies)
     3  *
     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:
    11  *
    12  * The above copyright notice and this permission notice shall be included
    13  * in all copies or substantial portions of the Materials.
    14  *
    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.
    22  */
    23 /*! \ingroup wfc
    24  *  \file wfcelement.h
    25  *
    26  *  \brief Element handling interface
    27  */
    28 #ifndef WFCELEMENT_H_
    29 #define WFCELEMENT_H_
    30 
    31 #include "WF/wfc.h"
    32 #include "wfcstructs.h"
    33 
    34 #ifdef __cplusplus
    35 extern "C"
    36 {
    37 #endif
    38 
    39 /*!
    40  *  \brief Create new element into context
    41  *
    42  *  \param context Context into which to create the element
    43  *
    44  *  \return New element object or NULL
    45  */
    46 OWF_API_CALL WFC_ELEMENT*
    47 WFC_Element_Create(WFC_CONTEXT* context);
    48 
    49 OWF_API_CALL WFC_ELEMENT*
    50 WFC_Element_Clone(WFC_ELEMENT* element);
    51 
    52 OWF_API_CALL void
    53 WFC_Element_Destroy(WFC_ELEMENT* element);
    54 
    55 OWF_API_CALL WFCErrorCode
    56 WFC_Element_SetAttribiv(WFC_ELEMENT* element,
    57                         WFCElementAttrib attrib,
    58                         WFCint count,
    59                         const WFCint* values);
    60 
    61 OWF_API_CALL WFCErrorCode
    62 WFC_Element_SetAttribfv(WFC_ELEMENT* element,
    63                         WFCElementAttrib attrib,
    64                         WFCint count,
    65                         const WFCfloat* values);
    66 
    67 OWF_API_CALL WFCErrorCode
    68 WFC_Element_GetAttribiv(WFC_ELEMENT* element,
    69                         WFCElementAttrib attrib,
    70                         WFCint count,
    71                         WFCint* values);
    72 
    73 OWF_API_CALL WFCErrorCode
    74 WFC_Element_GetAttribfv(WFC_ELEMENT* element,
    75                         WFCElementAttrib attrib,
    76                         WFCint count,
    77                         WFCfloat* values);
    78 
    79 OWF_API_CALL WFCboolean
    80 WFC_Element_HasConflicts(WFC_ELEMENT* element);
    81 
    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);
    85 
    86 OWF_API_CALL void
    87 WFC_Element_Commit(WFC_ELEMENT* element);
    88 
    89 #ifdef __cplusplus
    90 }
    91 #endif
    92 
    93 #endif /*WFCELEMENT_H_*/