<commit_before>#include "../ui.h"
#include "nbind/api.h"
#include "nbind/nbind.h"
#include "ui-node.h"

UiBox::UiBox(uiControl *control) : UiControl( control ) {}

void UiBox::append(UiControl *control, int stretchy) {
	uiBoxAppend(
		(uiBox *) getHandle(),
		control->getHandle(),
		stretchy
	);
}

void UiBox::deleteAt(int index) {
	uiBoxDelete(
		(uiBox *) getHandle(),
		index
	);
}

void UiBox::setPadded(int padded) {
	uiBoxSetPadded((uiBox *) getHandle(), padded);
}

int UiBox::getPadded() {
	return uiBoxPadded((uiBox *) getHandle());
}


UiVerticalBox::UiVerticalBox() : UiBox( (uiControl*) uiNewVerticalBox() ) {}

INHERITS_CONTROL_METHODS(UiVerticalBox)
INHERITS_BOX_METHODS(UiVerticalBox)


UiHorizontalBox::UiHorizontalBox() : UiBox( (uiControl*) uiNewHorizontalBox() ) {}

INHERITS_CONTROL_METHODS(UiHorizontalBox)
INHERITS_BOX_METHODS(UiHorizontalBox)


NBIND_CLASS(UiVerticalBox) {
	construct<>();
	DECLARE_CONTROL_METHODS()
	DECLARE_BOX_METHODS()
}

NBIND_CLASS(UiHorizontalBox) {<commit_msg>int -> bool on boxes<commit_after>#include "../ui.h"
#include "nbind/api.h"
#include "nbind/nbind.h"
#include "ui-node.h"

UiBox::UiBox(uiControl *control) : UiControl( control ) {}

void UiBox::append(UiControl *control, bool stretchy) {
	uiBoxAppend(
		(uiBox *) getHandle(),
		control->getHandle(),
		stretchy
	);
}

void UiBox::deleteAt(int index) {
	uiBoxDelete(
		(uiBox *) getHandle(),
		index
	);
}

void UiBox::setPadded(bool padded) {
	uiBoxSetPadded((uiBox *) getHandle(), padded);
}

bool UiBox::getPadded() {
	return uiBoxPadded((uiBox *) getHandle());
}


UiVerticalBox::UiVerticalBox() : UiBox( (uiControl*) uiNewVerticalBox() ) {}

INHERITS_CONTROL_METHODS(UiVerticalBox)
INHERITS_BOX_METHODS(UiVerticalBox)


UiHorizontalBox::UiHorizontalBox() : UiBox( (uiControl*) uiNewHorizontalBox() ) {}

INHERITS_CONTROL_METHODS(UiHorizontalBox)
INHERITS_BOX_METHODS(UiHorizontalBox)


NBIND_CLASS(UiVerticalBox) {
	construct<>();
	DECLARE_CONTROL_METHODS()
	DECLARE_BOX_METHODS()
}

NBIND_CLASS(UiHorizontalBox) {
{'fraction_non_alphanumeric': 0.15172413793103448, 'fraction_numerical': 0.0, 'mean_word_length': 6.872093023255814, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1297574', 'n_tokens_mistral': 785, 'n_tokens_neox': 760, 'n_words': 117}