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
16dea47a
Commit
16dea47a
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 GdipGetStringFormatAlign/GdipSetStringFormatAlign.
parent
059a2d8c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
2 deletions
+35
-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
+8
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
16dea47a
...
...
@@ -386,7 +386,7 @@
@ stub GdipGetRenderingOrigin
@ stdcall GdipGetSmoothingMode(ptr ptr)
@ stdcall GdipGetSolidFillColor(ptr ptr)
@ st
ub GdipGetStringFormatAlign
@ st
dcall GdipGetStringFormatAlign(ptr ptr)
@ stub GdipGetStringFormatDigitSubstitution
@ stub GdipGetStringFormatFlags
@ stub GdipGetStringFormatHotkeyPrefix
...
...
@@ -585,7 +585,7 @@
@ stub GdipSetRenderingOrigin
@ stdcall GdipSetSmoothingMode(ptr long)
@ stdcall GdipSetSolidFillColor(ptr ptr)
@ st
ub GdipSetStringFormatAlign
@ st
dcall GdipSetStringFormatAlign(ptr long)
@ stub GdipSetStringFormatDigitSubstitution
@ stub GdipSetStringFormatFlags
@ stub GdipSetStringFormatHotkeyPrefix
...
...
dlls/gdiplus/gdiplus_private.h
View file @
16dea47a
...
...
@@ -178,6 +178,7 @@ struct GpFont{
struct
GpStringFormat
{
INT
attr
;
LANGID
lang
;
StringAlignment
align
;
};
#endif
dlls/gdiplus/stringformat.c
View file @
16dea47a
...
...
@@ -43,3 +43,25 @@ GpStatus WINGDIPAPI GdipCreateStringFormat(INT attr, LANGID lang,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
format
,
StringAlignment
*
align
)
{
if
(
!
format
||
!
align
)
return
InvalidParameter
;
*
align
=
format
->
align
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetStringFormatAlign
(
GpStringFormat
*
format
,
StringAlignment
align
)
{
if
(
!
format
)
return
InvalidParameter
;
format
->
align
=
align
;
return
Ok
;
}
include/gdiplusenums.h
View file @
16dea47a
...
...
@@ -214,6 +214,13 @@ enum TextRenderingHint
TextRenderingHintClearTypeGridFit
};
enum
StringAlignment
{
StringAlignmentNear
=
0
,
StringAlignmentCenter
=
1
,
StringAlignmentFar
=
2
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -237,6 +244,7 @@ typedef enum LinearGradientMode LinearGradientMode;
typedef
enum
EmfType
EmfType
;
typedef
enum
CompositingMode
CompositingMode
;
typedef
enum
TextRenderingHint
TextRenderingHint
;
typedef
enum
StringAlignment
StringAlignment
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
16dea47a
...
...
@@ -249,6 +249,8 @@ GpStatus WINGDIPAPI GdipDeleteFont(GpFont*);
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
,
GpGraphics
*
,
LOGFONTW
*
);
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
*
);
GpStatus
WINGDIPAPI
GdipSetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
);
#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