代码拉取完成,页面将自动刷新
//====== Copyright ?1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#ifndef SUBRECTIMAGE_H
#define SUBRECTIMAGE_H
#ifdef _WIN32
#pragma once
#endif
#include "Image.h"
#include <vgui/VGUI2.h>
//-----------------------------------------------------------------------------
// Purpose: Check box image
//-----------------------------------------------------------------------------
class CSubRectImage : public vgui2::Image
{
public:
CSubRectImage( const char *filename, bool hardwareFiltered, int subx, int suby, int subw, int subh );
virtual ~CSubRectImage();
void GetSize( int &wide, int &tall );
void GetContentSize( int &wide, int &tall );
void SetSize( int x, int y );
void SetPos( int x, int y );
void SetColor( Color col );
const char *GetName();
void Paint();
void ForceUpload();
vgui2::HTexture GetID();
bool IsValid();
private:
vgui2::HTexture _id;
int sub[ 4 ];
char *_filename;
int _pos[2];
int _wide,_tall;
Color _color;
bool _uploaded;
bool _valid;
bool _filtered;
};
#endif // SUBRECTIMAGE_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。