Source

clutter-ocaml / html / type_Clutter.Color.html

Full commit
<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Clutter" rel="Chapter" href="Clutter.html">
<link title="ClutterEnums" rel="Chapter" href="ClutterEnums.html">
<link title="PangolibEnums" rel="Chapter" href="PangolibEnums.html">
<link title="ClutterData" rel="Chapter" href="ClutterData.html">
<link title="Event" rel="Chapter" href="Event.html">
<link title="Structs" rel="Chapter" href="Structs.html">
<link title="ClutterProps" rel="Chapter" href="ClutterProps.html">
<link title="OclutterProps" rel="Chapter" href="OclutterProps.html">
<link title="ClutterActor" rel="Chapter" href="ClutterActor.html">
<link title="ClutterContainer" rel="Chapter" href="ClutterContainer.html">
<link title="ClutterTexture" rel="Chapter" href="ClutterTexture.html">
<link title="ClutterBehaviour" rel="Chapter" href="ClutterBehaviour.html">
<link title="ClutterGroup" rel="Chapter" href="ClutterGroup.html">
<link title="ClutterStage" rel="Chapter" href="ClutterStage.html">
<link title="ClutterRectangle" rel="Chapter" href="ClutterRectangle.html">
<link title="ClutterTimeline" rel="Chapter" href="ClutterTimeline.html">
<link title="ClutterAlpha" rel="Chapter" href="ClutterAlpha.html">
<link title="ClutterEffects" rel="Chapter" href="ClutterEffects.html">
<link title="ClutterLabel" rel="Chapter" href="ClutterLabel.html">
<link title="ClutterScore" rel="Chapter" href="ClutterScore.html">
<link title="ClutterCairo" rel="Chapter" href="ClutterCairo.html">
<link title="CoglEnums" rel="Chapter" href="CoglEnums.html">
<link title="Cogl" rel="Chapter" href="Cogl.html"><title>ClutterOcaml : Clutter.Color</title>
</head>
<body>
<code class="code"><span class="keyword">sig</span><br>
&nbsp;&nbsp;<span class="keyword">type</span>&nbsp;t&nbsp;=&nbsp;<span class="constructor">Gpointer</span>.boxed<br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;red&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;=&nbsp;<span class="string">"ml_clutter_color_get_red"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;green&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;=&nbsp;<span class="string">"ml_clutter_color_get_green"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;blue&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;=&nbsp;<span class="string">"ml_clutter_color_get_blue"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;alpha&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;=&nbsp;<span class="string">"ml_clutter_color_get_alpha"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;set_red&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;unit<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_set_red"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;set_green&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;unit<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_set_green"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;set_blue&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;unit<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_set_blue"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;set_alpha&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;unit<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_set_alpha"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;parse&nbsp;:&nbsp;name:string&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;=&nbsp;<span class="string">"ml_clutter_color_parse"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;to_pixel&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;=&nbsp;<span class="string">"ml_clutter_color_to_pixel"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;to_string&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;string<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_to_string"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;from_hls&nbsp;:&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_from_hls"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;add&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_add"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;subtract&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_subtract"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;lighten&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_lighten"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;darken&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_darken"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;shade&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;float&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_shade"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;to_hls&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;float&nbsp;*&nbsp;float&nbsp;*&nbsp;float<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_to_hls"</span><br>
&nbsp;&nbsp;<span class="keyword">external</span>&nbsp;create&nbsp;:<br>
&nbsp;&nbsp;&nbsp;&nbsp;red:int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;green:int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;blue:int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;alpha:int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;<span class="string">"ml_clutter_color_new"</span><br>
&nbsp;&nbsp;<span class="keyword">class</span>&nbsp;color&nbsp;:<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">object</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">method</span>&nbsp;as_color&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">method</span>&nbsp;obj&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">method</span>&nbsp;set_alpha&nbsp;:&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;unit<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">end</span><br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;rgba&nbsp;:&nbsp;int&nbsp;*&nbsp;int&nbsp;*&nbsp;int&nbsp;*&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.color<br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;rgb&nbsp;:&nbsp;int&nbsp;*&nbsp;int&nbsp;*&nbsp;int&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.color<br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;parse&nbsp;:&nbsp;string&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.color<br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;as_color&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.color&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t<br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;wrap_color&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.t&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.color<br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;unwrap_color&nbsp;:&nbsp;&lt;&nbsp;as_color&nbsp;:&nbsp;<span class="keywordsign">'</span>a;&nbsp;..&nbsp;&gt;&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="keywordsign">'</span>a<br>
&nbsp;&nbsp;<span class="keyword">val</span>&nbsp;conv_color&nbsp;:&nbsp;<span class="constructor">Clutter</span>.<span class="constructor">Color</span>.color&nbsp;<span class="constructor">Gobject</span>.data_conv<br>
<span class="keyword">end</span></code></body></html>