Logo ROOT  
Reference Guide
TGWin32.cxx File Reference
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_GLYPH_H>
#include "TGWin32.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <process.h>
#include <wchar.h>
#include "gdk/gdkkeysyms.h"
#include "xatom.h"
#include <winuser.h>
#include "TROOT.h"
#include "TApplication.h"
#include "TColor.h"
#include "TPoint.h"
#include "TMath.h"
#include "TStorage.h"
#include "TStyle.h"
#include "TSystem.h"
#include "TGFrame.h"
#include "TError.h"
#include "TException.h"
#include "TClassTable.h"
#include "KeySymbols.h"
#include "TWinNTSystem.h"
#include "TGWin32VirtualXProxy.h"
#include "TWin32SplashThread.h"
#include "TString.h"
#include "TObjString.h"
#include "TObjArray.h"
#include "TExMap.h"
#include "TEnv.h"
#include "RStipples.h"
Include dependency graph for TGWin32.cxx:

Macros

#define BITmask(x)
 
#define IDC_HAND   MAKEINTRESOURCE(32649)
 
#define safestrlen(s)   ((s) ? strlen(s) : 0)
 
#define XDND_PROTOCOL_VERSION   5
 

Functions

static void _set_event_time (GdkEvent &event, UInt_t time)
 
void gdk_win32_draw_arc (GdkDrawable *drawable, GdkGC *gc, gint filled, gint x, gint y, gint width, gint height, gint angle1, gint angle2)
 
void gdk_win32_draw_lines (GdkDrawable *drawable, GdkGC *gc, GdkPoint *points, gint npoints)
 
void gdk_win32_draw_points (GdkDrawable *drawable, GdkGC *gc, GdkPoint *points, gint npoints)
 
void gdk_win32_draw_polygon (GdkDrawable *drawable, GdkGC *gc, gint filled, GdkPoint *points, gint npoints)
 
void gdk_win32_draw_rectangle (GdkDrawable *drawable, GdkGC *gc, gint filled, gint x, gint y, gint width, gint height)
 
void gdk_win32_draw_segments (GdkDrawable *drawable, GdkGC *gc, GdkSegment *segs, gint nsegs)
 
void gdk_win32_draw_text (GdkDrawable *drawable, GdkFont *font, GdkGC *gc, gint x, gint y, const gchar *text, gint text_length)
 
static void GetPixel (int y, int width, Byte_t *scline)
 Get pixels in line y and put in array scline. More...
 
int GIFdecode (Byte_t *GIFarr, Byte_t *PIXarr, int *Width, int *Height, int *Ncols, Byte_t *R, Byte_t *G, Byte_t *B)
 
long GIFencode (int Width, int Height, Int_t Ncol, Byte_t R[], Byte_t G[], Byte_t B[], Byte_t ScLine[], void(*get_scline)(int, int, Byte_t *), void(*pb)(Byte_t))
 
int GIFinfo (Byte_t *GIFarr, int *Width, int *Height, int *Ncols)
 
int GIFquantize (UInt_t width, UInt_t height, Int_t *ncol, Byte_t *red, Byte_t *green, Byte_t *blue, Byte_t *outputBuf, Byte_t *outputCmap)
 
VOID CALLBACK MyTimerProc (HWND hwnd, UINT message, UINT idTimer, DWORD dwTime)
 Windows timer handling events while moving/resizing windows. More...
 
static void PutByte (Byte_t b)
 Put byte b in output stream. More...
 

Variables

int gdk_debug_level
 
static FILE * gGifFile
 
static GdkImage * gGifImage = 0
 

Macro Definition Documentation

◆ BITmask

