<commit_before>#pragma once
#include "BasicInteractiveObject.h"
#include "TextField.h"
#include "ShapeRect.h"


class TextButton : public BasicInteractiveObject {
	
public:
	TextButton();
	virtual ~TextButton();	// destructor
	
	void update();
	
	ofEvent<BasicScreenObjectEvent> pressEvent;
	ofEvent<BasicScreenObjectEvent> releaseEvent;

	virtual void onTap(MultiTouchEvent& _event){};
	virtual void onDoubleTap(MultiTouchEvent& _event){};
	virtual void onFirstTouchDown(MultiTouchEvent& _event);
	virtual void onLastTouchUp(MultiTouchEvent& _event);	
	virtual void onStartMultiTouchScope(MultiTouchEvent& _event) {};

	virtual void setText(string _txt);
	virtual void setColors(ofColor _normal, ofColor _selected = NULL, ofColor _active=NULL, ofColor _disabled=NULL);
	virtual void toggle();
	virtual void select();
	virtual void deselect();
	virtual void enable();
	virtual void disable();
	
	virtual void setSize(float _width, float _height);

	
	bool isSelected();
	TextField	text;
	
protected:
	virtual void _draw();
	
	virtual void layout();
	
	
	ofColor		currentColor;
	ofColor		activeColor;
	ofColor		normalColor;
	ofColor		selectedColor;
	ofColor		disabledColor;
	ofColor		tempColor;
	
	ShapeRect	bg;
	<commit_msg>made some stuff public in textButton<commit_after>#pragma once
#include "BasicInteractiveObject.h"
#include "TextField.h"
#include "ShapeRect.h"


class TextButton : public BasicInteractiveObject {
	
public:
	TextButton();
	virtual ~TextButton();	// destructor
	
	void update();
	
	ofEvent<BasicScreenObjectEvent> pressEvent;
	ofEvent<BasicScreenObjectEvent> releaseEvent;

	virtual void onTap(MultiTouchEvent& _event){};
	virtual void onDoubleTap(MultiTouchEvent& _event){};
	virtual void onFirstTouchDown(MultiTouchEvent& _event);
	virtual void onLastTouchUp(MultiTouchEvent& _event);	
	virtual void onStartMultiTouchScope(MultiTouchEvent& _event) {};

	virtual void setText(string _txt);
	virtual void setColors(ofColor _normal, ofColor _selected = NULL, ofColor _active=NULL, ofColor _disabled=NULL);
	virtual void toggle();
	virtual void select();
	virtual void deselect();
	virtual void enable();
	virtual void disable();
	
	virtual void setSize(float _width, float _height);

	
	bool isSelected();
	TextField	text;
	ShapeRect	bg;
	
protected:
	virtual void _draw();
	
	virtual void layout();
	
	
	ofColor		currentColor;
	ofColor		activeColor;
	ofColor		normalColor;
	ofColor		selectedColor;
	ofColor		disabledColor;
	ofColor		tempColor;
	
	
	
{'fraction_non_alphanumeric': 0.09057824504650222, 'fraction_numerical': 0.0, 'mean_word_length': 5.872222222222222, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7566144', 'n_tokens_mistral': 789, 'n_tokens_neox': 749, 'n_words': 213}