31#ifndef CRAB_STATEBUTTON_H
32#define CRAB_STATEBUTTON_H
34#include "crab/ui/button.h"
45 if (nodeValid(
"normal", node))
46 _normal.load(node->first_node(
"normal"));
48 if (nodeValid(
"select", node,
false))
49 _select.load(node->first_node(
"select"));
77 void init(
const StateButton &ref,
const int &xOffset = 0,
const int &yOffset = 0);
78 void load(rapidxml::xml_node<char> *node,
const bool &echo =
true);
81 void state(
const bool val);
83 return (_img == _imgSet._select);