Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Glw.c File Reference

#include <windows.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "Bases.h"
#include "NetCommon.h"
#include "Memory.h"
#include "debug.h"
#include "Net.h"
#include "Gui.h"
#include "Common.h"
#include "Endian.h"

Include dependency graph for Glw.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  glw_Connection
struct  glw_Dir
struct  glw_Font
struct  glw_FontFace
struct  glw_InternalBMI
struct  glw_Window

Defines

#define WS_EX_LAYERED   0x00080000
#define LWA_ALPHA   0x00000002
#define MSG_WAITALL   0x100
#define NWHT_NOWHERE   0x0000
#define NWHT_LEFT   0x0001
#define NWHT_RIGHT   0x0002
#define NWHT_TOP   0x0003
#define NWHT_TOPLEFT   0x0004
#define NWHT_TOPRIGHT   0x0005
#define NWHT_BOTTOM   0x0006
#define NWHT_BOTTOMLEFT   0x0007
#define NWHT_BOTTOMRIGHT   0x0008
#define ANTIALIASED_QUALITY   4
#define GLW_FONTNAME_SIZE   64
#define SOCK_CLOSE_BUFSIZE   256
#define CRSR_MAX   4

Typedefs

typedef DWORD(WINAPI * PSLWA )(HWND, DWORD, BYTE, DWORD)

Functions

u32 glw_GetConnection (u32 window)
u32 glw_GetFontConnection (u32 font)
void glw_UnloadFontFaces (List_t *faces)
int glw_LoadFontFaces (List_t *faces)
glw_FontFaceglw_GetFaceWinName (List_t *fflist, char *name)
int glw_WindowTransparent (struct glw_Window *win, int percent)
void glw_CreateBuffer (struct glw_Window *win, HDC referenceDC, int sizeX, int sizeY)
u32 glw_ClearWindow (u32 firsttag,...)
u32 glw_ClearWindowTL (tag *taglist)
void glw_DeleteBuffer (struct glw_Window *win)
Node_tglw_GetNode (HWND win)
Node_tglw_GetNode2 (struct glw_Connection *conn, HWND win)
glw_Windowglw_GetGlwWindow (HWND w)
int glw_FillEvent (struct glw_Event *ev, struct glw_Window *win)
void glw_CopyBck (struct glw_Window *win, RECT *rct)
void glw_CopyBckIndirect (HWND hwnd, RECT *rct)
int glw_ReadMessage (struct glw_Connection *conn)
LRESULT CALLBACK glw_StdWindowProc (HWND Window, UINT MessageType, WPARAM FirstParameter, LPARAM SecondParameter)
u32 glw_htonl2 (u32 firsttag,...)
u32 glw_htonl2TL (tag *taglist)
u32 glw_ntohl2 (u32 firsttag,...)
u32 glw_ntohl2TL (tag *taglist)
u32 glw_htonl (u32 value)
u32 glw_ntohl (u32 value)
int glw_Recv (u32 connection, u8 *buff, int bufflen)
int glw_Send (u32 connection, u8 *buff, int bufflen)
int glw_SendMsg (u32 connection, u8 type, u32 id, u8 *buff, int bufflen)
DWORD WINAPI glw_Thread (void *sock)
void glw_Server (int port)
int WINAPI WinMain (HINSTANCE Instance, HINSTANCE PreviousInstance, LPSTR CommandLine, int CommandShow)
u32 glw_OpenWindow (u32 firsttag,...)
u32 glw_OpenWindowTL (tag *taglist)
u32 glw_SetWindowState (u32 firsttag,...)
u32 glw_SetWindowStateTL (tag *taglist)
u32 glw_GetWindowState (u32 firsttag,...)
u32 glw_GetWindowStateTL (tag *taglist)
u32 glw_CloseWindow (u32 firsttag,...)
u32 glw_CloseWindowTL (tag *taglist)
u32 glw_GetWindowUserdata (u32 firsttag,...)
u32 glw_GetWindowUserdataTL (tag *taglist)
u32 glw_SetWindowLimits (u32 firsttag,...)
u32 glw_SetWindowLimitsTL (tag *taglist)
u32 glw_SetWindowTransparency (u32 firsttag,...)
u32 glw_SetWindowTransparencyTL (tag *taglist)
u32 glw_SetWindowDimensions (u32 firsttag,...)
u32 glw_SetWindowDimensionsTL (tag *taglist)
u32 glw_GetWindowDimensions (u32 firsttag,...)
u32 glw_GetWindowDimensionsTL (tag *taglist)
u32 glw_SetPointer (u32 firsttag,...)
u32 glw_SetPointerTL (tag *taglist)
u32 glw_RefreshWindow (u32 firsttag,...)
u32 glw_RefreshWindowTL (tag *taglist)
u32 glw_RefreshWindowPartial (u32 firsttag,...)
u32 glw_RefreshWindowPartialTL (tag *taglist)
u32 glw_StartMouseTracking (u32 firsttag,...)
u32 glw_StartMouseTrackingTL (tag *taglist)
u32 glw_StopMouseTracking (u32 firsttag,...)
u32 glw_StopMouseTrackingTL (tag *taglist)
u32 glw_DragWindow (u32 firsttag,...)
u32 glw_DragWindowTL (tag *taglist)
u32 glw_ResizeWindow (u32 firsttag,...)
u32 glw_ResizeWindowTL (tag *taglist)
u32 glw_SetColor (u32 firsttag,...)
u32 glw_SetColorTL (tag *taglist)
u32 glw_SetBackground (u32 firsttag,...)
u32 glw_SetBackgroundTL (tag *taglist)
u32 glw_DrawLine (u32 firsttag,...)
u32 glw_DrawLineTL (tag *taglist)
u32 glw_DrawRect (u32 firsttag,...)
u32 glw_DrawRectTL (tag *taglist)
u32 glw_DrawFilledRect (u32 firsttag,...)
u32 glw_DrawFilledRectTL (tag *taglist)
u32 glw_DrawPixel (u32 firsttag,...)
u32 glw_DrawPixelTL (tag *taglist)
int glw_MainLoop (u32 connection, u32 userdata, u32 mask)
u32 glw_OpenFont (u32 firsttag,...)
u32 glw_OpenFontTL (tag *taglist)
u32 glw_CloseFont (u32 firsttag,...)
u32 glw_CloseFontTL (tag *taglist)
u32 glw_DrawText (u32 firsttag,...)
u32 glw_DrawTextTL (tag *taglist)
u32 glw_GetFontSize (u32 firsttag,...)
u32 glw_GetFontSizeTL (tag *taglist)
u32 glw_GetTextLength (u32 firsttag,...)
u32 glw_GetTextLengthTL (tag *taglist)
u32 glw_PutImage (u32 firsttag,...)
u32 glw_PutImageTL (tag *taglist)
u32 glw_GetScreenDimensions (u32 firsttag,...)
u32 glw_GetScreenDimensionsTL (tag *taglist)
u32 glw_Sleep (u32 firsttag,...)
u32 glw_SleepTL (tag *taglist)
u32 glw_TimerStart (u32 firsttag,...)
u32 glw_TimerStartTL (tag *taglist)
u32 glw_TimerCancel (u32 firsttag,...)
u32 glw_TimerCancelTL (tag *taglist)
u32 glw_GetTime (u32 firsttag,...)
u32 glw_GetTimeTL (tag *taglist)
u32 glw_Call (int function, u32 firsttag,...)
u32 glw_CallTL (int function, tag *taglist)
char * glw_ConvPath (char *name)
u32 glw_OpenModule (char *name)
void glw_CloseModule (u32 handle)
glw_Dir_tglw_DirOpen (char *path)
void glw_DirClose (glw_Dir_t *dir)
char * glw_DirNext (glw_Dir_t *dir)
u32 glw_SetWindowShape (u32 firsttag,...)
u32 glw_SetWindowShapeTL (tag *taglist)
int glw_GetTerminalByteOrder (u32 connection)
int glw_ReadTerm (u32 connection, u8 *buff, int len)
int glw_SendTerm (u32 connection, u8 *buff, int len)

