Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cache.cpp File Reference

#include "rdesktop.h"

Include dependency graph for cache.cpp:

Go to the source code of this file.

Defines

#define NUM_ELEMENTS(array)   (sizeof(array) / sizeof(array[0]))

Functions

HBITMAP cache_get_bitmap (uint8 cache_id, uint16 cache_idx)
void cache_put_bitmap (uint8 cache_id, uint16 cache_idx, HBITMAP bitmap)
FONTGLYPHcache_get_font (uint8 font, uint16 character)
void cache_put_font (uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap)
DATABLOBcache_get_text (uint8 cache_id)
void cache_put_text (uint8 cache_id, void *data, int length)
uint8cache_get_desktop (uint32 offset, int cx, int cy, int bytes_per_pixel)
void cache_put_desktop (uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel, uint8 *data)
HCURSOR cache_get_cursor (uint16 cache_idx)
void cache_put_cursor (uint16 cache_idx, HCURSOR cursor)

Variables

static HBITMAP bmpcache [3][600]
static FONTGLYPH fontcache [12][256]
static DATABLOB textcache [256]
static uint8 deskcache [0x38400]
static HCURSOR cursorcache [0x20]


Define Documentation

#define NUM_ELEMENTS array   )     (sizeof(array) / sizeof(array[0]))
 

Definition at line 23 of file cache.cpp.

Referenced by cache_get_bitmap(), cache_get_cursor(), cache_get_font(), cache_get_text(), cache_put_bitmap(), cache_put_cursor(), cache_put_font(), and cache_put_text().


Function Documentation

HBITMAP cache_get_bitmap uint8  cache_id,
uint16  cache_idx
 

Definition at line 31 of file cache.cpp.

References bmpcache, error(), NULL, and NUM_ELEMENTS.

Referenced by process_memblt(), and process_triblt().

HCURSOR cache_get_cursor uint16  cache_idx  ) 
 

Definition at line 202 of file cache.cpp.

References cursorcache, error(), NULL, and NUM_ELEMENTS.

Referenced by process_pointer_pdu().

uint8* cache_get_desktop uint32  offset,
int  cx,
int  cy,
int  bytes_per_pixel
 

Definition at line 161 of file cache.cpp.

References deskcache, error(), and NULL.

Referenced by ui_desktop_restore().

FONTGLYPH* cache_get_font uint8  font,
uint16  character
 

Definition at line 72 of file cache.cpp.

References error(), NULL, NUM_ELEMENTS, and _FONTGLYPH::pixmap.

DATABLOB* cache_get_text uint8  cache_id  ) 
 

Definition at line 118 of file cache.cpp.

References _DATABLOB::data, error(), NULL, NUM_ELEMENTS, and text.

Referenced by ui_draw_text().

void cache_put_bitmap uint8  cache_id,
uint16  cache_idx,
HBITMAP  bitmap
 

Definition at line 48 of file cache.cpp.

References bmpcache, error(), NULL, NUM_ELEMENTS, and ui_destroy_bitmap().

Referenced by process_bmpcache(), and process_raw_bmpcache().

void cache_put_cursor uint16  cache_idx,
HCURSOR  cursor
 

Definition at line 219 of file cache.cpp.

References cursorcache, error(), NULL, NUM_ELEMENTS, and ui_destroy_cursor().

Referenced by process_pointer_pdu().

void cache_put_desktop uint32  offset,
int  cx,
int  cy,
int  scanline,
int  bytes_per_pixel,
uint8 data
 

Definition at line 176 of file cache.cpp.

References deskcache, and error().

Referenced by ui_desktop_save().

void cache_put_font uint8  font,
uint16  character,
uint16  offset,
uint16  baseline,
uint16  width,
uint16  height,
HGLYPH  pixmap
 

Definition at line 89 of file cache.cpp.

References _FONTGLYPH::baseline, error(), _FONTGLYPH::height, NULL, NUM_ELEMENTS, _FONTGLYPH::offset, _FONTGLYPH::pixmap, ui_destroy_glyph(), and _FONTGLYPH::width.

Referenced by process_fontcache().

void cache_put_text uint8  cache_id,
void *  data,
int  length
 

Definition at line 135 of file cache.cpp.

References _DATABLOB::data, error(), NULL, NUM_ELEMENTS, _DATABLOB::size, text, xfree(), and xmalloc().

Referenced by ui_draw_text().


Variable Documentation

HBITMAP bmpcache[3][600] [static]
 

Definition at line 27 of file cache.cpp.

Referenced by cache_get_bitmap(), and cache_put_bitmap().

HCURSOR cursorcache[0x20] [static]
 

Definition at line 198 of file cache.cpp.

Referenced by cache_get_cursor(), and cache_put_cursor().

uint8 deskcache[0x38400] [static]
 

Definition at line 157 of file cache.cpp.

Referenced by cache_get_desktop(), and cache_put_desktop().

FONTGLYPH fontcache[12][256] [static]
 

Definition at line 68 of file cache.cpp.

DATABLOB textcache[256] [static]
 

Definition at line 114 of file cache.cpp.


Generated on Sat Nov 5 17:04:04 2005 for OPIE by  doxygen 1.4.2