Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

console_draw.c File Reference

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <limits.h>
#include "BLF_api.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_space_types.h"
#include "DNA_screen_types.h"
#include "BKE_report.h"
#include "MEM_guardedalloc.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "ED_datafiles.h"
#include "ED_types.h"
#include "UI_resources.h"
#include "console_intern.h"
#include "../space_info/textview.h"

Go to the source code of this file.

Classes

struct  ConsoleDrawContext

Defines

#define CONSOLE_DRAW_MARGIN   4
#define CONSOLE_DRAW_SCROLL   16

Typedefs

typedef struct ConsoleDrawContext ConsoleDrawContext

Functions

static void console_line_color (unsigned char fg[3], int type)
void console_scrollback_prompt_begin (struct SpaceConsole *sc, ConsoleLine *cl_dummy)
void console_scrollback_prompt_end (struct SpaceConsole *sc, ConsoleLine *cl_dummy)
static int console_textview_begin (TextViewContext *tvc)
static void console_textview_end (TextViewContext *tvc)
static int console_textview_step (TextViewContext *tvc)
static int console_textview_line_get (struct TextViewContext *tvc, const char **line, int *len)
static int console_textview_line_color (struct TextViewContext *tvc, unsigned char fg[3], unsigned char UNUSED(bg[3]))
static int console_textview_main__internal (struct SpaceConsole *sc, struct ARegion *ar, int draw, int mval[2], void **mouse_pick, int *pos_pick)
void console_textview_main (struct SpaceConsole *sc, struct ARegion *ar)
int console_textview_height (struct SpaceConsole *sc, struct ARegion *ar)
int console_char_pick (struct SpaceConsole *sc, struct ARegion *ar, int mval[2])

Detailed Description

Definition in file console_draw.c.


Define Documentation

#define CONSOLE_DRAW_MARGIN   4

Definition at line 111 of file console_draw.c.

Referenced by console_char_pick(), and console_textview_line_color().

#define CONSOLE_DRAW_SCROLL   16

Definition at line 112 of file console_draw.c.

Referenced by console_char_pick().


Typedef Documentation


Function Documentation

int console_char_pick ( struct SpaceConsole sc,
struct ARegion ar,
int  mval[2] 
)
static void console_line_color ( unsigned char  fg[3],
int  type 
) [static]
void console_scrollback_prompt_begin ( struct SpaceConsole sc,
ConsoleLine cl_dummy 
)
void console_scrollback_prompt_end ( struct SpaceConsole sc,
ConsoleLine cl_dummy 
)
static int console_textview_begin ( TextViewContext tvc) [static]
static void console_textview_end ( TextViewContext tvc) [static]

Definition at line 130 of file console_draw.c.

References TextViewContext::arg1.

Referenced by console_textview_main__internal().

int console_textview_height ( struct SpaceConsole sc,
struct ARegion ar 
)

Definition at line 235 of file console_draw.c.

References console_textview_main__internal(), and NULL.

Referenced by console_textview_update_rect().

static int console_textview_line_color ( struct TextViewContext tvc,
unsigned char  fg[3],
unsigned char   UNUSEDbg[3] 
) [static]
static int console_textview_line_get ( struct TextViewContext tvc,
const char **  line,
int *  len 
) [static]
void console_textview_main ( struct SpaceConsole sc,
struct ARegion ar 
)

Definition at line 229 of file console_draw.c.

References console_textview_main__internal(), and NULL.

Referenced by console_main_area_draw().

static int console_textview_main__internal ( struct SpaceConsole sc,
struct ARegion ar,
int  draw,
int  mval[2],
void **  mouse_pick,
int *  pos_pick 
) [static]
static int console_textview_step ( TextViewContext tvc) [static]

Definition at line 137 of file console_draw.c.

References TextViewContext::iter, and NULL.

Referenced by console_textview_main__internal().