| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>SGL: SkOSMenu.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.4.0 --> |
| <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> |
| <div class="nav"> |
| <a class="el" href="dir_000000.html">include</a> / <a class="el" href="dir_000001.html">skia</a></div> |
| <h1>SkOSMenu.h</h1><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifndef SkOSMenu_DEFINED</span> |
| 00002 <span class="preprocessor"></span><span class="preprocessor">#define SkOSMenu_DEFINED</span> |
| 00003 <span class="preprocessor"></span> |
| 00004 <span class="preprocessor">#include "SkEvent.h"</span> |
| 00005 <span class="preprocessor">#include "SkTDArray.h"</span> |
| 00006 |
| 00007 <span class="keyword">class </span>SkOSMenu { |
| 00008 <span class="keyword">public</span>: |
| 00009 <span class="keyword">explicit</span> SkOSMenu(<span class="keyword">const</span> <span class="keywordtype">char</span> title[]); |
| 00010 ~SkOSMenu(); |
| 00011 |
| 00012 <span class="keyword">const</span> <span class="keywordtype">char</span>* getTitle()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fTitle; } |
| 00013 |
| 00014 <span class="keywordtype">void</span> appendItem(<span class="keyword">const</span> <span class="keywordtype">char</span> title[], <span class="keyword">const</span> <span class="keywordtype">char</span> eventType[], S32 eventData); |
| 00015 |
| 00016 <span class="comment">// called by SkOSWindow when it receives an OS menu event</span> |
| 00017 <span class="keywordtype">int</span> countItems() <span class="keyword">const</span>; |
| 00018 <span class="keyword">const</span> <span class="keywordtype">char</span>* getItem(<span class="keywordtype">int</span> index, U32* cmdID) <span class="keyword">const</span>; |
| 00019 |
| 00020 <a class="code" href="classSkEvent.html">SkEvent</a>* createEvent(U32 os_cmd); |
| 00021 |
| 00022 <span class="keyword">private</span>: |
| 00023 <span class="keyword">const</span> <span class="keywordtype">char</span>* fTitle; |
| 00024 |
| 00025 <span class="keyword">struct </span>Item { |
| 00026 <span class="keyword">const</span> <span class="keywordtype">char</span>* fTitle; |
| 00027 <span class="keyword">const</span> <span class="keywordtype">char</span>* fEventType; |
| 00028 U32 fEventData; |
| 00029 U32 fOSCmd; <span class="comment">// internal</span> |
| 00030 }; |
| 00031 SkTDArray<Item> fItems; |
| 00032 |
| 00033 <span class="comment">// illegal</span> |
| 00034 SkOSMenu(<span class="keyword">const</span> SkOSMenu&); |
| 00035 SkOSMenu& operator=(<span class="keyword">const</span> SkOSMenu&); |
| 00036 }; |
| 00037 |
| 00038 <span class="preprocessor">#endif</span> |
| 00039 <span class="preprocessor"></span> |
| </pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue May 9 14:35:23 2006 for SGL by |
| <a href="http://www.doxygen.org/index.html"> |
| <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address> |
| </body> |
| </html> |