Variables

u32(* call_vector [GLW_FUNC_DONE-GLW_FUNCBASE+1])(tag *)
int quit = 0
int buffsizeX
int buffsizeY
List_twindowlist
WNDCLASSEX WindowClass
int sCommandShow
List_tfontfacelist
List_tfontlist
int wv
HINSTANCE sInstance
HMODULE user32_DLL
HDC workDC = NULL


Define Documentation

#define ANTIALIASED_QUALITY   4
 

Definition at line 139 of file Glw.c.

Referenced by glw_OpenFontTL.

#define CRSR_MAX   4
 

Definition at line 1676 of file Glw.c.

Referenced by glw_SetPointerTL.

#define GLW_FONTNAME_SIZE   64
 

Definition at line 142 of file Glw.c.

Referenced by glw_LoadFontFaces.

#define LWA_ALPHA   0x00000002
 

Definition at line 30 of file Glw.c.

Referenced by glw_WindowTransparent.

#define MSG_WAITALL   0x100
 

Definition at line 34 of file Glw.c.

Referenced by glw_ReadTerm.

#define NWHT_BOTTOM   0x0006
 

Definition at line 134 of file Glw.c.

#define NWHT_BOTTOMLEFT   0x0007
 

Definition at line 135 of file Glw.c.

#define NWHT_BOTTOMRIGHT   0x0008
 

Definition at line 136 of file Glw.c.

#define NWHT_LEFT   0x0001
 

Definition at line 129 of file Glw.c.

#define NWHT_NOWHERE   0x0000
 

Definition at line 128 of file Glw.c.

#define NWHT_RIGHT   0x0002
 

Definition at line 130 of file Glw.c.

#define NWHT_TOP   0x0003
 

Definition at line 131 of file Glw.c.

#define NWHT_TOPLEFT   0x0004
 

Definition at line 132 of file Glw.c.

#define NWHT_TOPRIGHT   0x0005
 

Definition at line 133 of file Glw.c.

#define SOCK_CLOSE_BUFSIZE   256
 

Definition at line 1071 of file Glw.c.

Referenced by glw_Thread.

#define WS_EX_LAYERED   0x00080000
 

Definition at line 29 of file Glw.c.

Referenced by glw_WindowTransparent.


Typedef Documentation

typedef DWORD(WINAPI * PSLWA)(HWND, DWORD, BYTE, DWORD)
 

Definition at line 51 of file Glw.c.

Referenced by glw_WindowTransparent.


Function Documentation

u32 glw_Call int    function,
u32    firsttag,
...   
 

Definition at line 2753 of file Glw.c.

References glw_CallTL, and u32.

Referenced by WinMain.

u32 glw_CallTL int    function,
tag   taglist
 

Definition at line 2757 of file Glw.c.

References call_vector, debug_Begin, debug_End, debug_Warning, GLW_FUNCBASE, and u32.

Referenced by WinMain.

u32 glw_ClearWindow u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 329 of file Glw.c.

References glw_ClearWindowTL, and u32.

u32 glw_ClearWindowTL tag   taglist
 

Definition at line 333 of file Glw.c.

References glw_Window::bgbrush, glw_Window::bgrgb, buffsizeX, buffsizeY, debug_Begin, debug_End, glw_Window::hdcMem, NULL, and u32.

u32 glw_CloseFont u32    firsttag,
...   
 

Parameters:
TAG_GLW_FONT  u32

Definition at line 2322 of file Glw.c.

References glw_CloseFontTL, and u32.

u32 glw_CloseFontTL tag   taglist
 

Definition at line 2326 of file Glw.c.

References glw_Font::counter, debug_Begin, debug_End, glw_Font::handle, list_DeleteNode, list_RemoveNode, list_SetNodeData, mem_free, glw_Font::node, NULL, tag_GetTagData, and u32.

Referenced by WinMain.

void glw_CloseModule u32    handle
 

Definition at line 2826 of file Glw.c.

References u32.

u32 glw_CloseWindow u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1442 of file Glw.c.

References glw_CloseWindowTL, and u32.

u32 glw_CloseWindowTL tag   taglist
 

Definition at line 1446 of file Glw.c.

References glw_Window::conn, debug_Begin, debug_End, FALSE, glw_DeleteBuffer, glw_GetNode, glw_GetNode2, list_DeleteNode, list_GetNodeData, list_GetNodeHead, list_RemoveNode, list_SetNodeData, mem_free, NULL, glw_Connection::sd, u32, glw_Connection::win, glw_Window::window, glw_Connection::window_count, and glw_Connection::windowlist.

char* glw_ConvPath char *    name [static]
 

Definition at line 2775 of file Glw.c.

References debug_Begin, debug_End, mem_malloc, and NULL.

void glw_CopyBck struct glw_Window   win,
RECT *    rct
[static]
 

Definition at line 456 of file Glw.c.

References glw_Window::conn, glw_Connection::curr_event, glw_Event::data, debug_Begin, debug_End, glw_Window::done, glw_Event::event, glw_Window::flags, glw_FillEvent, gui_Event, glw_Window::hdcMem, Rect_t::height, Rect_t::left, NULL, Rect_t::top, u32, Rect_t::width, glw_Window::window, and glw_Window::wrect.

void glw_CopyBckIndirect HWND    hwnd,
RECT *    rct
[static]
 

Definition at line 498 of file Glw.c.

References debug_Begin, debug_End, glw_GetNode, and NULL.

void glw_CreateBuffer struct glw_Window   win,
HDC    referenceDC,
int    sizeX,
int    sizeY
[static]
 

Definition at line 302 of file Glw.c.

References glw_Window::bgbrush, glw_Window::bgcol, debug_Begin, debug_End, glw_Window::fgbrush, glw_Window::fgcol, glw_Window::flags, glw_Window::hbmMem, glw_Window::hbmOld, glw_Window::hdcMem, glw_Window::logbrush, NULL, glw_Window::pen, and glw_Window::window.

void glw_DeleteBuffer struct glw_Window   win [static]
 

Definition at line 357 of file Glw.c.

References glw_Window::bgbrush, debug_Begin, debug_End, glw_Window::fgbrush, glw_Window::flags, glw_Window::hbmMem, glw_Window::hbmOld, glw_Window::hdcMem, and glw_Window::pen.

void glw_DirClose glw_Dir_t   dir
 

Definition at line 2872 of file Glw.c.

References debug_Begin, debug_End, glw_Dir::filename, glw_Dir::hdir, mem_free, and NULL.

char* glw_DirNext glw_Dir_t   dir
 

Definition at line 2886 of file Glw.c.

References common_strdup, debug_Begin, debug_End, glw_Dir::filename, glw_Dir::hdir, and NULL.

glw_Dir_t* glw_DirOpen char *    path
 

Definition at line 2838 of file Glw.c.

References common_strdup, debug_Begin, debug_End, glw_Dir::filename, glw_ConvPath, glw_Dir::hdir, mem_free, mem_malloc, and NULL.

u32 glw_DragWindow u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1834 of file Glw.c.

References glw_DragWindowTL, and u32.

u32 glw_DragWindowTL tag   taglist
 

Definition at line 1838 of file Glw.c.

References debug_Begin, debug_End, tag_GetTagData, u32, and glw_Window::window.

Referenced by WinMain.

u32 glw_DrawFilledRect u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_LEFT  int
TAG_GLW_TOP  int
TAG_GLW_WIDTH  int
TAG_GLW_HEIGHT  int

Definition at line 2082 of file Glw.c.

References glw_DrawFilledRectTL, and u32.

