this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

view: added 'child()' to View and improved example comments

authored by

00JCIV00 and committed by
Tim Culverhouse
28f57348 d2c9f633

+6 -2
+1 -2
examples/view.zig
··· 125 125 map_view = sm_map_view; 126 126 } 127 127 use_sm_map = !use_sm_map; 128 - x = 0; 129 - y = 0; 130 128 w = map_width; 131 129 h = map_height; 132 130 } ··· 170 168 // 2. A RenderConfig consisting of: 171 169 // a. An x/y (col, row) position within the View as the start point of the render. 172 170 // b. A Width and Height extending Right and Down from the start point that will represent the square being rendered. 171 + // It also returns the calculated x/y position to help maintain scrolloing boundaries. 173 172 x, y = try map_view.toWin( 174 173 &map_win, 175 174 if (!use_mini_view).{
+5
src/View.zig
··· 154 154 pub fn printSegment(self: View, segment: Cell.Segment, opts: Window.PrintOptions) !Window.PrintResult { 155 155 return self.print(&.{segment}, opts); 156 156 } 157 + 158 + /// Create a child window 159 + pub fn child(self: View, opts: Window.ChildOptions) Window { 160 + return self.win.child(opts); 161 + }