macos: document SurfaceView.cellSize property

This commit is contained in:
Gregory Anders
2023-10-27 09:23:17 -05:00
parent 2ee80a52df
commit 0f73bf32e6

View File

@ -242,7 +242,11 @@ extension Ghostty {
// to the app level and it is set from there. // to the app level and it is set from there.
@Published var title: String = "👻" @Published var title: String = "👻"
@Published var cellSize: NSSize = .init() // The cell size of this surface. This is set by the core when the
// surface is first created and any time the cell size changes (i.e.
// when the font size changes). This is used to allow windows to be
// resized in discrete steps of a single cell.
@Published var cellSize: NSSize = .zero
// An initial size to request for a window. This will only affect // An initial size to request for a window. This will only affect
// then the view is moved to a new window. // then the view is moved to a new window.