Commit 16dea47a authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipGetStringFormatAlign/GdipSetStringFormatAlign.

parent 059a2d8c
......@@ -386,7 +386,7 @@
@ stub GdipGetRenderingOrigin
@ stdcall GdipGetSmoothingMode(ptr ptr)
@ stdcall GdipGetSolidFillColor(ptr ptr)
@ stub GdipGetStringFormatAlign
@ stdcall GdipGetStringFormatAlign(ptr ptr)
@ stub GdipGetStringFormatDigitSubstitution
@ stub GdipGetStringFormatFlags
@ stub GdipGetStringFormatHotkeyPrefix
......@@ -585,7 +585,7 @@
@ stub GdipSetRenderingOrigin
@ stdcall GdipSetSmoothingMode(ptr long)
@ stdcall GdipSetSolidFillColor(ptr ptr)
@ stub GdipSetStringFormatAlign
@ stdcall GdipSetStringFormatAlign(ptr long)
@ stub GdipSetStringFormatDigitSubstitution
@ stub GdipSetStringFormatFlags
@ stub GdipSetStringFormatHotkeyPrefix
......
......@@ -178,6 +178,7 @@ struct GpFont{
struct GpStringFormat{
INT attr;
LANGID lang;
StringAlignment align;
};
#endif
......@@ -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;
}
......@@ -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 */
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment