LMMS
Loading...
Searching...
No Matches
swell-functions.h File Reference

Go to the source code of this file.

Macros

#define SWELL_API_DEFINE(ret, func, parms)
#define timeGetTime()
#define PtInRect(r, p)
#define GetWindowText(hwnd, text, textlen)
#define SetWindowText(hwnd, text)
#define GetActiveWindow()
#define SetActiveWindow(x)
#define ListView_SetItemCountEx(list, cnt, flags)
#define ImageList_Create(x, y, a, b, c)
#define InsertMenu   SWELL_InsertMenu
#define LoadMenu(hinst, resid)
#define DialogBox(hinst, resid, par, dlgproc)
#define DialogBoxParam(hinst, resid, par, dlgproc, param)
#define CreateDialog(hinst, resid, par, dlgproc)
#define CreateDialogParam(hinst, resid, par, dlgproc, param)
#define SendDlgItemMessage(hwnd, idx, msg, wparam, lparam)
#define LoadCursor(a, x)
#define SetCursor(x)
#define GetCursor   SWELL_GetCursor
#define ShowCursor   SWELL_ShowCursor
#define SetCursorPos   SWELL_SetCursorPos
#define ScrollWindowEx(a, b, c, d, e, f, g, h)
#define _beginthreadex(a, b, c, d, e, f)
#define DestroyIcon(x)
#define DrawText   SWELL_DrawText
#define FillRect   SWELL_FillRect
#define LineTo   SWELL_LineTo
#define SetPixel   SWELL_SetPixel
#define Polygon(a, b, c)
#define SWELL_EnableMetal(hwnd, x)

Functions

 SWELL_API_DEFINE (char *, BrowseForFiles,(const char *text, const char *initialdir, const char *initialfile, bool allowmul, const char *extlist)) SWELL_API_DEFINE(bool
 SWELL_API_DEFINE (BOOL, EnumWindows,(BOOL(*proc)(HWND, LPARAM), LPARAM lp)) SWELL_API_DEFINE(HANDLE
 SWELL_API_DEFINE (HFONT, CreateFont,(int lfHeight, int lfWidth, int lfEscapement, int lfOrientation, int lfWeight, char lfItalic, char lfUnderline, char lfStrikeOut, char lfCharSet, char lfOutPrecision, char lfClipPrecision, char lfQuality, char lfPitchAndFamily, const char *lfFaceName)) SWELL_API_DEFINE(void

Variables

 BrowseForSaveFile
const char * text
const char const char * initialdir
const char const char const char * initialfile
const char const char const char const char * extlist
const char const char const char const char char * fn
 CreateThread
voidTA
void DWORD stackSize
void DWORD DWORD(* ThreadProc )(LPVOID)
void DWORD DWORD LPVOID parm
void DWORD DWORD LPVOID DWORD cf
 SWELL_InitiateDragDrop
 HWND
RECTsrcrect
RECT const char * srcfn
RECT const char void(* callback )(const char *droppath))) SWELL_API_DEFINE(BOOL
RECT const char void EnumChildWindows
RECT const char void HWND hwnd
RECT const char void HWND BOOL(* cwEnumFunc )(HWND, LPARAM)

Macro Definition Documentation

◆ _beginthreadex

#define _beginthreadex ( a,
b,
c,
d,
e,
f )
Value:
((UINT_PTR)CreateThread(a,b,(unsigned (*)(LPVOID))(c),d,e,(DWORD*)(f)))
uint8_t a
Definition Spc_Cpu.h:141
* e
Definition inflate.c:1404
unsigned d
Definition inflate.c:940
unsigned f
Definition inflate.c:1572
CreateThread
Definition swell-functions.h:807
uintptr_t UINT_PTR
Definition swell-types.h:43
unsigned int DWORD
Definition swell-types.h:164
void * LPVOID
Definition swell-types.h:174
return c
Definition crypt.c:175
b
Definition crypt.c:628

◆ CreateDialog

#define CreateDialog ( hinst,
resid,
par,
dlgproc )
Value:
SWELL_DialogResourceIndex * SWELL_curmodule_dialogresource_head
Definition swell-dlg-generic.cpp:376
HWND SWELL_CreateDialog(SWELL_DialogResourceIndex *reshead, const char *resid, HWND parent, DLGPROC dlgproc, LPARAM param)
Definition swell-dlg-generic.cpp:272

◆ CreateDialogParam

#define CreateDialogParam ( hinst,
resid,
par,
dlgproc,
param )
Value:

◆ DestroyIcon

#define DestroyIcon ( x)
Value:
unsigned x[BMAX+1]
Definition inflate.c:1586
void DeleteObject(HGDIOBJ pen)
Definition swell-gdi-generic.cpp:173

◆ DialogBox

#define DialogBox ( hinst,
resid,
par,
dlgproc )
Value:
int SWELL_DialogBox(SWELL_DialogResourceIndex *reshead, const char *resid, HWND parent, DLGPROC dlgproc, LPARAM param)
Definition swell-dlg-generic.cpp:150

◆ DialogBoxParam

#define DialogBoxParam ( hinst,
resid,
par,
dlgproc,
param )
Value:

◆ DrawText

#define DrawText   SWELL_DrawText

◆ FillRect

#define FillRect   SWELL_FillRect

◆ GetActiveWindow

#define GetActiveWindow ( )
Value:
HWND GetForegroundWindow()
Definition swell-wnd-generic.cpp:567

◆ GetCursor

#define GetCursor   SWELL_GetCursor

◆ GetWindowText

