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>
78 void EndPaint(
const wxRegion &updateRegion);
90 wxScrollBar *horizontal =
nullptr;
91 wxScrollBar *vertical =
nullptr;
93 bool drawnThisPaint =
false;
101 void SyncScrollbar(wxScrollBar *&scrollbar,
int orientation,
bool wanted,
102 const wxRect &where,
int position,
int thumbSize,
105 void OnScroll(wxScrollEvent &event);
107 static void DestroyScrollbars(Entry &entry);
110 std::vector<std::unique_ptr<Entry>> m_entries;
112 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:92