u32 glw_DrawFilledRectTL tag   taglist
 

Definition at line 2086 of file Glw.c.

References debug_Begin, debug_End, glw_Window::fgbrush, glw_Window::fgrgb, glw_Window::hdcMem, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_DrawLine u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_X1  int
TAG_GLW_Y1  int
TAG_GLW_X2  int
TAG_GLW_Y2  int

Definition at line 1979 of file Glw.c.

References glw_DrawLineTL, and u32.

u32 glw_DrawLineTL tag   taglist
 

Definition at line 1983 of file Glw.c.

References debug_Begin, debug_End, glw_Window::fgrgb, glw_Window::hdcMem, NULL, glw_Window::pen, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_DrawPixel u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_X  int
TAG_GLW_Y  int

Definition at line 2131 of file Glw.c.

References glw_DrawPixelTL, and u32.

u32 glw_DrawPixelTL tag   taglist
 

Definition at line 2135 of file Glw.c.

References debug_Begin, debug_End, glw_Window::fgcol, glw_Window::fgrgb, glw_Window::hdcMem, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_DrawRect u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_LEFT  int
TAG_GLW_TOP  int
TAG_GLW_WIDTH  int
TAG_GLW_HEIGHT  int

Definition at line 2029 of file Glw.c.

References glw_DrawRectTL, and u32.

u32 glw_DrawRectTL tag   taglist
 

Definition at line 2033 of file Glw.c.

References debug_Begin, debug_End, glw_Window::fgrgb, glw_Window::hdcMem, NULL, glw_Window::pen, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_DrawText u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_FONT  u32
TAG_GLW_CLIPRECT  Rect_t *
TAG_GLW_TEXT  char *
TAG_GLW_FLAGS  u32

Definition at line 2366 of file Glw.c.

References glw_DrawTextTL, and u32.

u32 glw_DrawTextTL tag   taglist
 

Definition at line 2370 of file Glw.c.

References debug_Begin, debug_End, glw_Window::fgcol, glw_Window::fgrgb, glw_Font::handle, glw_Window::hdcMem, Rect_t::height, Rect_t::left, NULL, glw_Font::size, tag_GetTagData, Rect_t::top, u32, and Rect_t::width.

Referenced by WinMain.

int glw_FillEvent struct glw_Event   ev,
struct glw_Window   win
[static]
 

Definition at line 434 of file Glw.c.

References debug_Begin, debug_End, glw_Event::millis, NULL, glw_Event::second, and glw_Event::window.

u32 glw_GetConnection u32    window
 

Definition at line 170 of file Glw.c.

References glw_Window::conn, and u32.

struct glw_FontFace* glw_GetFaceWinName List_t   fflist,
char *    name
[static]
 

Definition at line 260 of file Glw.c.

References debug_Begin, debug_End, glw_FontFace::face, list_GetNodeData, list_GetNodeHead, list_GetNodeNext, and NULL.

u32 glw_GetFontConnection u32    font
 

Definition at line 177 of file Glw.c.

References glw_Font::conn, and u32.

Referenced by term_CloseFontTL, term_GetFontSizeTL, and term_GetTextLengthTL.

u32 glw_GetFontSize u32    firsttag,
...   
 

Parameters:
TAG_GLW_FONT  u32

Definition at line 2445 of file Glw.c.

References glw_GetFontSizeTL, and u32.

u32 glw_GetFontSizeTL tag   taglist
 

Definition at line 2449 of file Glw.c.

References debug_Begin, debug_End, NULL, glw_Font::size, tag_GetTagData, and u32.

Referenced by WinMain.

struct glw_Window* glw_GetGlwWindow HWND    w [static]
 

Definition at line 416 of file Glw.c.

References debug_Begin, debug_End, glw_GetNode, and NULL.

Node_t* glw_GetNode HWND    win [static]
 

Definition at line 376 of file Glw.c.

References debug_Begin, debug_End, list_GetNodeHead, list_GetNodeNext, NULL, and glw_Window::window.

Node_t* glw_GetNode2 struct glw_Connection   conn,
HWND    win
[static]
 

Definition at line 396 of file Glw.c.

References debug_Begin, debug_End, list_GetNodeHead, list_GetNodeNext, NULL, glw_Window::window, and glw_Connection::windowlist.

u32 glw_GetScreenDimensions u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_RECT  Rect_t *

Definition at line 2607 of file Glw.c.

References glw_GetScreenDimensionsTL, and u32.

u32 glw_GetScreenDimensionsTL tag   taglist
 

Definition at line 2611 of file Glw.c.

References buffsizeX, buffsizeY, debug_Begin, debug_End, Rect_t::height, Rect_t::left, tag_GetTagData, Rect_t::top, u32, and Rect_t::width.

Referenced by WinMain.

int glw_GetTerminalByteOrder u32    connection
 

Definition at line 3014 of file Glw.c.

References debug_Begin, debug_End, NULL, glw_Connection::termbyteorder, and u32.

u32 glw_GetTextLength u32    firsttag,
...   
 

Parameters:
TAG_GLW_FONT  u32
TAG_GLW_TEXT  char *

Definition at line 2475 of file Glw.c.

References glw_GetTextLengthTL, and u32.

u32 glw_GetTextLengthTL tag   taglist
 

Definition at line 2479 of file Glw.c.

