34 transparency. The alpha value can be varied from 0 (fully transparent) |
34 transparency. The alpha value can be varied from 0 (fully transparent) |
35 to 255 (fully opaque). </p></li> |
35 to 255 (fully opaque). </p></li> |
36 <li id="GUID-4537F6DA-1880-5351-A194-079C4ECDE81D"><p> <xref href="GUID-683603DD-F3D3-3193-BEB3-8236C7DE7F79.dita#GUID-683603DD-F3D3-3193-BEB3-8236C7DE7F79/GUID-BED44E59-A6A3-3302-8E11-487F005A3AB2"><apiname>RWindow::SetTransparentRegion(const |
36 <li id="GUID-4537F6DA-1880-5351-A194-079C4ECDE81D"><p> <xref href="GUID-683603DD-F3D3-3193-BEB3-8236C7DE7F79.dita#GUID-683603DD-F3D3-3193-BEB3-8236C7DE7F79/GUID-BED44E59-A6A3-3302-8E11-487F005A3AB2"><apiname>RWindow::SetTransparentRegion(const |
37 TRegion&)</apiname></xref>: this function restricts the transparency |
37 TRegion&)</apiname></xref>: this function restricts the transparency |
38 to a specified region of the window. </p> </li> |
38 to a specified region of the window. </p> </li> |
39 </ul> <p><b>Handling window server events</b> </p> <p>The user-defined class <codeph>CEventHandler</codeph> handles |
39 </ul> <p><b>Handling window server events</b> </p> <p>The user-defined |
40 pointer events when transparent areas of the window are clicked by |
40 class <codeph>CEventHandler</codeph> handles pointer events when transparent |
41 the pointer device. An appropriate message is displayed when a <i>click</i> event is detected. </p> </section> |
41 areas of the window are clicked by the pointer device. An appropriate |
42 <section id="GUID-0EBE02D4-1591-49ED-9B75-2383E8420E58"><title>Build</title> <p><xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The Symbian |
42 message is displayed when a <i>click</i> event is detected. </p> </section> |
43 build process</xref> describes how to build this example. </p> <p>The <codeph>Transparent</codeph> example builds an executable called <filepath>transparent.exe</filepath> in the standard location (<filepath>\epoc32\release\winscw\<build_variant></filepath> for Carbide.c++). </p> </section> |
43 <section id="GUID-0EBE02D4-1591-49ED-9B75-2383E8420E58"><title>Build</title> <p>The <codeph>Transparent</codeph> example builds an executable |
|
44 called <filepath>transparent.exe</filepath> in the standard location |
|
45 (<filepath>\epoc32\release\winscw\<build_variant></filepath> for |
|
46 Carbide.c++). </p> </section> |
44 <section id="GUID-45BFAED8-FC21-423F-BA86-0C6A2D6BD010"><title>Running |
47 <section id="GUID-45BFAED8-FC21-423F-BA86-0C6A2D6BD010"><title>Running |
45 the example</title> <p>The example creates three windows: </p> <ul> |
48 the example</title> <p>The example creates three windows: </p> <ul> |
46 <li id="GUID-A8AD34F4-034C-5359-861E-25807691B7A5"><p>One background |
49 <li id="GUID-A8AD34F4-034C-5359-861E-25807691B7A5"><p>One background |
47 window with height equal to the full emulator screen and width of |
50 window with height equal to the full emulator screen and width of |
48 half the emulator screen. The "Background Window" label is set for |
51 half the emulator screen. The "Background Window" label is set for |