i3
Functions
render.c File Reference
#include "all.h"
#include <math.h>
Include dependency graph for render.c:

Go to the source code of this file.

Functions

static int * precalculate_sizes (Con *con, render_params *p)
 
static void render_root (Con *con, Con *fullscreen)
 
static void render_output (Con *con)
 
static void render_con_split (Con *con, Con *child, render_params *p, int i)
 
static void render_con_stacked (Con *con, Con *child, render_params *p, int i)
 
static void render_con_tabbed (Con *con, Con *child, render_params *p, int i)
 
static void render_con_dockarea (Con *con, Con *child, render_params *p)
 
int render_deco_height (void)
 Returns the height for the decorations. More...
 
void render_con (Con *con)
 "Renders" the given container (and its children), meaning that all rects are updated correctly. More...
 

Function Documentation

◆ precalculate_sizes()

static int * precalculate_sizes ( Con con,
render_params p 
)
static

Definition at line 163 of file render.c.

References render_params::children, con_rect_size_in_orientation(), L_SPLITH, L_SPLITV, Con::layout, Con::percent, smalloc(), TAILQ_EMPTY, and TAILQ_FOREACH.

Referenced by render_con().

Here is the call graph for this function:

◆ render_con()

void render_con ( Con con)

◆ render_con_dockarea()

static void render_con_dockarea ( Con con,
Con child,
render_params p 
)
static

◆ render_con_split()

static void render_con_split ( Con con,
Con child,
render_params p,
int  i 
)
static

◆ render_con_stacked()

static void render_con_stacked ( Con con,
Con child,
render_params p,
int  i 
)
static

◆ render_con_tabbed()

static void render_con_tabbed ( Con con,
Con child,
render_params p,
int  i 
)
static

◆ render_deco_height()

int render_deco_height ( void  )

Returns the height for the decorations.

Definition at line 27 of file render.c.

References config, Config::font, and Font::height.

Referenced by con_set_border_style(), floating_check_size(), floating_enable(), handle_client_message(), render_con(), and window_update_icon().

◆ render_output()

static void render_output ( Con con)
static

Definition at line 272 of file render.c.

References CF_OUTPUT, con_get_fullscreen_con(), Con::deco_rect, DLOG, Con::geometry, Rect::height, Con::rect, render_con(), TAILQ_FOREACH, Con::type, Rect::width, Rect::x, x_raise_con(), Rect::y, and y.

Referenced by render_con().

Here is the call graph for this function:

◆ render_root()

static void render_root ( Con con,
Con fullscreen 
)
static