/* # skkinput (Simple Kana-Kanji Input) * * This file is part of skkinput. * Copyright (C) 2002 * Takashi SAKAMOTO (PXG01715@nifty.ne.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. */ #if !defined (lispwindow_h) #define lispwindow_h struct tagTLispEntity ; struct tagTLispWindow { /* * ウィンドウが属しているフレーム。 * フレームからしかウィンドウを参照できないのは不便であろう。 */ struct tagTLispEntity* m_pFrame ; /* * 描画領域。frame の左上を (0, 0) として、何ピクセル幅×縦が * このウィンドウの持分なのか。全部加えると、Frame のサイズに * 一致しないといけない。 */ XRectangle m_Range ; /* (window-minibuffer-p) の結果となる値。 */ Boolean m_fMinibufferWindow ; Boolean m_fHaveFocus ; /* * ウィンドウの持つバッファ (Entity) * バッファを持たないウィンドウは存在しない。少なくとも動作して * いる最中はバッファを持つ。(作った瞬間はないのか?) *---- * (window-buffer) という関数はあるが、buffer から window をひく * ことはできないようだ。 */ struct tagTLispEntity* m_pBuffer ; struct tagTLispEntity* m_pMessage ; /* * この位置からバッファの内容(テキスト)が表示される。 */ struct tagTLispEntity* m_pViewMarker ; int m_nPointBack ; int m_nTick ; /* * 位置的に自分上下左右の位置するウィンドウを持たないといけない * だろう。これにより、Next Window (C-x o) の意味が生まれる。 * 勿論、C-x o が動作するかどうかは別の話である。 */ struct tagTLispEntity* m_pPrevWindow ; struct tagTLispEntity* m_pNextWindow ; } ; typedef struct tagTLispWindow TLispWindow ; #endif