Annotation of nono/vm/newsfb.h, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2022 nono project
        !             4: // Licensed under nono-license.txt
        !             5: //
        !             6: 
        !             7: //
        !             8: // NEWS のフレームバッファ(予定地)
        !             9: //
        !            10: 
        !            11: #pragma once
        !            12: 
        !            13: #include "device.h"
        !            14: #include "monitor.h"
        !            15: 
        !            16: class NewsfbDevice : public Device
        !            17: {
        !            18:        using inherited = Device;
        !            19:  public:
        !            20:        NewsfbDevice();
        !            21:        ~NewsfbDevice() override;
        !            22: 
        !            23:        void ResetHard(bool poweron) override;
        !            24: 
        !            25:        void Putc(int ch);
        !            26: 
        !            27:  private:
        !            28:        DECLARE_MONITOR_CALLBACK(MonitorUpdate);
        !            29: 
        !            30:        TextScreen console {};
        !            31: 
        !            32:        Monitor monitor { this };
        !            33: };
        !            34: 
        !            35: static inline NewsfbDevice *GetNewsfbDevice() {
        !            36:        return Object::GetObject<NewsfbDevice>(OBJ_NEWSFB);
        !            37: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.