Prima
view release on metacpan or search on metacpan
include/win32/win32guts.h view on Meta::CPAN
unsigned aptIcon : 1; // == kind_of( CIcon)
unsigned aptPrinter : 1; // == kind_of( CPrinter)
unsigned aptExtraFont : 1; // extra font styles ( angle, shear) has been applied
unsigned aptDCChangeLock : 1; // locks SelectObject() calls
unsigned aptEnabled : 1; // enabled flag
unsigned aptTextOpaque : 1; // gp text drawing flag
unsigned aptTextOutBaseline : 1; // gp text drawing flag
unsigned aptWinPosDetermined : 1; // 0 when size is set, but position is not
unsigned aptOnTop : 1; // HWND_TOPMOST is set
unsigned aptLayered : 1; // WS_EX_LAYERED
unsigned aptRepaintPending : 1; // for optLayered
unsigned aptMovePending : 1; // for optLayered
unsigned aptLayeredPaint : 1; // painting children of layered window
unsigned aptLayeredRequested : 1; // Prima wants layered
unsigned aptClipByChildren : 1; // cached clipping by children
unsigned aptIgnoreSizeMessages : 1; // during window recreation
unsigned aptGDIPlus : 1; // uses GDI+
unsigned aptWantWorldTransform : 1; // SetWorldTransform is wanted for text
unsigned aptUsedWorldTransform : 1; // SetWorldTransform(matrix) mode is on currently
unsigned aptCachedWorldTransform : 1; // SetWorldTransform doesn't need to be called repeatedly
} HandleOptions;
#define CLIPBOARD_MAIN 0
#define CLIPBOARD_DND 1
typedef struct _WinGuts
{
HINSTANCE instance; // application instance
int cmd_show; // run command state
int app_lock; // application lock count
int pointer_lock; // pointer lock count
DWORD main_thread_id; // Id of main thread
Point display_resolution; // screen resolution in ppi
char default_fixed_font [256];
char default_variable_font [256];
char default_system_font [256];
Font window_font; // window default font
Font menu_font; // menu default font
Font msg_font; // message default font
Font cap_font; // caption default font
BITMAPINFO display_bm_info; // display bpp & size
HWND desktop_window; // GetDesktopWindow() result
Bool insert_mode; // fake insert mode
Point icon_size_large;
Point icon_size_small;
Point pointer_size;
BYTE key_state[ 256]; // application key buffer state
BYTE empty_key_state[ 256];// just zeros
BYTE *current_key_state; // current virtual key buffer state
HKL key_layout; // key layout, most likely latin for Ctrl+Key mapping
NONCLIENTMETRICSW ncmData; // windows system data
List transp; // transparent controls list
int top_windows; // count of top-level windows in app
Bool sys_focus_disabled; // focus system disabled
Bool sys_focus_granted; // SetFocus() was called inside apc_widget_set_focused
Bool sys_focus_dialog; // system dialog is in action
UINT error_mode; // SetErrorMode() result
DWORD version; // GetVersion() cached result
Point cmDOUBLECLK; // cached SM_CxDOUBLECLK values
int mouse_timer; // is mouse timer started
Bool popup_active; // flag to avoid double popup activation
Bool pointer_invisible;
HWND console; // win32-bound console window
Bool dont_xlate_message; // one-time stopper to TranslateMessage() call
int utf8_prepend_0x202D; // newer windows do automatic bidi conversion, this is to cancel it
WCHAR * (*alloc_utf8_to_wchar_visual)(const char*,int,int*);
ULONG_PTR gdiplus_token; // GDI+ handle
Handle clipboards[2];
Bool ole_initialized;
void* dnd_data_sender; // IDropTarget.DragEnter.DataObject dnd storage object
void* dnd_data_receiver; // CLIPBOARD_DND storage object
Bool dnd_inside_event; // to distinguish whether the clipboard is read-only or not
Bool dnd_default_cursors;
void* drag_source; // not null if dragging
Handle drag_source_widget; //
Handle drag_target; // last successful drop
WORD language_id; // default shaping language
char language_descr[32];
Bool application_stop_signal;
long apc_error;
Bool wc2mb_is_fragile; // cannot properly process current ACP
int get_pixel_needs_emulation; // 0 - not tried, -1 - no, 1 - yes
HDC get_pixel_dc_src, get_pixel_dc_dst;
unsigned long program_start_ts ; // epoch
unsigned int mouse_double_click_delay; // ms
unsigned long last_mouse_click_ts; // (time - epoch) * 1000 + msec
HWND last_mouse_click_source;
LPARAM last_mouse_click_position;
unsigned int last_mouse_click_number;
Byte last_mouse_click_fingerprint; // kmXXX | mbXXX
} WinGuts, *PWinGuts;
typedef struct _WindowData
{
int border_icons;
int border_style;
Point hidden_pos;
Point hidden_size;
int state;
Handle old_foc;
HWND old_active;
PHash effects;
WINDOWPLACEMENT fs_saved_placement;
} WindowData;
typedef struct _TimerData
{
int timeout;
} TimerData;
typedef struct _MenuItemData
{
int saved_dc;
} MenuItemData;
typedef struct _FileData
{
intptr_t object;
int type;
( run in 0.553 second using v1.01-cache-2.11-cpan-364913b4093 )