os/graphics/graphicscomposition/openwfcompositionengine/common/include/owfutils.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  *
     3  * Permission is hereby granted, free of charge, to any person obtaining a
     4  * copy of this software and/or associated documentation files (the
     5  * "Materials"), to deal in the Materials without restriction, including
     6  * without limitation the rights to use, copy, modify, merge, publish,
     7  * distribute, sublicense, and/or sell copies of the Materials, and to
     8  * permit persons to whom the Materials are furnished to do so, subject to
     9  * the following conditions:
    10  *
    11  * The above copyright notice and this permission notice shall be included
    12  * in all copies or substantial portions of the Materials.
    13  *
    14  * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    20  * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    21  */
    22 
    23 #ifndef OWFUTILS_H_
    24 #define OWFUTILS_H_
    25 
    26 #include "owftypes.h"
    27 
    28 #ifdef __cplusplus
    29 extern "C" {
    30 #endif
    31 
    32 OWF_API_CALL OWFint min(OWFint aLhs, OWFint aRhs);
    33 
    34 OWF_API_CALL void OWF_Rect_Set(OWF_RECTANGLE* rect,
    35                          OWFint left,
    36                          OWFint top,
    37                          OWFint width,
    38                          OWFint height);
    39 
    40 OWF_API_CALL OWFboolean OWF_Rect_Clip(OWF_RECTANGLE* clipped,
    41                                       OWF_RECTANGLE* rect,
    42                                       OWF_RECTANGLE* bounds);
    43 
    44 
    45 #ifdef __cplusplus
    46 }
    47 #endif
    48 
    49 #endif /* UTILS_H_ */