#define BITmask (   x)
Value:
if (evmask & k##x##Mask) \
p += sprintf (p, "%s" #x, (p > bfr ? " " : ""))
Double_t x[n]
Definition: legend1.C:17

◆ IDC_HAND

#define IDC_HAND   MAKEINTRESOURCE(32649)

Definition at line 67 of file TGWin32.cxx.

◆ safestrlen

#define safestrlen (   s)    ((s) ? strlen(s) : 0)

Definition at line 6508 of file TGWin32.cxx.

◆ XDND_PROTOCOL_VERSION

#define XDND_PROTOCOL_VERSION   5

Definition at line 65 of file TGWin32.cxx.

Function Documentation

◆ _set_event_time()

static void _set_event_time ( GdkEvent &  event,
UInt_t  time 
)
static

Definition at line 5874 of file TGWin32.cxx.

◆ gdk_win32_draw_arc()

void gdk_win32_draw_arc ( GdkDrawable *  drawable,
GdkGC *  gc,
gint  filled,
gint  x,
gint  y,
gint  width,
gint  height,
gint  angle1,
gint  angle2 
)

◆ gdk_win32_draw_lines()

void gdk_win32_draw_lines ( GdkDrawable *  drawable,
GdkGC *  gc,
GdkPoint *  points,
gint  npoints 
)

◆ gdk_win32_draw_points()

void gdk_win32_draw_points ( GdkDrawable *  drawable,
GdkGC *  gc,
GdkPoint *  points,
gint  npoints 
)

◆ gdk_win32_draw_polygon()

void gdk_win32_draw_polygon ( GdkDrawable *  drawable,
GdkGC *  gc,
gint  filled,
GdkPoint *  points,
gint  npoints 
)

◆ gdk_win32_draw_rectangle()

void gdk_win32_draw_rectangle ( GdkDrawable *  drawable,
GdkGC *  gc,
gint  filled,
gint  x,
gint  y,
gint  width,
gint  height 
)

◆ gdk_win32_draw_segments()

void gdk_win32_draw_segments ( GdkDrawable *  drawable,
GdkGC *  gc,
GdkSegment *  segs,
gint  nsegs 
)

◆ gdk_win32_draw_text()

void gdk_win32_draw_text ( GdkDrawable *  drawable,
GdkFont *  font,
GdkGC *  gc,
gint  x,
gint  y,
const gchar *  text,
gint  text_length 
)

◆ GetPixel()

static void GetPixel ( int  y,
int  width,
Byte_t scline 
)
static

Get pixels in line y and put in array scline.

Definition at line 4277 of file TGWin32.cxx.

◆ GIFdecode()

int GIFdecode ( Byte_t GIFarr,
Byte_t PIXarr,
int *  Width,
int *  Height,
int *  Ncols,
Byte_t R,
Byte_t G,
Byte_t B 
)

Definition at line 149 of file gifdecode.c.

◆ GIFencode()

long GIFencode ( int  Width,
int  Height,
Int_t  Ncol,
Byte_t  R[],
Byte_t  G[],
Byte_t  B[],
Byte_t  ScLine[],
void(*)(int, int, Byte_t *)  get_scline,
void(*)(Byte_t pb 
)

◆ GIFinfo()

int GIFinfo ( Byte_t GIFarr,
int *  Width,
int *  Height,
int *  Ncols 
)

Definition at line 80 of file gifdecode.c.

◆ GIFquantize()

int GIFquantize ( UInt_t  width,
UInt_t  height,
Int_t ncol,
Byte_t red,
Byte_t green,
Byte_t blue,
Byte_t outputBuf,
Byte_t outputCmap 
)

◆ MyTimerProc()

VOID CALLBACK MyTimerProc ( HWND  hwnd,
UINT  message,
UINT  idTimer,
DWORD  dwTime 
)

Windows timer handling events while moving/resizing windows.

Definition at line 832 of file TGWin32.cxx.

◆ PutByte()

static void PutByte ( Byte_t  b)
static

Put byte b in output stream.

Definition at line 4287 of file TGWin32.cxx.

Variable Documentation

◆ gdk_debug_level

int gdk_debug_level

Definition at line 136 of file TGWin32.cxx.

◆ gGifFile

FILE* gGifFile
static

Definition at line 4257 of file TGWin32.cxx.

◆ gGifImage

GdkImage* gGifImage = 0
static

Definition at line 4258 of file TGWin32.cxx.