diff --git a/libs/bluepixle_ui.js b/libs/bluepixle_ui.js index 4fedac4..2e80f8c 100644 --- a/libs/bluepixle_ui.js +++ b/libs/bluepixle_ui.js @@ -5,6 +5,16 @@ const RIGHT_KEY = "KeyD"; const ACT_KEY = "KeyE"; const MENU_KEY = "KeyQ"; +class bpu_window { + constructor (frameBufferRef, coordinates, dimentions, options) { + this.parentBuffer = frameBufferRef; + this.coordinates = coordinates instanceof vector ? (coordinates.d.length == 2 ? coordinates : new vector([0,0])) : new vector([0,0]); + this.dimentions = dimentions instanceof vector ? (dimentions.d.length == 2 ? dimentions : new vector([0,0])) : new vector([0,0]); + // add options for title bar, close button, and minimize button + // add container object for window, container for optional title bar, and container for contents. + } +} + class bpu_menu { constructor (frameBufferRef, dimentions, closeable, options, callbackArray) { this.parentBuffer = frameBufferRef;