LMMS
Loading...
Searching...
No Matches
swell-internal.h File Reference
#include "../ptrlist.h"
#include "../wdlstring.h"
#include "../assocarray.h"

Go to the source code of this file.

Classes

class  SWELL_ListView_Row
struct  HTREEITEM__
struct  HWND__
struct  HMENU__
struct  HGDIOBJ__
struct  HDC__
struct  SWELL_HINSTANCE
struct  SWELL_InternalObjectHeader
struct  SWELL_InternalObjectHeader_Thread
struct  SWELL_InternalObjectHeader_Event
struct  SWELL_InternalObjectHeader_SocketEvent
struct  SWELL_InternalObjectHeader_File
struct  SWELL_InternalObjectHeader_NSTask
struct  SWELL_InternalObjectHeader_PID
struct  swell_colortheme

Macros

#define VALIDATE_HWND_LIST(list, par)
#define TYPE_PEN   1
#define TYPE_BRUSH   2
#define TYPE_FONT   3
#define TYPE_BITMAP   4
#define SWELL_GENERIC_THEMESIZEDEFS(f, fd)
#define SWELL_GENERIC_THEMEDEFS(f, fd)
#define __def_theme_ent(x, c)
#define __def_theme_ent_fb(x, c, fb)
#define SWELL_UI_SCALE(x)

Typedefs

typedef voidSWELL_OSWINDOW

Enumerations

enum  {
  INTERNAL_OBJECT_START = 0x1000001 , INTERNAL_OBJECT_THREAD , INTERNAL_OBJECT_EVENT , INTERNAL_OBJECT_FILE ,
  INTERNAL_OBJECT_EXTERNALSOCKET , INTERNAL_OBJECT_SOCKETEVENT , INTERNAL_OBJECT_NSTASK , INTERNAL_OBJECT_PID ,
  INTERNAL_OBJECT_END
}

Functions

LRESULT SwellDialogDefaultWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
HWND DialogBoxIsActive (void)
bool DestroyPopupMenus (void)
HWND ChildWindowFromPoint (HWND h, POINT p)
HWND GetFocusIncludeMenus ()
void SWELL_RunEvents ()
bool swell_isOSwindowmenu (SWELL_OSWINDOW osw)
void swell_on_toplevel_raise (SWELL_OSWINDOW wnd)
HWND swell_oswindow_to_hwnd (SWELL_OSWINDOW w)
void swell_oswindow_focus (HWND hwnd)
void swell_oswindow_update_style (HWND hwnd, LONG oldstyle)
void swell_oswindow_update_enable (HWND hwnd)
void swell_oswindow_update_text (HWND hwnd)
void swell_oswindow_begin_resize (SWELL_OSWINDOW wnd)
void swell_oswindow_resize (SWELL_OSWINDOW wnd, int reposflag, RECT f)
void swell_oswindow_postresize (HWND hwnd, RECT f)
void swell_oswindow_invalidate (HWND hwnd, const RECT *r)
void swell_oswindow_destroy (HWND hwnd)
void swell_oswindow_manage (HWND hwnd, bool wantfocus)
void swell_oswindow_updatetoscreen (HWND hwnd, RECT *rect)
HWND swell_window_wants_all_input ()
int swell_delegate_menu_message (HWND src, LPARAM lParam, int msg, bool screencoords)
void swell_dlg_destroyspare ()
int swell_is_app_inactive ()
HDC SWELL_CreateGfxContext (void *)
bool IsRightClickEmulateEnabled ()
void swell_scaling_init (bool no_auto_hidpi)
HFONT SWELL_GetDefaultFont (void)
static WDL_STATICFUNC_UNUSED int ext_valid_for_extlist (const char *thisext, const char *extlist)

Variables

bool swell_is_likely_capslock
const char * g_swell_appname
SWELL_OSWINDOW SWELL_focused_oswindow
HWND swell_captured_window
HWND SWELL_topwindows
int g_swell_ui_scale
swell_colortheme g_swell_ctheme
const char * g_swell_deffont_face

Macro Definition Documentation

◆ __def_theme_ent

#define __def_theme_ent ( x,
c )
Value:
int x;
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ __def_theme_ent_fb

#define __def_theme_ent_fb ( x,
c,
fb )
Value:
int x;

◆ SWELL_GENERIC_THEMEDEFS

#define SWELL_GENERIC_THEMEDEFS ( f,
fd )

◆ SWELL_GENERIC_THEMESIZEDEFS

#define SWELL_GENERIC_THEMESIZEDEFS ( f,
fd )
Value:
f(default_font_size, 12) \
f(menubar_height, 17) \
f(menubar_font_size, 13) \
f(menubar_spacing_width, 8) \
f(menubar_margin_width, 6) \
f(scrollbar_width, 14) \
f(smscrollbar_width, 16) \
f(scrollbar_min_thumb_height, 4) \
f(combo_height, 20) \
unsigned f
Definition inflate.c:1572

