Tree @a045fea (Download .tar.gz)
- ..
- FXMemoryBuffer.h
- FXRb4Splitter.h
- FXRb7Segment.h
- FXRbAccelTable.h
- FXRbApp.h
- FXRbAppVirtuals.h
- FXRbArrowButton.h
- FXRbBitmap.h
- FXRbBitmapFrame.h
- FXRbBitmapView.h
- FXRbBitmapVirtuals.h
- FXRbBMPIcon.h
- FXRbBMPImage.h
- FXRbButton.h
- FXRbCanvas.h
- FXRbCheckButton.h
- FXRbChoiceBox.h
- FXRbColorBar.h
- FXRbColorDialog.h
- FXRbColorList.h
- FXRbColorRing.h
- FXRbColorSelector.h
- FXRbColorWell.h
- FXRbColorWheel.h
- FXRbComboBox.h
- FXRbCommon.h
- FXRbComposite.h
- FXRbCURCursor.h
- FXRbCursor.h
- FXRbCursorVirtuals.h
- FXRbDataTarget.h
- FXRbDC.h
- FXRbDCPrint.h
- FXRbDCVirtuals.h
- FXRbDCWindow.h
- FXRbDebugTarget.h
- FXRbDelegator.h
- FXRbDial.h
- FXRbDialogBox.h
- FXRbDialogBoxVirtuals.h
- FXRbDict.h
- FXRbDirBox.h
- FXRbDirDialog.h
- FXRbDirList.h
- FXRbDirSelector.h
- FXRbDockBar.h
- FXRbDockBarVirtuals.h
- FXRbDockHandler.h
- FXRbDockSite.h
- FXRbDockSiteVirtuals.h
- FXRbDockTitle.h
- FXRbDocument.h
- FXRbDragCorner.h
- FXRbDrawable.h
- FXRbDrawableVirtuals.h
- FXRbDriveBox.h
- FXRbFileDialog.h
- FXRbFileDict.h
- FXRbFileDictVirtuals.h
- FXRbFileList.h
- FXRbFileSelector.h
- FXRbFoldingItemVirtuals.h
- FXRbFoldingList.h
- FXRbFoldingListVirtuals.h
- FXRbFont.h
- FXRbFontDialog.h
- FXRbFontSelector.h
- FXRbFontVirtuals.h
- FXRbFrame.h
- FXRbGIFCursor.h
- FXRbGIFIcon.h
- FXRbGIFImage.h
- FXRbGLCanvas.h
- FXRbGLCanvasVirtuals.h
- FXRbGLContext.h
- FXRbGLObject.h
- FXRbGLObjectVirtuals.h
- FXRbGLShape.h
- FXRbGLShapeVirtuals.h
- FXRbGLViewer.h
- FXRbGLViewerVirtuals.h
- FXRbGLVisual.h
- FXRbGradientBar.h
- FXRbGroupBox.h
- FXRbHeader.h
- FXRbHeaderItemVirtuals.h
- FXRbHorizontalFrame.h
- FXRbICOIcon.h
- FXRbICOImage.h
- FXRbIcon.h
- FXRbIconItemVirtuals.h
- FXRbIconList.h
- FXRbIconListVirtuals.h
- FXRbIconSource.h
- FXRbIconSourceVirtuals.h
- FXRbId.h
- FXRbIdVirtuals.h
- FXRbImage.h
- FXRbImageFrame.h
- FXRbImageView.h
- FXRbImageVirtuals.h
- FXRbInputDialog.h
- FXRbJPGIcon.h
- FXRbJPGImage.h
- FXRbKnob.h
- FXRbLabel.h
- FXRbList.h
- FXRbListBox.h
- FXRbListBoxVirtuals.h
- FXRbListItemVirtuals.h
- FXRbListVirtuals.h
- FXRbMainWindow.h
- FXRbMatrix.h
- FXRbMDIButton.h
- FXRbMDIChild.h
- FXRbMDIChildVirtuals.h
- FXRbMDIClient.h
- FXRbMDIClientVirtuals.h
- FXRbMenuBar.h
- FXRbMenuButton.h
- FXRbMenuCaption.h
- FXRbMenuCascade.h
- FXRbMenuCheck.h
- FXRbMenuCommand.h
- FXRbMenuPane.h
- FXRbMenuRadio.h
- FXRbMenuSeparator.h
- FXRbMenuTitle.h
- FXRbMessageBox.h
- FXRbObject.h
- FXRbObjectVirtuals.h
- FXRbObjRegistry.h
- FXRbOptionMenu.h
- FXRbPacker.h
- FXRbPCXIcon.h
- FXRbPCXImage.h
- FXRbPicker.h
- FXRbPNGIcon.h
- FXRbPNGImage.h
- FXRbPopup.h
- FXRbPopupVirtuals.h
- FXRbPPMIcon.h
- FXRbPPMImage.h
- FXRbPrintDialog.h
- FXRbProgressBar.h
- FXRbProgressDialog.h
- FXRbRadioButton.h
- FXRbRealSlider.h
- FXRbRealSpinner.h
- FXRbRealSpinnerVirtuals.h
- FXRbRecentFiles.h
- FXRbRegistry.h
- FXRbReplaceDialog.h
- FXRbRGBIcon.h
- FXRbRGBImage.h
- FXRbRootWindow.h
- FXRbRuler.h
- FXRbRulerView.h
- FXRbScintilla.h
- FXRbScrollArea.h
- FXRbScrollAreaVirtuals.h
- FXRbScrollBar.h
- FXRbScrollPane.h
- FXRbScrollWindow.h
- FXRbSearchDialog.h
- FXRbSeparator.h
- FXRbSettings.h
- FXRbShell.h
- FXRbShutter.h
- FXRbShutterVirtuals.h
- FXRbSlider.h
- FXRbSpinner.h
- FXRbSpinnerVirtuals.h
- FXRbSplashWindow.h
- FXRbSplitter.h
- FXRbSpring.h
- FXRbStatusBar.h
- FXRbStatusLine.h
- FXRbStream.h
- FXRbStreamVirtuals.h
- FXRbStringDict.h
- FXRbSwitcher.h
- FXRbTabBar.h
- FXRbTabBarVirtuals.h
- FXRbTabBook.h
- FXRbTabItem.h
- FXRbTable.h
- FXRbTableItemVirtuals.h
- FXRbTableVirtuals.h
- FXRbText.h
- FXRbTextField.h
- FXRbTextVirtuals.h
- FXRbTGAIcon.h
- FXRbTGAImage.h
- FXRbTIFIcon.h
- FXRbTIFImage.h
- FXRbToggleButton.h
- FXRbToolBar.h
- FXRbToolBarGrip.h
- FXRbToolBarShell.h
- FXRbToolBarTab.h
- FXRbToolTip.h
- FXRbTopWindow.h
- FXRbTopWindowVirtuals.h
- FXRbTranslator.h
- FXRbTranslatorVirtuals.h
- FXRbTreeItemVirtuals.h
- FXRbTreeList.h
- FXRbTreeListBox.h
- FXRbTreeListBoxVirtuals.h
- FXRbTreeListVirtuals.h
- FXRbTriStateButton.h
- FXRbVerticalFrame.h
- FXRbVisual.h
- FXRbWindow.h
- FXRbWindowVirtuals.h
- FXRbWizard.h
- FXRbXBMIcon.h
- FXRbXBMImage.h
- FXRbXPMIcon.h
- FXRbXPMImage.h
- FXRuby.h
- gvl_wrappers.h
- impl.h
FXRbBitmap.h @a045fea — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | /***********************************************************************
* FXRuby -- the Ruby language bindings for the FOX GUI toolkit.
* Copyright (c) 2001-2009 by Lyle Johnson. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* For further information please contact the author by e-mail
* at "[email protected]".
***********************************************************************/
/***********************************************************************
* $Id: FXRbBitmap.h 2335 2006-01-28 02:33:03Z lyle $
***********************************************************************/
#ifndef FXRBBITMAP_H
#define FXRBBITMAP_H
#define DECLARE_FXBITMAP_STUBS(cls) \
inline void cls ## _restore(cls* self){ \
self->cls::restore(); \
} \
inline void cls ## _render(cls* self){ \
self->cls::render(); \
} \
inline void cls ## _release(cls* self){ \
self->cls::release(); \
} \
inline bool cls ## _savePixels(const cls* self,FXStream& store){ \
return self->cls::savePixels(store); \
} \
inline bool cls ## _loadPixels(cls* self,FXStream& store){ \
return self->cls::loadPixels(store); \
} \
inline void cls ## _scale(cls* self,FXint w,FXint h){ \
self->cls::scale(w,h); \
} \
inline void cls ## _mirror(cls* self,FXbool horizontal,FXbool vertical){ \
self->cls::mirror(horizontal,vertical); \
} \
inline void cls ## _rotate(cls* self,FXint degrees){ \
self->cls::rotate(degrees); \
} \
inline void cls ## _crop(cls* self,FXint x,FXint y,FXint w,FXint h,FXbool color){ \
self->cls::crop(x,y,w,h,color); \
} \
inline void cls ## _fill(cls* self,FXbool color){ \
self->cls::fill(color); \
} \
inline void cls ## _setData(cls* self,FXuchar* pix,FXuint opts){ \
self->cls::setData(pix,opts); \
} \
inline void cls ## _setData(cls* self,FXuchar* pix,FXuint opts,FXint w,FXint h){ \
self->cls::setData(pix,opts,w,h); \
}
#define IMPLEMENT_FXBITMAP_STUBS(cls) \
void cls::restore(){ \
FXRbCallVoidMethod(this,"restore"); \
} \
void cls::render(){ \
FXRbCallVoidMethod(this,"render"); \
} \
void cls::release(){ \
FXRbCallVoidMethod(this,"release"); \
} \
bool cls::savePixels(FXStream& store) const { \
return FXRbCallBoolMethod(this,"savePixels",store); \
} \
bool cls::loadPixels(FXStream& store){ \
return FXRbCallBoolMethod(this,"loadPixels",store); \
} \
void cls::scale(FXint w,FXint h){ \
FXRbCallVoidMethod(this,"scale",w,h); \
} \
void cls::mirror(FXbool horizontal,FXbool vertical){ \
FXRbCallVoidMethod(this,"mirror",horizontal,vertical); \
} \
void cls::rotate(FXint degrees){ \
FXRbCallVoidMethod(this,"rotate",degrees); \
} \
void cls::crop(FXint x,FXint y,FXint w,FXint h,FXbool color){ \
FXRbCallVoidMethod(this,"crop",x,y,w,h,color); \
} \
void cls::fill(FXbool color){ \
FXRbCallVoidMethod(this,"fill",color); \
} \
void cls::setData(FXuchar* pix,FXuint opts){ \
FXRbCallVoidMethod(this,"setData",pix,opts); \
} \
void cls::setData(FXuchar* pix,FXuint opts,FXint w,FXint h){ \
FXRbCallVoidMethod(this,"setData",pix,opts,w,h); \
}
class FXRbBitmap : public FXBitmap {
FXDECLARE(FXRbBitmap)
protected:
FXRbBitmap(){}
#include "FXRbObjectVirtuals.h"
#include "FXRbIdVirtuals.h"
#include "FXRbDrawableVirtuals.h"
#include "FXRbBitmapVirtuals.h"
public:
/// Create an image
FXRbBitmap(FXApp* a,const void *pix=NULL,FXuint opts=0,FXint w=1,FXint h=1) : FXBitmap(a,pix,opts,w,h){
FXRbRegisterAppSensitiveObject(this);
}
// Mark dependencies for the GC
static void markfunc(FXBitmap* bitmap);
// Destructor
virtual ~FXRbBitmap(){
FXRbUnregisterRubyObj(this);
FXRbUnregisterAppSensitiveObject(this);
}
};
#endif
|