#define GetWindowText ( hwnd,
text,
textlen )
Value:
const char * text
Definition swell-functions.h:167
RECT const char void HWND hwnd
Definition swell-functions.h:1066
BOOL GetDlgItemText(HWND hwnd, int idx, char *text, int textlen)
Definition swell-wnd-generic.cpp:984

◆ ImageList_Create

#define ImageList_Create ( x,
y,
a,
b,
c )
Value:
HIMAGELIST ImageList_CreateEx()
Definition swell-gdi-generic.cpp:581

◆ InsertMenu

#define InsertMenu   SWELL_InsertMenu

◆ LineTo

#define LineTo   SWELL_LineTo

◆ ListView_SetItemCountEx

#define ListView_SetItemCountEx ( list,
cnt,
flags )
Value:
void ListView_SetItemCount(HWND h, int cnt)
Definition swell-wnd-generic.cpp:6624

◆ LoadCursor

#define LoadCursor ( a,
x )
Value:
HCURSOR SWELL_LoadCursor(const char *_idx)
Definition swell-generic-headless.cpp:289

◆ LoadMenu

#define LoadMenu ( hinst,
resid )
Value:
HMENU SWELL_LoadMenu(SWELL_MenuResourceIndex *head, const char *resid)
Definition swell-menu-generic.cpp:1306
SWELL_MenuResourceIndex * SWELL_curmodule_menuresource_head
Definition swell-menu-generic.cpp:1293

◆ Polygon

#define Polygon ( a,
b,
c )
Value:
SWELL_Polygon(a,b,c)

◆ PtInRect

#define PtInRect ( r,
p )
Value:
BOOL SWELL_PtInRect(const RECT *r, POINT p)
Definition swell.cpp:106
uch * p
Definition crypt.c:594
int r
Definition crypt.c:458

◆ ScrollWindowEx

#define ScrollWindowEx ( a,
b,
c,
d,
e,
f,
g,
h )
Value:
BOOL ScrollWindow(HWND hwnd, int xamt, int yamt, const RECT *lpRect, const RECT *lpClipRect)
Definition swell-wnd-generic.cpp:7754

◆ SendDlgItemMessage

#define SendDlgItemMessage ( hwnd,
idx,
msg,
wparam,
lparam )
Value:
SendMessage(GetDlgItem(hwnd,idx),msg,wparam,lparam)
const char * msg
Definition missing_descriptor.c:20
LRESULT SendMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition swell-wnd-generic.cpp:315
HWND GetDlgItem(HWND hwnd, int idx)
Definition swell-wnd-generic.cpp:153

◆ SetActiveWindow

#define SetActiveWindow ( x)
Value:
void SetForegroundWindow(HWND hwnd)
Definition swell-wnd-generic.cpp:489

◆ SetCursor

#define SetCursor ( x)
Value:
void SWELL_SetCursor(HCURSOR curs)
Definition swell-generic-headless.cpp:250

◆ SetCursorPos

#define SetCursorPos   SWELL_SetCursorPos

◆ SetPixel

#define SetPixel   SWELL_SetPixel

◆ SetWindowText

#define SetWindowText ( hwnd,
text )
Value:
BOOL SetDlgItemText(HWND hwnd, int idx, const char *text)
Definition swell-wnd-generic.cpp:962

◆ ShowCursor

#define ShowCursor   SWELL_ShowCursor

◆ SWELL_API_DEFINE

#define SWELL_API_DEFINE ( ret,
func,
parms )
Value:
ret func parms ;

◆ SWELL_EnableMetal

#define SWELL_EnableMetal ( hwnd,
x )
Value:
(void)(x)
#define void
Definition unzip.h:396

◆ timeGetTime

#define timeGetTime ( )
Value:
DWORD GetTickCount()
Definition swell.cpp:68

Function Documentation

◆ SWELL_API_DEFINE() [1/3]

SWELL_API_DEFINE ( BOOL ,
EnumWindows ,
(BOOL(*proc)(HWND, LPARAM), LPARAM lp)  )

◆ SWELL_API_DEFINE() [2/3]

SWELL_API_DEFINE ( char * ,
BrowseForFiles ,
(const char *text, const char *initialdir, const char *initialfile, bool allowmul, const char *extlist)  )

◆ SWELL_API_DEFINE() [3/3]

SWELL_API_DEFINE ( HFONT ,
CreateFont ,
(int lfHeight, int lfWidth, int lfEscapement, int lfOrientation, int lfWeight, char lfItalic, char lfUnderline, char lfStrikeOut, char lfCharSet, char lfOutPrecision, char lfClipPrecision, char lfQuality, char lfPitchAndFamily, const char *lfFaceName)  )

Variable Documentation

◆ BrowseForSaveFile

BrowseForSaveFile

◆ callback

RECT const char void(* callback) (const char *droppath))) SWELL_API_DEFINE(BOOL ( const char * droppath)

◆ cf

◆ CreateThread

CreateThread

◆ cwEnumFunc

RECT const char void HWND BOOL(* cwEnumFunc) (HWND, LPARAM) ( HWND ,
LPARAM  )

◆ EnumChildWindows

RECT const char void EnumChildWindows

◆ extlist

const char const char const char const char* extlist

◆ fn

const char const char const char const char char* fn

◆ HWND

◆ hwnd

RECT const char void HWND hwnd

◆ initialdir

const char const char* initialdir

◆ initialfile

const char const char const char* initialfile

◆ parm

◆ srcfn

RECT const char* srcfn

◆ srcrect

RECT* srcrect

◆ stackSize

void DWORD stackSize

◆ SWELL_InitiateDragDrop

SWELL_InitiateDragDrop

◆ TA

void* TA

◆ text

const char* text

◆ ThreadProc

void DWORD DWORD(* ThreadProc) (LPVOID) ( LPVOID )