2018-04-22 15:55:55 +00:00
|
|
|
//======== (C) Copyright 2002 Charles G. Cleveland All rights reserved. =========
|
|
|
|
//
|
|
|
|
// The copyright to the contents herein is the property of Charles G. Cleveland.
|
|
|
|
// The contents may be used and/or copied only with the written permission of
|
|
|
|
// Charles G. Cleveland, or in accordance with the terms and conditions stipulated in
|
|
|
|
// the agreement/contract under which the contents have been supplied.
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $Workfile: MarqueeComponent.h $
|
|
|
|
// $Date: 2002/08/16 02:28:55 $
|
|
|
|
//
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
// $Log: MarqueeComponent.h,v $
|
|
|
|
// Revision 1.3 2002/08/16 02:28:55 Flayra
|
|
|
|
// - Added document headers
|
|
|
|
//
|
|
|
|
//===============================================================================
|
|
|
|
#ifndef MARQUEECOMPONENT_H
|
|
|
|
#define MARQUEECOMPONENT_H
|
|
|
|
|
|
|
|
#include "VGUI_Panel.h"
|
2024-02-09 07:37:17 +00:00
|
|
|
//#include "GammaAwareComponent.h"
|
2018-04-22 15:55:55 +00:00
|
|
|
|
2024-02-09 07:37:17 +00:00
|
|
|
class MarqueeComponent : public vgui::Panel//, public GammaAwareComponent
|
2018-04-22 15:55:55 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
MarqueeComponent();
|
2024-02-09 07:37:17 +00:00
|
|
|
//virtual void NotifyGammaChange(float inGammaSlope);
|
2018-04-22 15:55:55 +00:00
|
|
|
void SetStartPos(int inX, int inY);
|
|
|
|
void SetEndPos(int inX, int inY);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void paint();
|
|
|
|
virtual void paintBackground();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void ResetDimensions();
|
|
|
|
int mX0, mY0;
|
|
|
|
int mX1, mY1;
|
|
|
|
|
2024-02-09 07:37:17 +00:00
|
|
|
//float mGammaSlope;
|
2018-04-22 15:55:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|