Home | History | Annotate | Download | only in macos
      1  174  yongsun /*
      2  174  yongsun  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
      3  174  yongsun  *
      4  177  yongsun  * Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
      5  174  yongsun  *
      6  174  yongsun  * The contents of this file are subject to the terms of either the GNU Lesser
      7  174  yongsun  * General Public License Version 2.1 only ("LGPL") or the Common Development and
      8  174  yongsun  * Distribution License ("CDDL")(collectively, the "License"). You may not use this
      9  174  yongsun  * file except in compliance with the License. You can obtain a copy of the CDDL at
     10  174  yongsun  * http://www.opensource.org/licenses/cddl1.php and a copy of the LGPLv2.1 at
     11  174  yongsun  * http://www.opensource.org/licenses/lgpl-license.php. See the License for the
     12  174  yongsun  * specific language governing permissions and limitations under the License. When
     13  174  yongsun  * distributing the software, include this License Header Notice in each file and
     14  174  yongsun  * include the full text of the License in the License file as well as the
     15  174  yongsun  * following notice:
     16  174  yongsun  *
     17  174  yongsun  * NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
     18  174  yongsun  * (CDDL)
     19  174  yongsun  * For Covered Software in this distribution, this License shall be governed by the
     20  174  yongsun  * laws of the State of California (excluding conflict-of-law provisions).
     21  174  yongsun  * Any litigation relating to this License shall be subject to the jurisdiction of
     22  174  yongsun  * the Federal Courts of the Northern District of California and the state courts
     23  174  yongsun  * of the State of California, with venue lying in Santa Clara County, California.
     24  174  yongsun  *
     25  174  yongsun  * Contributor(s):
     26  174  yongsun  *
     27  174  yongsun  * If you wish your version of this file to be governed by only the CDDL or only
     28  174  yongsun  * the LGPL Version 2.1, indicate your decision by adding "[Contributor]" elects to
     29  174  yongsun  * include this software in this distribution under the [CDDL or LGPL Version 2.1]
     30  174  yongsun  * license." If you don't indicate a single choice of license, a recipient has the
     31  174  yongsun  * option to distribute your version of this file under either the CDDL or the LGPL
     32  174  yongsun  * Version 2.1, or to extend the choice of license to its licensees as provided
     33  174  yongsun  * above. However, if you add LGPL Version 2.1 code and therefore, elected the LGPL
     34  174  yongsun  * Version 2 license, then the option applies only if the new code is made subject
     35  174  yongsun  * to such option by the copyright holder.
     36  174  yongsun  */
     37  174  yongsun 
     38  174  yongsun #import <Cocoa/Cocoa.h>
     39  174  yongsun 
     40  174  yongsun @interface CandidateWindow : NSObject {
     41  174  yongsun     NSWindow            *_window;
     42  174  yongsun     NSView              *_view;
     43  174  yongsun     NSMutableDictionary *_attr;
     44  176  yongsun 
     45  176  yongsun     NSColor             *_bgColor;
     46  176  yongsun     NSColor             *_fgColor;
     47  176  yongsun     NSColor             *_hlColor;
     48  176  yongsun     NSFont              *_font;
     49  174  yongsun }
     50  176  yongsun 
     51  176  yongsun -(void)setFont:(NSFont *)font;
     52  176  yongsun -(NSFont*)font;
     53  176  yongsun 
     54  266  yongsun -(NSColor*)bgColor;
     55  176  yongsun -(void)setBgColor:(NSColor*)color;
     56  266  yongsun 
     57  266  yongsun -(NSColor*)fgColor;
     58  266  yongsun -(void)setFgColor:(NSColor*)color;
     59  266  yongsun 
     60  266  yongsun -(NSColor*)hlColor;
     61  266  yongsun -(void)setHlColor:(NSColor*)color;
     62  174  yongsun 
     63  174  yongsun -(void)showCandidates:(NSArray*)candiArray around:(NSRect)cursorRect;
     64  174  yongsun -(void)hideCandidates;
     65  174  yongsun 
     66  174  yongsun @end
     67