r5sdk/r5dev/thirdparty/cppnet/cppkore/DrawListViewSubItemEventArgs.h
Kawe Mazidjatari 04bee896be Fix string/wstring type conflict
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.
2022-05-21 21:51:35 +02:00

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;
};
}