Commit c8c77f9b authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipSetStringFormatLineAlign/GdipGetStringFormatLineAlign.

parent d0cead32
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
@ stub GdipGetStringFormatDigitSubstitution @ stub GdipGetStringFormatDigitSubstitution
@ stub GdipGetStringFormatFlags @ stub GdipGetStringFormatFlags
@ stdcall GdipGetStringFormatHotkeyPrefix(ptr ptr) @ stdcall GdipGetStringFormatHotkeyPrefix(ptr ptr)
@ stub GdipGetStringFormatLineAlign @ stdcall GdipGetStringFormatLineAlign(ptr ptr)
@ stub GdipGetStringFormatMeasurableCharacterRangeCount @ stub GdipGetStringFormatMeasurableCharacterRangeCount
@ stub GdipGetStringFormatTabStopCount @ stub GdipGetStringFormatTabStopCount
@ stub GdipGetStringFormatTabStops @ stub GdipGetStringFormatTabStops
...@@ -589,7 +589,7 @@ ...@@ -589,7 +589,7 @@
@ stub GdipSetStringFormatDigitSubstitution @ stub GdipSetStringFormatDigitSubstitution
@ stub GdipSetStringFormatFlags @ stub GdipSetStringFormatFlags
@ stdcall GdipSetStringFormatHotkeyPrefix(ptr long) @ stdcall GdipSetStringFormatHotkeyPrefix(ptr long)
@ stub GdipSetStringFormatLineAlign @ stdcall GdipSetStringFormatLineAlign(ptr long)
@ stub GdipSetStringFormatMeasurableCharacterRanges @ stub GdipSetStringFormatMeasurableCharacterRanges
@ stub GdipSetStringFormatTabStops @ stub GdipSetStringFormatTabStops
@ stdcall GdipSetStringFormatTrimming(ptr long) @ stdcall GdipSetStringFormatTrimming(ptr long)
......
...@@ -181,6 +181,7 @@ struct GpStringFormat{ ...@@ -181,6 +181,7 @@ struct GpStringFormat{
StringAlignment align; StringAlignment align;
StringTrimming trimming; StringTrimming trimming;
HotkeyPrefix hkprefix; HotkeyPrefix hkprefix;
StringAlignment vertalign;
}; };
#endif #endif
...@@ -66,6 +66,17 @@ GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat ...@@ -66,6 +66,17 @@ GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipGetStringFormatLineAlign(GpStringFormat *format,
StringAlignment *align)
{
if(!format || !align)
return InvalidParameter;
*align = format->vertalign;
return Ok;
}
GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat *format, GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat *format,
StringTrimming *trimming) StringTrimming *trimming)
{ {
...@@ -99,6 +110,17 @@ GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat *format, ...@@ -99,6 +110,17 @@ GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat *format,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat *format,
StringAlignment align)
{
if(!format)
return InvalidParameter;
format->vertalign = align;
return Ok;
}
GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat *format, GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat *format,
StringTrimming trimming) StringTrimming trimming)
{ {
......
...@@ -253,9 +253,11 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*); ...@@ -253,9 +253,11 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**); GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**);
GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat*,StringAlignment*); GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat*,StringAlignment*);
GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat*,INT*); GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat*,INT*);
GpStatus WINGDIPAPI GdipGetStringFormatLineAlign(GpStringFormat*,StringAlignment*);
GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat*,StringTrimming*); GpStatus WINGDIPAPI GdipGetStringFormatTrimming(GpStringFormat*,StringTrimming*);
GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat*,StringAlignment); GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat*,StringAlignment);
GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT); GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT);
GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment);
GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming); GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming);
#ifdef __cplusplus #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