Add Roboto font, misc icons and text things

This commit is contained in:
elasota
2019-12-23 17:43:10 -05:00
parent e089cabf98
commit 7ab4c8960d
120 changed files with 2995 additions and 743 deletions

View File

@@ -1,11 +1,11 @@
#pragma once
#include <stdint.h>
#include "PixelFormat.h"
#include "GpPixelFormat.h"
#include "QDState.h"
struct PixMap;
struct Rect;
struct Rect;
namespace PortabilityLayer
{
@@ -14,28 +14,28 @@ namespace PortabilityLayer
QDPortType_Invalid,
QDPortType_CGraf,
QDPortType_Window,
QDPortType_Window,
};
enum QDPortDirtyFlag
{
{
QDPortDirtyFlag_Size = 1,
QDPortDirtyFlag_Contents = 2,
};
};
class QDPort
{
public:
explicit QDPort(QDPortType portType);
~QDPort();
~QDPort();
int Init(const Rect &rect, PixelFormat pixelFormat);
int Init(const Rect &rect, GpPixelFormat_t pixelFormat);
QDPortType GetPortType() const;
PixMap **GetPixMap() const;
const QDState *GetState() const;
QDState *GetState();
PixelFormat GetPixelFormat() const;
GpPixelFormat_t GetPixelFormat() const;
Rect GetRect() const;
bool Resize(const Rect &rect);
@@ -47,17 +47,17 @@ namespace PortabilityLayer
private:
void DisposePixMap();
QDPortType m_portType;
QDPortType m_portType;
QDState m_state;
PixMap **m_pixMap;
int16_t m_left;
int16_t m_top;
uint16_t m_width;
uint16_t m_height;
QDState m_state;
PixMap **m_pixMap;
int16_t m_left;
int16_t m_top;
uint16_t m_width;
uint16_t m_height;
uint32_t m_dirtyFlags;
PixelFormat m_pixelFormat;
GpPixelFormat_t m_pixelFormat;
};
inline QDPortType QDPort::GetPortType() const