| 1 | #cxx . . $ `<file>/src/VramTiledView.h`/ifndef VRAMBITMAPPEDVIEW |
| 2 | #define VRAMBITMAPPEDVIEWcxx . . $ `src/VramTiledView.h:2:9`! |
| 3 | |
| 4 | #include <QString> |
| 5 | #include <QWidget> |
| 6 | #include <QImage> |
| 7 | #include <QPixmap> |
| 8 | #include <QMouseEvent> |
| 9 | #include <QColor> |
| 10 | #include <cstdint> |
| 11 | #include <optional> |
| 12 | |
| 13 | class VramTiledViewcxx . . $ VramTiledView# : public QWidgetcxx . . $ QWidget# |
| 14 | { |
| 15 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 16 | public: |
| 17 | VramTiledViewcxx . . $ VramTiledView#VramTiledView(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 18 | |
| 19 | void setZoomcxx . . $ VramTiledView#setZoom(9364e6e7bff7660).(float zoom); |
| 20 | void setScreenModecxx . . $ VramTiledView#setScreenMode(d4f767463ce0a6b3).(int mode); |
| 21 | void setLinescxx . . $ VramTiledView#setLines(d4f767463ce0a6b3).(int nrLines); |
| 22 | void setVramSourcecxx . . $ VramTiledView#setVramSource(28caea9380bfac8a).(const uint8_tcxx . . $ uint8_t#* adr); |
| 23 | void setNameTableAddresscxx . . $ VramTiledView#setNameTableAddress(d4f767463ce0a6b3).(int adr); |
| 24 | void setPatternTableAddresscxx . . $ VramTiledView#setPatternTableAddress(d4f767463ce0a6b3).(int adr); |
| 25 | void setColorTableAddresscxx . . $ VramTiledView#setColorTableAddress(d4f767463ce0a6b3).(int adr); |
| 26 | void setPaletteSourcecxx . . $ VramTiledView#setPaletteSource(28caea9380bfac8a).(const uint8_tcxx . . $ uint8_t# *adr); |
| 27 | void setBorderColorcxx . . $ VramTiledView#setBorderColor(d4f767463ce0a6b3).(int value); |
| 28 | void setDrawGridcxx . . $ VramTiledView#setDrawGrid(b45ddcbc8423892c).(bool value); |
| 29 | void setTpBitcxx . . $ VramTiledView#setTpBit(b45ddcbc8423892c).(bool value); |
| 30 | void setTabletoShowcxx . . $ VramTiledView#setTabletoShow(d4f767463ce0a6b3).(int value); |
| 31 | void setUseBlinkcxx . . $ VramTiledView#setUseBlink(b45ddcbc8423892c).(bool value); |
| 32 | void setForcedScreenRowscxx . . $ VramTiledView#setForcedScreenRows(9364e6e7bff7660).(float value); |
| 33 | void setHighlightCharcxx . . $ VramTiledView#setHighlightChar(d4f767463ce0a6b3).(int value); |
| 34 | |
| 35 | [[nodiscard]] unsigned getNameTableAddresscxx . . $ VramTiledView#getNameTableAddress(ddd8539a2fcdd4ce).() const; |
| 36 | [[nodiscard]] unsigned getPatternTableAddresscxx . . $ VramTiledView#getPatternTableAddress(ddd8539a2fcdd4ce).() const; |
| 37 | [[nodiscard]] unsigned getColorTableAddresscxx . . $ VramTiledView#getColorTableAddress(ddd8539a2fcdd4ce).() const; |
| 38 | [[nodiscard]] int getScreenModecxx . . $ VramTiledView#getScreenMode(455f465bc33b4cdf).() const; |
| 39 | |
| 40 | void mousePressEventcxx . . $ VramTiledView#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* e) override; |
| 41 | void mouseMoveEventcxx . . $ VramTiledView#mouseMoveEvent(702858a82d06265c). (QMouseEventcxx . . $ QMouseEvent#* e) override; |
| 42 | |
| 43 | void warningImagecxx . . $ VramTiledView#warningImage(49f6e7a06ebc5aa8).(); |
| 44 | |
| 45 | // Used to draw a character on the external image used when clicked on the VramTiledView widget |
| 46 | void drawCharAtImagecxx . . $ VramTiledView#drawCharAtImage(53669dd2d54c178f).(int character, int x, int y, QImagecxx . . $ QImage#& image); // Draw 8x8 character on reference image at topleft |
| 47 | QStringcxx . . $ QString# textInfocxx . . $ VramTiledView#textInfo(6694d7ed84229d90).(int x, int y, int character); |
| 48 | |
| 49 | [[nodiscard]] const uint8_tcxx . . $ uint8_t#* getPaletteSourcecxx . . $ VramTiledView#getPaletteSource(7eb257f306f79f97).() const; |
| 50 | |
| 51 | void refreshcxx . . $ VramTiledView#refresh(49f6e7a06ebc5aa8).(); |
| 52 | |
| 53 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 54 | void imageHoveredcxx . . $ VramTiledView#imageHovered(b1146eedae1e1d0b).(int screenX, int screenY, int character); |
| 55 | void imageClickedcxx . . $ VramTiledView#imageClicked(13c75376313d168e).(int screenX, int screenY, int character, QStringcxx . . $ QString# textinfo); |
| 56 | void highlightCountcxx . . $ VramTiledView#highlightCount(d5cb1b1d97598ec6).(uint8_tcxx . . $ uint8_t# character, int count); |
| 57 | |
| 58 | private: |
| 59 | void paintEventcxx . . $ VramTiledView#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent#* e) override; |
| 60 | |
| 61 | void decodecxx . . $ VramTiledView#decode(49f6e7a06ebc5aa8).(); |
| 62 | void decodePalettecxx . . $ VramTiledView#decodePalette(49f6e7a06ebc5aa8).(); |
| 63 | void decodePatternTablecxx . . $ VramTiledView#decodePatternTable(49f6e7a06ebc5aa8).(); |
| 64 | void decodeNameTablecxx . . $ VramTiledView#decodeNameTable(49f6e7a06ebc5aa8).(); |
| 65 | void overLayNameTablecxx . . $ VramTiledView#overLayNameTable(49f6e7a06ebc5aa8).(); |
| 66 | void setPixel1x2cxx . . $ VramTiledView#setPixel1x2(f59d17f8b9f2d3e1).(int x, int y, QRgbcxx . . $ QRgb# c); |
| 67 | void setPixel2x2cxx . . $ VramTiledView#setPixel2x2(f59d17f8b9f2d3e1).(int x, int y, QRgbcxx . . $ QRgb# c); |
| 68 | QRgbcxx . . $ QRgb# getColorcxx . . $ VramTiledView#getColor(46cc46841198e427).(int c); |
| 69 | |
| 70 | void decodePatternTableRegularCharscxx . . $ VramTiledView#decodePatternTableRegularChars(49f6e7a06ebc5aa8).(); |
| 71 | void decodePatternTableMultiColorcxx . . $ VramTiledView#decodePatternTableMultiColor(49f6e7a06ebc5aa8).(); |
| 72 | void decodeNameTableRegularCharscxx . . $ VramTiledView#decodeNameTableRegularChars(49f6e7a06ebc5aa8).(); |
| 73 | void decodeNameTableMultiColorcxx . . $ VramTiledView#decodeNameTableMultiColor(49f6e7a06ebc5aa8).(); |
| 74 | uint8_tcxx . . $ uint8_t# getCharColorBytecxx . . $ VramTiledView#getCharColorByte(e12c616fd99d5ff1).(int character, int x, int y, int row); |
| 75 | void drawCharAtcxx . . $ VramTiledView#drawCharAt(b1146eedae1e1d0b).(int character, int x, int y); // Draw 8x8 character on given location in image |
| 76 | |
| 77 | struct MouseEventInfocxx . . $ VramTiledView#MouseEventInfo# { |
| 78 | int xcxx . . $ VramTiledView#MouseEventInfo#x., ycxx . . $ VramTiledView#MouseEventInfo#y.; |
| 79 | int charactercxx . . $ VramTiledView#MouseEventInfo#character.; |
| 80 | }; |
| 81 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<MouseEventInfocxx . . $ VramTiledView#MouseEventInfo#> infoFromMouseEventcxx . . $ VramTiledView#infoFromMouseEvent(fc9e3ed00c14e4ca).(QMouseEventcxx . . $ QMouseEvent#* e); |
| 82 | |
| 83 | QStringcxx . . $ QString# byteAsPatterncxx . . $ VramTiledView#byteAsPattern(e76153c3c184c917).(uint8_tcxx . . $ uint8_t# byte); |
| 84 | |
| 85 | private: |
| 86 | QRgbcxx . . $ QRgb# msxPalettecxx . . $ VramTiledView#msxPalette.[16]; |
| 87 | QImagecxx . . $ QImage# imagecxx . . $ VramTiledView#image.; |
| 88 | QPixmapcxx . . $ QPixmap# pixImagecxx . . $ VramTiledView#pixImage.; |
| 89 | const uint8_tcxx . . $ uint8_t#* palettecxx . . $ VramTiledView#palette. = nullptr; |
| 90 | const uint8_tcxx . . $ uint8_t#* vramBasecxx . . $ VramTiledView#vramBase. = nullptr; |
| 91 | float zoomFactorcxx . . $ VramTiledView#zoomFactor.; |
| 92 | bool drawGridcxx . . $ VramTiledView#drawGrid. = true; |
| 93 | |
| 94 | int patternTableAddresscxx . . $ VramTiledView#patternTableAddress. = 0; |
| 95 | int nameTableAddresscxx . . $ VramTiledView#nameTableAddress. = 0; |
| 96 | int colorTableAddresscxx . . $ VramTiledView#colorTableAddress. = 0; |
| 97 | |
| 98 | int screenWidthcxx . . $ VramTiledView#screenWidth. = 32; |
| 99 | int screenHeightcxx . . $ VramTiledView#screenHeight. = 24; |
| 100 | int charWidthcxx . . $ VramTiledView#charWidth. = 8; |
| 101 | int horiStepcxx . . $ VramTiledView#horiStep. = 16; |
| 102 | |
| 103 | int linescxx . . $ VramTiledView#lines. = 212; |
| 104 | int screenModecxx . . $ VramTiledView#screenMode. = 0; |
| 105 | int tableToShowcxx . . $ VramTiledView#tableToShow. = 0; |
| 106 | int borderColorcxx . . $ VramTiledView#borderColor. = 0; |
| 107 | float forcedScreenRowscxx . . $ VramTiledView#forcedScreenRows. = 0; |
| 108 | int highlightCharcxx . . $ VramTiledView#highlightChar. = -1; // anything outside 0-255 will do |
| 109 | bool useBlinkcxx . . $ VramTiledView#useBlink. = false; |
| 110 | bool tpBitcxx . . $ VramTiledView#tpBit. = false; |
| 111 | }; |
| 112 | |
| 113 | #endif // VRAMBITMAPPEDVIEW |