#ifndef _XPANTILTBUTTON_H
#define _XPANTILTBUTTON_H

#include <Vk/VkComponent.h>
#include "IviewDeviceGrabber.h"


class PanTiltButton : public IviewDeviceGrabber, public VkComponent
{
  public:
  
  PanTiltButton(const char *name, Widget parent, 
		IviewDevice device,
		IviewControl *control,
		IviewMonitor *monitor);

  ~PanTiltButton();
  
  const char *className()
  {
    return "PanTiltButton";
  }
  
  Widget button()
  {
    return _button;
  }
  
  protected:

  Widget _button;

  Pixel _unusedBackground, _unusedForeground;
  Pixel _usedBackground, _usedForeground;
  Pixel _externUsedBackground, _externUsedForeground;  

  virtual int displayIviewDeviceState(State state);
};



#endif
