예제 #1
0
 public aLine(SpaceAllocator aSpaceAlloc, float aLineWidthLimit, float aLineTop, float aLineHeight, Int32 aLineNumber)
 {
     spaceAlloc     = aSpaceAlloc;
     lineWidthLimit = aLineWidthLimit;
     lineTop        = aLineTop;
     lineHeight     = aLineHeight;
     lineNumber     = aLineNumber;
 }
예제 #2
0
        public static void DebugUnit()
        {
            RegionTag        rTag   = new RegionTag(null, "Debug", null, 0, 0);
            CurrentStateType cState = new CurrentStateType(new MiniHtml(), 100);

            rTag.Update(ref cState);
            SpaceAllocator spaceAlloc = new SpaceAllocator(rTag);
            HtmlTag        aTag       = new HtmlTag(); aTag.name = "abc";

            spaceAlloc.AllocateSpace(aTag, 20, 15, -1);
            aTag = new HtmlTag(); aTag.name = "cde";
            spaceAlloc.AllocateSpace(aTag, 70, 15, -1);
            aTag = new HtmlTag(); aTag.name = "xyz";
            spaceAlloc.AllocateSpace(aTag, 50, 15, -1);
            spaceAlloc.allocList.PrintItems();
            spaceAlloc.floatList.PrintItems();
        }