Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXBroadcast.h

Go to the documentation of this file.
00001 /*
00002  *  FXBroadcast.h
00003  *  Copyright (c) by Zed Shaw on Wed Sep 11 2002.
00004  */
00005 
00006 #ifndef FXBROADCAST_H
00007 #define FXBROADCAST_H
00008 
00009 #ifndef FXOBJECT_H
00010 #include <fox/FXObject.h>
00011 #endif
00012 #ifndef FXOBJECTLIST_H
00013 #include <fox/FXObjectList.h>
00014 #endif
00015 namespace FXEX {
00016 
00017 /**
00018  * Sends the same message, to multiple targets.
00019  */
00020 class FXAPI FXBroadcast : public FXObjectList, public FXObject {
00021   FXDECLARE(FXBroadcast)
00022 public:
00023   FXBroadcast() : FXObjectList(), FXObject() {}
00024 
00025   /// handle the default method - forward all messages to appended objects
00026   long onDefault(FXObject *sender, FXSelector selector, void *ptr);
00027   };
00028 
00029 }; // namespace FXEX
00030 #endif