Blender V2.61 - r43446
Defines | Functions

info_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 "info_intern.h"
#include "../space_info/textview.h"

Go to the source code of this file.

Defines

#define USE_INFO_NEWLINE

Functions

static void info_report_color (unsigned char *fg, unsigned char *bg, Report *report, int bool)
static void report_textview_init__internal (TextViewContext *tvc)
static int report_textview_skip__internal (TextViewContext *tvc)
static int report_textview_begin (TextViewContext *tvc)
static void report_textview_end (TextViewContext *UNUSED(tvc))
static int report_textview_step (TextViewContext *tvc)
static int report_textview_line_get (struct TextViewContext *tvc, const char **line, int *len)
static int report_textview_line_color (struct TextViewContext *tvc, unsigned char fg[3], unsigned char bg[3])
static int info_textview_main__internal (struct SpaceInfo *sinfo, struct ARegion *ar, ReportList *reports, int draw, int mval[2], void **mouse_pick, int *pos_pick)
void * info_text_pick (struct SpaceInfo *sinfo, struct ARegion *ar, ReportList *reports, int mouse_y)
int info_textview_height (struct SpaceInfo *sinfo, struct ARegion *ar, ReportList *reports)
void info_textview_main (struct SpaceInfo *sinfo, struct ARegion *ar, ReportList *reports)

Detailed Description

Definition in file info_draw.c.


Define Documentation

#define USE_INFO_NEWLINE

Definition at line 64 of file info_draw.c.


Function Documentation

static void info_report_color ( unsigned char *  fg,
unsigned char *  bg,
Report report,
int  bool 
) [static]
void* info_text_pick ( struct SpaceInfo sinfo,
struct ARegion ar,
ReportList reports,
int  mouse_y 
)

Definition at line 282 of file info_draw.c.

References info_textview_main__internal(), and NULL.

Referenced by borderselect_exec(), and select_report_pick_invoke().

int info_textview_height ( struct SpaceInfo sinfo,
struct ARegion ar,
ReportList reports 
)

Definition at line 295 of file info_draw.c.

References info_textview_main__internal(), and NULL.

Referenced by info_textview_update_rect().

void info_textview_main ( struct SpaceInfo sinfo,
struct ARegion ar,
ReportList reports 
)

Definition at line 301 of file info_draw.c.

References info_textview_main__internal(), and NULL.

Referenced by info_main_area_draw().

static int info_textview_main__internal ( struct SpaceInfo sinfo,
struct ARegion ar,
ReportList reports,
int  draw,
int  mval[2],
void **  mouse_pick,
int *  pos_pick 
) [static]
static int report_textview_begin ( TextViewContext tvc) [static]
static void report_textview_end ( TextViewContext UNUSEDtvc) [static]

Definition at line 169 of file info_draw.c.

Referenced by info_textview_main__internal().

static void report_textview_init__internal ( TextViewContext tvc) [static]
static int report_textview_line_color ( struct TextViewContext tvc,
unsigned char  fg[3],
unsigned char  bg[3] 
) [static]
static int report_textview_line_get ( struct TextViewContext tvc,
const char **  line,
int *  len 
) [static]
static int report_textview_skip__internal ( TextViewContext tvc) [static]
static int report_textview_step ( TextViewContext tvc) [static]