Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
browser.h File Reference
#include <stdbool.h>
#include <sys/types.h>
#include "../types.h"

Go to the source code of this file.

Data Structures

struct  ui_browser
 

Macros

#define HE_COLORSET_TOP   50
 
#define HE_COLORSET_MEDIUM   51
 
#define HE_COLORSET_NORMAL   52
 
#define HE_COLORSET_SELECTED   53
 
#define HE_COLORSET_CODE   54
 
#define HE_COLORSET_ADDR   55
 

Functions

int ui_browser__set_color (struct ui_browser *browser, int color)
 
void ui_browser__set_percent_color (struct ui_browser *self, double percent, bool current)
 
bool ui_browser__is_current_entry (struct ui_browser *self, unsigned row)
 
void ui_browser__refresh_dimensions (struct ui_browser *self)
 
void ui_browser__reset_index (struct ui_browser *self)
 
void ui_browser__gotorc (struct ui_browser *self, int y, int x)
 
void ui_browser__write_graph (struct ui_browser *browser, int graph)
 
void __ui_browser__line_arrow (struct ui_browser *browser, unsigned int column, u64 start, u64 end)
 
void __ui_browser__show_title (struct ui_browser *browser, const char *title)
 
void ui_browser__show_title (struct ui_browser *browser, const char *title)
 
int ui_browser__show (struct ui_browser *self, const char *title, const char *helpline,...)
 
void ui_browser__hide (struct ui_browser *self)
 
int ui_browser__refresh (struct ui_browser *self)
 
int ui_browser__run (struct ui_browser *browser, int delay_secs)
 
void ui_browser__update_nr_entries (struct ui_browser *browser, u32 nr_entries)
 
void ui_browser__handle_resize (struct ui_browser *browser)
 
void __ui_browser__vline (struct ui_browser *browser, unsigned int column, u16 start, u16 end)
 
int ui_browser__warning (struct ui_browser *browser, int timeout, const char *format,...)
 
int ui_browser__help_window (struct ui_browser *browser, const char *text)
 
bool ui_browser__dialog_yesno (struct ui_browser *browser, const char *text)
 
int ui_browser__input_window (const char *title, const char *text, char *input, const char *exit_msg, int delay_sec)
 
void ui_browser__argv_seek (struct ui_browser *browser, off_t offset, int whence)
 
unsigned int ui_browser__argv_refresh (struct ui_browser *browser)
 
void ui_browser__rb_tree_seek (struct ui_browser *self, off_t offset, int whence)
 
unsigned int ui_browser__rb_tree_refresh (struct ui_browser *self)
 
void ui_browser__list_head_seek (struct ui_browser *self, off_t offset, int whence)
 
unsigned int ui_browser__list_head_refresh (struct ui_browser *self)
 
void ui_browser__init (void)
 
void annotate_browser__init (void)
 

Macro Definition Documentation

#define HE_COLORSET_ADDR   55

Definition at line 13 of file browser.h.

#define HE_COLORSET_CODE   54

Definition at line 12 of file browser.h.

#define HE_COLORSET_MEDIUM   51

Definition at line 9 of file browser.h.

#define HE_COLORSET_NORMAL   52

Definition at line 10 of file browser.h.

#define HE_COLORSET_SELECTED   53

Definition at line 11 of file browser.h.

#define HE_COLORSET_TOP   50

Definition at line 8 of file browser.h.

Function Documentation

void __ui_browser__line_arrow ( struct ui_browser browser,
unsigned int  column,
u64  start,
u64  end 
)

Definition at line 693 of file browser.c.

void __ui_browser__show_title ( struct ui_browser browser,
const char title 
)

Definition at line 234 of file browser.c.

void __ui_browser__vline ( struct ui_browser browser,
unsigned int  column,
u16  start,
u16  end 
)

Definition at line 596 of file browser.c.

void annotate_browser__init ( void  )

Definition at line 952 of file annotate.c.

unsigned int ui_browser__argv_refresh ( struct ui_browser browser)

Definition at line 572 of file browser.c.

void ui_browser__argv_seek ( struct ui_browser browser,
off_t  offset,
int  whence 
)

Definition at line 555 of file browser.c.

bool ui_browser__dialog_yesno ( struct ui_browser browser,
const char text 
)

Definition at line 218 of file browser.c.

void ui_browser__gotorc ( struct ui_browser self,
int  y,
int  x 
)

Definition at line 45 of file browser.c.

void ui_browser__handle_resize ( struct ui_browser browser)

Definition at line 175 of file browser.c.

int ui_browser__help_window ( struct ui_browser browser,
const char text 
)

Definition at line 208 of file browser.c.

void ui_browser__hide ( struct ui_browser self)
void ui_browser__init ( void  )

Definition at line 702 of file browser.c.

int ui_browser__input_window ( const char title,
const char text,
char input,
const char exit_msg,
int  delay_sec 
)

Definition at line 72 of file util.c.

bool ui_browser__is_current_entry ( struct ui_browser self,
unsigned  row 
)

Definition at line 162 of file browser.c.

unsigned int ui_browser__list_head_refresh ( struct ui_browser self)

Definition at line 451 of file browser.c.

void ui_browser__list_head_seek ( struct ui_browser self,
off_t  offset,
int  whence 
)

Definition at line 76 of file browser.c.

unsigned int ui_browser__rb_tree_refresh ( struct ui_browser self)

Definition at line 141 of file browser.c.

void ui_browser__rb_tree_seek ( struct ui_browser self,
off_t  offset,
int  whence 
)

Definition at line 111 of file browser.c.

int ui_browser__refresh ( struct ui_browser self)

Definition at line 320 of file browser.c.

void ui_browser__refresh_dimensions ( struct ui_browser self)

Definition at line 167 of file browser.c.

void ui_browser__reset_index ( struct ui_browser self)

Definition at line 228 of file browser.c.

int ui_browser__run ( struct ui_browser browser,
int  delay_secs 
)

Definition at line 353 of file browser.c.

int ui_browser__set_color ( struct ui_browser browser,
int  color 
)

Definition at line 30 of file browser.c.

void ui_browser__set_percent_color ( struct ui_browser self,
double  percent,
bool  current 
)

Definition at line 38 of file browser.c.

int ui_browser__show ( struct ui_browser self,
const char title,
const char helpline,
  ... 
)

Definition at line 248 of file browser.c.

void ui_browser__show_title ( struct ui_browser browser,
const char title 
)

Definition at line 241 of file browser.c.

void ui_browser__update_nr_entries ( struct ui_browser browser,
u32  nr_entries 
)

Definition at line 335 of file browser.c.

int ui_browser__warning ( struct ui_browser browser,
int  timeout,
const char format,
  ... 
)

Definition at line 182 of file browser.c.

void ui_browser__write_graph ( struct ui_browser browser,
int  graph 
)