mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Add Roboto font, misc icons and text things
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user