References debug_Begin, debug_End, glw_Font::handle, NULL, tag_GetTagData, u32, and workDC.

Referenced by WinMain.

u32 glw_GetTime u32    firsttag,
...   
 

Parameters:
TAG_GLW_TM  struct glw_Time *

Definition at line 2722 of file Glw.c.

References glw_GetTimeTL, and u32.

u32 glw_GetTimeTL tag   taglist
 

Definition at line 2726 of file Glw.c.

References debug_Begin, debug_End, glw_Time::millis, NULL, glw_Time::secs, and u32.

Referenced by WinMain.

u32 glw_GetWindowDimensions u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_RECT  Rect_t *

Definition at line 1636 of file Glw.c.

References glw_GetWindowDimensionsTL, and u32.

u32 glw_GetWindowDimensionsTL tag   taglist
 

Definition at line 1640 of file Glw.c.

References debug_Begin, debug_End, Rect_t::height, Rect_t::left, NULL, tag_GetTagData, Rect_t::top, u32, Rect_t::width, and glw_Window::wrect.

Referenced by WinMain.

u32 glw_GetWindowState u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1418 of file Glw.c.

References glw_GetWindowStateTL, and u32.

u32 glw_GetWindowStateTL tag   taglist
 

Definition at line 1422 of file Glw.c.

References debug_Begin, debug_End, NULL, u32, and glw_Window::user_state.

Referenced by glw_GetWindowState.

u32 glw_GetWindowUserdata u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1496 of file Glw.c.

References glw_GetWindowUserdataTL, and u32.

u32 glw_GetWindowUserdataTL tag   taglist
 

Definition at line 1500 of file Glw.c.

References debug_Begin, debug_End, NULL, u32, and glw_Window::userdata.

u32 glw_htonl u32    value
 

Definition at line 993 of file Glw.c.

References u32.

u32 glw_htonl2 u32    firsttag,
...   
 

Parameters:
TAG_GLW_VALUE  u32

Definition at line 951 of file Glw.c.

References glw_htonl2TL, and u32.

u32 glw_htonl2TL tag   taglist
 

Definition at line 955 of file Glw.c.

References debug_Begin, debug_End, tag_GetTagData, and u32.

Referenced by WinMain.

int glw_LoadFontFaces List_t   faces [static]
 

Definition at line 209 of file Glw.c.

References debug_Begin, debug_End, glw_FontFace::face, GLW_FONTNAME_SIZE, list_CreateNode, list_InsertNodeTail, list_SetNodeData, mem_malloc, NULL, and glw_FontFace::win_name.

int glw_MainLoop u32    connection,
u32    userdata,
u32    mask
 

Definition at line 2168 of file Glw.c.

References glw_Connection::completed, glw_Window::conn, glw_Connection::curr_event, glw_Connection::cuser, glw_Event::data, debug_Begin, debug_End, glw_Window::done, glw_Event::event, glw_FillEvent, glw_GetGlwWindow, glw_ReadMessage, gui_Event, glw_Connection::level, glw_Event::mask, glw_Event::mousex, glw_Event::mousey, NULL, glw_ConnUser::quit, u32, glw_Event::userdata, glw_Event::window, and glw_Connection::window_count.

u32 glw_ntohl u32    value
 

Definition at line 998 of file Glw.c.

References u32.

u32 glw_ntohl2 u32    firsttag,
...   
 

Parameters:
TAG_GLW_VALUE  u32

Definition at line 974 of file Glw.c.

References glw_ntohl2TL, and u32.

u32 glw_ntohl2TL tag   taglist
 

Definition at line 978 of file Glw.c.

References debug_Begin, debug_End, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_OpenFont u32    firsttag,
...   
 

Parameters:
TAG_GLW_CONN  u32
TAG_GLW_FACE  char *
TAG_GLW_SIZE  int
TAG_GLW_STYLE  u32

Definition at line 2243 of file Glw.c.

References glw_OpenFontTL, and u32.

u32 glw_OpenFontTL tag   taglist
 

Definition at line 2247 of file Glw.c.

References ANTIALIASED_QUALITY, glw_Font::conn, glw_Font::counter, debug_Begin, debug_End, glw_Font::face, FALSE, glw_CloseFont, glw_GetFaceWinName, glw_Font::handle, list_CreateNode, list_DeleteNode, list_GetNodeHead, list_GetNodeNext, list_InsertNodeTail, list_SetNodeData, mem_malloc, glw_Font::node, NULL, glw_Font::size, glw_Font::style, TAG_DONE, tag_GetTagData, u32, and glw_FontFace::win_name.

Referenced by WinMain.

u32 glw_OpenModule char *    name
 

Definition at line 2798 of file Glw.c.

References debug_Begin, debug_End, debug_Error, debug_Message, debug_Warning, glw_ConvPath, mem_free, module_Init, NULL, and u32.

u32 glw_OpenWindow u32    firsttag,
...   
 

Parameters:
TAG_GLW_CONN  u32
TAG_GLW_RECT  Rect_t *
TAG_GLW_FLAGS  u32
TAG_GLW_USERDATA  u32

Definition at line 1310 of file Glw.c.

References glw_OpenWindowTL, and u32.

u32 glw_OpenWindowTL tag   taglist
 

Definition at line 1314 of file Glw.c.

References buffsizeX, buffsizeY, glw_Window::conn, debug_Begin, debug_End, debug_Message, glw_Window::done, glw_Window::flags, glw_ClearWindow, glw_CreateBuffer, list_CreateNode, list_InsertNodeTail, list_SetNodeData, mem_malloc, glw_Window::minheight, glw_Window::minwidth, NULL, sCommandShow, glw_Connection::sd, sInstance, TAG_DONE, tag_GetTagData, u32, glw_Window::user_state, glw_Window::userdata, glw_Connection::win, glw_Window::window, glw_Connection::window_count, glw_Connection::windowlist, and glw_Window::wrect.

u32 glw_PutImage u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_PIXELS  Vector_t *
TAG_GLW_CLIPRECT  Rect_t *
TAG_GLW_LEFT  int
TAG_GLW_TOP  int
TAG_GLW_WIDTH  int
TAG_GLW_HEIGHT  int

Definition at line 2520 of file Glw.c.

References glw_PutImageTL, and u32.

u32 glw_PutImageTL tag   taglist
 

Definition at line 2524 of file Glw.c.

References glw_InternalBMI::bmiColors, glw_InternalBMI::bmiHeader, Vector_t::data, debug_Begin, debug_End, glw_Window::hdcMem, Rect_t::height, mem_free, mem_malloc, NULL, tag_GetTagData, u32, u8, Rect_t::width, and wv.

Referenced by WinMain.

int glw_ReadMessage struct glw_Connection   conn [static]
 

Definition at line 515 of file Glw.c.

References glw_SockMsg::body, glw_Connection::completed, glw_Connection::curr_event, glw_Connection::cuser, glw_Event::data, debug_Error, glw_Event::event, glw_SockMsg::id, glw_SockMsg::length, mem_malloc, glw_Event::millis, NULL, glw_ConnUser::quit, glw_Connection::sd, glw_Event::second, glw_Connection::sockmsg, glw_SockMsg::type, and u32.

int glw_ReadTerm u32    connection,
u8   buff,
int    len
 

Definition at line 3029 of file Glw.c.

References glw_Connection::cuser, debug_Begin, debug_End, debug_Error, MSG_WAITALL, NULL, glw_ConnUser::quit, glw_Connection::sterm, u32, and u8.

int glw_Recv u32    connection,
u8   buff,
int    bufflen
 

Definition at line 1004 of file Glw.c.

References debug_Begin, debug_End, NULL, glw_Connection::sd, u32, and u8.

u32 glw_RefreshWindow u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1717 of file Glw.c.

References glw_RefreshWindowTL, and u32.

u32 glw_RefreshWindowPartial u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_RECT  Rect_t *

Definition at line 1741 of file Glw.c.

References glw_RefreshWindowPartialTL, and u32.

u32 glw_RefreshWindowPartialTL tag   taglist
 

Definition at line 1745 of file Glw.c.

References debug_Begin, debug_End, glw_Window::flags, glw_CopyBck, NULL, tag_GetTagData, and u32.

u32 glw_RefreshWindowTL tag   taglist
 

Definition at line 1721 of file Glw.c.

References debug_Begin, debug_End, glw_Window::flags, glw_CopyBck, NULL, and u32.

u32 glw_ResizeWindow u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_TYPE  int

Definition at line 1863 of file Glw.c.

References glw_ResizeWindowTL, and u32.

u32 glw_ResizeWindowTL tag   taglist
 

Definition at line 1867 of file Glw.c.

References debug_Begin, debug_End, tag_GetTagData, u32, and glw_Window::window.

Referenced by WinMain.

int glw_Send u32    connection,
u8   buff,
int    bufflen
 

Definition at line 1022 of file Glw.c.

References debug_Begin, debug_End, NULL, glw_Connection::sd, u32, and u8.

int glw_SendMsg u32    connection,
u8    type,
u32    id,
u8   buff,
int    bufflen
 

Definition at line 1040 of file Glw.c.

References debug_Begin, debug_End, NET_WRITE_BUFFER_SIZE, NULL, glw_Connection::sd, u32, u8, and glw_Connection::write_buffer.

int glw_SendTerm u32    connection,
u8   buff,
int    len
 

Definition at line 3054 of file Glw.c.

References debug_Begin, debug_End, NULL, glw_Connection::sterm, u32, and u8.

void glw_Server int    port [static]
 

Definition at line 1127 of file Glw.c.

References debug_Begin, debug_End, glw_Thread, NULL, and quit.

u32 glw_SetBackground u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_RGB  u32

Definition at line 1937 of file Glw.c.

References glw_SetBackgroundTL, and u32.

u32 glw_SetBackgroundTL tag   taglist
 

Definition at line 1941 of file Glw.c.

References glw_Window::bgbrush, glw_Window::bgcol, glw_Window::bgrgb, debug_Begin, debug_End, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_SetColor u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_RGB  u32

Definition at line 1895 of file Glw.c.

References glw_SetColorTL, and u32.

u32 glw_SetColorTL tag   taglist
 

Definition at line 1899 of file Glw.c.

References debug_Begin, debug_End, glw_Window::fgbrush, glw_Window::fgcol, glw_Window::fgrgb, glw_Window::logbrush, NULL, glw_Window::pen, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_SetPointer u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_POINTER  int

