libInit.cc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 26 Nov 2016 21:09:32 +0000
branchjv
changeset 7719 c2f802dd340a
parent 7541 39940e2446a5
child 7854 295325696e0d
permissions -rw-r--r--
XFT: Forbid XFT rendering on bitmaps (depth-1 pixmaps) In theory it could work if XFT would just turn gray into either black or white. But XFT doesn't do it and simply draw nothing without failing in any way. To prevent this silent failures, forbid drawing XFT onto bitmaps (depth-1 pixmaps). After all, the while point of XFT is to use anti-aliased fonts.

/*
 * $Header$
 *
 * DO NOT EDIT
 * automagically generated from the projectDefinition: stx_libview.
 */
#define __INDIRECTVMINITCALLS__
#include <stc.h>

#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
#endif

#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
DLL_EXPORT void _libstx_libview_Init() INIT_TEXT_SECTION;
DLL_EXPORT void _libstx_libview_InitDefinition() INIT_TEXT_SECTION;
#endif

extern void _AbstractBackground_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _AbstractBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Color_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Colormap_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Controller_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Cursor_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _DeviceHandle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _DisplayTransform_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Event_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _FillStyle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _FontDescription_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GraphicsContext_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GraphicsDevice_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GraphicsMedium_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ImageReader_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _KeyboardForwarder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _KeyboardMap_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ResourcePack_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _WindowGroup_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _WindowSensor_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _stx_137libview_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _BeveledBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _BitmapFillStyle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _BitmapFont_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Border_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ColorPalette_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _CompoundFont_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth16Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth1Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth24Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth2Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth32Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth48Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth4Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth64Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Depth8Image_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _DeviceGraphicsContext_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _DisplaySurface_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Font_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _Form_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GradientBackground_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GradientFillStyle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _HostGraphicsDevice_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ImageBackground_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _MacButtonBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _NoBackground_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _OrientedFillStyle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _RoundButtonBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ScaleTransform_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SimpleBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SolidBackground_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SolidFillStyle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SynchronousWindowSensor_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _TranslationTransform_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _TranslucentColor_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ViewStyle_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _WindowEvent_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _DeviceWorkstation_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _DisplayRootView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _FixedPalette_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ImageMask_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _MacFlatButtonBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _MappedPalette_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _RoundedBorder_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _SimpleView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _WidgetEvent_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _WindowingTransformation_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _FixedPaletteWithAlpha_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _MonoMappedPalette_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ShadowView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _View_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _TopView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _PopUpView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _StandardSystemView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _ModalBox_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
#ifdef UNIX
extern void _XftFontDescription_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _XEmbedContainerView_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _XWorkstation_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GLXWorkstation_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
#endif /* UNIX */
#ifdef WIN32
extern void _WinWorkstation_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
#endif /* WIN32 */


void _libstx_libview_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libstx_libview__DFN", _libstx_libview_InitDefinition, "stx:libview");
    _stx_137libview_Init(pass,__pRT__,snd);

__END_PACKAGE__();
}

