Beispiel #1
0
 public static SDKStringIM getHeaderString(
     int langIndex,
     int stringID,
     SDKStringIM _string)
 {
     return(_string == null ? new SDKStringIM(SDKTextUtils.getHeaderString(langIndex, stringID, (SDKString)null)) : SDKUtils.getHeaderString(langIndex, stringID, ref _string));
 }
Beispiel #2
0
 public static void drawSubString(
     SDKStringIM _string,
     int offset,
     int len,
     int x,
     int y,
     int anchor)
 {
     SDKTextUtils.drawSubString(_string.getEAString(), offset, len, x, y, anchor, new SDKTextUtils.DrawRegionRoutineDelegate(GlobalMembersSDKUtils.renderFunc));
 }
Beispiel #3
0
 public static void drawWrappedString(
     SDKStringIM _string,
     short[] offsets,
     int startLine,
     int lineCount,
     int x,
     int y,
     int anchor)
 {
     SDKTextUtils.drawWrappedString(_string.getEAString(), offsets, startLine, lineCount, x, y, anchor, new SDKTextUtils.DrawRegionRoutineDelegate(GlobalMembersSDKUtils.renderFunc));
 }
Beispiel #4
0
 public static short[] wrapString(
     ref SDKStringIM _string,
     ref short[] offsets,
     int wrapLimit,
     short newline)
 {
     if (offsets == null)
     {
         return(SDKUtils.convertWrapData(SDKTextUtils.wrapString(_string.getEAString(), (short[])null, wrapLimit, newline)));
     }
     SDKTextUtils.wrapString(_string.getEAString(), offsets, wrapLimit, newline);
     return(offsets);
 }
Beispiel #5
0
        public static SDKStringIM getHeaderString(
            int langIndex,
            int stringID,
            ref SDKStringIM _string)
        {
            bool      flag         = _string.getEAString() == null;
            SDKString headerString = SDKTextUtils.getHeaderString(langIndex, stringID, _string.getEAString());

            if (flag)
            {
                _string.setEAString(headerString);
            }
            return(_string);
        }
Beispiel #6
0
        public static SDKStringIM getString(int stringID, ref SDKStringIM _string)
        {
            if (_string == null)
            {
                _string = new SDKStringIM();
            }
            bool      flag     = _string.getEAString() == null;
            SDKString eaString = SDKTextUtils.getString(stringID, _string.getEAString());

            if (flag)
            {
                _string.setEAString(eaString);
            }
            return(_string);
        }
Beispiel #7
0
 public static int getSubStringSize(ref SDKStringIM _string, int offset, int len)
 {
     return(SDKTextUtils.getSubStringSize(_string.getEAString(), offset, len));
 }
Beispiel #8
0
 public static int getStringSize(ref SDKStringIM _string)
 {
     return(SDKTextUtils.getStringSize(_string.getEAString()));
 }