comparison test/dw_resource_test.cc @ 2016:8cf59505bd0a

tests cleanup
author corvid <corvid@lavabit.com>
date Sat, 14 May 2011 06:45:42 +0000
parents bfb8bc9ddf62
children 223cf05a7e6a
comparison
equal deleted inserted replaced
2015:025c664fa44f 2016:8cf59505bd0a
54 fontAttrs.name = "Bitstream Charter"; 54 fontAttrs.name = "Bitstream Charter";
55 fontAttrs.size = 14; 55 fontAttrs.size = 14;
56 fontAttrs.weight = 400; 56 fontAttrs.weight = 400;
57 fontAttrs.style = FONT_STYLE_NORMAL; 57 fontAttrs.style = FONT_STYLE_NORMAL;
58 fontAttrs.letterSpacing = 0; 58 fontAttrs.letterSpacing = 0;
59 fontAttrs.fontVariant = FONT_VARIANT_NORMAL;
59 styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); 60 styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs);
60 61
61 styleAttrs.color = Color::create (layout, 0x000000); 62 styleAttrs.color = Color::create (layout, 0x000000);
62 styleAttrs.backgroundColor = Color::create (layout, 0xffffff); 63 styleAttrs.backgroundColor = Color::create (layout, 0xffffff);
63 64
69 70
70 widgetStyle->unref(); 71 widgetStyle->unref();
71 72
72 styleAttrs.margin.setVal (0); 73 styleAttrs.margin.setVal (0);
73 styleAttrs.backgroundColor = NULL; 74 styleAttrs.backgroundColor = NULL;
75
76 widgetStyle = Style::create (layout, &styleAttrs);
74 77
75 SelectionResource *res = layout->getResourceFactory()->createListResource 78 SelectionResource *res = layout->getResourceFactory()->createListResource
76 (ListResource::SELECTION_AT_MOST_ONE, 4); 79 (ListResource::SELECTION_AT_MOST_ONE, 4);
77 //SelectionResource *res = 80 //SelectionResource *res =
78 // layout->getResourceFactory()->createOptionMenuResource (); 81 // layout->getResourceFactory()->createOptionMenuResource ();