◆ SWELL_UI_SCALE

#define SWELL_UI_SCALE ( x)
Value:
int g_swell_ui_scale
Definition swell-gdi-generic.cpp:60

◆ TYPE_BITMAP

#define TYPE_BITMAP   4

◆ TYPE_BRUSH

#define TYPE_BRUSH   2

◆ TYPE_FONT

#define TYPE_FONT   3

◆ TYPE_PEN

#define TYPE_PEN   1

◆ VALIDATE_HWND_LIST

#define VALIDATE_HWND_LIST ( list,
par )
Value:
do { } while (0)

Typedef Documentation

◆ SWELL_OSWINDOW

typedef void* SWELL_OSWINDOW

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
INTERNAL_OBJECT_START 
INTERNAL_OBJECT_THREAD 
INTERNAL_OBJECT_EVENT 
INTERNAL_OBJECT_FILE 
INTERNAL_OBJECT_EXTERNALSOCKET 
INTERNAL_OBJECT_SOCKETEVENT 
INTERNAL_OBJECT_NSTASK 
INTERNAL_OBJECT_PID 
INTERNAL_OBJECT_END 

Function Documentation

◆ ChildWindowFromPoint()

HWND ChildWindowFromPoint ( HWND h,
POINT p )

◆ DestroyPopupMenus()

bool DestroyPopupMenus ( void )

◆ DialogBoxIsActive()

HWND DialogBoxIsActive ( void )

◆ ext_valid_for_extlist()

WDL_STATICFUNC_UNUSED int ext_valid_for_extlist ( const char * thisext,
const char * extlist )
static

◆ GetFocusIncludeMenus()

HWND GetFocusIncludeMenus ( )

◆ IsRightClickEmulateEnabled()

bool IsRightClickEmulateEnabled ( )

◆ SWELL_CreateGfxContext()

HDC SWELL_CreateGfxContext ( void * c)

◆ swell_delegate_menu_message()

int swell_delegate_menu_message ( HWND src,
LPARAM lParam,
int msg,
bool screencoords )

◆ swell_dlg_destroyspare()

void swell_dlg_destroyspare ( )

◆ SWELL_GetDefaultFont()

HFONT SWELL_GetDefaultFont ( void )

◆ swell_is_app_inactive()

int swell_is_app_inactive ( )

◆ swell_isOSwindowmenu()

bool swell_isOSwindowmenu ( SWELL_OSWINDOW osw)

◆ swell_on_toplevel_raise()

void swell_on_toplevel_raise ( SWELL_OSWINDOW wnd)

◆ swell_oswindow_begin_resize()

void swell_oswindow_begin_resize ( SWELL_OSWINDOW wnd)

◆ swell_oswindow_destroy()

void swell_oswindow_destroy ( HWND hwnd)

◆ swell_oswindow_focus()

void swell_oswindow_focus ( HWND hwnd)

◆ swell_oswindow_invalidate()

void swell_oswindow_invalidate ( HWND hwnd,
const RECT * r )

◆ swell_oswindow_manage()

void swell_oswindow_manage ( HWND hwnd,
bool wantfocus )

◆ swell_oswindow_postresize()

void swell_oswindow_postresize ( HWND hwnd,
RECT f )

◆ swell_oswindow_resize()

void swell_oswindow_resize ( SWELL_OSWINDOW wnd,
int reposflag,
RECT f )

◆ swell_oswindow_to_hwnd()

HWND swell_oswindow_to_hwnd ( SWELL_OSWINDOW w)

◆ swell_oswindow_update_enable()

void swell_oswindow_update_enable ( HWND hwnd)

◆ swell_oswindow_update_style()

void swell_oswindow_update_style ( HWND hwnd,
LONG oldstyle )

◆ swell_oswindow_update_text()

void swell_oswindow_update_text ( HWND hwnd)

◆ swell_oswindow_updatetoscreen()

void swell_oswindow_updatetoscreen ( HWND hwnd,
RECT * rect )

◆ SWELL_RunEvents()

void SWELL_RunEvents ( )

◆ swell_scaling_init()

void swell_scaling_init ( bool no_auto_hidpi)

◆ swell_window_wants_all_input()

HWND swell_window_wants_all_input ( )

◆ SwellDialogDefaultWindowProc()

LRESULT SwellDialogDefaultWindowProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )

Variable Documentation

◆ g_swell_appname

const char* g_swell_appname
extern

◆ g_swell_ctheme

swell_colortheme g_swell_ctheme
extern

◆ g_swell_deffont_face

const char* g_swell_deffont_face
extern

◆ g_swell_ui_scale

int g_swell_ui_scale
extern

◆ swell_captured_window

HWND swell_captured_window
extern

◆ SWELL_focused_oswindow

SWELL_OSWINDOW SWELL_focused_oswindow
extern

◆ swell_is_likely_capslock

bool swell_is_likely_capslock
extern

◆ SWELL_topwindows

HWND SWELL_topwindows
extern