void _libstx_libview_Init(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
__BEGIN_PACKAGE2__("libstx_libview", _libstx_libview_Init, "stx:libview");
_AbstractBackground_Init(pass,__pRT__,snd);
_AbstractBorder_Init(pass,__pRT__,snd);
_Color_Init(pass,__pRT__,snd);
_Colormap_Init(pass,__pRT__,snd);
_Controller_Init(pass,__pRT__,snd);
_Cursor_Init(pass,__pRT__,snd);
_DeviceHandle_Init(pass,__pRT__,snd);
_DisplayTransform_Init(pass,__pRT__,snd);
_Event_Init(pass,__pRT__,snd);
_FontDescription_Init(pass,__pRT__,snd);
_GraphicsContext_Init(pass,__pRT__,snd);
_GraphicsDevice_Init(pass,__pRT__,snd);
_GraphicsMedium_Init(pass,__pRT__,snd);
_Image_Init(pass,__pRT__,snd);
_ImageReader_Init(pass,__pRT__,snd);
_KeyboardForwarder_Init(pass,__pRT__,snd);
_KeyboardMap_Init(pass,__pRT__,snd);
_ResourcePack_Init(pass,__pRT__,snd);
_WindowGroup_Init(pass,__pRT__,snd);
_WindowSensor_Init(pass,__pRT__,snd);
_stx_137libview_Init(pass,__pRT__,snd);
_BeveledBorder_Init(pass,__pRT__,snd);
_BitmapFont_Init(pass,__pRT__,snd);
_Border_Init(pass,__pRT__,snd);
_ColorPalette_Init(pass,__pRT__,snd);
_CompoundFont_Init(pass,__pRT__,snd);
_Depth16Image_Init(pass,__pRT__,snd);
_Depth1Image_Init(pass,__pRT__,snd);
_Depth24Image_Init(pass,__pRT__,snd);
_Depth2Image_Init(pass,__pRT__,snd);
_Depth32Image_Init(pass,__pRT__,snd);
_Depth48Image_Init(pass,__pRT__,snd);
_Depth4Image_Init(pass,__pRT__,snd);
_Depth64Image_Init(pass,__pRT__,snd);
_Depth8Image_Init(pass,__pRT__,snd);
_DeviceGraphicsContext_Init(pass,__pRT__,snd);
_DisplaySurface_Init(pass,__pRT__,snd);
_Font_Init(pass,__pRT__,snd);
_Form_Init(pass,__pRT__,snd);
_GradientBackground_Init(pass,__pRT__,snd);
_HostGraphicsDevice_Init(pass,__pRT__,snd);
_ImageBackground_Init(pass,__pRT__,snd);
_MacButtonBorder_Init(pass,__pRT__,snd);
_NoBackground_Init(pass,__pRT__,snd);
_ScaleTransform_Init(pass,__pRT__,snd);
_SimpleBorder_Init(pass,__pRT__,snd);
_SolidBackground_Init(pass,__pRT__,snd);
_SynchronousWindowSensor_Init(pass,__pRT__,snd);
_ViewStyle_Init(pass,__pRT__,snd);
_WindowEvent_Init(pass,__pRT__,snd);
_DeviceWorkstation_Init(pass,__pRT__,snd);
_DisplayRootView_Init(pass,__pRT__,snd);
_ImageMask_Init(pass,__pRT__,snd);
_MacFlatButtonBorder_Init(pass,__pRT__,snd);
_MappedPalette_Init(pass,__pRT__,snd);
_RoundedBorder_Init(pass,__pRT__,snd);
_SimpleView_Init(pass,__pRT__,snd);
_WidgetEvent_Init(pass,__pRT__,snd);
_WindowingTransformation_Init(pass,__pRT__,snd);
_XGraphicsContext_Init(pass,__pRT__,snd);
_FixedPalette_Init(pass,__pRT__,snd);
_FixedPaletteWithAlpha_Init(pass,__pRT__,snd);
_MonoMappedPalette_Init(pass,__pRT__,snd);
_ShadowView_Init(pass,__pRT__,snd);
_View_Init(pass,__pRT__,snd);
_TopView_Init(pass,__pRT__,snd);
_PopUpView_Init(pass,__pRT__,snd);
_StandardSystemView_Init(pass,__pRT__,snd);
_ModalBox_Init(pass,__pRT__,snd);
#ifdef UNIX
_FcConstants_Init(pass,__pRT__,snd);
_FcPattern_Init(pass,__pRT__,snd);
_XftFontDescription_Init(pass,__pRT__,snd);
_XEmbedContainerView_Init(pass,__pRT__,snd);
_XWorkstation_Init(pass,__pRT__,snd);
_GLXWorkstation_Init(pass,__pRT__,snd);
#endif /* UNIX */
#ifdef WIN32
_WinWorkstation_Init(pass,__pRT__,snd);
#endif /* WIN32 */

_stx_137libview_extensions_Init(pass,__pRT__,snd);
__END_PACKAGE__();
}