Lines Matching refs:layout
74 layout_set_select(struct window *w, u_int layout) in layout_set_select() argument
76 if (layout > nitems(layout_sets) - 1) in layout_set_select()
77 layout = nitems(layout_sets) - 1; in layout_set_select()
79 if (layout_sets[layout].arrange != NULL) in layout_set_select()
80 layout_sets[layout].arrange(w); in layout_set_select()
82 w->lastlayout = layout; in layout_set_select()
83 return (layout); in layout_set_select()
89 u_int layout; in layout_set_next() local
92 layout = 0; in layout_set_next()
94 layout = w->lastlayout + 1; in layout_set_next()
95 if (layout > nitems(layout_sets) - 1) in layout_set_next()
96 layout = 0; in layout_set_next()
99 if (layout_sets[layout].arrange != NULL) in layout_set_next()
100 layout_sets[layout].arrange(w); in layout_set_next()
101 w->lastlayout = layout; in layout_set_next()
102 return (layout); in layout_set_next()
108 u_int layout; in layout_set_previous() local
111 layout = nitems(layout_sets) - 1; in layout_set_previous()
113 layout = w->lastlayout; in layout_set_previous()
114 if (layout == 0) in layout_set_previous()
115 layout = nitems(layout_sets) - 1; in layout_set_previous()
117 layout--; in layout_set_previous()
120 if (layout_sets[layout].arrange != NULL) in layout_set_previous()
121 layout_sets[layout].arrange(w); in layout_set_previous()
122 w->lastlayout = layout; in layout_set_previous()
123 return (layout); in layout_set_previous()