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

MultiTest.c File Reference

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "GL.h"
#include "MEM_guardedalloc.h"
#include "GHOST_C-api.h"
#include "BLF_api.h"
#include "Util.h"
#include "Basic.h"
#include "ScrollBar.h"
#include "EventToBuf.h"
#include "WindowData.h"

Go to the source code of this file.

Classes

struct  MainWindow
struct  _LoggerWindow
struct  ExtraWindow
struct  _MultiTestApp

Defines

#define FALSE   0
#define SCROLLBAR_PAD   2
#define SCROLLBAR_WIDTH   14
#define TEXTAREA_PAD   2

Typedefs

typedef struct _MultiTestApp MultiTestApp
typedef struct _LoggerWindow LoggerWindow

Functions

void loggerwindow_log (LoggerWindow *lw, char *line)
void multitestapp_toggle_extra_window (MultiTestApp *app)
void multitestapp_free_extrawindow (MultiTestApp *app)
LoggerWindowmultitestapp_get_logger (MultiTestApp *app)
GHOST_SystemHandle multitestapp_get_system (MultiTestApp *app)
void multitestapp_exit (MultiTestApp *app)
void rect_bevel_side (int rect[2][2], int side, float *lt, float *dk, float *col, int width)
void rect_bevel_smooth (int rect[2][2], int width)
static void mainwindow_log (MainWindow *mw, char *str)
static void mainwindow_do_draw (MainWindow *mw)
static void mainwindow_do_reshape (MainWindow *mw)
static void mainwindow_do_key (MainWindow *mw, GHOST_TKey key, int press)
static void mainwindow_do_move (MainWindow *mw, int x, int y)
static void mainwindow_do_button (MainWindow *mw, int which, int press)
static void mainwindow_handle (void *priv, GHOST_EventHandle evt)
static void mainwindow_timer_proc (GHOST_TimerTaskHandle task, GHOST_TUns64 time)
MainWindowmainwindow_new (MultiTestApp *app)
void mainwindow_free (MainWindow *mw)
static void loggerwindow_recalc_regions (LoggerWindow *lw)
static void loggerwindow_setup_window_gl (LoggerWindow *lw)
static void loggerwindow_do_reshape (LoggerWindow *lw)
static void loggerwindow_do_draw (LoggerWindow *lw)
static void loggerwindow_do_move (LoggerWindow *lw, int x, int y)
static void loggerwindow_do_button (LoggerWindow *lw, int which, int press)
static void loggerwindow_do_key (LoggerWindow *lw, GHOST_TKey key, int press)
static void loggerwindow_handle (void *priv, GHOST_EventHandle evt)
LoggerWindowloggerwindow_new (MultiTestApp *app)
void loggerwindow_free (LoggerWindow *lw)
static void extrawindow_do_draw (ExtraWindow *ew)
static void extrawindow_do_reshape (ExtraWindow *ew)
static void extrawindow_do_key (ExtraWindow *ew, GHOST_TKey key, int press)
static void extrawindow_spin_cursor (ExtraWindow *ew, GHOST_TUns64 time)
static void extrawindow_handle (void *priv, GHOST_EventHandle evt)
ExtraWindowextrawindow_new (MultiTestApp *app)
void extrawindow_free (ExtraWindow *ew)
static int multitest_event_handler (GHOST_EventHandle evt, GHOST_TUserDataPtr data)
MultiTestAppmultitestapp_new (void)
void multitestapp_run (MultiTestApp *app)
void multitestapp_free (MultiTestApp *app)
int main (int argc, char **argv)

Variables

int datatoc_bfont_ttf_size
char datatoc_bfont_ttf []
char U [1024] = {0}

Define Documentation

#define FALSE   0

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Definition at line 27 of file MultiTest.c.

Referenced by extrawindow_new(), loggerwindow_new(), and mainwindow_new().

#define SCROLLBAR_PAD   2

Definition at line 358 of file MultiTest.c.

Referenced by loggerwindow_recalc_regions().

#define SCROLLBAR_WIDTH   14

Definition at line 359 of file MultiTest.c.

Referenced by loggerwindow_recalc_regions().

#define TEXTAREA_PAD   2

Definition at line 360 of file MultiTest.c.

Referenced by loggerwindow_recalc_regions().


Typedef Documentation

typedef struct _LoggerWindow LoggerWindow

Definition at line 66 of file MultiTest.c.

typedef struct _MultiTestApp MultiTestApp

Definition at line 65 of file MultiTest.c.


Function Documentation

static void extrawindow_do_draw ( ExtraWindow ew) [static]
static void extrawindow_do_key ( ExtraWindow ew,
GHOST_TKey  key,
int  press 
) [static]

Definition at line 659 of file MultiTest.c.

References ExtraWindow::app, GHOST_kKeyE, and multitestapp_toggle_extra_window().

Referenced by extrawindow_handle().

