gdiplus: Added GdipSetStringFormatLineAlign/GdipGetStringFormatLineAlign.

This commit is contained in:
Evan Stade 2007-08-14 19:01:15 -07:00 committed by Alexandre Julliard
parent d0cead32a6
commit c8c77f9b48
4 changed files with 27 additions and 2 deletions

View File

@ -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 @@
@ 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)

View File

@ -181,6 +181,7 @@ struct GpStringFormat{
StringAlignment align; StringAlignment align;
StringTrimming trimming; StringTrimming trimming;
HotkeyPrefix hkprefix; HotkeyPrefix hkprefix;
StringAlignment vertalign;
}; };
#endif #endif

View File

@ -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,
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)
{ {

View File

@ -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