LMMS
Loading...
Searching...
No Matches
swell.h File Reference
#include "swell-types.h"
#include "swell-functions.h"

Go to the source code of this file.

Macros

#define _WDL_SWELL_H_UTIL_DEFINED_
#define SWELL_POSTMESSAGE_INIT   SWELL_Internal_PostMessage_Init();
#define SWELL_POSTMESSAGE_DELEGATE_IMPL
#define SWELL_APPAPI_DELEGATE_IMPL
#define SWELL_CB_InsertString(hwnd, idx, pos, str)
#define SWELL_CB_AddString(hwnd, idx, str)
#define SWELL_CB_SetCurSel(hwnd, idx, val)
#define SWELL_CB_GetNumItems(hwnd, idx)
#define SWELL_CB_GetCurSel(hwnd, idx)
#define SWELL_CB_SetItemData(hwnd, idx, item, val)
#define SWELL_CB_GetItemData(hwnd, idx, item)
#define SWELL_CB_GetItemText(hwnd, idx, item, buf, bufsz)
#define SWELL_CB_Empty(hwnd, idx)
#define SWELL_CB_DeleteString(hwnd, idx, str)
#define SWELL_TB_SetPos(hwnd, idx, pos)
#define SWELL_TB_SetRange(hwnd, idx, low, hi)
#define SWELL_TB_GetPos(hwnd, idx)
#define SWELL_TB_SetTic(hwnd, idx, pos)
#define WDL_GDP_CTX   HDC
#define WDL_GDP_PEN   HPEN
#define WDL_GDP_BRUSH   HBRUSH
#define WDL_GDP_CreatePen(col, wid)
#define WDL_GDP_DeletePen(pen)
#define WDL_GDP_SetPen(ctx, pen)
#define WDL_GDP_SetBrush(ctx, brush)
#define WDL_GDP_CreateBrush(col)
#define WDL_GDP_DeleteBrush(brush)
#define WDL_GDP_FillRectWithBrush(hdc, r, br)
#define WDL_GDP_Rectangle(hdc, l, t, r, b)
#define WDL_GDP_Polygon(hdc, pts, n)
#define WDL_GDP_MoveToEx(hdc, x, y, op)
#define WDL_GDP_LineTo(hdc, x, y)
#define WDL_GDP_PutPixel(hdc, x, y, c)
#define WDL_GDP_PolyBezierTo(hdc, p, np)
#define SWELL_SyncCtxFrameBuffer(x)

Functions

BOOL SWELL_Internal_PostMessage (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
void SWELL_Internal_PMQ_ClearAllMessages (HWND hwnd)

Macro Definition Documentation

◆ _WDL_SWELL_H_UTIL_DEFINED_

#define _WDL_SWELL_H_UTIL_DEFINED_

◆ SWELL_APPAPI_DELEGATE_IMPL

#define SWELL_APPAPI_DELEGATE_IMPL
Value:
-(void *)swellGetAPPAPIFunc { \
void *SWELLAPI_GetFunc(const char *name); \
return (void*)SWELLAPI_GetFunc; \
}
static const char * name
Definition pugl.h:1582
void * SWELLAPI_GetFunc(const char *name)

◆ SWELL_CB_AddString

#define SWELL_CB_AddString ( hwnd,
idx,
str )
Value:
#define CB_ADDSTRING
RECT const char void HWND hwnd
Definition swell-functions.h:1066
#define SendDlgItemMessage(hwnd, idx, msg, wparam, lparam)
LONG_PTR LPARAM
Definition swell-types.h:170
typedef int(UZ_EXP MsgFn)()

◆ SWELL_CB_DeleteString

#define SWELL_CB_DeleteString ( hwnd,
idx,
str )
Value:
#define CB_DELETESTRING

◆ SWELL_CB_Empty

#define SWELL_CB_Empty ( hwnd,
idx )
Value:
#define CB_RESETCONTENT

◆ SWELL_CB_GetCurSel

#define SWELL_CB_GetCurSel ( hwnd,
idx )
Value:
#define CB_GETCURSEL

◆ SWELL_CB_GetItemData

#define SWELL_CB_GetItemData ( hwnd,
idx,
item )
Value:
#define CB_GETITEMDATA

◆ SWELL_CB_GetItemText

#define SWELL_CB_GetItemText ( hwnd,
idx,
item,
buf,
bufsz )
Value:
#define CB_GETLBTEXT

◆ SWELL_CB_GetNumItems

#define SWELL_CB_GetNumItems ( hwnd,
idx )
Value:
#define CB_GETCOUNT

◆ SWELL_CB_InsertString

#define SWELL_CB_InsertString ( hwnd,
idx,
pos,
str )
Value:
#define CB_INSERTSTRING

◆ SWELL_CB_SetCurSel

#define SWELL_CB_SetCurSel ( hwnd,
idx,
val )
Value:
int val
Definition jpeglib.h:956
#define CB_SETCURSEL
ULONG_PTR WPARAM
Definition swell-types.h:169

◆ SWELL_CB_SetItemData

#define SWELL_CB_SetItemData ( hwnd,
idx,
item,
val )
Value:
#define CB_SETITEMDATA

◆ SWELL_POSTMESSAGE_DELEGATE_IMPL

