22#ifndef MATRIXSCROLLBARS_H
23#define MATRIXSCROLLBARS_H
26#include "cells/MatrCell.h"
27#include "cells/MatrixScrollHost.h"
30#include <wx/scrolbar.h>
31#include <wx/scrolwin.h>
80 void EndPaint(
const wxRegion &updateRegion);
92 wxScrollBar *horizontal =
nullptr;
93 wxScrollBar *vertical =
nullptr;
95 bool drawnThisPaint =
false;
103 void SyncScrollbar(wxScrollBar *&scrollbar,
int orientation,
bool wanted,
104 const wxRect &where,
int position,
int thumbSize,
107 void OnScroll(wxScrollEvent &event);
109 static void DestroyScrollbars(Entry &entry);
112 std::vector<std::unique_ptr<Entry>> m_entries;
114 bool m_syncPending =
false;
Implementation of an observing weak Cell pointer.
A weak non-owning pointer that becomes null whenever the observed object is destroyed.
Definition: CellPtr.h:539
A Cell that displays a matrix.
Definition: MatrCell.h:95