-
- ui_rect up_button;
- ui_split_px( sidebar, k_ui_axis_h, 48, 0, up_button, sidebar );
-
- if( ui_button_text( up_button, "^", 2, btn_basic ) ){
- vg_info( "page up\n" );
- }
-
- /* content page */
- ui_rect_pad( content, 8 );
-
- ui_rect image_plane;
- ui_split_px( content, k_ui_axis_h, 300, 0, image_plane, content );
- ui_fill( image_plane, 0xff000000 );
-
- ui_rect img_box;
- ui_fit_item( image_plane, (ui_px[2]){ 3, 2 }, img_box );
- ui_image( img_box, tex_error );
-
- ui_text( content, "rest of the stuff", 1, k_ui_align_left );
+ ui_rect quit_button;
+ ui_split( title, k_ui_axis_v, title[2]-title[3], 2, title, quit_button );
+ if( ui_button_text( quit_button, "x", 1 ) ){
+ ui_start_modal( g_an_buffer, UI_MODAL_GOOD );