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
FXRbHeader.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 | /***********************************************************************
* 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: FXRbHeader.h 2190 2005-08-24 07:58:47Z lyle $
***********************************************************************/
#ifndef FXRBHEADER_H
#define FXRBHEADER_H
#define DECLARE_FXHEADERITEM_STUBS(klass) \
inline void klass ## _setText(klass* self,const FXString& text){ \
self->klass::setText(text); \
} \
inline void klass ## _setIcon(klass* self,FXIcon* icn){ \
self->klass::setIcon(icn); \
} \
inline FXint klass ## _getWidth(const klass* self,const FXHeader* header){ \
return self->klass::getWidth(header); \
} \
inline FXint klass ## _getHeight(const klass* self,const FXHeader* header){ \
return self->klass::getHeight(header); \
} \
inline void klass ## _create(klass* self){ \
self->klass::create(); \
} \
inline void klass ## _detach(klass* self){ \
self->klass::detach(); \
} \
inline void klass ## _destroy(klass* self){ \
self->klass::destroy(); \
}
#define IMPLEMENT_FXHEADERITEM_STUBS(cls) \
void cls::setText(const FXString& text){ \
FXRbCallVoidMethod(this,"setText",text); \
} \
void cls::setIcon(FXIcon* icn){ \
FXRbCallVoidMethod(this,"setIcon",icn); \
} \
FXint cls::getWidth(const FXHeader* header) const { \
return FXRbCallIntMethod(this,"getWidth",header); \
} \
FXint cls::getHeight(const FXHeader* header) const { \
return FXRbCallIntMethod(this,"getHeight",header); \
} \
void cls::create(){ \
FXRbCallVoidMethod(this,"create"); \
} \
void cls::detach(){ \
FXRbCallVoidMethod(this,"detach"); \
} \
void cls::destroy(){ \
FXRbCallVoidMethod(this,"destroy"); \
}
class FXRbHeaderItem : public FXHeaderItem {
FXDECLARE(FXRbHeaderItem)
protected:
FXRbHeaderItem(){}
#include "FXRbObjectVirtuals.h"
#include "FXRbHeaderItemVirtuals.h"
public:
// Is this header item owned by an FXHeader yet?
FXbool owned;
public:
/// Construct new item with given text, icon, size, and user-data
FXRbHeaderItem(const FXString& text,FXIcon* ic=NULL,FXint s=0,void* ptr=NULL) : FXHeaderItem(text,ic,s,ptr),owned(FALSE){}
// Mark dependencies for the GC
static void markfunc(FXHeaderItem* self);
// Destroy this object if it's not owned
static void freefunc(FXHeaderItem* self);
// Destructor
virtual ~FXRbHeaderItem(){
FXRbUnregisterRubyObj(this);
}
};
class FXRbHeader : public FXHeader {
FXDECLARE(FXRbHeader)
protected:
FXRbHeader(){}
#include "FXRbObjectVirtuals.h"
#include "FXRbIdVirtuals.h"
#include "FXRbDrawableVirtuals.h"
#include "FXRbWindowVirtuals.h"
public:
/// Construct new header control
FXRbHeader(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=HEADER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD) : FXHeader(p,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb){}
// Mark dependencies for the GC
static void markfunc(FXHeader* self);
// Unregister objects that this header owns and is about to destroy
static void unregisterOwnedObjects(FXHeader *pHeader);
// Destructor
virtual ~FXRbHeader(){
unregisterOwnedObjects(this);
FXRbUnregisterRubyObj(this);
}
};
#endif
|