poison.ui.styles
Source
Module for style handling/parsing.
Authors:
Jacob Jensen
License:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE
Imports
std.file : readText
std.json : parseJSON
std.conv : to
std.array : split, replace
std.string : toLower
std.algorithm : strip, stripLeft, stripRight, countUntil
std.base64 : Base64
poison.ui.graphics
poison.ui.paint
poison.ui.picture
poison.ui.fonts
poison.core : Application
public:
public Graphics getStyleEntry(string selector);
Gets a style entry.
Parameters:
selector The selector to find the style for.
public void loadStyleSheet(string styleSheet);
Loads a style sheet.
public void loadStyles(string jsonText);
Loads styles from json structured pss.
Parameters:
jsonText The json.
Generated by venom - Poison Engine's Documentation Generator
Module for style handling/parsing.
Authors:
Jacob JensenLicense:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSEImports
std.file : readTextstd.json : parseJSON
std.conv : to
std.array : split, replace
std.string : toLower
std.algorithm : strip, stripLeft, stripRight, countUntil
std.base64 : Base64
poison.ui.graphics
poison.ui.paint
poison.ui.picture
poison.ui.fonts
poison.core : Application
public Graphics getStyleEntry(string selector);
Gets a style entry.
Parameters:
selector | The selector to find the style for. |
public void loadStyleSheet(string styleSheet);
Loads a style sheet.
public void loadStyles(string jsonText);
Loads styles from json structured pss.
Parameters:
jsonText | The json. |