Define a cursor on layout children

This commit is contained in:
Léa Saviot
2018-06-26 15:56:03 +02:00
parent 0ef7077bd3
commit 9a7441d045
5 changed files with 118 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
#include "float_node.h"
#include "char_layout_node.h"
#include "horizontal_layout_node.h"
#include "addition_node.h"
#include "cursor.h"
#include <stdio.h>
@@ -22,11 +23,17 @@ int main() {
TreePool::sharedPool()->log();*/
printf("\nCHAR LAYOUT\n");
CharLayout aChar('a');
CharLayout aChar('c');
CharLayout bChar('b');
TreePool::sharedPool()->log();
Cursor cursor = aChar.cursor();
/* TreePool::sharedPool()->log();
HorizontalLayout h(aChar, bChar);
TreePool::sharedPool()->log();
LayoutCursor cursor = h.childAtIndex(1).cursor();
cursor.log();
/*cursor.log();
bool recompute = false;
cursor.moveLeft(&recompute);
cursor.log();