ekg2  GIT master
Struktury danych | Definicje | Funkcje | Zmienne
Dokumentacja pliku statusbar.c
#include "ekg2.h"
#include "ecurses.h"
#include <arpa/inet.h>
#include <string.h>
#include "input.h"
#include "nc-stuff.h"
Wykres zależności załączania dla statusbar.c:

Struktury danych

struct  format_data
 

Definicje

#define __fgcolor(x, y, z)
 
#define __bgcolor(x, y)   case x: bgcolor = y; break;
 
#define __add_format_(x, z, p)
 
#define __add_format(x, y, z)
 
#define __add_format_emp(x, y)   __add_format_(x, y ? (char*) empty_format : NULL, 0)
 
#define __add_format_dup(x, y, z)   __add_format_(x, y ? ekg_recode_to_locale(z) : NULL, 0)
 
#define __add_format_emp_st(x, y)   case y: __add_format_(x, (char *) empty_format, 0) break
 
#define __add_format_emp_st(x, y)   case y: __add_format_("query_" x, (char *) empty_format, 0); break
 

Funkcje

static int color_pair_bold (int fg, int bold, int bg)
 
static void window_printat (WINDOW *w, const char *format, struct format_data *data, int fgcolor, int bold, int bgcolor)
 
static char * ncurses_window_activity (void)
 
static void reprint_statusbar (WINDOW *w, int y, const gchar *format, struct format_data *data)
 
void update_statusbar (int commit)
 
void header_statusbar_resize (const char *dummy)
 

Zmienne

int config_header_size
 
int config_statusbar_size
 
WINDOW * ncurses_status = NULL
 
WINDOW * ncurses_header = NULL
 

Dokumentacja definicji

◆ __add_format

#define __add_format (   x,
  y,
 
)
Wartość:
{ \
char *tmp = y; \
__add_format_(x, ekg_recode_to_locale(tmp), z); \
g_free(tmp); \
}
char * ekg_recode_to_locale(const gchar *str)
Definition: recode.c:291

◆ __add_format_

#define __add_format_ (   x,
  z,
  p 
)
Wartość:
{ \
formats[formats_count].name = x; \
formats[formats_count].text = z; \
formats[formats_count].percent_ok = p; \
formats_count++; \
}
static plugin_t p
Definition: static-aborts.c:4

◆ __add_format_dup

#define __add_format_dup (   x,
  y,
 
)    __add_format_(x, y ? ekg_recode_to_locale(z) : NULL, 0)

◆ __add_format_emp

#define __add_format_emp (   x,
 
)    __add_format_(x, y ? (char*) empty_format : NULL, 0)

◆ __add_format_emp_st [1/2]

#define __add_format_emp_st (   x,
 
)    case y: __add_format_(x, (char *) empty_format, 0) break

◆ __add_format_emp_st [2/2]

#define __add_format_emp_st (   x,
 
)    case y: __add_format_("query_" x, (char *) empty_format, 0); break

◆ __bgcolor

#define __bgcolor (   x,
 
)    case x: bgcolor = y; break;

◆ __fgcolor

#define __fgcolor (   x,
  y,
 
)
Wartość:
case x: fgcolor = z; bold = 0; break; \
case y: fgcolor = z; bold = 1; break;

Dokumentacja funkcji

◆ color_pair_bold()

static int color_pair_bold ( int  fg,
int  bold,
int  bg 
)
inlinestatic

◆ header_statusbar_resize()

void header_statusbar_resize ( const char *  dummy)

◆ ncurses_window_activity()

static char* ncurses_window_activity ( void  )
static

◆ reprint_statusbar()

static void reprint_statusbar ( WINDOW *  w,
int  y,
const gchar *  format,
struct format_data data 
)
static

◆ update_statusbar()

void update_statusbar ( int  commit)

◆ window_printat()

static void window_printat ( WINDOW *  w,
const char *  format,
struct format_data data,
int  fgcolor,
int  bold,
int  bgcolor 
)
static

Dokumentacja zmiennych

◆ config_header_size

int config_header_size

◆ config_statusbar_size

int config_statusbar_size

◆ ncurses_header

WINDOW* ncurses_header = NULL

◆ ncurses_status

WINDOW* ncurses_status = NULL