Definition at line 1672 of file Glw.c.

References glw_SetPointerTL, and u32.

u32 glw_SetPointerTL tag   taglist
 

Definition at line 1677 of file Glw.c.

References CRSR_MAX, debug_Begin, debug_End, NULL, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_SetWindowDimensions u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_RECT  Rect_t *

Definition at line 1596 of file Glw.c.

References glw_SetWindowDimensionsTL, and u32.

u32 glw_SetWindowDimensionsTL tag   taglist
 

Definition at line 1600 of file Glw.c.

References debug_Begin, debug_End, debug_Message, FALSE, Rect_t::height, NULL, tag_GetTagData, u32, Rect_t::width, glw_Window::window, and glw_Window::wrect.

Referenced by WinMain.

u32 glw_SetWindowLimits u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_MINWIDTH  int
TAG_GLW_MINHEIGHT  int
TAG_GLW_MAXWIDTH  int
TAG_GLW_MAXHEIGHT  int

Definition at line 1525 of file Glw.c.

References glw_SetWindowLimitsTL, and u32.

u32 glw_SetWindowLimitsTL tag   taglist
 

Definition at line 1529 of file Glw.c.

References debug_Begin, debug_End, glw_Window::maxheight, glw_Window::maxwidth, glw_Window::minheight, glw_Window::minwidth, NULL, tag_GetTagData, and u32.

u32 glw_SetWindowShape u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_VECTOR  Vector_t *
TAG_GLW_WIDTH  int
TAG_GLW_HEIGHT  int
TAG_GLW_BYTEWIDTH  int

Definition at line 2925 of file Glw.c.

References glw_SetWindowShapeTL, and u32.

u32 glw_SetWindowShapeTL tag   taglist
 

Definition at line 2929 of file Glw.c.

References debug_Begin, debug_End, debug_Error, FALSE, NULL, tag_GetTagData, u32, glw_Window::user_state, and glw_Window::window.

u32 glw_SetWindowState u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_STATE  int

Definition at line 1393 of file Glw.c.

References glw_SetWindowStateTL, and u32.

u32 glw_SetWindowStateTL tag   taglist
 

Definition at line 1397 of file Glw.c.

References debug_Begin, debug_End, NULL, tag_GetTagData, u32, and glw_Window::user_state.

u32 glw_SetWindowTransparency u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_PERCENT  int

Definition at line 1563 of file Glw.c.

References glw_SetWindowTransparencyTL, and u32.

u32 glw_SetWindowTransparencyTL tag   taglist
 

Definition at line 1567 of file Glw.c.

References debug_Begin, debug_End, glw_WindowTransparent, NULL, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_Sleep u32    firsttag,
...   
 

Parameters:
TAG_GLW_MILLISEC  u32

Definition at line 2636 of file Glw.c.

References glw_SleepTL, and u32.

u32 glw_SleepTL tag   taglist
 

Definition at line 2640 of file Glw.c.

References debug_Begin, debug_End, tag_GetTagData, and u32.

Referenced by WinMain.

u32 glw_StartMouseTracking u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1775 of file Glw.c.

References glw_StartMouseTrackingTL, and u32.

u32 glw_StartMouseTrackingTL tag   taglist
 

Definition at line 1779 of file Glw.c.

References debug_Begin, debug_End, NULL, tag_GetTagData, u32, and glw_Window::window.

Referenced by WinMain.

LRESULT CALLBACK glw_StdWindowProc HWND    Window,
UINT    MessageType,
WPARAM    FirstParameter,
LPARAM    SecondParameter
 

Definition at line 594 of file Glw.c.

References buffsizeX, buffsizeY, glw_Window::conn, glw_Connection::curr_event, glw_Event::data, debug_Begin, debug_End, glw_Window::done, glw_Event::event, FALSE, glw_CopyBckIndirect, glw_CreateBuffer, glw_DeleteBuffer, glw_FillEvent, glw_GetGlwWindow, glw_ReadMessage, gui_Event, min, glw_Window::minheight, glw_Window::minwidth, glw_Event::mousex, glw_Event::mousey, glw_Connection::mx, glw_Connection::my, NULL, glw_Window::paint, glw_Window::state, u32, glw_Window::user_state, and glw_Window::wrect.

Referenced by WinMain.

u32 glw_StopMouseTracking u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32

Definition at line 1802 of file Glw.c.

References glw_StopMouseTrackingTL, and u32.

u32 glw_StopMouseTrackingTL tag   taglist
 

Definition at line 1806 of file Glw.c.

References debug_Begin, debug_End, NULL, and u32.

Referenced by WinMain.

DWORD WINAPI glw_Thread void *    sock [static]
 

Definition at line 1073 of file Glw.c.

References glw_ConnUser::appname, glw_Connection::byteorder, glw_Connection::cuser, debug_Message, glw_CloseWindow, list_CreateList, list_DeleteList, list_GetNodeData, list_GetNodeHead, mem_calloc, mem_free, mem_malloc, mem_trace_checkpoint, mem_trace_report, net_CheckClient, net_Server, NET_WRITE_BUFFER_SIZE, NULL, glw_ConnUser::quit, glw_Connection::sd, SOCK_CLOSE_BUFSIZE, TAG_DONE, glw_Connection::termbyteorder, u32, glw_Connection::win, glw_Connection::window_count, glw_Connection::windowlist, and glw_Connection::write_buffer.

