Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
00001 /******************************************************************************** 00002 * * 00003 * P i c k e r B u t t o n * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2001,2006 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU Lesser General Public * 00010 * License as published by the Free Software Foundation; either * 00011 * version 2.1 of the License, or (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00016 * Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public * 00019 * License along with this library; if not, write to the Free Software * 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * 00021 ********************************************************************************* 00022 * $Id: FXPicker.h,v 1.10 2006/01/22 17:58:07 fox Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXPICKER_H 00025 #define FXPICKER_H 00026 00027 #ifndef FXBUTTON_H 00028 #include "FXButton.h" 00029 #endif 00030 00031 namespace FX { 00032 00033 00034 /** 00035 * A picker button allows you to identify an arbitrary 00036 * location on the screen. 00037 */ 00038 class FXAPI FXPicker : public FXButton { 00039 FXDECLARE(FXPicker) 00040 protected: 00041 FXPicker(){} 00042 private: 00043 FXPicker(const FXPicker&); 00044 FXPicker& operator=(const FXPicker&); 00045 public: 00046 long onMotion(FXObject*,FXSelector,void*); 00047 long onLeftBtnPress(FXObject*,FXSelector,void*); 00048 long onLeftBtnRelease(FXObject*,FXSelector,void*); 00049 long onEnter(FXObject*,FXSelector,void*); 00050 long onLeave(FXObject*,FXSelector,void*); 00051 public: 00052 FXPicker(FXComposite* p,const FXString& text,FXIcon* ic=NULL,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=BUTTON_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); 00053 }; 00054 00055 } 00056 00057 #endif
Copyright © 1997-2005 Jeroen van der Zijp |