<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Oyranos: oyRegion_s Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="contents"> <h1>oyRegion_s Struct Reference<br> <small> [<a class="el" href="group__objects__region.html">Region Handling</a>]</small> </h1><!-- doxytag: class="oyRegion_s" -->start with a simple rectangle <a href="#_details">More...</a> <p> <code>#include <oyranos_alpha.h></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Fields</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__objects__generic.html#ga62ef859fd449252e08ccba088cf4f20">oyOBJECT_e</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structoyRegion__s.html#3a6a87f9715ae3c1397deede504fcfbb">type_</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">oyStruct_Copy_f </td><td class="memItemRight" valign="bottom"><a class="el" href="structoyRegion__s.html#2fa4b1a5d241c08000d575b35e4caf04">copy</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">oyStruct_Release_f </td><td class="memItemRight" valign="bottom"><a class="el" href="structoyRegion__s.html#c175076007637e8f5de58a545d831fdd">release</a></td></tr> <tr><td colspan="2"><br><h2>Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structoyRegion__s.html">oyRegion_s</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gc961be7abfca1bb28002752a080f6f1b">oyRegion_NewWith</a> (double x, double y, double width, double height, <a class="el" href="structoyObject__s.html">oyObject_s</a> object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">new with geometry <a href="group__objects__region.html#gc961be7abfca1bb28002752a080f6f1b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structoyRegion__s.html">oyRegion_s</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g99866fa4f90ceea651afa33f15c8567d">oyRegion_NewFrom</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *ref, <a class="el" href="structoyObject__s.html">oyObject_s</a> object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">new from other region <a href="group__objects__region.html#g99866fa4f90ceea651afa33f15c8567d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structoyRegion__s.html">oyRegion_s</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g574ee16d1b2fd6d92c60c91d89195cdc">oyRegion_Copy</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *orig, <a class="el" href="structoyObject__s.html">oyObject_s</a> object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">copy/reference from other region <a href="group__objects__region.html#g574ee16d1b2fd6d92c60c91d89195cdc"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g9c64cc2187c2506a6522ddfa5c3b5858">oyRegion_Release</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> **obj)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">release <a href="group__objects__region.html#g9c64cc2187c2506a6522ddfa5c3b5858"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gbcaac138564dcb36492aa40bf9491c6a">oyRegion_SetGeo</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region, double x, double y, double width, double height)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">set geometry <a href="group__objects__region.html#gbcaac138564dcb36492aa40bf9491c6a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gf05bae0245c04292b7ea37e0d6956acd">oyRegion_SetByRegion</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region, <a class="el" href="structoyRegion__s.html">oyRegion_s</a> *ref)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">copy values <a href="group__objects__region.html#gf05bae0245c04292b7ea37e0d6956acd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g7f8cf6819069c5a58ac5e4e33e7fcf1b">oyRegion_Trim</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region, <a class="el" href="structoyRegion__s.html">oyRegion_s</a> *ref)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">trim edit_region to ref extents <a href="group__objects__region.html#g7f8cf6819069c5a58ac5e4e33e7fcf1b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gf6f13be9822ea140b7c8823d5a93a676">oyRegion_MoveInside</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region, <a class="el" href="structoyRegion__s.html">oyRegion_s</a> *ref)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">trim edit_region to ref extents <a href="group__objects__region.html#gf6f13be9822ea140b7c8823d5a93a676"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g1365d41d075772d727721cdfb4ffd68d">oyRegion_Scale</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region, double factor)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">scale with origin in the top left corner <a href="group__objects__region.html#g1365d41d075772d727721cdfb4ffd68d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gb3ef9279ae78e1258618ab1d0fca4c7b">oyRegion_Normalise</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">normalise swapped values for width and height <a href="group__objects__region.html#gb3ef9279ae78e1258618ab1d0fca4c7b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#ga21fbf0e94f40a25f0d11030b3ec563f">oyRegion_Round</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *edit_region)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">scale with origin in the top left corner <a href="group__objects__region.html#ga21fbf0e94f40a25f0d11030b3ec563f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gaf63b8cf97496792234ded62eee2371b">oyRegion_IsEqual</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *region1, <a class="el" href="structoyRegion__s.html">oyRegion_s</a> *region2)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">compare <a href="group__objects__region.html#gaf63b8cf97496792234ded62eee2371b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g2deb6838f3c9adb4f84b611ae2ef6e00">oyRegion_IsInside</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *region, double x, double y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">compare <a href="group__objects__region.html#g2deb6838f3c9adb4f84b611ae2ef6e00"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#g887f048a1beaf542f61ce9f8ddfeb604">oyRegion_CountPoints</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *region)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">count number of points covered by this region <a href="group__objects__region.html#g887f048a1beaf542f61ce9f8ddfeb604"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gbcb89a2a66e9cb8b7c79206c6ebb9c94">oyRegion_Index</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *region, double x, double y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">return position inside region, assuming region size <a href="group__objects__region.html#gbcb89a2a66e9cb8b7c79206c6ebb9c94"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">oyChar * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__objects__region.html#gf05ddf1e9ea197afbc0a117a4fa34107">oyRegion_Show</a> (<a class="el" href="structoyRegion__s.html">oyRegion_s</a> *r)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">debug text not so threadsafe <a href="group__objects__region.html#gf05ddf1e9ea197afbc0a117a4fa34107"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> start with a simple rectangle <hr><h2>Field Documentation</h2> <a class="anchor" name="2fa4b1a5d241c08000d575b35e4caf04"></a><!-- doxytag: member="oyRegion_s::copy" ref="2fa4b1a5d241c08000d575b35e4caf04" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">oyStruct_Copy_f <a class="el" href="structoyRegion__s.html#2fa4b1a5d241c08000d575b35e4caf04">oyRegion_s::copy</a> </td> </tr> </table> </div> <div class="memdoc"> <p> copy function </div> </div><p> <a class="anchor" name="c175076007637e8f5de58a545d831fdd"></a><!-- doxytag: member="oyRegion_s::release" ref="c175076007637e8f5de58a545d831fdd" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">oyStruct_Release_f <a class="el" href="structoyRegion__s.html#c175076007637e8f5de58a545d831fdd">oyRegion_s::release</a> </td> </tr> </table> </div> <div class="memdoc"> <p> release function </div> </div><p> <a class="anchor" name="3a6a87f9715ae3c1397deede504fcfbb"></a><!-- doxytag: member="oyRegion_s::type_" ref="3a6a87f9715ae3c1397deede504fcfbb" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__objects__generic.html#ga62ef859fd449252e08ccba088cf4f20">oyOBJECT_e</a> <a class="el" href="structoyRegion__s.html#3a6a87f9715ae3c1397deede504fcfbb">oyRegion_s::type_</a> </td> </tr> </table> </div> <div class="memdoc"> <p> internal struct type oyOBJECT_REGION_S <p>Referenced by <a class="el" href="oyranos__alpha_8c_source.html#l09558">oyRegion_Release()</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 27 04:18:00 2009 for Oyranos by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>