os/graphics/graphicscomposition/openwfcompositionengine/composition/include/wfcelement.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/* Copyright (c) 2009 The Khronos Group Inc.
sl@0
     2
 * Portions copyright (c) 2009-2010  Nokia Corporation and/or its subsidiary(-ies)
sl@0
     3
 *
sl@0
     4
 * Permission is hereby granted, free of charge, to any person obtaining a
sl@0
     5
 * copy of this software and/or associated documentation files (the
sl@0
     6
 * "Materials"), to deal in the Materials without restriction, including
sl@0
     7
 * without limitation the rights to use, copy, modify, merge, publish,
sl@0
     8
 * distribute, sublicense, and/or sell copies of the Materials, and to
sl@0
     9
 * permit persons to whom the Materials are furnished to do so, subject to
sl@0
    10
 * the following conditions:
sl@0
    11
 *
sl@0
    12
 * The above copyright notice and this permission notice shall be included
sl@0
    13
 * in all copies or substantial portions of the Materials.
sl@0
    14
 *
sl@0
    15
 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
sl@0
    16
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
sl@0
    17
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
sl@0
    18
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
sl@0
    19
 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
sl@0
    20
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
sl@0
    21
 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
sl@0
    22
 */
sl@0
    23
/*! \ingroup wfc
sl@0
    24
 *  \file wfcelement.h
sl@0
    25
 *
sl@0
    26
 *  \brief Element handling interface
sl@0
    27
 */
sl@0
    28
#ifndef WFCELEMENT_H_
sl@0
    29
#define WFCELEMENT_H_
sl@0
    30
sl@0
    31
#include "WF/wfc.h"
sl@0
    32
#include "wfcstructs.h"
sl@0
    33
sl@0
    34
#ifdef __cplusplus
sl@0
    35
extern "C"
sl@0
    36
{
sl@0
    37
#endif
sl@0
    38
sl@0
    39
/*!
sl@0
    40
 *  \brief Create new element into context
sl@0
    41
 *
sl@0
    42
 *  \param context Context into which to create the element
sl@0
    43
 *
sl@0
    44
 *  \return New element object or NULL
sl@0
    45
 */
sl@0
    46
OWF_API_CALL WFC_ELEMENT*
sl@0
    47
WFC_Element_Create(WFC_CONTEXT* context);
sl@0
    48
sl@0
    49
OWF_API_CALL WFC_ELEMENT*
sl@0
    50
WFC_Element_Clone(WFC_ELEMENT* element);
sl@0
    51
sl@0
    52
OWF_API_CALL void
sl@0
    53
WFC_Element_Destroy(WFC_ELEMENT* element);
sl@0
    54
sl@0
    55
OWF_API_CALL WFCErrorCode
sl@0
    56
WFC_Element_SetAttribiv(WFC_ELEMENT* element,
sl@0
    57
                        WFCElementAttrib attrib,
sl@0
    58
                        WFCint count,
sl@0
    59
                        const WFCint* values);
sl@0
    60
sl@0
    61
OWF_API_CALL WFCErrorCode
sl@0
    62
WFC_Element_SetAttribfv(WFC_ELEMENT* element,
sl@0
    63
                        WFCElementAttrib attrib,
sl@0
    64
                        WFCint count,
sl@0
    65
                        const WFCfloat* values);
sl@0
    66
sl@0
    67
OWF_API_CALL WFCErrorCode
sl@0
    68
WFC_Element_GetAttribiv(WFC_ELEMENT* element,
sl@0
    69
                        WFCElementAttrib attrib,
sl@0
    70
                        WFCint count,
sl@0
    71
                        WFCint* values);
sl@0
    72
sl@0
    73
OWF_API_CALL WFCErrorCode
sl@0
    74
WFC_Element_GetAttribfv(WFC_ELEMENT* element,
sl@0
    75
                        WFCElementAttrib attrib,
sl@0
    76
                        WFCint count,
sl@0
    77
                        WFCfloat* values);
sl@0
    78
sl@0
    79
OWF_API_CALL WFCboolean
sl@0
    80
WFC_Element_HasConflicts(WFC_ELEMENT* element);
sl@0
    81
sl@0
    82
/** Returns False if attribute values "will not affect composition results" in API doc **/ 
sl@0
    83
OWF_API_CALL WFCboolean
sl@0
    84
WFC_Element_AffectsCompositionResults(WFC_ELEMENT* element);
sl@0
    85
sl@0
    86
OWF_API_CALL void
sl@0
    87
WFC_Element_Commit(WFC_ELEMENT* element);
sl@0
    88
sl@0
    89
#ifdef __cplusplus
sl@0
    90
}
sl@0
    91
#endif
sl@0
    92
sl@0
    93
#endif /*WFCELEMENT_H_*/