Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
include
FXComposeContext.h
1
/********************************************************************************
2
* *
3
* C o m p o s e - C o n t e x t *
4
* *
5
*********************************************************************************
6
* Copyright (C) 2005,2024 by Jeroen van der Zijp. All Rights Reserved. *
7
*********************************************************************************
8
* This library is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU Lesser General Public License as published by *
10
* the Free Software Foundation; either version 3 of the License, or *
11
* (at your option) any later version. *
12
* *
13
* This library is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16
* GNU Lesser General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU Lesser General Public License *
19
* along with this program. If not, see <http://www.gnu.org/licenses/> *
20
********************************************************************************/
21
#ifndef FXCOMPOSECONTEXT_H
22
#define FXCOMPOSECONTEXT_H
23
24
#ifndef FXID_H
25
#include "FXId.h"
26
#endif
27
28
namespace
FX
{
29
30
31
class
FXApp;
32
class
FXWindow;
33
class
FXFont;
34
39
class
FXAPI
FXComposeContext
:
public
FXId
{
40
FXDECLARE(
FXComposeContext
)
41
protected
:
42
FXWindow
*window;
// Window we belong to
43
FXSelector message;
// Message to send it
44
private
:
45
#ifndef WIN32
46
void
* fontset;
47
static
int
editStartCallback(
void
*,
FXComposeContext
*,
void
*);
48
static
void
editDoneCallback(
void
*,
FXComposeContext
*,
void
*);
49
static
void
editDrawCallback(
void
*,
FXComposeContext
*,
void
*);
50
static
void
editCaretCallback(
void
*,
FXComposeContext
*,
void
*);
51
static
void
statusStartCallback(
void
*,
FXComposeContext
*,
void
*);
52
static
void
statusDoneCallback(
void
*,
FXComposeContext
*,
void
*);
53
static
void
statusDrawCallback(
void
*,
FXComposeContext
*,
void
*);
54
#endif
55
protected
:
56
FXComposeContext
();
57
private
:
58
FXComposeContext
(
const
FXComposeContext
&);
59
FXComposeContext
&operator=(
const
FXComposeContext
&);
60
public
:
61
63
FXComposeContext
(
FXApp
* a,
FXWindow
* win=
nullptr
,FXSelector sel=0);
64
66
virtual
void
create();
67
69
virtual
void
destroy();
70
72
void
focusIn();
73
75
void
focusOut();
76
78
void
setFont(
FXFont
* fnt);
79
81
void
setSpot(FXint x,FXint y);
82
84
void
setArea(FXint x,FXint y,FXint w,FXint h);
85
87
FXString
translateEvent(FXRawEvent& event);
88
90
virtual
~
FXComposeContext
();
91
};
92
93
}
94
95
#endif
FX::FXWindow
Window is the base class for all widgets in FOX.
Definition:
FXWindow.h:130
FX::FXApp
The Application object is the central point of a FOX user-interface.
Definition:
FXApp.h:134
FX::FXId
Encapsulates server side resource.
Definition:
FXId.h:34
FX
Definition:
FX4Splitter.h:28
FX::FXComposeContext
Compose Context manages the state of an input method if input method support is enabled.
Definition:
FXComposeContext.h:39
FX::FXFont
Font class.
Definition:
FXFont.h:137
FX::FXString
FXString provides essential string manipulation capabilities in FOX.
Definition:
FXString.h:42
Copyright © 1997-2022 Jeroen van der Zijp