CMGDK r49-rc2
公有成员 | 公有属性 | 保护成员 | 保护属性
hgl::gui::TexLabel类参考

贴图标签 更多...

#include <TexLabel.H>

继承图,类hgl::gui::TexLabel
hgl::gui::ImageLabel< Texture2D > hgl::GUIObject hgl::EventObject hgl::VisualObject hgl::EnumObject hgl::Object hgl::_Object

所有成员的列表。

公有成员

 TexLabel ()
 TexLabel (float, float, Texture2D *t2d=NULL, bool=false)
 TexLabel (float, float, const wchar_t *)
 TexLabel (float, float, HAC *, const wchar_t *)
void SetSourceScope (int, int, int, int)
 设置贴图显示的源范围
void SetImage (Texture2D *, bool=false)
 指定图片指针
void SetImage (const wchar_t *fn)
 指定图片文件
void SetImage (HAC *hac, const wchar_t *fn)
 指定图片文件

公有属性

RectScope2f SourceScope
 显示源范围

保护成员

void DefaultDraw (GUIObject *)

保护属性

int SourceWidth
int SourceHeight

详细描述

贴图标签

TexLabel是一个显示Texture2D的控件,并提供各种显示控制方法


构造及析构函数文档

hgl::gui::TexLabel::TexLabel ( )

贴图标签

hgl::gui::TexLabel::TexLabel ( float  x,
float  y,
Texture2D tex = NULL,
bool  pi = false 
)

贴图标签

参数:
x,y显示坐标
pi是否放弃不管,由TexLabel删除(默认false)
hgl::gui::TexLabel::TexLabel ( float  x,
float  y,
const wchar_t *  filename 
)
hgl::gui::TexLabel::TexLabel ( float  x,
float  y,
HAC hac,
const wchar_t *  filename 
)

成员函数文档

void hgl::gui::TexLabel::DefaultDraw ( GUIObject go) [protected]
void hgl::gui::TexLabel::SetImage ( HAC hac,
const wchar_t *  fn 
) [inline, virtual]

指定图片文件

重载hgl::gui::ImageLabel< Texture2D >

void hgl::gui::TexLabel::SetImage ( const wchar_t *  fn) [inline, virtual]

指定图片文件

重载hgl::gui::ImageLabel< Texture2D >

void hgl::gui::TexLabel::SetImage ( Texture2D tex,
bool  pi = false 
) [virtual]

指定图片指针

重载hgl::gui::ImageLabel< Texture2D >

void hgl::gui::TexLabel::SetSourceScope ( int  l,
int  t,
int  w,
int  h 
)

设置贴图显示的源范围

设置图片显示源范围,即只显示指定部分

参数:
l,t左上角坐标(象素)
w,h宽高(象素)

成员数据文档

显示源范围


该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义