#define SWELL_POSTMESSAGE_DELEGATE_IMPL
Value:
-(bool)swellPostMessage:(HWND)dest msg:(int)message wp:(WPARAM)wParam lp:(LPARAM)lParam { \
return SWELL_Internal_PostMessage(dest,message,wParam,lParam); \
} \
-(void)swellPostMessageClearQ:(HWND)dest { \
SWELL_Internal_PMQ_ClearAllMessages(dest); \
} \
-(void)swellPostMessageTick:(id)sender { \
SWELL_MessageQueue_Flush(); \
}
static void message(int level, const char *fmt,...)
Definition adplugdb.cpp:120
const char * msg
Definition missing_descriptor.c:20
struct HWND__ * HWND
Definition swell-types.h:210
BOOL SWELL_Internal_PostMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition swell-wnd-generic.cpp:7661
return
Definition extract.c:2364
#define void
Definition unzip.h:396

◆ SWELL_POSTMESSAGE_INIT

#define SWELL_POSTMESSAGE_INIT   SWELL_Internal_PostMessage_Init();

◆ SWELL_SyncCtxFrameBuffer

#define SWELL_SyncCtxFrameBuffer ( x)

◆ SWELL_TB_GetPos

#define SWELL_TB_GetPos ( hwnd,
idx )
Value:
#define TBM_GETPOS

◆ SWELL_TB_SetPos

#define SWELL_TB_SetPos ( hwnd,
idx,
pos )
Value:
#define TBM_SETPOS
#define TRUE
Definition unzpriv.h:1295

◆ SWELL_TB_SetRange

#define SWELL_TB_SetRange ( hwnd,
idx,
low,
hi )
Value:
#define TBM_SETRANGE
#define MAKELONG(a, b)
Definition swell-types.h:86

◆ SWELL_TB_SetTic

#define SWELL_TB_SetTic ( hwnd,
idx,
pos )
Value:
#define TBM_SETTIC

◆ WDL_GDP_BRUSH

#define WDL_GDP_BRUSH   HBRUSH

◆ WDL_GDP_CreateBrush

#define WDL_GDP_CreateBrush ( col)
Value:
HBRUSH CreateSolidBrush(int col)
Definition swell-gdi-generic.cpp:114
#define WDL_GDP_BRUSH
Definition swell.h:125

◆ WDL_GDP_CreatePen

#define WDL_GDP_CreatePen ( col,
wid )
Value:
#define PS_SOLID
HPEN CreatePen(int attr, int wid, int col)
Definition swell-gdi-generic.cpp:109
#define WDL_GDP_PEN
Definition swell.h:124

◆ WDL_GDP_CTX

#define WDL_GDP_CTX   HDC

◆ WDL_GDP_DeleteBrush

#define WDL_GDP_DeleteBrush ( brush)
Value:
void DeleteObject(HGDIOBJ pen)
Definition swell-gdi-generic.cpp:173
struct HGDIOBJ__ * HGDIOBJ
Definition swell-types.h:269

◆ WDL_GDP_DeletePen

#define WDL_GDP_DeletePen ( pen)
Value:

◆ WDL_GDP_FillRectWithBrush

#define WDL_GDP_FillRectWithBrush ( hdc,
r,
br )
Value:
FillRect(hdc,r,(HBRUSH)(br))
#define FillRect
struct HGDIOBJ__ * HBRUSH
Definition swell-types.h:270
int r
Definition crypt.c:458

◆ WDL_GDP_LineTo

#define WDL_GDP_LineTo ( hdc,
x,
y )
Value:
LineTo(hdc,x,y)
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586
#define LineTo

◆ WDL_GDP_MoveToEx

#define WDL_GDP_MoveToEx ( hdc,
x,
y,
op )
Value:
MoveToEx(hdc,x,y,op)
void MoveToEx(HDC ctx, int x, int y, POINT *op)
Definition swell-gdi-generic.cpp:323

◆ WDL_GDP_PEN

#define WDL_GDP_PEN   HPEN

◆ WDL_GDP_PolyBezierTo

#define WDL_GDP_PolyBezierTo ( hdc,
p,
np )
Value:
PolyBezierTo(hdc,p,np)
void PolyBezierTo(HDC ctx, POINT *pts, int np)
Definition swell-gdi-generic.cpp:336
uch * p
Definition crypt.c:594

◆ WDL_GDP_Polygon

#define WDL_GDP_Polygon ( hdc,
pts,
n )
Value:
Polygon(hdc,pts,n)
#define Polygon(a, b, c)
int n
Definition crypt.c:458

◆ WDL_GDP_PutPixel

#define WDL_GDP_PutPixel ( hdc,
x,
y,
c )
Value:
SetPixel(hdc,x,y,c)
#define SetPixel
return c
Definition crypt.c:175

◆ WDL_GDP_Rectangle

#define WDL_GDP_Rectangle ( hdc,
l,
t,
r,
b )
Value:
Rectangle(hdc,l,t,r,b)
int * l
Definition inflate.c:1579
struct huft * t
Definition inflate.c:943
void Rectangle(HDC ctx, int l, int t, int r, int b)
Definition swell-gdi-generic.cpp:279
b
Definition crypt.c:628

◆ WDL_GDP_SetBrush

#define WDL_GDP_SetBrush ( ctx,
brush )
Value:
HGDIOBJ SelectObject(HDC ctx, HGDIOBJ pen)
Definition swell-gdi-generic.cpp:193

◆ WDL_GDP_SetPen

#define WDL_GDP_SetPen ( ctx,
pen )
Value:

Function Documentation

◆ SWELL_Internal_PMQ_ClearAllMessages()

void SWELL_Internal_PMQ_ClearAllMessages ( HWND hwnd)

◆ SWELL_Internal_PostMessage()

BOOL SWELL_Internal_PostMessage ( HWND hwnd,
UINT msg,
WPARAM wParam,
LPARAM lParam )