Referenced by glw_Server.

u32 glw_TimerCancel u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_ID  u32

Definition at line 2694 of file Glw.c.

References glw_TimerCancelTL, and u32.

u32 glw_TimerCancelTL tag   taglist
 

Definition at line 2698 of file Glw.c.

References debug_Begin, debug_End, tag_GetTagData, u32, and glw_Window::window.

Referenced by WinMain.

u32 glw_TimerStart u32    firsttag,
...   
 

Parameters:
TAG_GLW_WINDOW  u32
TAG_GLW_MILLISEC  u32
TAG_GLW_USERDATA  u32

Definition at line 2661 of file Glw.c.

References glw_TimerStartTL, and u32.

u32 glw_TimerStartTL tag   taglist
 

Definition at line 2665 of file Glw.c.

References debug_Begin, debug_End, NULL, tag_GetTagData, u32, and glw_Window::window.

Referenced by WinMain.

void glw_UnloadFontFaces List_t   faces [static]
 

Definition at line 183 of file Glw.c.

References debug_Begin, debug_End, glw_FontFace::face, list_DeleteList, list_DeleteNode, list_GetNodeHead, list_RemoveNode, list_SetNodeData, mem_free, NULL, and glw_FontFace::win_name.

int glw_WindowTransparent struct glw_Window   win,
int    percent
[static]
 

Definition at line 281 of file Glw.c.

References debug_Begin, debug_End, LWA_ALPHA, NULL, PSLWA, user32_DLL, glw_Window::window, and WS_EX_LAYERED.

int WINAPI WinMain HINSTANCE    Instance,
HINSTANCE    PreviousInstance,
LPSTR    CommandLine,
int    CommandShow
 

Definition at line 1184 of file Glw.c.

References buffsizeX, buffsizeY, call_vector, debug_Begin, debug_End, debug_Message, glw_Call, glw_CallTL, glw_CloseFont, glw_CloseFontTL, glw_CloseWindow, glw_DragWindowTL, glw_DrawFilledRectTL, glw_DrawLineTL, glw_DrawPixelTL, glw_DrawRectTL, glw_DrawTextTL, GLW_FUNCBASE, glw_GetFontSizeTL, glw_GetScreenDimensionsTL, glw_GetTextLengthTL, glw_GetTimeTL, glw_GetWindowDimensionsTL, glw_htonl2TL, glw_LoadFontFaces, glw_ntohl2TL, glw_OpenFontTL, glw_PutImageTL, glw_ResizeWindowTL, glw_Server, glw_SetBackgroundTL, glw_SetColorTL, glw_SetPointerTL, glw_SetWindowDimensionsTL, glw_SetWindowTransparencyTL, glw_SleepTL, glw_StartMouseTrackingTL, glw_StdWindowProc, glw_StopMouseTrackingTL, glw_TimerCancelTL, glw_TimerStartTL, glw_UnloadFontFaces, gui_CleanUp, gui_Init, list_CreateList, list_DeleteList, list_GetNodeData, list_GetNodeHead, mem_trace_report, net_GetPort, NULL, sCommandShow, sInstance, TAG_DONE, u32, user32_DLL, WindowClass, workDC, and wv.


Variable Documentation

int buffsizeX [static]
 

Definition at line 156 of file Glw.c.

Referenced by glw_ClearWindowTL, glw_GetScreenDimensionsTL, glw_OpenWindowTL, glw_StdWindowProc, and WinMain.

int buffsizeY [static]
 

Definition at line 156 of file Glw.c.

Referenced by glw_ClearWindowTL, glw_GetScreenDimensionsTL, glw_OpenWindowTL, glw_StdWindowProc, and WinMain.

u32(* call_vector[GLW_FUNC_DONE-GLW_FUNCBASE+1])(tag *) [static]
 

Definition at line 152 of file Glw.c.

Referenced by glw_CallTL, and WinMain.

List_t* fontfacelist [static]
 

Definition at line 160 of file Glw.c.

List_t* fontlist [static]
 

Definition at line 161 of file Glw.c.

int quit = 0 [static]
 

Definition at line 155 of file Glw.c.

Referenced by glw_Server.

int sCommandShow [static]
 

Definition at line 159 of file Glw.c.

Referenced by glw_OpenWindowTL, and WinMain.

HINSTANCE sInstance [static]
 

Definition at line 163 of file Glw.c.

Referenced by glw_OpenWindowTL, and WinMain.

HMODULE user32_DLL [static]
 

Definition at line 164 of file Glw.c.

Referenced by glw_WindowTransparent, and WinMain.

WNDCLASSEX WindowClass [static]
 

Definition at line 158 of file Glw.c.

Referenced by WinMain.

List_t* windowlist [static]
 

Definition at line 157 of file Glw.c.

HDC workDC = NULL [static]
 

Definition at line 167 of file Glw.c.

Referenced by glw_GetTextLengthTL, and WinMain.

int wv [static]
 

Definition at line 162 of file Glw.c.

Referenced by glw_PutImageTL, and WinMain.


Generated on Tue Jan 7 12:12:12 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002