static void extrawindow_do_reshape ( ExtraWindow ew) [static]
void extrawindow_free ( ExtraWindow ew)
static void extrawindow_handle ( void *  priv,
GHOST_EventHandle  evt 
) [static]
ExtraWindow* extrawindow_new ( MultiTestApp app)
static void extrawindow_spin_cursor ( ExtraWindow ew,
GHOST_TUns64  time 
) [static]

Definition at line 668 of file MultiTest.c.

References angle(), cos(), GHOST_SetCustomCursorShape(), i, sin(), and ExtraWindow::win.

Referenced by extrawindow_handle().

static void loggerwindow_do_button ( LoggerWindow lw,
int  which,
int  press 
) [static]
static void loggerwindow_do_draw ( LoggerWindow lw) [static]
static void loggerwindow_do_key ( LoggerWindow lw,
GHOST_TKey  key,
int  press 
) [static]

Definition at line 502 of file MultiTest.c.

References _LoggerWindow::app, GHOST_kKeyQ, and multitestapp_exit().

Referenced by loggerwindow_handle().

static void loggerwindow_do_move ( LoggerWindow lw,
int  x,
int  y 
) [static]
static void loggerwindow_do_reshape ( LoggerWindow lw) [static]
void loggerwindow_free ( LoggerWindow lw)
static void loggerwindow_handle ( void *  priv,
GHOST_EventHandle  evt 
) [static]
void loggerwindow_log ( LoggerWindow lw,
char *  line 
)
LoggerWindow* loggerwindow_new ( MultiTestApp app)
static void loggerwindow_recalc_regions ( LoggerWindow lw) [static]
static void loggerwindow_setup_window_gl ( LoggerWindow lw) [static]

Definition at line 380 of file MultiTest.c.

References _LoggerWindow::size.

Referenced by loggerwindow_do_reshape().

int main ( int  argc,
char **  argv 
)
static void mainwindow_do_button ( MainWindow mw,
int  which,
int  press 
) [static]
static void mainwindow_do_draw ( MainWindow mw) [static]
static void mainwindow_do_key ( MainWindow mw,
GHOST_TKey  key,
int  press 
) [static]
static void mainwindow_do_move ( MainWindow mw,
int  x,
int  y 
) [static]
static void mainwindow_do_reshape ( MainWindow mw) [static]
void mainwindow_free ( MainWindow mw)
static void mainwindow_handle ( void *  priv,
GHOST_EventHandle  evt 
) [static]
static void mainwindow_log ( MainWindow mw,
char *  str 
) [static]
MainWindow* mainwindow_new ( MultiTestApp app)
static void mainwindow_timer_proc ( GHOST_TimerTaskHandle  task,
GHOST_TUns64  time 
) [static]

Definition at line 289 of file MultiTest.c.

References GHOST_GetTimerTaskUserData(), and mainwindow_log().

Referenced by mainwindow_new().

static int multitest_event_handler ( GHOST_EventHandle  evt,
GHOST_TUserDataPtr  data 
) [static]
void multitestapp_exit ( MultiTestApp app)

Definition at line 859 of file MultiTest.c.

References _MultiTestApp::exit.

Referenced by loggerwindow_do_key(), and mainwindow_do_key().

void multitestapp_free ( MultiTestApp app)
void multitestapp_free_extrawindow ( MultiTestApp app)

Definition at line 846 of file MultiTest.c.

References _MultiTestApp::extra, extrawindow_free(), and NULL.

Referenced by extrawindow_handle(), and multitestapp_toggle_extra_window().

LoggerWindow * multitestapp_get_logger ( MultiTestApp app)

Definition at line 838 of file MultiTest.c.

References _MultiTestApp::logger.

Referenced by extrawindow_handle(), and mainwindow_log().

GHOST_SystemHandle multitestapp_get_system ( MultiTestApp app)
MultiTestApp* multitestapp_new ( void  )
void multitestapp_run ( MultiTestApp app)

Definition at line 863 of file MultiTest.c.

References _MultiTestApp::exit, GHOST_DispatchEvents(), GHOST_ProcessEvents(), and _MultiTestApp::sys.

Referenced by main().

void multitestapp_toggle_extra_window ( MultiTestApp app)
void rect_bevel_side ( int  rect[2][2],
int  side,
float *  lt,
float *  dk,
float *  col,
int  width 
)

Definition at line 78 of file MultiTest.c.

References i, and pow().

Referenced by rect_bevel_smooth().

void rect_bevel_smooth ( int  rect[2][2],
int  width 
)

Definition at line 110 of file MultiTest.c.

References addon::engine::free(), i, and rect_bevel_side().

Referenced by loggerwindow_do_draw().


Variable Documentation

Definition at line 7 of file bfont.ttf.c.

Referenced by loggerwindow_new(), main(), and uiStyleInit().

Definition at line 6 of file bfont.ttf.c.

Referenced by loggerwindow_new(), main(), and uiStyleInit().

char U[1024] = {0}

Definition at line 53 of file MultiTest.c.