Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS (WIN) Kernel - Internal - Data.h
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(TGS__WIN_KERNEL_INTERNAL_DATA_H)
#define TGS__WIN_KERNEL_INTERNAL_DATA_H
#pragma once

#if !defined(TGS_PLATFORM_KERNEL_INTERNAL_H)
#error This file should not be included directly - use the correct platform include wrapper
#endif


/* == Kernel ============================================================================================================================================================ */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Private Constants                                                                                                                                                     */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

enum { KTgKN_MAX_TITLE                      = 256 };


/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Private Data                                                                                                                                                          */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

TgEXTN TgMS_HINSTANCE                       g_hInstance;
TgEXTN TgMS_HWND                            g_hWnd;

TgEXTN TgCHAR                               g_szKN_ExeTitle[KTgKN_MAX_TITLE];
TgEXTN TgCHAR                               g_szKN_ClassName[KTgKN_MAX_TITLE];
TgEXTN P_TgVOID                             g_pfnKN_WndProc;
TgEXTN TgSINT32                             g_iKN_Display_W;
TgEXTN TgSINT32                             g_iKN_Display_H;
TgEXTN TgSINT32                             g_iKN_Window_X0;
TgEXTN TgSINT32                             g_iKN_Window_Y0;
TgEXTN TgSINT32                             g_iKN_Window_X1;
TgEXTN TgSINT32                             g_iKN_Window_Y1;
TgEXTN TgSINT32                             g_iKN_Window_PadX;
TgEXTN TgSINT32                             g_iKN_Window_PadY;
TgEXTN TgUINT32                             g_uiKN_Window_Style;
TgEXTN TgBOOL                               g_bKN_Minimized;
TgEXTN TgBOOL                               g_bKN_Maximized;
TgEXTN TgBOOL                               g_bKN_FullScreen;
TgEXTN TgBOOL                               g_bKN_FullScreen_Lock;
TgEXTN TgBOOL                               g_bKN_WindowSize_Fixed;
TgEXTN TgBOOL                               g_bKN_WindowSize_Lock;
TgEXTN TgBOOL                               g_bKN_MuteInBackground;
TgEXTN TgBOOL                               g_bKN_RunInBackground;
TgEXTN TgBOOL                               g_bKN_HasGDIMenu;
TgEXTN TgBOOL                               g_bKN_ClearDisplay;
TgEXTN TgBOOL                               g_bKN_PauseOnSize;
TgEXTN TgSINT32                             g_bKN_Monitor_Index;
TgEXTN TgBOOL                               g_bKN_Monitor_Portrait;

TgEXTN TgVOID                               (*g_pfnKN_GUI_Keyboard_Handler)( TgMS_HWND, TgUINT32, TgUINTPTR, TgSINTPTR );
TgEXTN TgVOID                               (*g_pfnKN_GUI_Mouse_Handler)( TgMS_HWND, TgUINT32, TgUINTPTR, TgSINTPTR );

TgEXTN TgVOID                               (*g_pfnDevice_Change_Check)( C_TgSINT32, C_TgSINT32, C_TgSINT32);
TgEXTN TgVOID                               (*g_pfnQuery_Render_Display_Rect)( P_TgSINT32, P_TgSINT32, C_TgSINT32, C_TgBOOL );
TgEXTN TgVOID                               (*g_pfnQuery_Render_Display_Min_Rect)( P_TgSINT32, P_TgSINT32, C_TgSINT32, C_TgBOOL );
TgEXTN TgVOID                               (*g_pfnQuery_Render_Display_Max_Rect)( P_TgSINT32, P_TgSINT32, C_TgSINT32, C_TgBOOL );
TgEXTN TgVOID                               (*g_pfnQuery_Render_Select_Rect)( P_TgSINT32, P_TgSINT32, C_TgSINT32, C_TgBOOL );
TgEXTN TgSINT32                             (*g_pfnQuery_Monitor_Index)( TgVOID );


/* ====================================================================================================================================================================== */
#endif