mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
cppkore uses string/wstring as StringBase while we use std::string/std::wstring as string/wstring. Changed all types in cppkore to String/WString instead.
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <cstdint>
|
|
#include "StringBase.h"
|
|
#include "DrawingBase.h"
|
|
#include "ListViewItem.h"
|
|
#include "ListViewItemStates.h"
|
|
|
|
namespace Forms
|
|
{
|
|
// This class contains the information a user needs to paint ListView sub items.
|
|
class DrawListViewSubItemEventArgs
|
|
{
|
|
public:
|
|
DrawListViewSubItemEventArgs(HDC Dc, const String& Text, const ListViewItemStyle Style, Drawing::Rectangle Bounds, int32_t ItemIndex, int32_t SubItemIndex, ListViewItemStates State);
|
|
~DrawListViewSubItemEventArgs() = default;
|
|
|
|
// Gets the text of the item to draw.
|
|
const String Text;
|
|
// Gets the style of the item to draw.
|
|
const ListViewItemStyle Style;
|
|
// Gets the state of the item to draw.
|
|
const ListViewItemStates State;
|
|
// Gets the bounds of the item to draw.
|
|
const Drawing::Rectangle Bounds;
|
|
// The index of the item to draw.
|
|
const int32_t ItemIndex;
|
|
// The sub item index to draw.
|
|
const int32_t SubItemIndex;
|
|
|
|
// Whether or not the system draws the item.
|
|
bool DrawDefault;
|
|
|
|
// The graphics instance used to paint this item.
|
|
std::unique_ptr<Drawing::Graphics> Graphics;
|
|
};
|
|
} |