CSS Styling
Rogue Wave Views supports CSS, which was designed by the World Wide Web Consortium (W3C) to provide a way to style HTML. Views implements the
level 2 specification for CSS.
An application can instantiate the IlvCssStyleSheet class, allowing the application to read and apply CSS styles to Stylables handled by Styslists:
IlvGadgetContainer* container = …;
IlvCssStyleSheet* sheet = new IlvCssStyleSheet();
sheet.setContent("/* some CSS definitions */");
container->addStyleSheet(sheet);
// Now objects stored in the container are styled
Of course, IlvCssStyleSheet can read CSS files:
sheet = new IlvCssStyleSheet();
std::ifstream stream("…/file.css");
sheet->read(stream);
Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.