/* # skkinput (Simple Kana-Kanji Input)
 * attrs.h
 * This file is part of skkinput.
 * Copyright (C) 1997
 * Takashi SAKAMOTO (sakamoto@yajima.kuis.kyoto-u.ac.jp)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with skkinput; see the file COPYING.  If not, write to
 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 */
#ifndef attrs_h
#define attrs_h

#define CASpotLocation		((unsigned long)1L << 1)
#define CAFocusWindow		((unsigned long)1L << 2)
#define CAClientArea		((unsigned long)1L << 3)
#define CAStatusArea		((unsigned long)1L << 4)
#define CAColormap			((unsigned long)1L << 5)
#define	CAForegroundPixel	((unsigned long)1L << 6)
#define	CABackgroundPixel	((unsigned long)1L << 7)
#define CABackgroundPixmap	((unsigned long)1L << 8)
#define CALineSpacing		((unsigned long)1L << 9)
#define CAFonts				((unsigned long)1L <<10)
#define CACursor			((unsigned long)1L <<11)
#define	CAInputStyle		((unsigned long)1L <<12)
#define	CAClientAreaNeeded	((unsigned long)1L <<13)
#define	CAStatusAreaNeeded	((unsigned long)1L <<14)

struct ConvAttrs {
	Position	spot_x, spot_y ;
	Window		focus_window ;
	XRectangle	client_area ;
	XRectangle	status_area ;
	Colormap	colormap ;
	Pixel		foreground, background ;
	struct skkinputManagedFont	**fontset ;
	Dimension	linespacing ;
	Pixmap		background_pixmap ;
	Cursor		cursor ;
} ;

/*
 * Widget 間でメッセージを送る時に用いる構造体。
 *-------
 * ここで言うメッセージは、XtSetValue 及び XtGetValue によって受渡しさ
 * れる。
 */
struct ConvAttrsMesg {
	unsigned long		mask ;
	struct ConvAttrs	value ;
} ;

/*	OnTheSpot 変換において描画領域の更新のためにクライアントに送る
 *	情報。
 */
typedef struct tagTOnTheSpotDrawArg {
	int						m_nCaret ;
	int						m_nChgFirst ;
	int						m_nChgLength ;
	struct myChar*			m_pText ;
	int						m_nText ;
	XIMFeedback*			m_pAttribute ;
	int						m_nAttribute ;
}	TOnTheSpotDrawArg ;

#endif
