summary refs log tree commit diff stats
path: root/doc
Commit message (Expand)AuthorAgeFilesLines
* Incremented version number to 1.3 (testing)hut2010-09-131-1/+1
* Beware of low-flying butterflies v1.2.0hut2010-09-131-1/+1
* chmodhut2010-09-111-0/+0
* Tuned versioning scheme to be more intuitive, back to 1.1.2hut2010-08-281-1/+1
* Changed version number to 1.2 (testing) to adhere with versioning schemehut2010-08-281-1/+1
* Changed default config dir to $XDG_CONFIG_HOME/rangerhut2010-08-282-6/+7
* Why did the astrophysicist order three hamburgers? v1.1.2hut2010-07-121-1/+1
* removed pydoc since it can be generated with "make doc" easilyhut2010-06-2146-6669/+0
* version = version + 1 v1.1.1hut2010-06-184-6/+7
* new stable version v1.1.0hut2010-06-092-3/+3
* updated manpagehut2010-06-091-5/+4
* renamed "--fail-if-run" to the more accurate "--fail-unless-cd"hut2010-06-091-3/+3
* updated pydochut2010-06-0918-57/+113
* Changed hashbang line to "#!/usr/bin/env python"hut2010-06-092-2/+2
* updated pydochut2010-05-1647-666/+349
* Fixed bug #65 by adding flag "--fail-if-run"hut2010-04-261-1/+5
* updated pydochut2010-04-205-248/+10
* updated pydochut2010-04-1941-2286/+247
* ranger.1: added S key to man pagehut2010-04-161-0/+3
* Fixed suggested cd-after-exit-script for zshhut2010-04-131-1/+1
* added doc/print_keys.pyhut2010-04-081-0/+14
* corrected documentationhut2010-04-061-1/+1
* Improved tabshut2010-04-061-0/+3
* updated keybindings and documentationhut2010-04-061-1/+21
* ranger.1: updatehut2010-04-011-4/+7
* ranger.1: updatedhut2010-04-011-1/+1
* added a man pagehut2010-04-011-0/+187
* rebuilt pydochut2010-03-3118-65/+188
* removed doc/pick.sh, pointless to have it therehut2010-03-311-25/+0
* removed UML stuff, it's uselesshut2010-03-3115-2337/+0
* removed the cd-after-exit hackhut2010-03-291-161/+0
* updated TODO and pydochut2010-03-2120-52/+85
* doc/colorschemes: ugh, its no logical but bitwise OR!hut2010-03-171-1/+1
* incremented verison number v1.0.4hut2010-03-121-2/+2
* standardized formatting of headings in doc/hut2010-03-122-13/+31
* added doc/uml.txthut2010-03-121-0/+5
* updated pydochut2010-03-1217-161/+33
* updated pydochut2010-03-1270-3946/+816
* added two new colorschemes using 88 colorshut2010-03-121-0/+23
* added documentation on how colorschemes workhut2010-03-121-0/+91
* added symlink: doc/help => ranger/helphut2010-02-281-0/+1
* incremented version number and updated pydoc html files v1.0.3hut2010-02-1675-1972/+1415
* doc/cd-after-exit: updatedhut2010-02-141-21/+15
* doc/pick.sh: corrected commit orderhut2010-02-091-1/+1
* doc: what breaks cd-after-exit support in zshhut2010-02-091-0/+2
* pick.sh: added -m to checkout commadshut2010-02-051-3/+3
* pick.sh: added variables for easier customizationhut2010-02-041-7/+8
* added doc/pick.shhut2010-02-041-0/+24
* updated dochut2010-01-211-4/+20
* 1.0.2! v1.0.2hut2010-01-1430-84/+116
;nincsnevem662@gmail.com> 2022-01-18 19:45:14 +0100 Implement basics of new layout engine' href='/ahoang/chawan/commit/src/layout/box.nim?id=b4798a6bf5ea4916fa9ccb582f067d5dab5f2fc2'>b4798a6b ^
bf3b8804 ^
270628aa ^


270628aa ^
cac5382d ^

71f08f38 ^

71087546 ^


5ed6ccd8 ^
cd28af13 ^
60b58351 ^
86f8e3f4 ^
71f08f38 ^
270628aa ^
0c0aa01a ^
b4798a6b ^

270628aa ^
b4798a6b ^
bcaaf4e6 ^

352c2819 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

              
                 
               
              

    
                                 
                  

           
               
                          

                                  
               



                                  
 


                                     
                
 
                                        
                




                                      
 


                           

               
                
 
                             




                         
 
                     
                  
 
                                          

                     
                          

                                  
                       
              
 


                            
                  

           

                


                            
                                      
                
                     
                
 
                                   
                      

                        
                                  
                       

                                          
                                       
import options

import css/values
import html/dom
import io/term

type
  CSSBox* = ref object of RootObj
    t*: CSSDisplay
    x*: int
    y*: int
    width*: int
    children*: seq[CSSBox]
    inlinelayout*: bool
    specified*: CSSSpecifiedValues
    node*: Node

  Viewport* = ref object of CSSBox
    term*: TermAttributes
    nodes*: seq[Node]

  InlineAtom* = ref object of RootObj
    relx*: int
    width*: int
    height*: int

  InlineWord* = ref object of InlineAtom
    str*: string
    fontstyle*: CSSFontStyle
    fontweight*: int
    textdecoration*: CSSTextDecoration
    color*: CSSColor
    nodes*: seq[Node]

  InlineRow* = ref object
    atoms*: seq[InlineAtom]
    relx*: int
    rely*: int
    width*: int
    height*: int

  InlineContext* = ref object
    relx*: int
    width*: int
    height*: int
    rows*: seq[InlineRow]
    thisrow*: InlineRow

    whitespace*: bool
    maxwidth*: int

  BlockContext* = ref object of InlineAtom
    margin_done*: int
    margin_todo*: int
    inline*: InlineContext
    nested*: seq[BlockContext]
    specified*: CSSSpecifiedValues
    viewport*: Viewport
    rely*: int

    compwidth*: int
    compheight*: Option[int]

  RowBox* = object
    x*: int
    y*: int
    width*: int
    height*: int
    color*: CSSColor
    fontstyle*: CSSFontStyle
    fontweight*: int
    textdecoration*: CSSTextDecoration
    str*: string
    nodes*: seq[Node]
    bottom*: int

  InlineBox* = ref object of CSSBox
    text*: seq[string]
    ictx*: InlineContext
    newline*: bool
  BlockBox* = ref object of CSSBox
    bctx*: BlockContext
  InlineBlockBox* = ref object of BlockBox
    ictx*: InlineContext
  ListItemBox* = ref object of BlockBox