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
551a606a
Commit
551a606a
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 GdipGetStringFormatTrimming/GdipSetStringFormatTrimming.
parent
16dea47a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
2 deletions
+52
-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
+25
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
551a606a
...
...
@@ -394,7 +394,7 @@
@ stub GdipGetStringFormatMeasurableCharacterRangeCount
@ stub GdipGetStringFormatTabStopCount
@ stub GdipGetStringFormatTabStops
@ st
ub GdipGetStringFormatTrimming
@ st
dcall GdipGetStringFormatTrimming(ptr ptr)
@ stub GdipGetTextContrast
@ stdcall GdipGetTextRenderingHint(ptr ptr)
@ stub GdipGetTextureImage
...
...
@@ -592,7 +592,7 @@
@ stub GdipSetStringFormatLineAlign
@ stub GdipSetStringFormatMeasurableCharacterRanges
@ stub GdipSetStringFormatTabStops
@ st
ub GdipSetStringFormatTrimming
@ st
dcall GdipSetStringFormatTrimming(ptr long)
@ stub GdipSetTextContrast
@ stdcall GdipSetTextRenderingHint(ptr long)
@ stdcall GdipSetTextureTransform(ptr ptr)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
551a606a
...
...
@@ -179,6 +179,7 @@ struct GpStringFormat{
INT
attr
;
LANGID
lang
;
StringAlignment
align
;
StringTrimming
trimming
;
};
#endif
dlls/gdiplus/stringformat.c
View file @
551a606a
...
...
@@ -55,6 +55,17 @@ GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat *format,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetStringFormatTrimming
(
GpStringFormat
*
format
,
StringTrimming
*
trimming
)
{
if
(
!
format
||
!
trimming
)
return
InvalidParameter
;
*
trimming
=
format
->
trimming
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetStringFormatAlign
(
GpStringFormat
*
format
,
StringAlignment
align
)
{
...
...
@@ -65,3 +76,14 @@ GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat *format,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetStringFormatTrimming
(
GpStringFormat
*
format
,
StringTrimming
trimming
)
{
if
(
!
format
)
return
InvalidParameter
;
format
->
trimming
=
trimming
;
return
Ok
;
}
include/gdiplusenums.h
View file @
551a606a
...
...
@@ -221,6 +221,29 @@ enum StringAlignment
StringAlignmentFar
=
2
};
enum
StringFormatFlags
{
StringFormatFlagsDirectionRightToLeft
=
0x00000001
,
StringFormatFlagsDirectionVertical
=
0x00000002
,
StringFormatFlagsNoFitBlackBox
=
0x00000004
,
StringFormatFlagsDisplayFormatControl
=
0x00000020
,
StringFormatFlagsNoFontFallback
=
0x00000400
,
StringFormatFlagsMeasureTrailingSpaces
=
0x00000800
,
StringFormatFlagsNoWrap
=
0x00001000
,
StringFormatFlagsLineLimit
=
0x00002000
,
StringFormatFlagsNoClip
=
0x00004000
};
enum
StringTrimming
{
StringTrimmingNone
=
0
,
StringTrimmingCharacter
=
1
,
StringTrimmingWord
=
2
,
StringTrimmingEllipsisCharacter
=
3
,
StringTrimmingEllipsisWord
=
4
,
StringTrimmingEllipsisPath
=
5
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -245,6 +268,8 @@ typedef enum EmfType EmfType;
typedef
enum
CompositingMode
CompositingMode
;
typedef
enum
TextRenderingHint
TextRenderingHint
;
typedef
enum
StringAlignment
StringAlignment
;
typedef
enum
StringTrimming
StringTrimming
;
typedef
enum
StringFormatFlags
StringFormatFlags
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
551a606a
...
...
@@ -250,7 +250,9 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
*
);
GpStatus
WINGDIPAPI
GdipGetStringFormatTrimming
(
GpStringFormat
*
,
StringTrimming
*
);
GpStatus
WINGDIPAPI
GdipSetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
);
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