Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
301e0597
Commit
301e0597
authored
May 28, 2010
by
dewyatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding some initial TSF code
parent
249f46e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
0 deletions
+53
-0
GLTSF.vcxproj
EXCLUDE/GLTSF/GLTSF.vcxproj
+2
-0
GLTSF.vcxproj.filters
EXCLUDE/GLTSF/GLTSF.vcxproj.filters
+6
-0
TSF.hpp
EXCLUDE/GLTSF/include/TSF.hpp
+44
-0
TSF.cpp
EXCLUDE/GLTSF/src/TSF.cpp
+1
-0
No files found.
EXCLUDE/GLTSF/GLTSF.vcxproj
View file @
301e0597
...
...
@@ -81,6 +81,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude
Include=
"include\App.hpp"
/>
<ClInclude
Include=
"include\TSF.hpp"
/>
<ClInclude
Include=
"include\Video_Mode.hpp"
/>
<ClInclude
Include=
"include\Window.hpp"
/>
<ClInclude
Include=
"include\Window_Listener.hpp"
/>
...
...
@@ -88,6 +89,7 @@
<ItemGroup>
<ClCompile
Include=
"src\App.cpp"
/>
<ClCompile
Include=
"src\Main.cpp"
/>
<ClCompile
Include=
"src\TSF.cpp"
/>
<ClCompile
Include=
"src\Video_Mode.cpp"
/>
<ClCompile
Include=
"src\Window.cpp"
/>
</ItemGroup>
...
...
EXCLUDE/GLTSF/GLTSF.vcxproj.filters
View file @
301e0597
...
...
@@ -27,6 +27,9 @@
<ClInclude
Include=
"include\Window_Listener.hpp"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"include\TSF.hpp"
>
<Filter>
Header Files
</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"src\App.cpp"
>
...
...
@@ -41,5 +44,8 @@
<ClCompile
Include=
"src\Window.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
<ClCompile
Include=
"src\TSF.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
EXCLUDE/GLTSF/include/TSF.hpp
0 → 100644
View file @
301e0597
#ifndef TSF_HPP
#define TSF_HPP
#include <msctf.h>
class
TSF
{
public
:
protected
:
class
UI_Sink
:
public
ITfUIElementSink
,
public
ITfInputProcessorProfileActivationSink
{
public
:
UI_Sink
();
~
UI_Sink
();
// IUnknown
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppvObj
);
STDMETHODIMP_
(
ULONG
)
AddRef
(
void
);
STDMETHODIMP_
(
ULONG
)
Release
(
void
);
// ITfUIElementSink
STDMETHODIMP
BeginUIElement
(
DWORD
dwUIElementId
,
BOOL
*
pbShow
);
STDMETHODIMP
UpdateUIElement
(
DWORD
dwUIElementId
);
STDMETHODIMP
EndUIElement
(
DWORD
dwUIElementId
);
// ITfInputProcessorProfileActivationSink
STDMETHODIMP
OnActivated
(
DWORD
dwProfileType
,
LANGID
langid
,
REFCLSID
clsid
,
REFGUID
catid
,
REFGUID
guidProfile
,
HKL
hkl
,
DWORD
dwFlags
);
// ITfCompartmentEventSink
STDMETHODIMP
OnChange
(
REFGUID
rguid
);
private
:
LONG
my_Reference_Count
;
};
private
:
};
#endif
EXCLUDE/GLTSF/src/TSF.cpp
0 → 100644
View file @
301e0597
#include "TSF.hpp"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment