Jimmy Miller
Kartik Agaram
Jimmy Miller
Kartik Agaram
Jimmy Miller
Kartik Agaram
Jimmy Miller
Kartik Agaram
Arcade Wise
12/04/2023, 3:46 AMJimmy Miller
#[derive(Debug, Clone, PartialEq)]
pub enum DrawCommands {
DrawRect(f32, f32, f32, f32),
DrawString(String, f32, f32),
ClipRect(f32, f32, f32, f32),
DrawRRect(f32, f32, f32, f32, f32),
Translate(f32, f32),
SetColor(f32, f32, f32, f32),
Restore,
Save,
}
Arcade Wise
12/04/2023, 4:00 AMKonrad Hinsen
12/04/2023, 8:10 AMUltimately I want to work with small enough subfile snippets of code that don’t need scroll.Easy: use Smalltalk ;-)
Kartik Agaram
Jimmy Miller
Kartik Agaram
Jimmy Miller
Kartik Agaram
Konrad Hinsen
12/05/2023, 4:13 PMI do think this project has given me an appreciation for why Smalltalk would have an object system like it had for the gui it had.I remember seeing advice to a newcomer about how to choose between a generic data structure (list, dictionary...) and a new class: "If it makes sense to add specialized inspector views, use a new class." That's UI-driven code architecture.