TVision
view release on metacpan or search on metacpan
#[ ] void find();
#[ ] uint getMousePtr( TPoint );
#[ ] Boolean hasSelection();
#[ ] void hideSelect();
#[ ] Boolean isClipboard();
#[ ] uint lineEnd( uint );
#[ ] uint lineMove( uint, int );
#[ ] uint lineStart( uint );
#[ ] uint indentedLineStart( uint );
#[ ] void lock();
#[ ] void newLine();
#[ ] uint nextChar( uint );
#[ ] uint nextLine( uint );
#[ ] uint nextWord( uint );
#[ ] uint prevChar( uint );
#[ ] uint prevLine( uint );
#[ ] uint prevWord( uint );
#[ ] void replace();
#[ ] void setBufLen( uint );
#[ ] void setCurPtr( uint, uchar );
#[ ] void startSelect();
#[ ] void toggleEncoding();
#[ ] void toggleInsMode();
#[ ] void unlock();
#[ ] void update( uchar );
#[ ] void checkScrollBar( const TEvent&, TScrollBar *, int& );
#[ ] void detectEol();
#[ ] TScrollBar *hScrollBar;
#[ ] TScrollBar *vScrollBar;
#[ ] TIndicator *indicator;
#[ ] char *buffer;
#[ ] uint bufSize;
#[ ] uint bufLen;
#[ ] uint gapLen;
#[ ] uint selStart;
#[ ] uint selEnd;
#[ ] uint curPtr;
#[ ] TPoint curPos;
#[ ] TPoint delta;
#[ ] TPoint limit;
#[ ] int drawLine;
#[ ] uint drawPtr;
#[ ] uint delCount;
#[ ] uint insCount;
#[ ] Boolean isValid;
#[ ] Boolean canUndo;
#[ ] Boolean modified;
#[ ] Boolean selecting;
#[ ] Boolean overwrite;
#[ ] Boolean autoIndent;
#[ ] enum EolType { eolCrLf, eolLf, eolCr } eolType;
#[ ] enum Encoding { encDefault, encSingleByte } encoding;
#[ ] void nextChar( TStringView, uint &P, uint &width );
#[ ] Boolean formatCell( TSpan<TScreenCell>, uint&, TStringView, uint& , TColorAttr );
#[ ] TStringView bufChars( uint );
#[ ] TStringView prevBufChars( uint );
#[ ] static TEditorDialog _NEAR editorDialog;
#[ ] static ushort _NEAR editorFlags;
#[ ] static char _NEAR findStr[maxFindStrLen];
#[ ] static char _NEAR replaceStr[maxReplaceStrLen];
#[ ] static TEditor * _NEAR clipboard;
#[ ] uchar lockCount;
#[ ] uchar updateFlags;
#[ ] int keyState;
#[ ] static const char * const _NEAR name;
#[ ] static TStreamable *build();
#};
package TVision::TMemo;
#class TMemo : public TEditor {
#public:
# TMemo( const TRect&, TScrollBar *, TScrollBar *, TIndicator *, ushort ) noexcept;
# virtual void getData( void *rec );
# virtual void setData( void *rec );
# virtual ushort dataSize();
# virtual TPalette& getPalette() const;
# virtual void handleEvent( TEvent& );
# static const char * const _NEAR name;
# static TStreamable *build();
#};
package TVision::TFileEditor;
our @ISA = qw(TVision::TEditor);
#class TFileEditor : public TEditor {
#public:
#[ ] char fileName[MAXPATH];
#[ ] TFileEditor( const TRect&, TScrollBar *, TScrollBar *, TIndicator *, TStringView) noexcept;
#[ ] virtual void doneBuffer();
#[ ] virtual void handleEvent( TEvent& );
#[ ] virtual void initBuffer();
#[ ] Boolean loadFile() noexcept;
#[ ] Boolean save() noexcept;
#[ ] Boolean saveAs() noexcept;
#[ ] Boolean saveFile() noexcept;
#[ ] virtual Boolean setBufSize( uint );
#[ ] virtual void shutDown();
#[ ] virtual void updateCommands();
#[ ] virtual Boolean valid( ushort );
#[ ] static const char * const _NEAR name;
#[ ] static TStreamable *build();
#};
package TVision::EventCodes;
package TVision::TEvent;
# map it to [what, mouse1, mouse2, key1, key2, key3}
#struct TEvent {
# ushort what;
# union {
# MouseEventType mouse;
# KeyDownEvent keyDown;
# MessageEvent message;
# };
# void getMouseEvent() noexcept;
# void getKeyEvent() noexcept;
#};
#struct CharScanType {
# uchar charCode;
# uchar scanCode;
#};
#struct KeyDownEvent {
# union {
# ushort keyCode;
# CharScanType charScan;
( run in 1.148 second using v1.01-cache-2.11-cpan-302cb4679cc )