瓷砖视图项定位器类
More...
#include <STileViewItemLocator.h>
|
| | STileViewItemLocator (SWindow *owner, int nItemHei, int nItemWid, int nMarginSize=0) |
| | 构造函数
|
| |
| | STileViewItemLocator (SWindow *owner, LPCWSTR szItemHei, LPCWSTR szItemWid, SLayoutSize marginSize=SLayoutSize()) |
| | 构造函数
|
| |
| void | SetAdapter (ILvAdapter *pAdapter) OVERRIDE |
| | 设置适配器
|
| |
| void | OnDataSetChanged () OVERRIDE |
| | 数据集改变时调用
|
| |
| int | GetItemHeight (int iItem) SCONST OVERRIDE |
| | 获取指定项的高度
|
| |
| void | SetItemHeight (int iItem, int nHeight) OVERRIDE |
| | 设置指定项的高度
|
| |
| RECT | GetItemRect (int iItem) OVERRIDE |
| | 获取指定项的矩形区域(相对于TileView)
|
| |
| void | SetTileViewWidth (int width, BOOL bDpiAware) OVERRIDE |
| | 设置TileView的宽度(在TileView的OnSize中调用)
|
| |
| void | GetItemRowAndColIndex (int iItem, int *row, int *col) OVERRIDE |
| | 获取指定项的行和列索引
|
| |
| BOOL | IsLastInRow (int iItem) OVERRIDE |
| | 判断指定项是否为每行的最后一个元素
|
| |
| int | GetUpItem (int iItem) OVERRIDE |
| | 获取上一行同一列的元素索引
|
| |
| int | GetDownItem (int iItem) OVERRIDE |
| | 获取下一行同一列的元素索引
|
| |
| int | GetTotalHeight () OVERRIDE |
| | 获取总高度
|
| |
| int | Item2Position (int iItem) OVERRIDE |
| | 将项索引转换为位置
|
| |
| int | Position2Item (int position) OVERRIDE |
| | 将位置转换为项索引
|
| |
| int | GetScrollLineSize () SCONST OVERRIDE |
| | 获取滚动行大小
|
| |
| int | GetMarginSize () SCONST OVERRIDE |
| | 获取间距大小
|
| |
| int | SetScale (int scale) OVERRIDE |
| | 设置缩放比例
|
| |
| int | GetCountInRow () SCONST OVERRIDE |
| | 获取每行的项数量
|
| |
| int | GetItemLineHeight () SCONST OVERRIDE |
| | 获取项的行高
|
| |
| int | GetItemWidth () SCONST OVERRIDE |
| | 获取项的宽度
|
| |
| | TObjRefImpl () |
| | Constructor that initializes the reference count to 1.
|
| |
| virtual | ~TObjRefImpl () |
| | Virtual destructor.
|
| |
| long | AddRef () override |
| | Increments the reference count.
|
| |
| long | Release () override |
| | Decrements the reference count and deletes the object if the count reaches zero.
|
| |
| void | OnFinalRelease () override |
| | Deletes the object.
|
| |
瓷砖视图项定位器类
Definition at line 12 of file STileViewItemLocator.h.
◆ STileViewItemLocator() [1/2]
| SNSBEGIN STileViewItemLocator::STileViewItemLocator |
( |
SWindow * | owner, |
|
|
int | nItemHei, |
|
|
int | nItemWid, |
|
|
int | nMarginSize = 0 ) |
构造函数
- Parameters
-
| owner | 所属窗口对象指针 |
| nItemHei | 每个项的高度 |
| nItemWid | 每个项的宽度 |
| nMarginSize | 项之间的间距(默认为0) |
Definition at line 7 of file STileViewItemLocator.cpp.
◆ STileViewItemLocator() [2/2]
构造函数
- Parameters
-
| owner | 所属窗口对象指针 |
| szItemHei | 每个项的高度(字符串形式) |
| szItemWid | 每个项的宽度(字符串形式) |
| marginSize | 项之间的间距(默认为SLayoutSize()) |
Definition at line 17 of file STileViewItemLocator.cpp.
◆ GetCountInRow()
| int STileViewItemLocator::GetCountInRow |
( |
| ) |
|
◆ GetDownItem()
| int STileViewItemLocator::GetDownItem |
( |
int | iItem | ) |
|
◆ GetItemHeight()
| int STileViewItemLocator::GetItemHeight |
( |
int | iItem | ) |
|
◆ GetItemLineHeight()
| int STileViewItemLocator::GetItemLineHeight |
( |
| ) |
|
◆ GetItemRect()
| RECT STileViewItemLocator::GetItemRect |
( |
int | iItem | ) |
|
◆ GetItemRowAndColIndex()
| void STileViewItemLocator::GetItemRowAndColIndex |
( |
int | iItem, |
|
|
int * | row, |
|
|
int * | col ) |
◆ GetItemWidth()
| int STileViewItemLocator::GetItemWidth |
( |
| ) |
|
◆ GetMarginSize()
| int STileViewItemLocator::GetMarginSize |
( |
| ) |
|
◆ GetScrollLineSize()
| int STileViewItemLocator::GetScrollLineSize |
( |
| ) |
|
◆ GetTotalHeight()
| int STileViewItemLocator::GetTotalHeight |
( |
| ) |
|
◆ GetUpItem()
| int STileViewItemLocator::GetUpItem |
( |
int | iItem | ) |
|
◆ IsLastInRow()
| BOOL STileViewItemLocator::IsLastInRow |
( |
int | iItem | ) |
|
◆ Item2Position()
| int STileViewItemLocator::Item2Position |
( |
int | iItem | ) |
|
◆ OnDataSetChanged()
| void STileViewItemLocator::OnDataSetChanged |
( |
| ) |
|
|
inline |
◆ Position2Item()
| int STileViewItemLocator::Position2Item |
( |
int | position | ) |
|
◆ SetAdapter()
| void STileViewItemLocator::SetAdapter |
( |
ILvAdapter * | pAdapter | ) |
|
◆ SetItemHeight()
| void STileViewItemLocator::SetItemHeight |
( |
int | iItem, |
|
|
int | nHeight ) |
◆ SetScale()
| int STileViewItemLocator::SetScale |
( |
int | scale | ) |
|
◆ SetTileViewWidth()
| void STileViewItemLocator::SetTileViewWidth |
( |
int | width, |
|
|
BOOL | bDpiAware ) |
设置TileView的宽度(在TileView的OnSize中调用)
- Parameters
-
| width | TileView的宽度 |
| bDpiAware | 是否考虑DPI缩放 |
Definition at line 138 of file STileViewItemLocator.cpp.
◆ m_adapter
| SAutoRefPtr<ILvAdapter> STileViewItemLocator::m_adapter |
|
protected |
◆ m_nCountInRow
| int STileViewItemLocator::m_nCountInRow |
|
protected |
◆ m_nItemHeight
◆ m_nItemMargin
◆ m_nItemWidth
◆ m_nTileViewWidth
◆ m_pOwner
| SWindow* STileViewItemLocator::m_pOwner |
|
protected |
◆ m_scale
| int STileViewItemLocator::m_scale |
|
protected |
The documentation for this class was generated from the following files: