Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
936f3101
Commit
936f3101
authored
Aug 14, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetStringFormatHotkeyPrefix/GdipGetStringFormatHotkeyPrefix.
parent
551a606a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
2 deletions
+36
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
stringformat.c
dlls/gdiplus/stringformat.c
+22
-0
gdiplusenums.h
include/gdiplusenums.h
+9
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
936f3101
...
...
@@ -389,7 +389,7 @@
@ stdcall GdipGetStringFormatAlign(ptr ptr)
@ stub GdipGetStringFormatDigitSubstitution
@ stub GdipGetStringFormatFlags
@ st
ub GdipGetStringFormatHotkeyPrefix
@ st
dcall GdipGetStringFormatHotkeyPrefix(ptr ptr)
@ stub GdipGetStringFormatLineAlign
@ stub GdipGetStringFormatMeasurableCharacterRangeCount
@ stub GdipGetStringFormatTabStopCount
...
...
@@ -588,7 +588,7 @@
@ stdcall GdipSetStringFormatAlign(ptr long)
@ stub GdipSetStringFormatDigitSubstitution
@ stub GdipSetStringFormatFlags
@ st
ub GdipSetStringFormatHotkeyPrefix
@ st
dcall GdipSetStringFormatHotkeyPrefix(ptr long)
@ stub GdipSetStringFormatLineAlign
@ stub GdipSetStringFormatMeasurableCharacterRanges
@ stub GdipSetStringFormatTabStops
...
...
dlls/gdiplus/gdiplus_private.h
View file @
936f3101
...
...
@@ -180,6 +180,7 @@ struct GpStringFormat{
LANGID
lang
;
StringAlignment
align
;
StringTrimming
trimming
;
HotkeyPrefix
hkprefix
;
};
#endif
dlls/gdiplus/stringformat.c
View file @
936f3101
...
...
@@ -55,6 +55,17 @@ GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat *format,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetStringFormatHotkeyPrefix
(
GDIPCONST
GpStringFormat
*
format
,
INT
*
hkpx
)
{
if
(
!
format
||
!
hkpx
)
return
InvalidParameter
;
*
hkpx
=
(
INT
)
format
->
hkprefix
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetStringFormatTrimming
(
GpStringFormat
*
format
,
StringTrimming
*
trimming
)
{
...
...
@@ -77,6 +88,17 @@ GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat *format,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetStringFormatHotkeyPrefix
(
GpStringFormat
*
format
,
INT
hkpx
)
{
if
(
!
format
||
hkpx
<
0
||
hkpx
>
2
)
return
InvalidParameter
;
format
->
hkprefix
=
(
HotkeyPrefix
)
hkpx
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetStringFormatTrimming
(
GpStringFormat
*
format
,
StringTrimming
trimming
)
{
...
...
include/gdiplusenums.h
View file @
936f3101
...
...
@@ -244,6 +244,14 @@ enum StringTrimming
StringTrimmingEllipsisPath
=
5
};
enum
HotkeyPrefix
{
HotkeyPrefixNone
=
0
,
HotkeyPrefixShow
=
1
,
HotkeyPrefixHide
=
2
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -270,6 +278,7 @@ typedef enum TextRenderingHint TextRenderingHint;
typedef
enum
StringAlignment
StringAlignment
;
typedef
enum
StringTrimming
StringTrimming
;
typedef
enum
StringFormatFlags
StringFormatFlags
;
typedef
enum
HotkeyPrefix
HotkeyPrefix
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
936f3101
...
...
@@ -250,8 +250,10 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
*
);
GpStatus
WINGDIPAPI
GdipGetStringFormatHotkeyPrefix
(
GDIPCONST
GpStringFormat
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipGetStringFormatTrimming
(
GpStringFormat
*
,
StringTrimming
*
);
GpStatus
WINGDIPAPI
GdipSetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
);
GpStatus
WINGDIPAPI
GdipSetStringFormatHotkeyPrefix
(
GpStringFormat
*
,
INT
);
GpStatus
WINGDIPAPI
GdipSetStringFormatTrimming
(
GpStringFormat
*
,
StringTrimming
);
#ifdef __cplusplus
...
...
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