예제 #1
0
파일: Button.cpp 프로젝트: duketheluke/ewol
ewol::widget::Button::Button() :
  signalPressed(*this, "pressed", "Button is pressed"),
  signalDown(*this, "down", "Button is DOWN"),
  signalUp(*this, "up", "Button is UP"),
  signalEnter(*this, "enter", "The cursor enter inside the button"),
  signalLeave(*this, "leave", "the cursor leave the button"),
  signalValue(*this, "value", "button value change"),
  m_shaper(*this, "shaper", "The display name for config file"),
  m_value(*this, "value", false, "Value of the Button"),
  m_lock(*this, "lock", lockNone, "Lock the button in a special state to permit changing state only by the coder"),
  m_toggleMode(*this, "toggle", false, "The Button can toogle"),
  m_enableSingle(*this, "enable-single", false, "If one element set in the Button ==> display only set"),
  m_mouseHover(false),
  m_buttonPressed(false),
  m_selectableAreaPos(0,0),
  m_selectableAreaSize(0,0) {
	addObjectType("ewol::widget::Button");
	
	// set property list:
	m_lock.add(lockNone, "none");
	m_lock.add(lockWhenPressed, "pressed");
	m_lock.add(lockWhenReleased, "released");
	m_lock.add(lockAccess, "access");
	
	// shaper satatus update:
	CheckStatus();
	// This widget can have the focus ...
	setCanHaveFocus(true);
	// Limit event at 1:
	setMouseLimit(1);
}
예제 #2
0
파일: ColorBar.cpp 프로젝트: biddyweb/ewol
ewol::widget::ColorBar::ColorBar() :
  signalChange(*this, "change", "Color value change") {
	addObjectType("ewol::widget::ColorBar");
	m_currentUserPos.setValue(0,0);
	m_currentColor = etk::color::black;
	setCanHaveFocus(true);
	setMouseLimit(1);
}
예제 #3
0
ewol::widget::ButtonColor::ButtonColor() :
  signalChange(*this, "change", "Button color change value"),
  m_widgetContextMenu(nullptr),
  m_textColorFg(*this, "color", etk::color::black, "Current color") {
	addObjectType("ewol::widget::ButtonColor");
	changeStatusIn(STATUS_UP);
	setCanHaveFocus(true);
	// Limit event at 1:
	setMouseLimit(1);
}
예제 #4
0
ewol::widget::ParameterList::ParameterList() :
  signalSelect(*this, "select") {
	addObjectType("ewol::widget::ParameterList");
	
	m_idSelected = -1;
	m_paddingSizeX = 2;
	#ifdef __TARGET_OS__Android
		m_paddingSizeY = 10;
	#else
		m_paddingSizeY = 2;
	#endif
	setCanHaveFocus(true);
}
예제 #5
0
파일: Slider.cpp 프로젝트: biddyweb/ewol
ewol::widget::Slider::Slider() :
  signalChange(*this, "change"),
  m_value(*this, "value", 0.0f, "Value of the Slider"),
  m_min(*this, "min", 0.0f, "Minium value"),
  m_max(*this, "max", 10.0f, "Maximum value"),
  m_step(*this, "step", 1.0f, "Step size") {
	addObjectType("ewol::widget::Slider");
	
	m_textColorFg = etk::color::black;
	
	m_textColorBg = etk::color::black;
	m_textColorBg.setA(0x3F);
	setCanHaveFocus(true);
	// Limit event at 1:
	setMouseLimit(1);
}
예제 #6
0
파일: Spacer.cpp 프로젝트: biddyweb/ewol
ewol::widget::Spacer::Spacer() :
  m_color(*this, "color", etk::color::none, "background of the spacer") {
	addObjectType("ewol::widget::Spacer");
	m_userMinSize = gale::Dimension(vec2(10,10));
	setCanHaveFocus(false);
}