diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5da2bf..a6417c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,6 +168,7 @@ jobs: - name: Lookup TGUI version for cache id: find-dependencies + shell: bash run: | echo "tgui-revision=$(git ls-remote $TGUI_GITHUB_URL HEAD | cut -f1)" >> $GITHUB_OUTPUT @@ -233,6 +234,7 @@ jobs: - name: Lookup TGUI version for cache id: find-dependencies + shell: bash run: | echo "tgui-revision=$(git ls-remote $TGUI_GITHUB_URL HEAD | cut -f1)" >> $GITHUB_OUTPUT diff --git a/code-generator/FileParser.py b/code-generator/FileParser.py index 5fdc350..f0e682a 100644 --- a/code-generator/FileParser.py +++ b/code-generator/FileParser.py @@ -31,6 +31,9 @@ class Segment: def __init__(self): self.documentation = None +class SegmentAbstractClass: + pass + class SegmentInherits(Segment): def __init__(self, parentName): self.parentName = parentName @@ -39,12 +42,26 @@ class SegmentProperty(Segment): def __init__(self, propertyType, propertyName): self.type = propertyType self.name = propertyName + self.getterUsesIsPrefix = False class SegmentPropertyWidgetRenderer(Segment): def __init__(self, rendererType, namePrefix = ''): self.type = rendererType self.prefix = namePrefix +class SegmentFunction(Segment): + def __init__(self, nameC, name, returnType, params, const): + self.nameC = nameC + self.name = name + self.returnType = returnType + self.params = params # List of tuples containing type and name + self.const = const + +class SegmentEnum(Segment): + def __init__(self, enumName, enumValues): + self.name = enumName + self.values = enumValues + def parseDescriptionFile(descFileName): descFile = open(descFileName, 'r') @@ -98,11 +115,17 @@ def parseDescriptionFile(descFileName): else: raise RuntimeError('"inherits" instruction should be followed by parent class name') + elif parts[0] == 'abstract-class': + if len(parts) == 1: + segments.append(SegmentAbstractClass()) + else: + raise RuntimeError('"abstract-class" instruction should not have anything behind it') + elif parts[0] == 'property-widget-renderer': if len(parts) == 2: segments.append(SegmentPropertyWidgetRenderer(parts[1])) elif len(parts) == 3: - segments.append(SegmentPropertyWidgetRenderer(parts[2])) + segments.append(SegmentPropertyWidgetRenderer(parts[1], parts[2])) else: raise RuntimeError('"property-widget-renderer" instruction should be followed renderer type (and optional name prefix)') @@ -112,6 +135,71 @@ def parseDescriptionFile(descFileName): else: raise RuntimeError('"property" instruction should be followed by type and name') + elif parts[0] == 'property-bool-is': + if len(parts) == 2: + boolProperty = SegmentProperty("bool", parts[1]) + boolProperty.getterUsesIsPrefix = True + segments.append(boolProperty) + else: + raise RuntimeError('"property-bool-is" instruction should be followed by a name') + + elif parts[0] == 'function': + if len(parts) >= 2: + openBracketPos = line.find('(') + closeBracketPos = line.find(')') + if openBracketPos == -1: + raise RuntimeError('Opening bracket missing in "function" instruction') + if closeBracketPos == -1: + raise RuntimeError('Closing bracket missing in "function" instruction') + if closeBracketPos <= openBracketPos: + raise RuntimeError('"function" instruction had closing bracket before opening one') + + const = False + if parts[-2] == '->': + returnType = parts[-1] + if parts[-3] == 'const': + const = True + else: + returnType = 'void' + if parts[-1] == 'const': + const = True + + if closeBracketPos == openBracketPos+1 or line[openBracketPos+1:closeBracketPos] == 'void': + params = [] + else: + params = [tuple(param.strip().split(' ')) for param in line[openBracketPos+1:closeBracketPos].split(',')] + for param in params: + if len(param) != 2: + raise RuntimeError('Parameter "' + ' '.join(param) + '" does not consist of exactly 2 parts (type and name)') + + name = line[9:openBracketPos].strip() + if ' ' in name: + nameParts = name.split(' ') + if len(nameParts) != 2: + raise RuntimeError('Name in "function" should not consists of many parts') + nameC = nameParts[0] + name = nameParts[1] + else: + nameC = name + + segments.append(SegmentFunction(nameC, name, returnType, params, const)) + else: + raise RuntimeError('"function" instruction should have format "function name(params)", with " -> returnType" behind it for non-void functions') + + elif parts[0] == 'enum': + openBracePos = line.find('{') + closeBracePos = line.find('}') + if openBracePos == -1: + raise RuntimeError('Opening brace missing in "enum" instruction') + if closeBracePos == -1: + raise RuntimeError('Closing brace missing in "enum" instruction') + if closeBracePos <= openBracePos: + raise RuntimeError('"enum" instruction had closing brace before opening one') + + enumName = line[5:openBracePos].strip() + enumValues = [value.strip() for value in line[openBracePos+1:closeBracePos].split(',')] + segments.append(SegmentEnum(enumName, enumValues)) + else: raise RuntimeError('Instruction "' + parts[0] + '" not recognised') diff --git a/code-generator/GenerateCodeC.py b/code-generator/GenerateCodeC.py index 8cb66ce..defb5f6 100644 --- a/code-generator/GenerateCodeC.py +++ b/code-generator/GenerateCodeC.py @@ -25,6 +25,301 @@ import os from FileParser import * +def generateAdditionalIncludesInSourceFile(segments): + usedTypes = set() + usesRenderer = False + for segment in segments: + if isinstance(segment, SegmentPropertyWidgetRenderer): + if segment.prefix: + usesRenderer = True + elif isinstance(segment, SegmentProperty): + usedTypes.add(segment.type) + elif isinstance(segment, SegmentFunction): + usedTypes.add(segment.returnType) + for param in segment.params: + usedTypes.add(param[0]) + + generatedLines = [] + if 'Outline' in usedTypes: + generatedLines.append('#include ') + if 'RendererData' in usedTypes: + generatedLines.append('#include ') + if 'Texture' in usedTypes: + generatedLines.append('#include ') + if 'Font' in usedTypes: + generatedLines.append('#include ') + if 'Layout' in usedTypes or 'Layout2d' in usedTypes: + generatedLines.append('#include ') + + if usesRenderer: + generatedLines.append('#include ') + + return generatedLines + +################################################################################################################################# + +def generateFunctionSignatureC(className, funcName, funcParams, returnType, constFunc, selfType, selfName, enums): + TYPE_MAP = { + 'void' : 'void', + 'bool' : 'tguiBool', + 'int' : 'int', + 'uint' : 'unsigned int', + 'float' : 'float', + 'size_t' : 'size_t', + 'string' : 'tguiUtf32', + 'TextStyle' : 'tguiUint32', + 'Char32' : 'tguiChar32', + 'Color' : 'const tguiColor*', + 'Texture' : 'const tguiTexture*', + 'Outline' : 'const tguiOutline*', + 'Layout' : 'const tguiLayout*', + 'Layout2d' : 'const tguiLayout2d*', + 'Font' : 'const tguiFont*', + 'RendererData' : 'const tguiRendererData*', + 'Widget' : 'tguiWidget*', + 'ConstWidget' : 'const tguiWidget*', + 'Vector2f' : 'tguiVector2f', + 'AnyObject' : 'void*', + 'List' : 'const tguiUtf32*', + 'List' : 'const tguiWidget*', + 'Set' : 'const size_t*', + 'ScrollbarPolicy': 'tguiScrollbarPolicy', + 'VerticalAlignment': 'tguiVerticalAlignment', + 'HorizontalAlignment': 'tguiHorizontalAlignment', + } + + params = selfType + '* ' + selfName + if constFunc: + params = 'const ' + params + + if funcParams: + for param in funcParams: + if param[0] in enums: + params += ', tgui' + className + param[0] + ' ' + param[1] + else: + if param[0] not in TYPE_MAP: + raise RuntimeError('Type "' + param[0] + '" does not exist') + + params += ', ' + TYPE_MAP[param[0]] + ' ' + param[1] + if param[0].startswith('List<') or param[0].startswith('Set<'): + params += ', size_t ' + param[1] + 'Length' + + if returnType.startswith('List<') or returnType.startswith('Set<'): + params += ', size_t* returnCount' + + if returnType in enums: + return 'tgui' + className + returnType + ' tgui' + className + '_' + funcName + '(' + params + ')' + else: + return TYPE_MAP[returnType] + ' tgui' + className + '_' + funcName + '(' + params + ')' + +################################################################################################################################# + +def generateFunctionCallC(className, funcName, funcParams, returnType, selfName, enums): + generatedLines = [] + funcCallParams = [] + for param in funcParams: + paramType, paramName = param + if paramType in enums: + funcCallParams.append('static_cast(' + paramName + ')') + elif paramType == 'size_t' or paramType == 'int' or paramType == 'uint' or paramType == 'float' \ + or paramType == 'Char32' or paramType == 'TextStyle': + funcCallParams.append(paramName) + elif paramType == 'bool': + funcCallParams.append(paramName + ' != 0') + elif paramType == 'string': + funcCallParams.append('ctgui::toCppStr(' + paramName + ')') + elif paramType == 'Color': + funcCallParams.append('ctgui::toCppColor(' + paramName + ')') + elif paramType == 'Texture' or paramType == 'Font': + funcCallParams.append('*' + paramName + '->This') + elif paramType == 'Widget' or paramType == 'ConstWidget' or paramType == 'Outline' \ + or paramType == 'Layout' or paramType == 'Layout2d' or paramType == 'RendererData': + funcCallParams.append(paramName + '->This') + elif paramType == 'Vector2f': + funcCallParams.append('{' + paramName + '.x, ' + paramName + '.y}') + elif paramType == 'VerticalAlignment': + funcCallParams.append('static_cast(' + paramName + ')') + elif paramType == 'HorizontalAlignment': + funcCallParams.append('static_cast(' + paramName + ')') + elif paramType == 'ScrollbarPolicy': + funcCallParams.append('static_cast(' + paramName + ')') + elif paramType == 'AnyObject': + funcCallParams.append(paramName) + elif paramType == 'List': + localVariableName = 'converted' + paramName.capitalize() + generatedLines.append(' std::vector ' + localVariableName + ';') + generatedLines.append(' ' + localVariableName + '.reserve(' + paramName + 'Length);') + generatedLines.append(' for (size_t i = 0; i < ' + paramName + 'Length; ++i)') + generatedLines.append(' ' + localVariableName + '.push_back(ctgui::toCppStr(' + paramName + '[i]));') + generatedLines.append('') + funcCallParams.append('std::move(' + localVariableName + ')') + elif paramType == 'Set': + localVariableName = 'converted' + paramName.capitalize() + generatedLines.append(' std::set ' + localVariableName + ';') + generatedLines.append(' for (size_t i = 0; i < ' + paramName + 'Length; ++i)') + generatedLines.append(' ' + localVariableName + '.insert(' + paramName + '[i]);') + generatedLines.append('') + funcCallParams.append('std::move(' + localVariableName + ')') + else: + raise RuntimeError('Type ' + paramType + ' is not supported as function parameter') + + funcCall = 'DOWNCAST(' + selfName + '->This)->' + funcName + '(' + ', '.join(funcCallParams) + ')' + + returnType = returnType + if returnType in enums: + generatedLines.append(' return static_cast(' + funcCall + ');') + elif returnType == 'void': + generatedLines.append(' ' + funcCall + ';') + elif returnType == 'bool' or returnType == 'size_t' or returnType == 'int' or returnType == 'uint' \ + or returnType == 'float' or returnType == 'Char32' or returnType == 'TextStyle': + generatedLines.append(' return ' + funcCall + ';') + elif returnType == 'Widget': + generatedLines.extend([ + ' tgui::Widget::Ptr widgetToReturn = ' + funcCall + ';', + ' if (widgetToReturn)', + ' return new tguiWidget(widgetToReturn);', + ' else', + ' return nullptr;' + ]) + elif returnType == 'Vector2f': + generatedLines.extend([ + ' const tgui::Vector2f value = ' + funcCall + ';', + ' return {value.x, value.y};' + ]) + elif returnType == 'string': + generatedLines.append(' return ctgui::fromCppStr(' + funcCall + ');') + elif returnType == 'Color': + generatedLines.append(' return ctgui::fromCppColor(' + funcCall + ');') + elif returnType == 'Outline': + generatedLines.append(' return new tguiOutline(' + funcCall + ');') + elif returnType == 'Layout': + generatedLines.append(' return new tguiLayout(' + funcCall + ');') + elif returnType == 'Layout2d': + generatedLines.append(' return new tguiLayout2d(' + funcCall + ');') + elif returnType == 'Texture': + generatedLines.append(' return new tguiTexture(std::make_unique(' + funcCall + '));') + elif returnType == 'Font': + generatedLines.append(' return new tguiFont(std::make_unique(' + funcCall + '));') + elif returnType == 'RendererData': + generatedLines.append(' return new tguiRendererData(' + funcCall + ');') + elif returnType == 'VerticalAlignment': + generatedLines.append(' return static_cast(' + funcCall + ');') + elif returnType == 'HorizontalAlignment': + generatedLines.append(' return static_cast(' + funcCall + ');') + elif returnType == 'ScrollbarPolicy': + generatedLines.append(' return static_cast(' + funcCall + ');') + elif returnType == 'AnyObject': + bracketPos = funcCall.find(funcName) + len(funcName) + generatedLines.extend([ + ' try', + ' {', + ' // User data will be of type void* when it was set in the C binding', + ' return ' + funcCall[:bracketPos] + '' + funcCall[bracketPos:] + ';', + ' }', + ' catch (const std::bad_cast&)', + ' {', + ' try', + ' {', + ' // User data will be of type tgui::String when it was set by loading the widget from a form', + ' return const_cast(static_cast(ctgui::fromCppStr(' + funcCall[:bracketPos] + '' + funcCall[bracketPos:] + ')));', + ' }', + ' catch (const std::bad_cast&)', + ' {', + ' return nullptr;', + ' }', + ' }', + '' + ]) + elif returnType == 'List': + generatedLines.extend([ + ' const auto& widgets = ' + funcCall + ';', + '', + ' static std::vector cWidgets;', + ' cWidgets.clear();', + ' cWidgets.reserve(widgets.size());', + ' for (const auto& widget : widgets)', + ' cWidgets.emplace_back(ctgui::addWidgetRef(widget));', + '', + '*returnCount = cWidgets.size();', + 'return cWidgets.data();', + ]) + elif returnType == 'List': + generatedLines.extend([ + ' static std::vector cppStrings;', + ' cppStrings = ' + funcCall + ';', + '', + ' static std::vector cStrings;', + ' cStrings.clear();', + ' cStrings.reserve(cppStrings.size());', + ' for (const auto& item : cppStrings)', + ' cStrings.emplace_back(reinterpret_cast(item.c_str()));', + '', + '*returnCount = cStrings.size();', + 'return cStrings.data();', + ]) + elif returnType == 'List' or returnType == 'Set': + generatedLines.extend([ + ' const auto& indices = ' + funcCall + ';', + '', + ' static std::vector cIndices;', + ' cIndices.clear();', + ' cIndices.reserve(indices.size());', + ' for (size_t index : indices)', + ' cIndices.emplace_back(index);', + '', + '*returnCount = cIndices.size();', + 'return cIndices.data();', + ]) + else: + raise RuntimeError('function return type ' + returnType + ' is not supported') + + return generatedLines + +################################################################################################################################# + +def generatePropertySourceC(className, segment, enums, selfType, selfName): + propertyType = segment.type + propertyName = segment.name + if segment.getterUsesIsPrefix and propertyType != 'bool': + raise RuntimeError('"is" prefix in property is only allowed for bool types') + + generatedLines = [] + generatedLines.append(generateFunctionSignatureC(className, 'set' + propertyName, [(propertyType, 'value')], 'void', False, selfType, selfName, enums)) + generatedLines.append('{') + generatedLines.extend(generateFunctionCallC(className, 'set' + propertyName, [(propertyType, 'value')], 'void', selfName, enums)) + generatedLines.append('}') + generatedLines.append('') + if propertyType == 'bool' and segment.getterUsesIsPrefix: + generatedLines.append(generateFunctionSignatureC(className, 'is' + propertyName, [], propertyType, True, selfType, selfName, {})) + else: + generatedLines.append(generateFunctionSignatureC(className, 'get' + propertyName, [], propertyType, True, selfType, selfName, enums)) + generatedLines.append('{') + if propertyType == 'bool' and segment.getterUsesIsPrefix: + generatedLines.extend(generateFunctionCallC(className, 'is' + propertyName, [], propertyType, selfName, {})) + else: + generatedLines.extend(generateFunctionCallC(className, 'get' + propertyName, [], propertyType, selfName, enums)) + generatedLines.append('}') + return generatedLines + +################################################################################################################################# + +def generatePropertyHeaderC(className, segment, enums, selfType, selfName): + propertyType = segment.type + propertyName = segment.name + if segment.getterUsesIsPrefix and propertyType != 'bool': + raise RuntimeError('"is" prefix in property is only allowed for bool types') + + if propertyType == 'bool' and segment.getterUsesIsPrefix: + return [ + 'CTGUI_API ' + generateFunctionSignatureC(className, 'set' + propertyName, [(propertyType, 'value')], 'void', False, selfType, selfName, {}) + ';', + 'CTGUI_API ' + generateFunctionSignatureC(className, 'is' + propertyName, [], propertyType, True, selfType, selfName, {}) + ';' + ] + else: + return [ + 'CTGUI_API ' + generateFunctionSignatureC(className, 'set' + propertyName, [(propertyType, 'value')], 'void', False, selfType, selfName, enums) + ';', + 'CTGUI_API ' + generateFunctionSignatureC(className, 'get' + propertyName, [], propertyType, True, selfType, selfName, enums) + ';' + ] + ################################################################################################################################# def generateRendererHeaderFileC(srcFile, destFile, className): @@ -50,46 +345,17 @@ def generateRendererHeaderFileC(srcFile, destFile, className): if isinstance(segment, SegmentPropertyWidgetRenderer): raise RuntimeError('property-widget-renderer is not supported in a renderer') elif isinstance(segment, SegmentProperty): - propertyType = segment.type - propertyName = segment.name - # TODO: Add documentation - if propertyType == 'Outline': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiOutline* outline);', - 'CTGUI_API tguiOutline* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) - elif propertyType == 'Color': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiColor* color);', - 'CTGUI_API tguiColor* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) - elif propertyType == 'float': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, float value);', - 'CTGUI_API float tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) - elif propertyType == 'TextStyle': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiUint32 style);', - 'CTGUI_API tguiUint32 tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) - elif propertyType == 'RendererData': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiRendererData* rendererData);', - 'CTGUI_API tguiRendererData* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) - elif propertyType == 'Texture': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiTexture* texture);', - 'CTGUI_API tguiTexture* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) - elif propertyType == 'bool': - generatedLines.extend([ - 'CTGUI_API void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiBool value);', - 'CTGUI_API tguiBool tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer);' - ]) + generatedLines.extend(generatePropertyHeaderC(className, segment, {}, 'tguiRenderer', 'thisRenderer')) + elif isinstance(segment, SegmentFunction): + # Functions are allowed in the base class, but not in the derived classes which are only allowed to use properties + if className == 'WidgetRenderer': + generatedLines.append('CTGUI_API ' + generateFunctionSignatureC(className, segment.nameC, segment.params, segment.returnType, segment.const, 'tguiRenderer', 'thisRenderer', {}) + ';') else: - raise RuntimeError('Unsupported property type: ' + segment.type) + raise RuntimeError('function is not supported in a renderer') + elif isinstance(segment, SegmentAbstractClass): + raise RuntimeError('abstract-class is not supported in a renderer') + elif isinstance(segment, SegmentEnum): + raise RuntimeError('enum is not supported in a renderer') else: raise RuntimeError('Unsupported instruction in description file') @@ -98,6 +364,15 @@ def generateRendererHeaderFileC(srcFile, destFile, className): except RuntimeError as e: raise RuntimeError('Error generating "' + destFile + '": ' + str(e)) + assert(srcFile.endswith('.desc')) + if os.path.isfile(srcFile[:-5] + '.extra.h'): + extraFile = open(srcFile[:-5] + '.extra.h') + for line in extraFile.readlines(): + generatedLines.append(line.rstrip()) + + if generatedLines[-1] != '': + generatedLines.append('') + generatedLines.append('#endif // CTGUI_' + className.upper() + '_H') outFile = open(destFile, 'w') @@ -112,26 +387,13 @@ def generateRendererHeaderFileC(srcFile, destFile, className): def generateRendererSourceFileC(srcFile, destFile, className): segments = parseDescriptionFile(srcFile) - usesOutline = False - usesRendererData = False - for segment in segments: - if isinstance(segment, SegmentProperty): - propertyType = segment.type - if propertyType == 'Outline': - usesOutline = True - elif propertyType == 'RendererData': - usesRendererData = True - generatedLines = [ '// This file is generated, it should not be edited directly.', '', '#include ', - '#include ', + '#include ', ] - if usesOutline: - generatedLines.append('#include ') - if usesRendererData: - generatedLines.append('#include ') + generatedLines.extend(generateAdditionalIncludesInSourceFile(segments)) generatedLines.extend([ '', '#include ', @@ -145,9 +407,9 @@ def generateRendererSourceFileC(srcFile, destFile, className): ' return new tguiRenderer(new tgui::' + className + ');', '}', '', - 'tguiRenderer* tgui' + className + '_copy(const tguiRenderer* renderer)', + 'tguiRenderer* tgui' + className + '_copy(const tguiRenderer* thisRenderer)', '{', - ' return new tguiRenderer(new tgui::' + className + '(*DOWNCAST(renderer->This)));', + ' return new tguiRenderer(new tgui::' + className + '(*DOWNCAST(thisRenderer->This)));', '}', '', '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////', @@ -161,94 +423,20 @@ def generateRendererSourceFileC(srcFile, destFile, className): if isinstance(segment, SegmentPropertyWidgetRenderer): raise RuntimeError('property-widget-renderer is not supported in a renderer') elif isinstance(segment, SegmentProperty): - propertyType = segment.type - propertyName = segment.name - if propertyType == 'Outline': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiOutline* outline)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(outline->This);', - '}', - '', - 'tguiOutline* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return new tguiOutline(DOWNCAST(renderer->This)->get' + propertyName + '());', - '}', - ]) - elif propertyType == 'Color': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiColor* color)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(ctgui::toCppColor(color));', - '}', - '', - 'tguiColor* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return ctgui::fromCppColor(DOWNCAST(renderer->This)->get' + propertyName + '());', - '}', - ]) - elif propertyType == 'float': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, float value)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(value);', - '}', - '', - 'float tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return DOWNCAST(renderer->This)->get' + propertyName + '();', - '}', - ]) - elif propertyType == 'TextStyle': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiUint32 style)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(style);', - '}', - '', - 'tguiUint32 tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return DOWNCAST(renderer->This)->get' + propertyName + '();', - '}', - ]) - elif propertyType == 'RendererData': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiRendererData* rendererData)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(rendererData->This);', - '}', - '', - 'tguiRendererData* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return new tguiRendererData(DOWNCAST(renderer->This)->get' + propertyName + '());', - '}', - ]) - elif propertyType == 'Texture': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiTexture* texture)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(*texture->This);', - '}', - '', - 'tguiTexture* tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->get' + propertyName + '()));', - '}', - ]) - elif propertyType == 'bool': - generatedLines.extend([ - 'void tgui' + className + '_set' + propertyName + '(tguiRenderer* renderer, tguiBool value)', - '{', - ' DOWNCAST(renderer->This)->set' + propertyName + '(value != 0);', - '}', - '', - 'tguiBool tgui' + className + '_get' + propertyName + '(const tguiRenderer* renderer)', - '{', - ' return DOWNCAST(renderer->This)->get' + propertyName + '();', - '}', - ]) + generatedLines.extend(generatePropertySourceC(className, segment, {}, 'tguiRenderer', 'thisRenderer')) + elif isinstance(segment, SegmentFunction): + # Functions are allowed in the base class, but not in the derived classes which are only allowed to use properties + if className == 'WidgetRenderer': + generatedLines.append(generateFunctionSignatureC(className, segment.nameC, segment.params, segment.returnType, segment.const, 'tguiRenderer', 'thisRenderer', {})) + generatedLines.append('{') + generatedLines.extend(generateFunctionCallC(className, segment.name, segment.params, segment.returnType, 'thisRenderer', {})) + generatedLines.append('}') else: - raise RuntimeError('Unsupported property type: ' + segment.type) + raise RuntimeError('function is not supported in a renderer') + elif isinstance(segment, SegmentAbstractClass): + raise RuntimeError('abstract-class is not supported in a renderer') + elif isinstance(segment, SegmentEnum): + raise RuntimeError('enum is not supported in a renderer') else: raise RuntimeError('Unsupported instruction in description file') @@ -261,6 +449,216 @@ def generateRendererSourceFileC(srcFile, destFile, className): except RuntimeError as e: raise RuntimeError('Error generating "' + destFile + '": ' + str(e)) + assert(srcFile.endswith('.desc')) + if os.path.isfile(srcFile[:-5] + '.extra.cpp'): + extraFile = open(srcFile[:-5] + '.extra.cpp') + for line in extraFile.readlines(): + generatedLines.append(line.rstrip()) + + # Remove empty lines at the end of the file + lastNonEmptyLineIdx = len(generatedLines) + for i in range(len(generatedLines), 0, -1): + if generatedLines[i-1].strip(): + break + else: + lastNonEmptyLineIdx = i-1 + generatedLines = generatedLines[:lastNonEmptyLineIdx] + + outFile = open(destFile, 'w') + for line in generatedLines: + if line: + outFile.write(line + '\n') + else: + outFile.write('\n') + +################################################################################################################################# + +def generateWidgetHeaderFileC(srcFile, destFile, className): + segments = parseDescriptionFile(srcFile) + + abstractClass = False + usesAlignment = False + usesScrollbarPolicy = False + for segment in segments: + if isinstance(segment, SegmentAbstractClass): + abstractClass = True + elif isinstance(segment, SegmentProperty): + propertyType = segment.type + if propertyType == 'HorizontalAlignment' or propertyType == 'VerticalAlignment': + usesAlignment = True + elif propertyType == 'ScrollbarPolicy': + usesScrollbarPolicy = True + elif isinstance(segment, SegmentFunction): + typesToCheck = [segment.returnType] + for param in segment.params: + typesToCheck.append(param[0]) + for typeName in typesToCheck: + if typeName == 'HorizontalAlignment' or typeName == 'VerticalAlignment': + usesAlignment = True + elif typeName == 'ScrollbarPolicy': + usesScrollbarPolicy = True + + generatedLines = [ + '// This file is generated, it should not be edited directly.', + '', + '#ifndef CTGUI_' + className.upper() + '_H', + '#define CTGUI_' + className.upper() + '_H', + '', + '#include ', + ] + if usesAlignment: + generatedLines.append('#include ') + if usesScrollbarPolicy: + generatedLines.append('#include ') + generatedLines.append('') + + enums = {} + for segment in segments: + if isinstance(segment, SegmentEnum): + enums[segment.name] = segment.values + generatedLines.extend([ + 'typedef enum', + '{', + ]) + for value in segment.values: + generatedLines.append(' tgui' + className + segment.name + value + ',') + generatedLines.extend([ + '} tgui' + className + segment.name + ';', + '' + ]) + + if not abstractClass: + generatedLines.extend([ + 'CTGUI_API tguiWidget* tgui' + className + '_create(void);', + '' + ]) + + try: + for segment in segments: + if isinstance(segment, SegmentInherits): + continue # We don't use this information in the C header file + if isinstance(segment, SegmentPropertyWidgetRenderer): + if not segment.prefix: + continue # We don't create a function in C for our own renderer (as the one from tguiWidget can be used) + generatedLines.extend([ + 'CTGUI_API tguiRenderer* tgui' + className + '_get' + segment.prefix + 'Renderer(const tguiWidget* thisWidget);', + 'CTGUI_API tguiRenderer* tgui' + className + '_get' + segment.prefix + 'SharedRenderer(const tguiWidget* thisWidget);' + ]) + elif isinstance(segment, SegmentProperty): + generatedLines.extend(generatePropertyHeaderC(className, segment, enums, 'tguiWidget', 'thisWidget')) + elif isinstance(segment, SegmentFunction): + generatedLines.append('CTGUI_API ' + generateFunctionSignatureC(className, segment.nameC, segment.params, segment.returnType, segment.const, 'tguiWidget', 'thisWidget', enums) + ';') + elif isinstance(segment, SegmentAbstractClass) or isinstance(segment, SegmentEnum): + continue # Already handled earlier + else: + raise RuntimeError('Unsupported instruction in description file') + + # Add a newline behind each segment + generatedLines.append('') + except RuntimeError as e: + raise RuntimeError('Error generating "' + destFile + '": ' + str(e)) + + assert(srcFile.endswith('.desc')) + if os.path.isfile(srcFile[:-5] + '.extra.h'): + extraFile = open(srcFile[:-5] + '.extra.h') + for line in extraFile.readlines(): + generatedLines.append(line.rstrip()) + + generatedLines.append('#endif // CTGUI_' + className.upper() + '_H') + + outFile = open(destFile, 'w') + for line in generatedLines: + if line: + outFile.write(line + '\n') + else: + outFile.write('\n') + +################################################################################################################################# + +def generateWidgetSourceFileC(srcFile, destFile, className): + segments = parseDescriptionFile(srcFile) + + abstractClass = False + enums = {} + for segment in segments: + if isinstance(segment, SegmentAbstractClass): + abstractClass = True + elif isinstance(segment, SegmentEnum): + enums[segment.name] = segment.values + + generatedLines = [ + '// This file is generated, it should not be edited directly.', + '', + '#include ', + '#include ', + ] + generatedLines.extend(generateAdditionalIncludesInSourceFile(segments)) + generatedLines.extend([ + '', + '#include ', + '', + '#define DOWNCAST(x) std::static_pointer_cast(x)', + '', + '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////', + '', + ]) + if not abstractClass: + generatedLines.extend([ + 'tguiWidget* tgui' + className + '_create(void)', + '{', + ' return ctgui::addWidgetRef(tgui::' + className + '::create());', + '}', + '', + '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////', + '', + ]) + + try: + for segment in segments: + if isinstance(segment, SegmentInherits): + continue # We don't use this information in the C source file + if isinstance(segment, SegmentPropertyWidgetRenderer): + if not segment.prefix: + continue # We don't create a function in C for our own renderer (as the one from tguiWidget can be used) + generatedLines.extend([ + 'tguiRenderer* tgui' + className + '_get' + segment.prefix + 'Renderer(const tguiWidget* thisWidget)', + '{', + ' return new tguiRenderer(DOWNCAST(thisWidget->This)->get' + segment.prefix + 'Renderer(), false);', + '}', + '', + 'tguiRenderer* tgui' + className + '_get' + segment.prefix + 'SharedRenderer(const tguiWidget* thisWidget)', + '{', + ' return new tguiRenderer(DOWNCAST(thisWidget->This)->get' + segment.prefix + 'SharedRenderer(), false);', + '}' + ]) + + elif isinstance(segment, SegmentProperty): + generatedLines.extend(generatePropertySourceC(className, segment, enums, 'tguiWidget', 'thisWidget')) + elif isinstance(segment, SegmentFunction): + generatedLines.append(generateFunctionSignatureC(className, segment.nameC, segment.params, segment.returnType, segment.const, 'tguiWidget', 'thisWidget', enums)) + generatedLines.append('{') + generatedLines.extend(generateFunctionCallC(className, segment.name, segment.params, segment.returnType, 'thisWidget', enums)) + generatedLines.append('}') + elif isinstance(segment, SegmentAbstractClass) or isinstance(segment, SegmentEnum): + continue # Already handled earlier + else: + raise RuntimeError('Unsupported instruction in description file') + + # Add a newline behind each segment + generatedLines.extend([ + '', + '/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////', + '' + ]) + except RuntimeError as e: + raise RuntimeError('Error generating "' + destFile + '": ' + str(e)) + + assert(srcFile.endswith('.desc')) + if os.path.isfile(srcFile[:-5] + '.extra.cpp'): + extraFile = open(srcFile[:-5] + '.extra.cpp') + for line in extraFile.readlines(): + generatedLines.append(line.rstrip()) + # Remove empty lines at the end of the file lastNonEmptyLineIdx = len(generatedLines) for i in range(len(generatedLines), 0, -1): @@ -289,6 +687,15 @@ def main(): generateRendererSourceFileC(srcFile, destSrcFile, className) generateRendererHeaderFileC(srcFile, destIncludeFile, className) + for filename in os.listdir('Widgets'): + if filename.endswith('.desc'): + srcFile = os.path.join('Widgets', filename) + className = filename[:-5] + destSrcFile = os.path.join('..', 'src', 'CTGUI', 'Widgets', className + '.cpp') + destIncludeFile = os.path.join('..', 'include', 'CTGUI', 'Widgets', className + '.h') + generateWidgetSourceFileC(srcFile, destSrcFile, className) + generateWidgetHeaderFileC(srcFile, destIncludeFile, className) + ################################################################################################################################# if __name__ == "__main__": diff --git a/code-generator/README.md b/code-generator/README.md index 32506d7..28ed95c 100644 --- a/code-generator/README.md +++ b/code-generator/README.md @@ -5,16 +5,10 @@ Some files or parts of files are generated from templates to reduce the amount o Simply run the `GenerateCodeC.py` script to regenerate all such files. The output is written directly to the src and include directories from the root folder. - -Renderers ---------- - -Almost all files in `src/CTGUI/Renderers/` and `include/CTGUI/Renderers/` are generated based on the files found in the `Renderers` subfolder. - -The exceptions are `WidgetRenderer.h`, `WidgetRenderer.cpp` and `RendererStruct.hpp`. These files need to be edited directly in the src and include folders. +All files in `src/CTGUI/Renderers/`, `include/CTGUI/Renderers/`, `src/CTGUI/Widgets/` and `include/CTGUI/Widgets/` are generated based on the `.desc` files found in the `Renderers` and `Widgets` subfolder. For some classes there are additional `.extra.h` and `.extra.c` files from which the contents is copied directly to the header and source files and placed below the generated code. Additional error checks ----------------------- -The `ValidateDescFiles.py` scripts attempts to detect some issues with the description files by comparing them to the c++ files. It can detect issues such as missing properties, which would not be detected by simply building the generated files. +The `ValidateDescFiles.py` scripts attempts to detect some issues with the description files by comparing them to the c++ files. It can sometimes detect issues which would not be detected by simply building the generated files, such as missing renderer properties. diff --git a/code-generator/Renderers/WidgetRenderer.desc b/code-generator/Renderers/WidgetRenderer.desc new file mode 100644 index 0000000..121b3a0 --- /dev/null +++ b/code-generator/Renderers/WidgetRenderer.desc @@ -0,0 +1,16 @@ +property float Opacity +property float OpacityDisabled +property Font Font +property uint TextSize +property bool TransparentTexture +property RendererData Data + +function setPropertyBool setProperty(string property, bool value) +function setPropertyFont setProperty(string property, Font value) +function setPropertyColor setProperty(string property, Color value) +function setPropertyString setProperty(string property, string value) +function setPropertyNumber setProperty(string property, float value) +function setPropertyOutline setProperty(string property, Outline value) +function setPropertyTexture setProperty(string property, Texture value) +function setPropertyTextStyle setProperty(string property, TextStyle value) +function setPropertyRendererData setProperty(string property, RendererData value) diff --git a/code-generator/Renderers/WidgetRenderer.extra.cpp b/code-generator/Renderers/WidgetRenderer.extra.cpp new file mode 100644 index 0000000..deaf9a2 --- /dev/null +++ b/code-generator/Renderers/WidgetRenderer.extra.cpp @@ -0,0 +1,62 @@ +tguiBool tguiWidgetRenderer_hasProperty(const tguiRenderer* renderer, tguiUtf32 property) +{ + return renderer->This->getProperty(ctgui::toCppStr(property)).getType() != tgui::ObjectConverter::Type::None; +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiWidgetRenderer_getPropertyBool(const tguiRenderer* renderer, tguiUtf32 property) +{ + return renderer->This->getProperty(ctgui::toCppStr(property)).getBool(); +} + +tguiFont* tguiWidgetRenderer_getPropertyFont(const tguiRenderer* renderer, tguiUtf32 property) +{ + return new tguiFont(std::make_unique(renderer->This->getProperty(ctgui::toCppStr(property)).getFont())); +} + +tguiColor* tguiWidgetRenderer_getPropertyColor(const tguiRenderer* renderer, tguiUtf32 property) +{ + return ctgui::fromCppColor(renderer->This->getProperty(ctgui::toCppStr(property)).getColor()); +} + +tguiUtf32 tguiWidgetRenderer_getPropertyString(const tguiRenderer* renderer, tguiUtf32 property) +{ + return ctgui::fromCppStr(renderer->This->getProperty(ctgui::toCppStr(property)).getString()); +} + +float tguiWidgetRenderer_getPropertyNumber(const tguiRenderer* renderer, tguiUtf32 property) +{ + return renderer->This->getProperty(ctgui::toCppStr(property)).getNumber(); +} + +tguiOutline* tguiWidgetRenderer_getPropertyOutline(const tguiRenderer* renderer, tguiUtf32 property) +{ + return new tguiOutline(renderer->This->getProperty(ctgui::toCppStr(property)).getOutline()); +} + +tguiTexture* tguiWidgetRenderer_getPropertyTexture(const tguiRenderer* renderer, tguiUtf32 property) +{ + return new tguiTexture(std::make_unique(renderer->This->getProperty(ctgui::toCppStr(property)).getTexture())); +} + +tguiUint32 tguiWidgetRenderer_getPropertyTextStyle(const tguiRenderer* renderer, tguiUtf32 property) +{ + return static_cast(renderer->This->getProperty(ctgui::toCppStr(property)).getTextStyle()); +} + +tguiRendererData* tguiWidgetRenderer_getPropertyRendererData(const tguiRenderer* renderer, tguiUtf32 property) +{ + return new tguiRendererData(renderer->This->getProperty(ctgui::toCppStr(property)).getRenderer()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_free(tguiRenderer* renderer) +{ + if (renderer->AllocatedInWrapper) + delete renderer->This; + + delete renderer; +} + diff --git a/code-generator/Renderers/WidgetRenderer.extra.h b/code-generator/Renderers/WidgetRenderer.extra.h new file mode 100644 index 0000000..398d670 --- /dev/null +++ b/code-generator/Renderers/WidgetRenderer.extra.h @@ -0,0 +1,13 @@ +CTGUI_API tguiBool tguiWidgetRenderer_hasProperty(const tguiRenderer* renderer, tguiUtf32 property); + +CTGUI_API tguiBool tguiWidgetRenderer_getPropertyBool(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiFont* tguiWidgetRenderer_getPropertyFont(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiColor* tguiWidgetRenderer_getPropertyColor(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiUtf32 tguiWidgetRenderer_getPropertyString(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API float tguiWidgetRenderer_getPropertyNumber(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiOutline* tguiWidgetRenderer_getPropertyOutline(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiTexture* tguiWidgetRenderer_getPropertyTexture(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiUint32 tguiWidgetRenderer_getPropertyTextStyle(const tguiRenderer* renderer, tguiUtf32 property); +CTGUI_API tguiRendererData* tguiWidgetRenderer_getPropertyRendererData(const tguiRenderer* renderer, tguiUtf32 property); + +CTGUI_API void tguiWidgetRenderer_free(tguiRenderer* renderer); diff --git a/code-generator/ValidateDescFiles.py b/code-generator/ValidateDescFiles.py index 97e9a61..84748f8 100644 --- a/code-generator/ValidateDescFiles.py +++ b/code-generator/ValidateDescFiles.py @@ -26,6 +26,9 @@ cppPropertyTypes = {} cppInherits = None for line in open(cppFile, 'r').readlines(): + if line.strip().startswith('//'): + continue + match = re.search(' : public ([a-zA-Z]+)', line) if match: cppInherits = match.group(1) diff --git a/code-generator/Widgets/BitmapButton.desc b/code-generator/Widgets/BitmapButton.desc new file mode 100644 index 0000000..8ed1cec --- /dev/null +++ b/code-generator/Widgets/BitmapButton.desc @@ -0,0 +1,3 @@ +inherits Button +property Texture Image +property float ImageScaling diff --git a/code-generator/Widgets/BoxLayout.desc b/code-generator/Widgets/BoxLayout.desc new file mode 100644 index 0000000..fb5f86b --- /dev/null +++ b/code-generator/Widgets/BoxLayout.desc @@ -0,0 +1,9 @@ +abstract-class +inherits Group + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer BoxLayoutRenderer + +function insert(size_t index, Widget widgetToAdd, string widgetName) +function removeAtIndex remove(size_t index) -> bool +function getAtIndex get(size_t index) const -> Widget diff --git a/code-generator/Widgets/BoxLayoutRatios.desc b/code-generator/Widgets/BoxLayoutRatios.desc new file mode 100644 index 0000000..f8a62ce --- /dev/null +++ b/code-generator/Widgets/BoxLayoutRatios.desc @@ -0,0 +1,14 @@ +abstract-class +inherits BoxLayout + +function add(Widget widget, float ratio, string widgetName) +function insert(size_t index, Widget widget, float ratio, string widgetName) + +function addSpace(float ratio) +function insertSpace(size_t index, float ratio) + +function setRatio(Widget widget, float ratio) +function setRatioAtIndex setRatio(size_t index, float ratio) + +function getRatio(Widget widget) const -> float +function getRatioAtIndex getRatio(size_t index) const -> float diff --git a/code-generator/Widgets/Button.desc b/code-generator/Widgets/Button.desc new file mode 100644 index 0000000..51b420d --- /dev/null +++ b/code-generator/Widgets/Button.desc @@ -0,0 +1 @@ +inherits ButtonBase diff --git a/code-generator/Widgets/ButtonBase.desc b/code-generator/Widgets/ButtonBase.desc new file mode 100644 index 0000000..2d43635 --- /dev/null +++ b/code-generator/Widgets/ButtonBase.desc @@ -0,0 +1,7 @@ +abstract-class +inherits ButtonBase + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ButtonRenderer + +property string Text diff --git a/code-generator/Widgets/ButtonBase.extra.cpp b/code-generator/Widgets/ButtonBase.extra.cpp new file mode 100644 index 0000000..f9a425a --- /dev/null +++ b/code-generator/Widgets/ButtonBase.extra.cpp @@ -0,0 +1,9 @@ +void tguiButtonBase_setTextPositionAbs(tguiWidget* widget, tguiVector2f position, tguiVector2f origin) +{ + DOWNCAST(widget->This)->setTextPosition({position.x, position.y}, {origin.x, origin.y}); +} + +void tguiButtonBase_setTextPositionRel(tguiWidget* widget, tguiVector2f position, tguiVector2f origin) +{ + DOWNCAST(widget->This)->setTextPosition({tgui::RelativeValue(position.x), tgui::RelativeValue(position.y)}, {origin.x, origin.y}); +} diff --git a/code-generator/Widgets/ButtonBase.extra.h b/code-generator/Widgets/ButtonBase.extra.h new file mode 100644 index 0000000..256d332 --- /dev/null +++ b/code-generator/Widgets/ButtonBase.extra.h @@ -0,0 +1,2 @@ +CTGUI_API void tguiButtonBase_setTextPositionAbs(tguiWidget* widget, tguiVector2f position, tguiVector2f origin); +CTGUI_API void tguiButtonBase_setTextPositionRel(tguiWidget* widget, tguiVector2f position, tguiVector2f origin); diff --git a/code-generator/Widgets/ChatBox.desc b/code-generator/Widgets/ChatBox.desc new file mode 100644 index 0000000..3d3fb58 --- /dev/null +++ b/code-generator/Widgets/ChatBox.desc @@ -0,0 +1,25 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ChatBoxRenderer + +function addLine(string text) +function addLineWithColor addLine(string text, Color color) +function addLineWithColorAndStyle addLine(string text, Color color, TextStyle style) + +function getLine(size_t lineIndex) -> string +function getLineColor(size_t lineIndex) -> Color +function getLineTextStyle(size_t lineIndex) -> TextStyle + +function removeLine(size_t lineIndex) -> bool +function removeAllLines() + +function getLineAmount() -> size_t + +property size_t LineLimit +property Color TextColor +property TextStyle TextStyle +property bool LinesStartFromTop +property bool NewLinesBelowOthers +property uint ScrollbarValue + diff --git a/code-generator/Widgets/CheckBox.desc b/code-generator/Widgets/CheckBox.desc new file mode 100644 index 0000000..f157c38 --- /dev/null +++ b/code-generator/Widgets/CheckBox.desc @@ -0,0 +1,4 @@ +inherits RadioButton + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer CheckBoxRenderer diff --git a/code-generator/Widgets/ChildWindow.desc b/code-generator/Widgets/ChildWindow.desc new file mode 100644 index 0000000..0e6fbcf --- /dev/null +++ b/code-generator/Widgets/ChildWindow.desc @@ -0,0 +1,18 @@ +inherits Container + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ChildWindowRenderer + +function setClientSize(Vector2f size) +function setClientSizeFromLayout setClientSize(Layout2d layout) +function getClientSize() -> Vector2f + +property Vector2f MaximumSize +property Vector2f MinimumSize +property string Title +property uint TitleTextSize +property HorizontalAlignment TitleAlignment +property uint TitleButtons +property-bool-is Resizable +property bool KeepInParent +property-bool-is PositionLocked diff --git a/code-generator/Widgets/ClickableWidget.desc b/code-generator/Widgets/ClickableWidget.desc new file mode 100644 index 0000000..e06aaff --- /dev/null +++ b/code-generator/Widgets/ClickableWidget.desc @@ -0,0 +1 @@ +inherits Widget diff --git a/code-generator/Widgets/ColorPicker.desc b/code-generator/Widgets/ColorPicker.desc new file mode 100644 index 0000000..92104fa --- /dev/null +++ b/code-generator/Widgets/ColorPicker.desc @@ -0,0 +1,7 @@ +inherits ChildWindow + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ColorPickerRenderer + +property Color Color + diff --git a/code-generator/Widgets/ComboBox.desc b/code-generator/Widgets/ComboBox.desc new file mode 100644 index 0000000..cead22c --- /dev/null +++ b/code-generator/Widgets/ComboBox.desc @@ -0,0 +1,43 @@ +inherits Widget + +enum ExpandDirection { Down, Up, Automatic } + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ComboBoxRenderer + +property size_t ItemsToDisplay + +function addItem(string item, string id) -> size_t +function getItemById(string id) const -> string + +function getItems() -> List +function getItemIds() -> List + +function setSelectedItem(string item) -> bool +function setSelectedItemById(string item) -> bool +function setSelectedItemByIndex(size_t index) -> bool +function deselectItem() + +function removeItem(string item) -> bool +function removeItemById(string id) -> bool +function removeItemByIndex(size_t index) -> bool +function removeAllItems() + +function getSelectedItem() const -> string +function getSelectedItemId() const -> string +function getSelectedItemIndex() const -> int + +function changeItem(string originalValue, string newValue) -> bool +function changeItemById(string id, string newValue) -> bool +function changeItemByIndex(size_t index, string newValue) -> bool + +function getItemCount() const -> size_t + +property size_t MaximumItems +property string DefaultText +property ExpandDirection ExpandDirection +property bool ChangeItemOnScroll + +function contains(string item) const -> bool +function containsId(string id) const -> bool + diff --git a/code-generator/Widgets/EditBox.desc b/code-generator/Widgets/EditBox.desc new file mode 100644 index 0000000..aecead9 --- /dev/null +++ b/code-generator/Widgets/EditBox.desc @@ -0,0 +1,19 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer EditBoxRenderer + +property string Text +property string DefaultText +property Char32 PasswordCharacter +property uint MaximumCharacters +property HorizontalAlignment Alignment +property-bool-is TextWidthLimited +property-bool-is ReadOnly +property size_t CaretPosition +property string InputValidator +property string Suffix + +function selectText(size_t start, size_t length) +function getSelectedText() const -> string + diff --git a/code-generator/Widgets/EditBoxSlider.desc b/code-generator/Widgets/EditBoxSlider.desc new file mode 100644 index 0000000..978885b --- /dev/null +++ b/code-generator/Widgets/EditBoxSlider.desc @@ -0,0 +1,15 @@ +inherits SubwidgetContainer + +/// @brief Renderer containing properties that determine how the edit box part of the widget is displayed +property-widget-renderer EditBoxRenderer EditBox + +/// @brief Renderer containing properties that determine how the slider part of the widget is displayed +property-widget-renderer SliderRenderer Slider + +property float Minimum +property float Maximum +property float Value +property float Step +property uint DecimalPlaces +property HorizontalAlignment TextAlignment + diff --git a/code-generator/Widgets/FileDialog.desc b/code-generator/Widgets/FileDialog.desc new file mode 100644 index 0000000..c362bd0 --- /dev/null +++ b/code-generator/Widgets/FileDialog.desc @@ -0,0 +1,19 @@ +inherits ChildWindow + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer FileDialogRenderer + +property string Filename + +function getFileTypeFiltersIndex() const -> size_t + +property string ConfirmButtonText +property string CancelButtonText +property string CreateFolderButtonText +property string FilenameLabelText + +property bool AllowCreateFolder +property bool FileMustExist +property bool SelectingDirectory +property bool MultiSelect + diff --git a/code-generator/Widgets/FileDialog.extra.cpp b/code-generator/Widgets/FileDialog.extra.cpp new file mode 100644 index 0000000..3f245b8 --- /dev/null +++ b/code-generator/Widgets/FileDialog.extra.cpp @@ -0,0 +1,116 @@ +struct tguiFileDialogFilter +{ + tgui::String name; + std::vector expressions; +}; + +tguiFileDialogFilter* tguiFileDialogFilter_create(tguiUtf32 name) +{ + auto filter = new tguiFileDialogFilter; + filter->name = ctgui::toCppStr(name); + return filter; +} + +void tguiFileDialogFilter_free(tguiFileDialogFilter* filter) +{ + delete filter; +} + +void tguiFileDialogFilter_addExpression(tguiFileDialogFilter* filter, tguiUtf32 expression) +{ + filter->expressions.push_back(ctgui::toCppStr(expression)); +} + +const tguiUtf32* tguiFileDialogFilter_getExpressions(const tguiFileDialogFilter* filter, size_t* count) +{ + static std::vector cExpressions; + + cExpressions.clear(); + for (const auto& cppExpression : filter->expressions) + cExpressions.push_back(reinterpret_cast(cppExpression.c_str())); + + *count = cExpressions.size(); + return cExpressions.data(); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiFileDialog_setPath(tguiWidget* widget, tguiUtf32 path) +{ + DOWNCAST(widget->This)->setPath(ctgui::toCppStr(path)); +} + +tguiUtf32 tguiFileDialog_getPath(const tguiWidget* widget) +{ + return ctgui::fromCppStr(DOWNCAST(widget->This)->getPath().asString()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiFileDialog_getSelectedPaths(const tguiWidget* widget, size_t* count) +{ + const std::vector& cppPaths = DOWNCAST(widget->This)->getSelectedPaths(); + + static std::vector cppPathStrings; + cppPathStrings.clear(); + for (const auto& cppPath : cppPaths) + cppPathStrings.push_back(cppPath.asString()); + + static std::vector cPaths; + cPaths.clear(); + for (const auto& path : cppPathStrings) + cPaths.emplace_back(reinterpret_cast(path.c_str())); + + *count = cPaths.size(); + return cPaths.data(); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiFileDialog_setFileTypeFilters(tguiWidget* widget, const tguiFileDialogFilter* filters, size_t filterCount, size_t defaultFilterIndex) +{ + std::vector>> cppFilters; + for (size_t i = 0; i < filterCount; ++i) + cppFilters.emplace_back(std::make_pair(filters[i].name, filters[i].expressions)); + + DOWNCAST(widget->This)->setFileTypeFilters(cppFilters, defaultFilterIndex); +} + +tguiFileDialogFilter** tguiFileDialog_getFileTypeFilters(const tguiWidget* widget, size_t* count) +{ + const std::vector>>& cppFilters = DOWNCAST(widget->This)->getFileTypeFilters(); + + static std::vector cFilters; + cFilters.clear(); + for (const auto& cppFilter : cppFilters) + { + tguiFileDialogFilter* cFilter = cFilters.emplace_back(tguiFileDialogFilter_create(reinterpret_cast(cppFilter.first.c_str()))); + for (const auto& cppExpression : cppFilter.second) + tguiFileDialogFilter_addExpression(cFilter, reinterpret_cast(cppExpression.c_str())); + } + + *count = cFilters.size(); + return cFilters.data(); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiFileDialog_setListViewColumnCaptions(tguiWidget* widget, tguiUtf32 nameColumnText, tguiUtf32 sizeColumnText, tguiUtf32 modifiedColumnText) +{ + DOWNCAST(widget->This)->setListViewColumnCaptions(ctgui::toCppStr(nameColumnText), ctgui::toCppStr(sizeColumnText), ctgui::toCppStr(modifiedColumnText)); +} + +tguiUtf32 tguiFileDialog_getListViewColumnCaptionsName(const tguiWidget* widget) +{ + return ctgui::fromCppStr(std::get<0>(DOWNCAST(widget->This)->getListViewColumnCaptions())); +} + +tguiUtf32 tguiFileDialog_getListViewColumnCaptionsSize(const tguiWidget* widget) +{ + return ctgui::fromCppStr(std::get<1>(DOWNCAST(widget->This)->getListViewColumnCaptions())); +} + +tguiUtf32 tguiFileDialog_getListViewColumnCaptionsModified(const tguiWidget* widget) +{ + return ctgui::fromCppStr(std::get<2>(DOWNCAST(widget->This)->getListViewColumnCaptions())); +} diff --git a/code-generator/Widgets/FileDialog.extra.h b/code-generator/Widgets/FileDialog.extra.h new file mode 100644 index 0000000..a3298c1 --- /dev/null +++ b/code-generator/Widgets/FileDialog.extra.h @@ -0,0 +1,22 @@ +typedef struct tguiFileDialogFilter tguiFileDialogFilter; + +CTGUI_API tguiFileDialogFilter* tguiFileDialogFilter_create(tguiUtf32 name); +CTGUI_API void tguiFileDialogFilter_free(tguiFileDialogFilter* filter); + +CTGUI_API void tguiFileDialogFilter_addExpression(tguiFileDialogFilter* filter, tguiUtf32 expression); +CTGUI_API const tguiUtf32* tguiFileDialogFilter_getExpressions(const tguiFileDialogFilter* filter, size_t* count); // count is set by the function to indicate length of returned array + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +CTGUI_API void tguiFileDialog_setPath(tguiWidget* widget, tguiUtf32 path); +CTGUI_API tguiUtf32 tguiFileDialog_getPath(const tguiWidget* widget); + +CTGUI_API const tguiUtf32* tguiFileDialog_getSelectedPaths(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array + +CTGUI_API void tguiFileDialog_setFileTypeFilters(tguiWidget* widget, const tguiFileDialogFilter* filters, size_t filterCount, size_t defaultFilterIndex); +CTGUI_API tguiFileDialogFilter** tguiFileDialog_getFileTypeFilters(const tguiWidget* widget, size_t* count); // tguiFileDialogFilter_free must be called on each element in the returned array, count is set by the function to indicate the array length + +CTGUI_API void tguiFileDialog_setListViewColumnCaptions(tguiWidget* widget, tguiUtf32 nameColumnText, tguiUtf32 sizeColumnText, tguiUtf32 modifiedColumnText); +CTGUI_API tguiUtf32 tguiFileDialog_getListViewColumnCaptionsName(const tguiWidget* widget); +CTGUI_API tguiUtf32 tguiFileDialog_getListViewColumnCaptionsSize(const tguiWidget* widget); +CTGUI_API tguiUtf32 tguiFileDialog_getListViewColumnCaptionsModified(const tguiWidget* widget); diff --git a/code-generator/Widgets/Grid.desc b/code-generator/Widgets/Grid.desc new file mode 100644 index 0000000..29af1b6 --- /dev/null +++ b/code-generator/Widgets/Grid.desc @@ -0,0 +1,19 @@ +inherits Container + +enum Alignment { Center, UpperLeft, Up, UpperRight, Right, BottomRight, Bottom, BottomLeft, Left } + +property bool AutoSize + +function addWidget(Widget widget, size_t row, size_t col, Alignment alignment, Outline padding) +function setWidgetCell(Widget widget, size_t row, size_t col, Alignment alignment, Outline padding) +function getWidget(size_t row, size_t col) -> Widget + +function setWidgetAlignment(Widget widget, Alignment alignment) +function setWidgetAlignmentByCell setWidgetAlignment(size_t row, size_t col, Alignment alignment) +function getWidgetAlignment(Widget widget) const -> Alignment +function getWidgetAlignmentByCell getWidgetAlignment(size_t row, size_t col) const -> Alignment + +function setWidgetPadding(Widget widget, Outline padding) +function setWidgetPaddingByCell setWidgetPadding(size_t row, size_t col, Outline padding) +function getWidgetPadding(Widget widget) const -> Outline +function getWidgetPaddingByCell getWidgetPadding(size_t row, size_t col) const -> Outline diff --git a/code-generator/Widgets/Grid.extra.cpp b/code-generator/Widgets/Grid.extra.cpp new file mode 100644 index 0000000..0d0bf08 --- /dev/null +++ b/code-generator/Widgets/Grid.extra.cpp @@ -0,0 +1,36 @@ +void tguiGridWidgetLocation_free(tguiGridWidgetLocation* locationList, size_t count) +{ + if (!locationList) + return; + + for (size_t i = 0; i < count; ++i) + ctgui::removeWidgetRef(locationList[i].widget->This); + + delete[] locationList; +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiGridWidgetLocation* tguiGrid_getWidgetLocations(const tguiWidget* grid, size_t* count) +{ + const auto& cppLocations = DOWNCAST(grid->This)->getWidgetLocations(); + if (cppLocations.empty()) + { + *count = 0; + return nullptr; + } + + tguiGridWidgetLocation* cLocations = new tguiGridWidgetLocation[cppLocations.size()]; + size_t index = 0; + for (const auto& pair : cppLocations) + { + const tgui::Widget::Ptr& cppWidget = pair.first; + cLocations[index].widget = ctgui::addWidgetRef(cppWidget); + cLocations[index].row = pair.second.first; + cLocations[index].column = pair.second.second; + ++index; + } + + *count = cppLocations.size(); + return cLocations; +} diff --git a/code-generator/Widgets/Grid.extra.h b/code-generator/Widgets/Grid.extra.h new file mode 100644 index 0000000..ba4e4c6 --- /dev/null +++ b/code-generator/Widgets/Grid.extra.h @@ -0,0 +1,12 @@ +typedef struct +{ + tguiWidget* widget; + size_t row; + size_t column; +} tguiGridWidgetLocation; + +CTGUI_API void tguiGridWidgetLocation_free(tguiGridWidgetLocation* locationList, size_t count); // count must be identical to value retrieved from tguiGrid_getWidgetLocations + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +CTGUI_API tguiGridWidgetLocation* tguiGrid_getWidgetLocations(const tguiWidget* grid, size_t* count); // tguiGridWidgetLocation_free needs to be called on returned value. NULL is returned if there are no locations. The count is set by the function to indicate length of returned array. diff --git a/code-generator/Widgets/Group.desc b/code-generator/Widgets/Group.desc new file mode 100644 index 0000000..df52113 --- /dev/null +++ b/code-generator/Widgets/Group.desc @@ -0,0 +1,4 @@ +inherits Container + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer GroupRenderer diff --git a/code-generator/Widgets/HorizontalLayout.desc b/code-generator/Widgets/HorizontalLayout.desc new file mode 100644 index 0000000..6bb92dc --- /dev/null +++ b/code-generator/Widgets/HorizontalLayout.desc @@ -0,0 +1 @@ +inherits BoxLayoutRatios diff --git a/code-generator/Widgets/HorizontalWrap.desc b/code-generator/Widgets/HorizontalWrap.desc new file mode 100644 index 0000000..c3ae5e4 --- /dev/null +++ b/code-generator/Widgets/HorizontalWrap.desc @@ -0,0 +1 @@ +inherits BoxLayout diff --git a/code-generator/Widgets/Knob.desc b/code-generator/Widgets/Knob.desc new file mode 100644 index 0000000..9deaef2 --- /dev/null +++ b/code-generator/Widgets/Knob.desc @@ -0,0 +1,11 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer KnobRenderer + +property float StartRotation +property float EndRotation +property float Minimum +property float Maximum +property float Value +property bool ClockwiseTurning diff --git a/code-generator/Widgets/Label.desc b/code-generator/Widgets/Label.desc new file mode 100644 index 0000000..536ccf8 --- /dev/null +++ b/code-generator/Widgets/Label.desc @@ -0,0 +1,41 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer LabelRenderer + +/// @brief Text of the label +/// +/// When the text is auto-sized (default), then the size of the label will be changed to fit the whole text. +property string Text + +/// @brief Horizontal text alignment +/// +/// By default the text is aligned to the left. +property HorizontalAlignment HorizontalAlignment + +/// @brief Vertical text alignment +/// +/// By default the text is aligned to the top. +property VerticalAlignment VerticalAlignment + +/// @brief Whether the label is auto-sized or not +/// +/// When the label is in auto-size mode, the width and height of the label will be changed to fit the text. +/// Otherwise, only the part defined by the size will be visible. +/// +/// The label is auto-sized by default. +property bool AutoSize + +/// @brief Maximum width that the text will have when auto-sizing +/// +/// When an exact label size is set then you can't set a custom MaximumTextWidth and the maximum width will equal the width of the label minus the padding. +/// When the label is auto-sizing then the maximum width is used to split the text over several lines when its width would exceed the configured value. +/// Setting this property to 0 while the label is auto-sizing would disable the maximum text width. +property float MaximumTextWidth + +/// @brief When the vertical scrollbar should be displayed +property ScrollbarPolicy ScrollbarPolicy + +/// @brief Thumb position of the scrollbar +property uint ScrollbarValue + diff --git a/code-generator/Widgets/ListBox.desc b/code-generator/Widgets/ListBox.desc new file mode 100644 index 0000000..194b53c --- /dev/null +++ b/code-generator/Widgets/ListBox.desc @@ -0,0 +1,46 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ListBoxRenderer + +function addItem(string item, string id) -> size_t + +function getItemById(string id) -> string +function getItemByIndex(size_t index) -> string +function getIndexById(string id) -> int +function getIdByIndex(size_t index) -> string + +function setSelectedItem(string item) -> bool +function setSelectedItemById(string id) -> bool +function setSelectedItemByIndex(size_t index) -> bool +function deselectItem() + +function removeItem(string item) -> bool +function removeItemById(string id) -> bool +function removeItemByIndex(size_t index) -> bool +function removeAllItems() + +function getSelectedItem() const -> string +function getSelectedItemId() const -> string +function getSelectedItemIndex() const -> int + +function changeItem(string originalValue, string newValue) +function changeItemById(string id, string newValue) +function changeItemByIndex(size_t index, string newValue) + +function getItemCount() const -> size_t + +function getItems() const -> List +function getItemIds() const -> List + +function setItemData(size_t index, AnyObject data) +function getItemData(size_t index) -> AnyObject + +property uint ItemHeight +property size_t MaximumItems +property bool AutoScroll +property HorizontalAlignment TextAlignment +property uint ScrollbarValue + +function contains(string item) -> bool +function containsId(string id) -> bool diff --git a/code-generator/Widgets/ListView.desc b/code-generator/Widgets/ListView.desc new file mode 100644 index 0000000..df9df0b --- /dev/null +++ b/code-generator/Widgets/ListView.desc @@ -0,0 +1,78 @@ +inherits ChildWindow + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ListViewRenderer + +function addColumn(string text, float width, HorizontalAlignment columnAlignment) -> size_t + +function setColumnText(size_t index, string text) +function getColumnText(size_t index) const -> string + +function setColumnWidth(size_t index, float width) +function getColumnWidth(size_t index) const -> float +function getColumnDesignWidth(size_t index) const -> float + +function setColumnAlignment(size_t index, HorizontalAlignment columnAlignment) +function getColumnAlignment(size_t index) const -> HorizontalAlignment + +function setColumnAutoResize(size_t index, bool autoResize) +function getColumnAutoResize(size_t index) const -> bool + +function setColumnExpanded(size_t index, bool expand) +function getColumnExpanded(size_t index) const -> bool + +function removeAllColumns() + +function getColumnCount() const -> size_t + +property bool HeaderVisible +property float HeaderHeight +function getCurrentHeaderHeight() const -> float + +function addItem(string text) -> size_t +function addItemRow addItem(List item) -> size_t + +function insertItem(size_t index, string text) +function insertItemRow insertItem(size_t index, List item) + +function changeItem(size_t index, List item) -> bool +function changeSubItem(size_t index, size_t column, string text) -> bool + +function removeItem(size_t index) -> bool +function removeAllItems() + +function setSelectedItem(size_t index) +function setSelectedItems(Set indices) +function getSelectedItemIndex() -> int +function getSelectedItemIndices() const -> Set +function deselectItems() + +property bool MultiSelect + +function setItemData(size_t index, AnyObject data) +function getItemData(size_t index) const -> AnyObject + +function setItemIcon(size_t index, Texture texture) + +function getItemCount() const -> size_t + +function getItem(size_t index) -> string +function getItemCell(size_t rowIndex, size_t columnIndex) -> string +function getItemRow(size_t index) -> List +function getItems() const -> List + +property uint ItemHeight +property uint HeaderTextSize +property uint SeparatorWidth +property uint HeaderSeparatorHeight +property uint GridLinesWidth +property bool AutoScroll +property bool ShowVerticalGridLines +property bool ShowHorizontalGridLines +property ScrollbarPolicy VerticalScrollbarPolicy +property ScrollbarPolicy HorizontalScrollbarPolicy +property uint VerticalScrollbarValue +property uint HorizontalScrollbarValue +property Vector2f FixedIconSize +property bool ResizableColumns + diff --git a/code-generator/Widgets/ListView.extra.cpp b/code-generator/Widgets/ListView.extra.cpp new file mode 100644 index 0000000..03d9901 --- /dev/null +++ b/code-generator/Widgets/ListView.extra.cpp @@ -0,0 +1,7 @@ +void tguiListView_sort(tguiWidget* widget, size_t index, tguiBool (*comp)(tguiUtf32, tguiUtf32)) +{ + DOWNCAST(widget->This)->sort(index, [&comp](const tgui::String& str1, const tgui::String& str2){ + return comp(reinterpret_cast(str1.c_str()), reinterpret_cast(str2.c_str())) != 0; + }); +} + diff --git a/code-generator/Widgets/ListView.extra.h b/code-generator/Widgets/ListView.extra.h new file mode 100644 index 0000000..e9f6098 --- /dev/null +++ b/code-generator/Widgets/ListView.extra.h @@ -0,0 +1,2 @@ +CTGUI_API void tguiListView_sort(tguiWidget* widget, size_t index, tguiBool (*function)(tguiUtf32, tguiUtf32)); + diff --git a/code-generator/Widgets/MenuBar.desc b/code-generator/Widgets/MenuBar.desc new file mode 100644 index 0000000..93148df --- /dev/null +++ b/code-generator/Widgets/MenuBar.desc @@ -0,0 +1,29 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer MenuBarRenderer + +function addMenu(string text) +function addMenuItem(string menu, string text) -> bool +function addMenuItemToLastMenu addMenuItem(string text) -> bool +function addMenuItemHierarchy addMenuItem(List hierarchy, bool createParents) -> bool + +function changeMenuItem(List hierarchy, string text) -> bool + +function removeMenu(string menu) -> bool +function removeMenuItem(string menu, string menuItem) -> bool +function removeMenuItemHierarchy removeMenuItem(List hierarchy, bool removeParentsWhenEmpty) -> bool +function removeAllMenus() + +function setMenuEnabled(string text, bool enabled) -> bool +function getMenuEnabled(string text) const -> bool +function setMenuItemEnabled(string menu, string text, bool enabled) -> bool +function getMenuItemEnabled(string menu, string text) const -> bool +function setMenuItemEnabledHierarchy setMenuItemEnabled(List hierarchy, bool enabled) -> bool +function getMenuItemEnabledHierarchy getMenuItemEnabled(List hierarchy) const -> bool + +function closeMenu() + +property float MinimumSubMenuWidth +property bool InvertedMenuDirection + diff --git a/code-generator/Widgets/MenuBar.extra.cpp b/code-generator/Widgets/MenuBar.extra.cpp new file mode 100644 index 0000000..82986d0 --- /dev/null +++ b/code-generator/Widgets/MenuBar.extra.cpp @@ -0,0 +1,60 @@ +static void freeMenuItem(tguiMenuBarElement& menu) +{ + if (menu.menuItemsCount == 0) + return; + + for (size_t i = 0; i < menu.menuItemsCount; ++i) + freeMenuItem(menu.menuItems[i]); + + delete[] menu.menuItems; +} + +void tguiMenuBarMenuList_free(tguiMenuBarMenuList* menuList) +{ + if (menuList->menusCount > 0) + { + for (size_t i = 0; i < menuList->menusCount; ++i) + freeMenuItem(menuList->menus[i]); + + delete[] menuList->menus; + } + + delete menuList; +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +static void convertMenuItem(const tgui::MenuBar::GetMenusElement& cppMenu, tguiMenuBarElement& cMenu) +{ + cMenu.text = reinterpret_cast(cppMenu.text.c_str()); + cMenu.enabled = cppMenu.enabled; + cMenu.menuItemsCount = cppMenu.menuItems.size(); + if (cppMenu.menuItems.empty()) + cMenu.menuItems = nullptr; + else + { + cMenu.menuItems = new tguiMenuBarElement[cMenu.menuItemsCount]; + for (size_t i = 0; i < cMenu.menuItemsCount; ++i) + convertMenuItem(cppMenu.menuItems[i], cMenu.menuItems[i]); + } +} + +tguiMenuBarMenuList* tguiMenuBar_getMenus(tguiWidget* widget) +{ + // A copy of the strings still needs to exist after this function finished + static std::vector cppMenus; + cppMenus = DOWNCAST(widget->This)->getMenus(); + + tguiMenuBarMenuList* menuList = new tguiMenuBarMenuList; + menuList->menusCount = cppMenus.size(); + if (cppMenus.empty()) + menuList->menus = nullptr; + else + { + menuList->menus = new tguiMenuBarElement[menuList->menusCount]; + for (size_t i = 0; i < menuList->menusCount; ++i) + convertMenuItem(cppMenus[i], menuList->menus[i]); + } + + return menuList; +} diff --git a/code-generator/Widgets/MenuBar.extra.h b/code-generator/Widgets/MenuBar.extra.h new file mode 100644 index 0000000..df065d5 --- /dev/null +++ b/code-generator/Widgets/MenuBar.extra.h @@ -0,0 +1,22 @@ +typedef struct tguiMenuBarElement tguiMenuBarElement; // Needed because the struct contains a pointer to itself + +struct tguiMenuBarElement +{ + tguiUtf32 text; + tguiBool enabled; + tguiMenuBarElement* menuItems; + size_t menuItemsCount; +}; + +typedef struct +{ + tguiMenuBarElement* menus; + size_t menusCount; +} tguiMenuBarMenuList; + +CTGUI_API void tguiMenuBarMenuList_free(tguiMenuBarMenuList* menuList); + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +CTGUI_API tguiMenuBarMenuList* tguiMenuBar_getMenus(tguiWidget* widget); // You must call tguiMenuBarMenuList_free on the returned value + diff --git a/code-generator/Widgets/MessageBox.desc b/code-generator/Widgets/MessageBox.desc new file mode 100644 index 0000000..d40f768 --- /dev/null +++ b/code-generator/Widgets/MessageBox.desc @@ -0,0 +1,14 @@ +inherits ChildWindow + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer MessageBoxRenderer + +property string Text + +function addButton(string text) +function changeButtons(List buttonCaptions) +function getButtons() -> List + +property HorizontalAlignment LabelAlignment +property HorizontalAlignment ButtonAlignment + diff --git a/code-generator/Widgets/Panel.desc b/code-generator/Widgets/Panel.desc new file mode 100644 index 0000000..9ca071a --- /dev/null +++ b/code-generator/Widgets/Panel.desc @@ -0,0 +1,4 @@ +inherits Group + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer PanelRenderer diff --git a/code-generator/Widgets/PanelListBox.desc b/code-generator/Widgets/PanelListBox.desc new file mode 100644 index 0000000..5960f87 --- /dev/null +++ b/code-generator/Widgets/PanelListBox.desc @@ -0,0 +1,29 @@ +inherits ScrollablePanel + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer PanelListBoxRenderer + +function deselectItem() +function removeAllItems() + +function setSelectedItemById(string id) -> bool +function setSelectedItemByIndex(size_t index) -> bool + +function removeItemById(string id) -> bool +function removeItemByIndex(size_t index) -> bool + +function getSelectedItemId() const -> string +function getSelectedItemIndex() const -> int + +function getItemCount() const -> size_t + +function getItemIds() const -> List + +property size_t MaximumItems + +function containsId(string id) -> bool + +function getItemsWidth() const -> Layout + +function setItemsHeight(Layout height); +function getItemsHeight() const -> Layout diff --git a/code-generator/Widgets/PanelListBox.extra.cpp b/code-generator/Widgets/PanelListBox.extra.cpp new file mode 100644 index 0000000..63b44d8 --- /dev/null +++ b/code-generator/Widgets/PanelListBox.extra.cpp @@ -0,0 +1,86 @@ +tguiWidget* tguiPanelListBox_addItem(tguiWidget* widget, tguiUtf32 id) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->addItem(ctgui::toCppStr(id))); +} + +tguiWidget* tguiPanelListBox_addItemAtIndex(tguiWidget* widget, tguiUtf32 id, size_t index) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->addItem(ctgui::toCppStr(id), static_cast(index))); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiPanelListBox_getPanelTemplate(tguiWidget* widget) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getPanelTemplate()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiPanelListBox_setSelectedItem(tguiWidget* widget, const tguiWidget* panelPtr) +{ + return DOWNCAST(widget->This)->setSelectedItem(panelPtr->This->cast()); +} + +tguiWidget* tguiPanelListBox_getSelectedItem(const tguiWidget* widget) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getSelectedItem()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiPanelListBox_removeItem(tguiWidget* widget, const tguiWidget* panelPtr) +{ + return DOWNCAST(widget->This)->removeItem(panelPtr->This->cast()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiPanelListBox_getItemById(const tguiWidget* widget, tguiUtf32 id) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getItemById(ctgui::toCppStr(id))); +} + +tguiWidget* tguiPanelListBox_getItemByIndex(const tguiWidget* widget, size_t index) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getItemByIndex(index)); +} + +int tguiPanelListBox_getIndexById(const tguiWidget* widget, tguiUtf32 id) +{ + return DOWNCAST(widget->This)->getIndexById(ctgui::toCppStr(id)); +} + +int tguiPanelListBox_getIndexByItem(const tguiWidget* widget, const tguiWidget* panelPtr) + +{ + return DOWNCAST(widget->This)->getIndexByItem(panelPtr->This->cast()); +} + +tguiUtf32 tguiPanelListBox_getIdByIndex(const tguiWidget* widget, size_t index) +{ + return ctgui::fromCppStr(DOWNCAST(widget->This)->getIdByIndex(index)); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget** tguiPanelListBox_getItems(const tguiWidget* widget, size_t* count) +{ + const auto& cppPanels = DOWNCAST(widget->This)->getItems(); + + static std::vector cPanels; + cPanels.clear(); + cPanels.reserve(cppPanels.size()); + for (const auto& cppPanel : cppPanels) + cPanels.emplace_back(ctgui::addWidgetRef(cppPanel)); + + *count = cPanels.size(); + return cPanels.data(); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiPanelListBox_contains(const tguiWidget* widget, const tguiWidget* panelPtr) +{ + return DOWNCAST(widget->This)->contains(panelPtr->This->cast()); +} diff --git a/code-generator/Widgets/PanelListBox.extra.h b/code-generator/Widgets/PanelListBox.extra.h new file mode 100644 index 0000000..3ed7c8f --- /dev/null +++ b/code-generator/Widgets/PanelListBox.extra.h @@ -0,0 +1,19 @@ +CTGUI_API tguiWidget* tguiPanelListBox_addItem(tguiWidget* widget, tguiUtf32 id); +CTGUI_API tguiWidget* tguiPanelListBox_addItemAtIndex(tguiWidget* widget, tguiUtf32 id, size_t index); + +CTGUI_API tguiWidget* tguiPanelListBox_getPanelTemplate(tguiWidget* widget); + +CTGUI_API tguiBool tguiPanelListBox_setSelectedItem(tguiWidget* widget, const tguiWidget* panelPtr); +CTGUI_API tguiWidget* tguiPanelListBox_getSelectedItem(const tguiWidget* widget); + +CTGUI_API tguiBool tguiPanelListBox_removeItem(tguiWidget* widget, const tguiWidget* panelPtr); + +CTGUI_API tguiWidget* tguiPanelListBox_getItemById(const tguiWidget* widget, tguiUtf32 id); +CTGUI_API tguiWidget* tguiPanelListBox_getItemByIndex(const tguiWidget* widget, size_t index); +CTGUI_API int tguiPanelListBox_getIndexById(const tguiWidget* widget, tguiUtf32 id); +CTGUI_API int tguiPanelListBox_getIndexByItem(const tguiWidget* widget, const tguiWidget* panelPtr); +CTGUI_API tguiUtf32 tguiPanelListBox_getIdByIndex(const tguiWidget* widget, size_t index); + +CTGUI_API tguiWidget** tguiPanelListBox_getItems(const tguiWidget* widget, size_t* count); // tguiWidget_free must be called on each element in the returned array, count is set by the function to indicate the array length + +CTGUI_API tguiBool tguiPanelListBox_contains(const tguiWidget* widget, const tguiWidget* panelPtr); diff --git a/code-generator/Widgets/Picture.desc b/code-generator/Widgets/Picture.desc new file mode 100644 index 0000000..50f9727 --- /dev/null +++ b/code-generator/Widgets/Picture.desc @@ -0,0 +1,4 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer PictureRenderer diff --git a/code-generator/Widgets/ProgressBar.desc b/code-generator/Widgets/ProgressBar.desc new file mode 100644 index 0000000..f33d00b --- /dev/null +++ b/code-generator/Widgets/ProgressBar.desc @@ -0,0 +1,16 @@ +inherits ClickableWidget + +enum FillDirection { LeftToRight, RightToLeft, TopToBottom, BottomToTop } + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ProgressBarRenderer + +property uint Minimum +property uint Maximum +property uint Value + +function incrementValue() -> uint + +property string Text +property FillDirection FillDirection + diff --git a/code-generator/Widgets/RadioButton.desc b/code-generator/Widgets/RadioButton.desc new file mode 100644 index 0000000..e5a7f22 --- /dev/null +++ b/code-generator/Widgets/RadioButton.desc @@ -0,0 +1,9 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer RadioButtonRenderer + +property-bool-is Checked +property string Text +property-bool-is TextClickable + diff --git a/code-generator/Widgets/RadioButtonGroup.desc b/code-generator/Widgets/RadioButtonGroup.desc new file mode 100644 index 0000000..636ac31 --- /dev/null +++ b/code-generator/Widgets/RadioButtonGroup.desc @@ -0,0 +1,4 @@ +inherits Container + +function uncheckRadioButtons() +function getCheckedRadioButton() -> Widget diff --git a/code-generator/Widgets/RangeSlider.desc b/code-generator/Widgets/RangeSlider.desc new file mode 100644 index 0000000..8f9c423 --- /dev/null +++ b/code-generator/Widgets/RangeSlider.desc @@ -0,0 +1,10 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer RangeSliderRenderer + +property float Minimum +property float Maximum +property float SelectionStart +property float SelectionEnd +property float Step diff --git a/code-generator/Widgets/RichTextLabel.desc b/code-generator/Widgets/RichTextLabel.desc new file mode 100644 index 0000000..36e4ee9 --- /dev/null +++ b/code-generator/Widgets/RichTextLabel.desc @@ -0,0 +1 @@ +inherits Label diff --git a/code-generator/Widgets/ScrollablePanel.desc b/code-generator/Widgets/ScrollablePanel.desc new file mode 100644 index 0000000..00ddcff --- /dev/null +++ b/code-generator/Widgets/ScrollablePanel.desc @@ -0,0 +1,22 @@ +inherits Panel + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ScrollbablePanelRenderer + +property Vector2f ContentSize + +function getScrollbarWidth() const -> float + +property ScrollbarPolicy VerticalScrollbarPolicy +property ScrollbarPolicy HorizontalScrollbarPolicy + +property uint VerticalScrollAmount +property uint HorizontalScrollAmount + +property uint VerticalScrollbarValue +property uint HorizontalScrollbarValue + +function isVerticalScrollbarShown() const -> bool +function isHorizontalScrollbarShown() const -> bool + +function getContentOffset() const -> Vector2f diff --git a/code-generator/Widgets/Scrollbar.desc b/code-generator/Widgets/Scrollbar.desc new file mode 100644 index 0000000..487ba8d --- /dev/null +++ b/code-generator/Widgets/Scrollbar.desc @@ -0,0 +1,13 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer ScrollbarRenderer + +property uint ViewportSize +property uint Maximum +property uint Value +property uint ScrollAmount +property bool AutoHide +property bool VerticalScroll + +function getDefaultWidth() const -> float diff --git a/code-generator/Widgets/SeparatorLine.desc b/code-generator/Widgets/SeparatorLine.desc new file mode 100644 index 0000000..3ac1f6c --- /dev/null +++ b/code-generator/Widgets/SeparatorLine.desc @@ -0,0 +1,5 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer SeparatorLineRenderer + diff --git a/code-generator/Widgets/Slider.desc b/code-generator/Widgets/Slider.desc new file mode 100644 index 0000000..081e5e4 --- /dev/null +++ b/code-generator/Widgets/Slider.desc @@ -0,0 +1,12 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer SliderRenderer + +property float Minimum +property float Maximum +property float Value +property float Step +property bool VerticalScroll +property bool InvertedDirection +property bool ChangeValueOnScroll diff --git a/code-generator/Widgets/SpinButton.desc b/code-generator/Widgets/SpinButton.desc new file mode 100644 index 0000000..a0dce4a --- /dev/null +++ b/code-generator/Widgets/SpinButton.desc @@ -0,0 +1,10 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer SpinButtonRenderer + +property float Minimum +property float Maximum +property float Value +property float Step +property bool VerticalScroll diff --git a/code-generator/Widgets/SpinControl.desc b/code-generator/Widgets/SpinControl.desc new file mode 100644 index 0000000..ae55b93 --- /dev/null +++ b/code-generator/Widgets/SpinControl.desc @@ -0,0 +1,14 @@ +inherits ClickableWidget + +/// @brief Renderer containing properties that determine how the spin buttons part of the widget is displayed +property-widget-renderer SpinButtonRenderer SpinButton + +/// @brief Renderer containing properties that determine how the edit box part of the widget is displayed +property-widget-renderer EditBoxRenderer SpinText + +property float Minimum +property float Maximum +property float Value +property float Step +property uint DecimalPlaces +property bool UseWideArrows diff --git a/code-generator/Widgets/TabContainer.desc b/code-generator/Widgets/TabContainer.desc new file mode 100644 index 0000000..f8a9c71 --- /dev/null +++ b/code-generator/Widgets/TabContainer.desc @@ -0,0 +1,25 @@ +inherits Container + +enum TabAlign { Top, Bottom } + +/// @brief Renderer containing properties that determine how the tabs part of the widget is displayed +property-widget-renderer TabsRenderer Tabs + +function select(size_t index) + +function getPanelCount() const -> size_t + +function getSelectedIndex() const -> int + +function getTabText(size_t index) const -> string + +function changeTabText(size_t index, string text) -> bool + +property float TabFixedSize +property TabAlign TabAlignment + +function setTabsHeight(float height) +function setTabsHeightFromLayout setTabsHeight(Layout layout) + +function removeTabWithName removeTab(string text) -> bool +function removeTabWithIndex removeTab(size_t index) -> bool diff --git a/code-generator/Widgets/TabContainer.extra.cpp b/code-generator/Widgets/TabContainer.extra.cpp new file mode 100644 index 0000000..bc0fd46 --- /dev/null +++ b/code-generator/Widgets/TabContainer.extra.cpp @@ -0,0 +1,36 @@ +tguiWidget* tguiTabContainer_addTab(tguiWidget* widget, tguiUtf32 name, tguiBool select) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->addTab(ctgui::toCppStr(name), select != 0)); +} + +tguiWidget* tguiTabContainer_insertTab(tguiWidget* widget, size_t index, tguiUtf32 name, tguiBool select) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->insertTab(index, ctgui::toCppStr(name), select != 0)); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +int tguiTabContainer_getIndex(const tguiWidget* widget, const tguiWidget* panel) +{ + return DOWNCAST(widget->This)->getIndex(panel->This->cast()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiTabContainer_getSelected(const tguiWidget* widget) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getSelected()); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiTabContainer_getPanel(const tguiWidget* widget, int index) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getPanel(index)); +} + +tguiWidget* tguiTabContainer_getTabs(const tguiWidget* widget) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getTabs()); +} + diff --git a/code-generator/Widgets/TabContainer.extra.h b/code-generator/Widgets/TabContainer.extra.h new file mode 100644 index 0000000..e20dcbd --- /dev/null +++ b/code-generator/Widgets/TabContainer.extra.h @@ -0,0 +1,9 @@ +CTGUI_API tguiWidget* tguiTabContainer_addTab(tguiWidget* widget, tguiUtf32 name, tguiBool select); +CTGUI_API tguiWidget* tguiTabContainer_insertTab(tguiWidget* widget, size_t index, tguiUtf32 name, tguiBool select); + +CTGUI_API int tguiTabContainer_getIndex(const tguiWidget* widget, const tguiWidget* panel); + +CTGUI_API tguiWidget* tguiTabContainer_getSelected(const tguiWidget* widget); + +CTGUI_API tguiWidget* tguiTabContainer_getPanel(const tguiWidget* widget, int index); +CTGUI_API tguiWidget* tguiTabContainer_getTabs(const tguiWidget* widget); diff --git a/code-generator/Widgets/Tabs.desc b/code-generator/Widgets/Tabs.desc new file mode 100644 index 0000000..2e9644b --- /dev/null +++ b/code-generator/Widgets/Tabs.desc @@ -0,0 +1,34 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer TabsRenderer + +property bool AutoSize + +function add(string text, bool select) -> size_t +function insert(size_t index, string text, bool select) +function getText(size_t index) -> string +function changeText(size_t index, string text) -> bool + +function deselect() +function removeAll() + +function getSelected() -> string +function getSelectedIndex() -> int + +function getTabsCount() -> size_t + +function setTabVisible(size_t index, bool visible) +function getTabVisible(size_t index) -> bool + +function setTabEnabled(size_t index, bool visible) +function getTabEnabled(size_t index) -> bool + +property float MaximumTabWidth +property float MinimumTabWidth + +function selectByText select(string text) -> bool +function selectByIndex select(size_t index) -> bool + +function removeByText remove(string text) -> bool +function removeByIndex remove(size_t index) -> bool diff --git a/code-generator/Widgets/TextArea.desc b/code-generator/Widgets/TextArea.desc new file mode 100644 index 0000000..e9fe266 --- /dev/null +++ b/code-generator/Widgets/TextArea.desc @@ -0,0 +1,36 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer TextAreaRenderer + +property string Text + +function addText(string text) + +property string DefaultText + +function setSelectedText(size_t selectionStartIndex, size_t selectionEndIndex) +function getSelectedText() const -> string +function getSelectionStart() const -> size_t +function getSelectionEnd() const -> size_t + +property size_t MaximumCharacters +property string TabString + +function setCaretPosition(size_t charactersBeforeCaret) +function getCaretPosition() const -> size_t +function getCaretLine() const -> size_t +function getCaretColumn() const -> size_t + +property-bool-is ReadOnly + +property ScrollbarPolicy VerticalScrollbarPolicy +property ScrollbarPolicy HorizontalScrollbarPolicy + +property uint VerticalScrollbarValue +property uint HorizontalScrollbarValue + +function enableMonospacedFontOptimization(bool enable) + +function getLinesCount() -> size_t + diff --git a/code-generator/Widgets/ToggleButton.desc b/code-generator/Widgets/ToggleButton.desc new file mode 100644 index 0000000..6536277 --- /dev/null +++ b/code-generator/Widgets/ToggleButton.desc @@ -0,0 +1,3 @@ +inherits ButtonBase + +property-bool-is Down diff --git a/code-generator/Widgets/TreeView.desc b/code-generator/Widgets/TreeView.desc new file mode 100644 index 0000000..b6972d1 --- /dev/null +++ b/code-generator/Widgets/TreeView.desc @@ -0,0 +1,26 @@ +inherits Widget + +/// @brief Renderer containing properties that determine how the widget is displayed +property-widget-renderer TreeViewRenderer + +property uint ItemHeight +property uint VerticalScrollbarValue +property uint HorizontalScrollbarValue + +function addItem(List hierarchy, bool createParents) -> bool +function changeItem(List hierarchy, string leafText) -> bool + +function expand(List hierarchy) +function collapse(List hierarchy) + +function expandAll() +function collapseAll() + +function deselectItem() +function removeAllItems() + +function getSelectedItem() const -> List + +function selectItem(List hierarchy) -> bool +function removeItem(List hierarchy, bool removeParentsWhenEmpty) -> bool + diff --git a/code-generator/Widgets/TreeView.extra.cpp b/code-generator/Widgets/TreeView.extra.cpp new file mode 100644 index 0000000..3344dab --- /dev/null +++ b/code-generator/Widgets/TreeView.extra.cpp @@ -0,0 +1,84 @@ +static std::vector convertHierarchy(const tguiUtf32* hierarchy, unsigned int hierarchyLength) +{ + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (unsigned int i = 0; i < hierarchyLength; ++i) + convertedHierarchy.emplace_back(ctgui::toCppStr(hierarchy[i])); + + return convertedHierarchy; +} + +static void convertNode(const tgui::TreeView::ConstNode& cppNode, tguiTreeViewConstNode& cNode) +{ + cNode.expanded = cppNode.expanded; + cNode.text = reinterpret_cast(cppNode.text.c_str()); + cNode.nodesCount = cppNode.nodes.size(); + if (cppNode.nodes.empty()) + cNode.nodes = nullptr; + else + { + cNode.nodes = new tguiTreeViewConstNode[cppNode.nodes.size()]; + for (size_t i = 0; i < cppNode.nodes.size(); ++i) + convertNode(cppNode.nodes[i], cNode.nodes[i]); + } +} + +static void freeSubNodes(tguiTreeViewConstNode& node) +{ + if (node.nodesCount == 0) + return; + + for (size_t i = 0; i < node.nodesCount; ++i) + freeSubNodes(node.nodes[i]); + + delete[] node.nodes; +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTreeViewConstNode_free(tguiTreeViewConstNode* node) +{ + if (!node) + return; + + freeSubNodes(*node); + delete node; +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiTreeViewConstNode* tguiTreeView_getNode(const tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength) +{ + // A copy of the text strings still needs to exist after this function finished + static tgui::TreeView::ConstNode cppNode; + cppNode = DOWNCAST(widget->This)->getNode(convertHierarchy(hierarchy, hierarchyLength)); + + tguiTreeViewConstNode* cNode = new tguiTreeViewConstNode; + convertNode(cppNode, *cNode); + return cNode; +} + +tguiTreeViewConstNode** tguiTreeView_getNodes(const tguiWidget* widget, size_t* count) +{ + // A copy of the text strings still needs to exist after this function finished + static std::vector cppNodes; + cppNodes = DOWNCAST(widget->This)->getNodes(); + + if (cppNodes.empty()) + { + *count = 0; + return nullptr; + } + + static std::vector cNodes; + cNodes.resize(cppNodes.size()); + for (size_t i = 0; i < cppNodes.size(); ++i) + { + cNodes[i] = new tguiTreeViewConstNode; + convertNode(cppNodes[i], *cNodes[i]); + } + + *count = cppNodes.size(); + return cNodes.data(); +} + diff --git a/code-generator/Widgets/TreeView.extra.h b/code-generator/Widgets/TreeView.extra.h new file mode 100644 index 0000000..8f8b4ab --- /dev/null +++ b/code-generator/Widgets/TreeView.extra.h @@ -0,0 +1,17 @@ +typedef struct tguiTreeViewConstNode tguiTreeViewConstNode; // Needed because the struct contains a pointer to itself + +struct tguiTreeViewConstNode +{ + tguiBool expanded; + tguiUtf32 text; + tguiTreeViewConstNode* nodes; + size_t nodesCount; +}; + +CTGUI_API void tguiTreeViewConstNode_free(tguiTreeViewConstNode* node); // Needs to be called on the pointer returned by tguiTreeView_getNode, and on EACH element of the array returned by tguiTreeView_getNodes. Do NOT call this function on the recursive nodes that are found inside the struct. + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +CTGUI_API const tguiTreeViewConstNode* tguiTreeView_getNode(const tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); // tguiTreeViewConstNode_free must be called on the returned value +CTGUI_API tguiTreeViewConstNode** tguiTreeView_getNodes(const tguiWidget* widget, size_t* count); // tguiTreeViewConstNode_free must be called on each element in the returned array, count is set by the function to indicate the array length. NULL is returned if the tree view is empty. + diff --git a/code-generator/Widgets/VerticalLayout.desc b/code-generator/Widgets/VerticalLayout.desc new file mode 100644 index 0000000..6bb92dc --- /dev/null +++ b/code-generator/Widgets/VerticalLayout.desc @@ -0,0 +1 @@ +inherits BoxLayoutRatios diff --git a/include/CTGUI/Renderers/BoxLayoutRenderer.h b/include/CTGUI/Renderers/BoxLayoutRenderer.h index 493e1c3..6d2efb0 100644 --- a/include/CTGUI/Renderers/BoxLayoutRenderer.h +++ b/include/CTGUI/Renderers/BoxLayoutRenderer.h @@ -8,7 +8,7 @@ CTGUI_API tguiRenderer* tguiBoxLayoutRenderer_create(void); CTGUI_API tguiRenderer* tguiBoxLayoutRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiBoxLayoutRenderer_setSpaceBetweenWidgets(tguiRenderer* renderer, float value); -CTGUI_API float tguiBoxLayoutRenderer_getSpaceBetweenWidgets(const tguiRenderer* renderer); +CTGUI_API void tguiBoxLayoutRenderer_setSpaceBetweenWidgets(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiBoxLayoutRenderer_getSpaceBetweenWidgets(const tguiRenderer* thisRenderer); #endif // CTGUI_BOXLAYOUTRENDERER_H diff --git a/include/CTGUI/Renderers/ButtonRenderer.h b/include/CTGUI/Renderers/ButtonRenderer.h index 4d399a8..56f438c 100644 --- a/include/CTGUI/Renderers/ButtonRenderer.h +++ b/include/CTGUI/Renderers/ButtonRenderer.h @@ -8,136 +8,136 @@ CTGUI_API tguiRenderer* tguiButtonRenderer_create(void); CTGUI_API tguiRenderer* tguiButtonRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiButtonRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiButtonRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiButtonRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorDown(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorDown(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorDown(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorDownHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorDownHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorDownHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorDownFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorDownFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorDownFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorDownFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextColorDownDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextColorDownDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextColorDownDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextColorDownDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorDown(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorDown(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorDown(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorDownHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorDownHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorDownHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorDownFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorDownFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorDownFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorDownFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBackgroundColorDownDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBackgroundColorDownDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBackgroundColorDownDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBackgroundColorDownDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorDown(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorDown(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorDown(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorDownHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorDownHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorDownHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorDownFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorDownFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorDownFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorDownFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setBorderColorDownDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getBorderColorDownDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setBorderColorDownDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getBorderColorDownDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTexture(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTexture(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTexture(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTexture(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureFocused(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureFocused(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureDown(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureDown(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureDown(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureDownHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureDownHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureDownHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureDownFocused(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureDownFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureDownFocused(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureDownFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextureDownDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiButtonRenderer_getTextureDownDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextureDownDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiButtonRenderer_getTextureDownDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleHover(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleHover(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleFocused(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleFocused(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleDisabled(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleDisabled(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleDown(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDown(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleDown(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleDownHover(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleDownHover(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDownHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleDownFocused(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDownFocused(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleDownFocused(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDownFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextStyleDownDisabled(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDownDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextStyleDownDisabled(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiButtonRenderer_getTextStyleDownDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextOutlineColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiButtonRenderer_getTextOutlineColor(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextOutlineColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiButtonRenderer_getTextOutlineColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setTextOutlineThickness(tguiRenderer* renderer, float value); -CTGUI_API float tguiButtonRenderer_getTextOutlineThickness(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setTextOutlineThickness(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiButtonRenderer_getTextOutlineThickness(const tguiRenderer* thisRenderer); -CTGUI_API void tguiButtonRenderer_setRoundedBorderRadius(tguiRenderer* renderer, float value); -CTGUI_API float tguiButtonRenderer_getRoundedBorderRadius(const tguiRenderer* renderer); +CTGUI_API void tguiButtonRenderer_setRoundedBorderRadius(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiButtonRenderer_getRoundedBorderRadius(const tguiRenderer* thisRenderer); #endif // CTGUI_BUTTONRENDERER_H diff --git a/include/CTGUI/Renderers/ChatBoxRenderer.h b/include/CTGUI/Renderers/ChatBoxRenderer.h index f703e7c..be9b222 100644 --- a/include/CTGUI/Renderers/ChatBoxRenderer.h +++ b/include/CTGUI/Renderers/ChatBoxRenderer.h @@ -8,25 +8,25 @@ CTGUI_API tguiRenderer* tguiChatBoxRenderer_create(void); CTGUI_API tguiRenderer* tguiChatBoxRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiChatBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiChatBoxRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiChatBoxRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChatBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiChatBoxRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiChatBoxRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChatBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChatBoxRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChatBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChatBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChatBoxRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChatBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChatBoxRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiChatBoxRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiChatBoxRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChatBoxRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiChatBoxRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiChatBoxRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChatBoxRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiChatBoxRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiChatBoxRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiChatBoxRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); #endif // CTGUI_CHATBOXRENDERER_H diff --git a/include/CTGUI/Renderers/ChildWindowRenderer.h b/include/CTGUI/Renderers/ChildWindowRenderer.h index 07c7f15..8eaa0a1 100644 --- a/include/CTGUI/Renderers/ChildWindowRenderer.h +++ b/include/CTGUI/Renderers/ChildWindowRenderer.h @@ -8,55 +8,55 @@ CTGUI_API tguiRenderer* tguiChildWindowRenderer_create(void); CTGUI_API tguiRenderer* tguiChildWindowRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiChildWindowRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiChildWindowRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiChildWindowRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setTitleBarColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChildWindowRenderer_getTitleBarColor(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setTitleBarColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChildWindowRenderer_getTitleBarColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setTitleColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChildWindowRenderer_getTitleColor(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setTitleColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChildWindowRenderer_getTitleColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChildWindowRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChildWindowRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChildWindowRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChildWindowRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiChildWindowRenderer_getBorderColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiChildWindowRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setBorderBelowTitleBar(tguiRenderer* renderer, float value); -CTGUI_API float tguiChildWindowRenderer_getBorderBelowTitleBar(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setBorderBelowTitleBar(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiChildWindowRenderer_getBorderBelowTitleBar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setTitleBarHeight(tguiRenderer* renderer, float value); -CTGUI_API float tguiChildWindowRenderer_getTitleBarHeight(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setTitleBarHeight(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiChildWindowRenderer_getTitleBarHeight(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setDistanceToSide(tguiRenderer* renderer, float value); -CTGUI_API float tguiChildWindowRenderer_getDistanceToSide(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setDistanceToSide(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiChildWindowRenderer_getDistanceToSide(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setPaddingBetweenButtons(tguiRenderer* renderer, float value); -CTGUI_API float tguiChildWindowRenderer_getPaddingBetweenButtons(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setPaddingBetweenButtons(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiChildWindowRenderer_getPaddingBetweenButtons(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setMinimumResizableBorderWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiChildWindowRenderer_getMinimumResizableBorderWidth(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setMinimumResizableBorderWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiChildWindowRenderer_getMinimumResizableBorderWidth(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setShowTextOnTitleButtons(tguiRenderer* renderer, tguiBool value); -CTGUI_API tguiBool tguiChildWindowRenderer_getShowTextOnTitleButtons(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setShowTextOnTitleButtons(tguiRenderer* thisRenderer, tguiBool value); +CTGUI_API tguiBool tguiChildWindowRenderer_getShowTextOnTitleButtons(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setTextureTitleBar(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiChildWindowRenderer_getTextureTitleBar(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setTextureTitleBar(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiChildWindowRenderer_getTextureTitleBar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiChildWindowRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiChildWindowRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setCloseButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiChildWindowRenderer_getCloseButton(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setCloseButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiChildWindowRenderer_getCloseButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setMaximizeButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiChildWindowRenderer_getMaximizeButton(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setMaximizeButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiChildWindowRenderer_getMaximizeButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiChildWindowRenderer_setMinimizeButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiChildWindowRenderer_getMinimizeButton(const tguiRenderer* renderer); +CTGUI_API void tguiChildWindowRenderer_setMinimizeButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiChildWindowRenderer_getMinimizeButton(const tguiRenderer* thisRenderer); #endif // CTGUI_CHILDWINDOWRENDERER_H diff --git a/include/CTGUI/Renderers/ColorPickerRenderer.h b/include/CTGUI/Renderers/ColorPickerRenderer.h index f1e3e1f..ce85ae0 100644 --- a/include/CTGUI/Renderers/ColorPickerRenderer.h +++ b/include/CTGUI/Renderers/ColorPickerRenderer.h @@ -8,13 +8,13 @@ CTGUI_API tguiRenderer* tguiColorPickerRenderer_create(void); CTGUI_API tguiRenderer* tguiColorPickerRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiColorPickerRenderer_setButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiColorPickerRenderer_getButton(const tguiRenderer* renderer); +CTGUI_API void tguiColorPickerRenderer_setButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiColorPickerRenderer_getButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiColorPickerRenderer_setLabel(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiColorPickerRenderer_getLabel(const tguiRenderer* renderer); +CTGUI_API void tguiColorPickerRenderer_setLabel(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiColorPickerRenderer_getLabel(const tguiRenderer* thisRenderer); -CTGUI_API void tguiColorPickerRenderer_setSlider(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiColorPickerRenderer_getSlider(const tguiRenderer* renderer); +CTGUI_API void tguiColorPickerRenderer_setSlider(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiColorPickerRenderer_getSlider(const tguiRenderer* thisRenderer); #endif // CTGUI_COLORPICKERRENDERER_H diff --git a/include/CTGUI/Renderers/ComboBoxRenderer.h b/include/CTGUI/Renderers/ComboBoxRenderer.h index 2bfb0a1..dea0bd4 100644 --- a/include/CTGUI/Renderers/ComboBoxRenderer.h +++ b/include/CTGUI/Renderers/ComboBoxRenderer.h @@ -8,70 +8,70 @@ CTGUI_API tguiRenderer* tguiComboBoxRenderer_create(void); CTGUI_API tguiRenderer* tguiComboBoxRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiComboBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiComboBoxRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiComboBoxRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiComboBoxRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiComboBoxRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getTextColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setDefaultTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getDefaultTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setDefaultTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getDefaultTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setArrowBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getArrowBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setArrowBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getArrowBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setArrowBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setArrowBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setArrowBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setArrowBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setArrowColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getArrowColor(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setArrowColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getArrowColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setArrowColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getArrowColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setArrowColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getArrowColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setArrowColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getArrowColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setArrowColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getArrowColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiComboBoxRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiComboBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiComboBoxRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiComboBoxRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextureBackgroundDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiComboBoxRenderer_getTextureBackgroundDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextureBackgroundDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiComboBoxRenderer_getTextureBackgroundDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextureArrow(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiComboBoxRenderer_getTextureArrow(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextureArrow(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiComboBoxRenderer_getTextureArrow(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextureArrowHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiComboBoxRenderer_getTextureArrowHover(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextureArrowHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiComboBoxRenderer_getTextureArrowHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextureArrowDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiComboBoxRenderer_getTextureArrowDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextureArrowDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiComboBoxRenderer_getTextureArrowDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiComboBoxRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiComboBoxRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setDefaultTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiComboBoxRenderer_getDefaultTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setDefaultTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiComboBoxRenderer_getDefaultTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiComboBoxRenderer_setListBox(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiComboBoxRenderer_getListBox(const tguiRenderer* renderer); +CTGUI_API void tguiComboBoxRenderer_setListBox(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiComboBoxRenderer_getListBox(const tguiRenderer* thisRenderer); #endif // CTGUI_COMBOBOXRENDERER_H diff --git a/include/CTGUI/Renderers/EditBoxRenderer.h b/include/CTGUI/Renderers/EditBoxRenderer.h index 4de651e..0307f41 100644 --- a/include/CTGUI/Renderers/EditBoxRenderer.h +++ b/include/CTGUI/Renderers/EditBoxRenderer.h @@ -8,82 +8,82 @@ CTGUI_API tguiRenderer* tguiEditBoxRenderer_create(void); CTGUI_API tguiRenderer* tguiEditBoxRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiEditBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiEditBoxRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiEditBoxRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiEditBoxRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiEditBoxRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setCaretWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiEditBoxRenderer_getCaretWidth(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setCaretWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiEditBoxRenderer_getCaretWidth(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setDefaultTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getDefaultTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setDefaultTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getDefaultTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getTextColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getTextColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getTextColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setSelectedTextBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getSelectedTextBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setSelectedTextBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getSelectedTextBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBackgroundColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBackgroundColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBackgroundColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBackgroundColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setCaretColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getCaretColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setCaretColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getCaretColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setCaretColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getCaretColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setCaretColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getCaretColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setCaretColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getCaretColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setCaretColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getCaretColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBorderColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBorderColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBorderColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setBorderColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiEditBoxRenderer_getBorderColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setBorderColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiEditBoxRenderer_getBorderColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTexture(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiEditBoxRenderer_getTexture(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTexture(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiEditBoxRenderer_getTexture(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextureHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiEditBoxRenderer_getTextureHover(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextureHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiEditBoxRenderer_getTextureHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextureFocused(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiEditBoxRenderer_getTextureFocused(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextureFocused(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiEditBoxRenderer_getTextureFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextureDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiEditBoxRenderer_getTextureDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextureDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiEditBoxRenderer_getTextureDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiEditBoxRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiEditBoxRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiEditBoxRenderer_setDefaultTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiEditBoxRenderer_getDefaultTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiEditBoxRenderer_setDefaultTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiEditBoxRenderer_getDefaultTextStyle(const tguiRenderer* thisRenderer); #endif // CTGUI_EDITBOXRENDERER_H diff --git a/include/CTGUI/Renderers/FileDialogRenderer.h b/include/CTGUI/Renderers/FileDialogRenderer.h index b6bf460..6939471 100644 --- a/include/CTGUI/Renderers/FileDialogRenderer.h +++ b/include/CTGUI/Renderers/FileDialogRenderer.h @@ -8,31 +8,31 @@ CTGUI_API tguiRenderer* tguiFileDialogRenderer_create(void); CTGUI_API tguiRenderer* tguiFileDialogRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiFileDialogRenderer_setListView(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getListView(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setListView(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getListView(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setEditBox(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getEditBox(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setEditBox(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getEditBox(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setFilenameLabel(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getFilenameLabel(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setFilenameLabel(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getFilenameLabel(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setFileTypeComboBox(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getFileTypeComboBox(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setFileTypeComboBox(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getFileTypeComboBox(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getButton(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setBackButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getBackButton(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setBackButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getBackButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setForwardButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getForwardButton(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setForwardButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getForwardButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setUpButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiFileDialogRenderer_getUpButton(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setUpButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiFileDialogRenderer_getUpButton(const tguiRenderer* thisRenderer); -CTGUI_API void tguiFileDialogRenderer_setArrowsOnNavigationButtonsVisible(tguiRenderer* renderer, tguiBool value); -CTGUI_API tguiBool tguiFileDialogRenderer_getArrowsOnNavigationButtonsVisible(const tguiRenderer* renderer); +CTGUI_API void tguiFileDialogRenderer_setArrowsOnNavigationButtonsVisible(tguiRenderer* thisRenderer, tguiBool value); +CTGUI_API tguiBool tguiFileDialogRenderer_getArrowsOnNavigationButtonsVisible(const tguiRenderer* thisRenderer); #endif // CTGUI_FILEDIALOGRENDERER_H diff --git a/include/CTGUI/Renderers/GroupRenderer.h b/include/CTGUI/Renderers/GroupRenderer.h index a509e4e..2709666 100644 --- a/include/CTGUI/Renderers/GroupRenderer.h +++ b/include/CTGUI/Renderers/GroupRenderer.h @@ -8,7 +8,7 @@ CTGUI_API tguiRenderer* tguiGroupRenderer_create(void); CTGUI_API tguiRenderer* tguiGroupRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiGroupRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiGroupRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiGroupRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiGroupRenderer_getPadding(const tguiRenderer* thisRenderer); #endif // CTGUI_GROUPRENDERER_H diff --git a/include/CTGUI/Renderers/KnobRenderer.h b/include/CTGUI/Renderers/KnobRenderer.h index b7b57e5..cb15f4e 100644 --- a/include/CTGUI/Renderers/KnobRenderer.h +++ b/include/CTGUI/Renderers/KnobRenderer.h @@ -8,25 +8,25 @@ CTGUI_API tguiRenderer* tguiKnobRenderer_create(void); CTGUI_API tguiRenderer* tguiKnobRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiKnobRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiKnobRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiKnobRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiKnobRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiKnobRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiKnobRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiKnobRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiKnobRenderer_getThumbColor(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setThumbColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiKnobRenderer_getThumbColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiKnobRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiKnobRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiKnobRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiKnobRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiKnobRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiKnobRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiKnobRenderer_setTextureForeground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiKnobRenderer_getTextureForeground(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setTextureForeground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiKnobRenderer_getTextureForeground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiKnobRenderer_setImageRotation(tguiRenderer* renderer, float value); -CTGUI_API float tguiKnobRenderer_getImageRotation(const tguiRenderer* renderer); +CTGUI_API void tguiKnobRenderer_setImageRotation(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiKnobRenderer_getImageRotation(const tguiRenderer* thisRenderer); #endif // CTGUI_KNOBRENDERER_H diff --git a/include/CTGUI/Renderers/LabelRenderer.h b/include/CTGUI/Renderers/LabelRenderer.h index 54f54d4..95b228b 100644 --- a/include/CTGUI/Renderers/LabelRenderer.h +++ b/include/CTGUI/Renderers/LabelRenderer.h @@ -8,37 +8,37 @@ CTGUI_API tguiRenderer* tguiLabelRenderer_create(void); CTGUI_API tguiRenderer* tguiLabelRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiLabelRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiLabelRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiLabelRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiLabelRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiLabelRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiLabelRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiLabelRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setTextOutlineColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiLabelRenderer_getTextOutlineColor(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setTextOutlineColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiLabelRenderer_getTextOutlineColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setTextOutlineThickness(tguiRenderer* renderer, float value); -CTGUI_API float tguiLabelRenderer_getTextOutlineThickness(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setTextOutlineThickness(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiLabelRenderer_getTextOutlineThickness(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiLabelRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiLabelRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiLabelRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiLabelRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiLabelRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiLabelRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiLabelRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiLabelRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiLabelRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiLabelRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); -CTGUI_API void tguiLabelRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiLabelRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiLabelRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiLabelRenderer_getTextureBackground(const tguiRenderer* thisRenderer); #endif // CTGUI_LABELRENDERER_H diff --git a/include/CTGUI/Renderers/ListBoxRenderer.h b/include/CTGUI/Renderers/ListBoxRenderer.h index 4f83c5c..77ef6a5 100644 --- a/include/CTGUI/Renderers/ListBoxRenderer.h +++ b/include/CTGUI/Renderers/ListBoxRenderer.h @@ -8,52 +8,52 @@ CTGUI_API tguiRenderer* tguiListBoxRenderer_create(void); CTGUI_API tguiRenderer* tguiListBoxRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiListBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiListBoxRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiListBoxRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiListBoxRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiListBoxRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getSelectedTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListBoxRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiListBoxRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiListBoxRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiListBoxRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiListBoxRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setSelectedTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiListBoxRenderer_getSelectedTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setSelectedTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiListBoxRenderer_getSelectedTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiListBoxRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiListBoxRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListBoxRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiListBoxRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiListBoxRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiListBoxRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); #endif // CTGUI_LISTBOXRENDERER_H diff --git a/include/CTGUI/Renderers/ListViewRenderer.h b/include/CTGUI/Renderers/ListViewRenderer.h index b03a230..5d5a284 100644 --- a/include/CTGUI/Renderers/ListViewRenderer.h +++ b/include/CTGUI/Renderers/ListViewRenderer.h @@ -8,61 +8,61 @@ CTGUI_API tguiRenderer* tguiListViewRenderer_create(void); CTGUI_API tguiRenderer* tguiListViewRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiListViewRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiListViewRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiListViewRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiListViewRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiListViewRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getSelectedTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setHeaderBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getHeaderBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setHeaderBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getHeaderBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setHeaderTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getHeaderTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setHeaderTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getHeaderTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setSeparatorColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getSeparatorColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setSeparatorColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getSeparatorColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setGridLinesColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiListViewRenderer_getGridLinesColor(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setGridLinesColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiListViewRenderer_getGridLinesColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setTextureHeaderBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiListViewRenderer_getTextureHeaderBackground(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setTextureHeaderBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiListViewRenderer_getTextureHeaderBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiListViewRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiListViewRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiListViewRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiListViewRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiListViewRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiListViewRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiListViewRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiListViewRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); #endif // CTGUI_LISTVIEWRENDERER_H diff --git a/include/CTGUI/Renderers/MenuBarRenderer.h b/include/CTGUI/Renderers/MenuBarRenderer.h index 75cb9c4..b24f8a6 100644 --- a/include/CTGUI/Renderers/MenuBarRenderer.h +++ b/include/CTGUI/Renderers/MenuBarRenderer.h @@ -8,43 +8,43 @@ CTGUI_API tguiRenderer* tguiMenuBarRenderer_create(void); CTGUI_API tguiRenderer* tguiMenuBarRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiMenuBarRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMenuBarRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMenuBarRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMenuBarRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMenuBarRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMenuBarRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMenuBarRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMenuBarRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMenuBarRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMenuBarRenderer_getTextColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMenuBarRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setSeparatorColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMenuBarRenderer_getSeparatorColor(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setSeparatorColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMenuBarRenderer_getSeparatorColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiMenuBarRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiMenuBarRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setTextureItemBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiMenuBarRenderer_getTextureItemBackground(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setTextureItemBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiMenuBarRenderer_getTextureItemBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setTextureSelectedItemBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiMenuBarRenderer_getTextureSelectedItemBackground(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setTextureSelectedItemBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiMenuBarRenderer_getTextureSelectedItemBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setDistanceToSide(tguiRenderer* renderer, float value); -CTGUI_API float tguiMenuBarRenderer_getDistanceToSide(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setDistanceToSide(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiMenuBarRenderer_getDistanceToSide(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setSeparatorThickness(tguiRenderer* renderer, float value); -CTGUI_API float tguiMenuBarRenderer_getSeparatorThickness(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setSeparatorThickness(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiMenuBarRenderer_getSeparatorThickness(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setSeparatorVerticalPadding(tguiRenderer* renderer, float value); -CTGUI_API float tguiMenuBarRenderer_getSeparatorVerticalPadding(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setSeparatorVerticalPadding(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiMenuBarRenderer_getSeparatorVerticalPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMenuBarRenderer_setSeparatorSidePadding(tguiRenderer* renderer, float value); -CTGUI_API float tguiMenuBarRenderer_getSeparatorSidePadding(const tguiRenderer* renderer); +CTGUI_API void tguiMenuBarRenderer_setSeparatorSidePadding(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiMenuBarRenderer_getSeparatorSidePadding(const tguiRenderer* thisRenderer); #endif // CTGUI_MENUBARRENDERER_H diff --git a/include/CTGUI/Renderers/MessageBoxRenderer.h b/include/CTGUI/Renderers/MessageBoxRenderer.h index 571554b..c75bca2 100644 --- a/include/CTGUI/Renderers/MessageBoxRenderer.h +++ b/include/CTGUI/Renderers/MessageBoxRenderer.h @@ -8,10 +8,10 @@ CTGUI_API tguiRenderer* tguiMessageBoxRenderer_create(void); CTGUI_API tguiRenderer* tguiMessageBoxRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiMessageBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiMessageBoxRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiMessageBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiMessageBoxRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiMessageBoxRenderer_setButton(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiMessageBoxRenderer_getButton(const tguiRenderer* renderer); +CTGUI_API void tguiMessageBoxRenderer_setButton(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiMessageBoxRenderer_getButton(const tguiRenderer* thisRenderer); #endif // CTGUI_MESSAGEBOXRENDERER_H diff --git a/include/CTGUI/Renderers/PanelListBoxRenderer.h b/include/CTGUI/Renderers/PanelListBoxRenderer.h index e019531..66a180d 100644 --- a/include/CTGUI/Renderers/PanelListBoxRenderer.h +++ b/include/CTGUI/Renderers/PanelListBoxRenderer.h @@ -8,16 +8,16 @@ CTGUI_API tguiRenderer* tguiPanelListBoxRenderer_create(void); CTGUI_API tguiRenderer* tguiPanelListBoxRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiPanelListBoxRenderer_setItemsBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiPanelListBoxRenderer_setItemsBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelListBoxRenderer_setItemsBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiPanelListBoxRenderer_setItemsBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColorHover(const tguiRenderer* thisRenderer); #endif // CTGUI_PANELLISTBOXRENDERER_H diff --git a/include/CTGUI/Renderers/PanelRenderer.h b/include/CTGUI/Renderers/PanelRenderer.h index 71ab75b..4d31e87 100644 --- a/include/CTGUI/Renderers/PanelRenderer.h +++ b/include/CTGUI/Renderers/PanelRenderer.h @@ -8,19 +8,19 @@ CTGUI_API tguiRenderer* tguiPanelRenderer_create(void); CTGUI_API tguiRenderer* tguiPanelRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiPanelRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiPanelRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiPanelRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiPanelRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiPanelRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiPanelRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiPanelRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiPanelRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiPanelRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiPanelRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiPanelRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiPanelRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiPanelRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiPanelRenderer_setRoundedBorderRadius(tguiRenderer* renderer, float value); -CTGUI_API float tguiPanelRenderer_getRoundedBorderRadius(const tguiRenderer* renderer); +CTGUI_API void tguiPanelRenderer_setRoundedBorderRadius(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiPanelRenderer_getRoundedBorderRadius(const tguiRenderer* thisRenderer); #endif // CTGUI_PANELRENDERER_H diff --git a/include/CTGUI/Renderers/PictureRenderer.h b/include/CTGUI/Renderers/PictureRenderer.h index 1ef8e3c..49251f8 100644 --- a/include/CTGUI/Renderers/PictureRenderer.h +++ b/include/CTGUI/Renderers/PictureRenderer.h @@ -8,7 +8,7 @@ CTGUI_API tguiRenderer* tguiPictureRenderer_create(void); CTGUI_API tguiRenderer* tguiPictureRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiPictureRenderer_setTexture(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiPictureRenderer_getTexture(const tguiRenderer* renderer); +CTGUI_API void tguiPictureRenderer_setTexture(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiPictureRenderer_getTexture(const tguiRenderer* thisRenderer); #endif // CTGUI_PICTURERENDERER_H diff --git a/include/CTGUI/Renderers/ProgressBarRenderer.h b/include/CTGUI/Renderers/ProgressBarRenderer.h index fe1392c..5d90a01 100644 --- a/include/CTGUI/Renderers/ProgressBarRenderer.h +++ b/include/CTGUI/Renderers/ProgressBarRenderer.h @@ -8,37 +8,37 @@ CTGUI_API tguiRenderer* tguiProgressBarRenderer_create(void); CTGUI_API tguiRenderer* tguiProgressBarRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiProgressBarRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiProgressBarRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiProgressBarRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiProgressBarRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiProgressBarRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextColorFilled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiProgressBarRenderer_getTextColorFilled(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextColorFilled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiProgressBarRenderer_getTextColorFilled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiProgressBarRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiProgressBarRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setFillColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiProgressBarRenderer_getFillColor(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setFillColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiProgressBarRenderer_getFillColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiProgressBarRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiProgressBarRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiProgressBarRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiProgressBarRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextureFill(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiProgressBarRenderer_getTextureFill(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextureFill(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiProgressBarRenderer_getTextureFill(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiProgressBarRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiProgressBarRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextOutlineColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiProgressBarRenderer_getTextOutlineColor(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextOutlineColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiProgressBarRenderer_getTextOutlineColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiProgressBarRenderer_setTextOutlineThickness(tguiRenderer* renderer, float value); -CTGUI_API float tguiProgressBarRenderer_getTextOutlineThickness(const tguiRenderer* renderer); +CTGUI_API void tguiProgressBarRenderer_setTextOutlineThickness(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiProgressBarRenderer_getTextOutlineThickness(const tguiRenderer* thisRenderer); #endif // CTGUI_PROGRESSBARRENDERER_H diff --git a/include/CTGUI/Renderers/RadioButtonRenderer.h b/include/CTGUI/Renderers/RadioButtonRenderer.h index cfc7425..35923a2 100644 --- a/include/CTGUI/Renderers/RadioButtonRenderer.h +++ b/include/CTGUI/Renderers/RadioButtonRenderer.h @@ -8,109 +8,109 @@ CTGUI_API tguiRenderer* tguiRadioButtonRenderer_create(void); CTGUI_API tguiRenderer* tguiRadioButtonRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiRadioButtonRenderer_setTextDistanceRatio(tguiRenderer* renderer, float value); -CTGUI_API float tguiRadioButtonRenderer_getTextDistanceRatio(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextDistanceRatio(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiRadioButtonRenderer_getTextDistanceRatio(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiRadioButtonRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiRadioButtonRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getTextColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextColorChecked(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getTextColorChecked(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextColorChecked(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getTextColorChecked(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextColorCheckedHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getTextColorCheckedHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextColorCheckedHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getTextColorCheckedHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextColorCheckedDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getTextColorCheckedDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextColorCheckedDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getTextColorCheckedDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorChecked(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBackgroundColorChecked(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorChecked(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBackgroundColorChecked(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorCheckedHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorCheckedHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorCheckedDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBackgroundColorCheckedDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorFocused(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorChecked(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorChecked(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorChecked(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorChecked(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorCheckedHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorCheckedHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorCheckedFocused(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedFocused(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorCheckedFocused(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setBorderColorCheckedDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setBorderColorCheckedDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setCheckColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getCheckColor(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setCheckColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getCheckColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setCheckColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getCheckColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setCheckColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getCheckColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setCheckColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRadioButtonRenderer_getCheckColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setCheckColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRadioButtonRenderer_getCheckColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureUnchecked(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureUnchecked(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureUnchecked(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureUnchecked(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureChecked(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureChecked(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureChecked(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureChecked(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureUncheckedHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureUncheckedHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureCheckedHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureCheckedHover(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureCheckedHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureCheckedHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureUncheckedFocused(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedFocused(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureUncheckedFocused(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureCheckedFocused(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureCheckedFocused(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureCheckedFocused(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureCheckedFocused(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureUncheckedDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureUncheckedDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextureCheckedDisabled(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRadioButtonRenderer_getTextureCheckedDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextureCheckedDisabled(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRadioButtonRenderer_getTextureCheckedDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiRadioButtonRenderer_getTextStyle(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiRadioButtonRenderer_getTextStyle(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRadioButtonRenderer_setTextStyleChecked(tguiRenderer* renderer, tguiUint32 style); -CTGUI_API tguiUint32 tguiRadioButtonRenderer_getTextStyleChecked(const tguiRenderer* renderer); +CTGUI_API void tguiRadioButtonRenderer_setTextStyleChecked(tguiRenderer* thisRenderer, tguiUint32 value); +CTGUI_API tguiUint32 tguiRadioButtonRenderer_getTextStyleChecked(const tguiRenderer* thisRenderer); #endif // CTGUI_RADIOBUTTONRENDERER_H diff --git a/include/CTGUI/Renderers/RangeSliderRenderer.h b/include/CTGUI/Renderers/RangeSliderRenderer.h index 3ebc433..a40ad13 100644 --- a/include/CTGUI/Renderers/RangeSliderRenderer.h +++ b/include/CTGUI/Renderers/RangeSliderRenderer.h @@ -8,52 +8,16 @@ CTGUI_API tguiRenderer* tguiRangeSliderRenderer_create(void); CTGUI_API tguiRenderer* tguiRangeSliderRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiRangeSliderRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiRangeSliderRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiRangeSliderRenderer_setSelectedTrackColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRangeSliderRenderer_getSelectedTrackColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRangeSliderRenderer_setTrackColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getTrackColor(const tguiRenderer* renderer); +CTGUI_API void tguiRangeSliderRenderer_setSelectedTrackColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiRangeSliderRenderer_getSelectedTrackColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRangeSliderRenderer_setTrackColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getTrackColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiRangeSliderRenderer_setTextureSelectedTrack(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrack(const tguiRenderer* thisRenderer); -CTGUI_API void tguiRangeSliderRenderer_setSelectedTrackColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getSelectedTrackColor(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setSelectedTrackColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getSelectedTrackColorHover(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getThumbColor(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setThumbColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getThumbColorHover(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getBorderColor(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiRangeSliderRenderer_getBorderColorHover(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setTextureTrack(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRangeSliderRenderer_getTextureTrack(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setTextureTrackHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRangeSliderRenderer_getTextureTrackHover(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setTextureSelectedTrack(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrack(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setTextureSelectedTrackHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrackHover(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setTextureThumb(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRangeSliderRenderer_getTextureThumb(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setTextureThumbHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiRangeSliderRenderer_getTextureThumbHover(const tguiRenderer* renderer); - -CTGUI_API void tguiRangeSliderRenderer_setThumbWithinTrack(tguiRenderer* renderer, tguiBool value); -CTGUI_API tguiBool tguiRangeSliderRenderer_getThumbWithinTrack(const tguiRenderer* renderer); +CTGUI_API void tguiRangeSliderRenderer_setTextureSelectedTrackHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrackHover(const tguiRenderer* thisRenderer); #endif // CTGUI_RANGESLIDERRENDERER_H diff --git a/include/CTGUI/Renderers/ScrollablePanelRenderer.h b/include/CTGUI/Renderers/ScrollablePanelRenderer.h index 0ab5fea..0066b3d 100644 --- a/include/CTGUI/Renderers/ScrollablePanelRenderer.h +++ b/include/CTGUI/Renderers/ScrollablePanelRenderer.h @@ -8,10 +8,10 @@ CTGUI_API tguiRenderer* tguiScrollablePanelRenderer_create(void); CTGUI_API tguiRenderer* tguiScrollablePanelRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiScrollablePanelRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiScrollablePanelRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiScrollablePanelRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiScrollablePanelRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollablePanelRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiScrollablePanelRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiScrollablePanelRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiScrollablePanelRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); #endif // CTGUI_SCROLLABLEPANELRENDERER_H diff --git a/include/CTGUI/Renderers/ScrollbarRenderer.h b/include/CTGUI/Renderers/ScrollbarRenderer.h index 50e8a5b..d995a86 100644 --- a/include/CTGUI/Renderers/ScrollbarRenderer.h +++ b/include/CTGUI/Renderers/ScrollbarRenderer.h @@ -8,52 +8,52 @@ CTGUI_API tguiRenderer* tguiScrollbarRenderer_create(void); CTGUI_API tguiRenderer* tguiScrollbarRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiScrollbarRenderer_setTrackColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getTrackColor(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTrackColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getTrackColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTrackColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getTrackColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTrackColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getTrackColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getThumbColor(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setThumbColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getThumbColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setThumbColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getThumbColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setThumbColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getThumbColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setArrowBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getArrowBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setArrowBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getArrowBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setArrowBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getArrowBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setArrowBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getArrowBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setArrowColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getArrowColor(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setArrowColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getArrowColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setArrowColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiScrollbarRenderer_getArrowColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setArrowColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiScrollbarRenderer_getArrowColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureTrack(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureTrack(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureTrack(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureTrack(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureTrackHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureTrackHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureTrackHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureTrackHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureThumb(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureThumb(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureThumb(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureThumb(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureThumbHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureThumbHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureThumbHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureThumbHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureArrowUp(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureArrowUp(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureArrowUp(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureArrowUp(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureArrowUpHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureArrowUpHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureArrowUpHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureArrowUpHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureArrowDown(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureArrowDown(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureArrowDown(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureArrowDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiScrollbarRenderer_setTextureArrowDownHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiScrollbarRenderer_getTextureArrowDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiScrollbarRenderer_setTextureArrowDownHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiScrollbarRenderer_getTextureArrowDownHover(const tguiRenderer* thisRenderer); #endif // CTGUI_SCROLLBARRENDERER_H diff --git a/include/CTGUI/Renderers/SeparatorLineRenderer.h b/include/CTGUI/Renderers/SeparatorLineRenderer.h index d8d0cb7..b05638b 100644 --- a/include/CTGUI/Renderers/SeparatorLineRenderer.h +++ b/include/CTGUI/Renderers/SeparatorLineRenderer.h @@ -8,7 +8,7 @@ CTGUI_API tguiRenderer* tguiSeparatorLineRenderer_create(void); CTGUI_API tguiRenderer* tguiSeparatorLineRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiSeparatorLineRenderer_setColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSeparatorLineRenderer_getColor(const tguiRenderer* renderer); +CTGUI_API void tguiSeparatorLineRenderer_setColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSeparatorLineRenderer_getColor(const tguiRenderer* thisRenderer); #endif // CTGUI_SEPARATORLINERENDERER_H diff --git a/include/CTGUI/Renderers/SliderRenderer.h b/include/CTGUI/Renderers/SliderRenderer.h index 017f5c9..ca75acb 100644 --- a/include/CTGUI/Renderers/SliderRenderer.h +++ b/include/CTGUI/Renderers/SliderRenderer.h @@ -8,40 +8,40 @@ CTGUI_API tguiRenderer* tguiSliderRenderer_create(void); CTGUI_API tguiRenderer* tguiSliderRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiSliderRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiSliderRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiSliderRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setTrackColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSliderRenderer_getTrackColor(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setTrackColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSliderRenderer_getTrackColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setTrackColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSliderRenderer_getTrackColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setTrackColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSliderRenderer_getTrackColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSliderRenderer_getThumbColor(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setThumbColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSliderRenderer_getThumbColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setThumbColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSliderRenderer_getThumbColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setThumbColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSliderRenderer_getThumbColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSliderRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSliderRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSliderRenderer_getBorderColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSliderRenderer_getBorderColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setTextureTrack(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSliderRenderer_getTextureTrack(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setTextureTrack(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSliderRenderer_getTextureTrack(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setTextureTrackHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSliderRenderer_getTextureTrackHover(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setTextureTrackHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSliderRenderer_getTextureTrackHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setTextureThumb(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSliderRenderer_getTextureThumb(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setTextureThumb(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSliderRenderer_getTextureThumb(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setTextureThumbHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSliderRenderer_getTextureThumbHover(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setTextureThumbHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSliderRenderer_getTextureThumbHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSliderRenderer_setThumbWithinTrack(tguiRenderer* renderer, tguiBool value); -CTGUI_API tguiBool tguiSliderRenderer_getThumbWithinTrack(const tguiRenderer* renderer); +CTGUI_API void tguiSliderRenderer_setThumbWithinTrack(tguiRenderer* thisRenderer, tguiBool value); +CTGUI_API tguiBool tguiSliderRenderer_getThumbWithinTrack(const tguiRenderer* thisRenderer); #endif // CTGUI_SLIDERRENDERER_H diff --git a/include/CTGUI/Renderers/SpinButtonRenderer.h b/include/CTGUI/Renderers/SpinButtonRenderer.h index abbe514..7c4d6d6 100644 --- a/include/CTGUI/Renderers/SpinButtonRenderer.h +++ b/include/CTGUI/Renderers/SpinButtonRenderer.h @@ -8,37 +8,37 @@ CTGUI_API tguiRenderer* tguiSpinButtonRenderer_create(void); CTGUI_API tguiRenderer* tguiSpinButtonRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiSpinButtonRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiSpinButtonRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiSpinButtonRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setBorderBetweenArrows(tguiRenderer* renderer, float value); -CTGUI_API float tguiSpinButtonRenderer_getBorderBetweenArrows(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setBorderBetweenArrows(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiSpinButtonRenderer_getBorderBetweenArrows(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSpinButtonRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSpinButtonRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSpinButtonRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSpinButtonRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setArrowColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSpinButtonRenderer_getArrowColor(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setArrowColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSpinButtonRenderer_getArrowColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setArrowColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSpinButtonRenderer_getArrowColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setArrowColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSpinButtonRenderer_getArrowColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiSpinButtonRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiSpinButtonRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setTextureArrowUp(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSpinButtonRenderer_getTextureArrowUp(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setTextureArrowUp(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSpinButtonRenderer_getTextureArrowUp(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setTextureArrowUpHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSpinButtonRenderer_getTextureArrowUpHover(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setTextureArrowUpHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSpinButtonRenderer_getTextureArrowUpHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setTextureArrowDown(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSpinButtonRenderer_getTextureArrowDown(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setTextureArrowDown(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSpinButtonRenderer_getTextureArrowDown(const tguiRenderer* thisRenderer); -CTGUI_API void tguiSpinButtonRenderer_setTextureArrowDownHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiSpinButtonRenderer_getTextureArrowDownHover(const tguiRenderer* renderer); +CTGUI_API void tguiSpinButtonRenderer_setTextureArrowDownHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiSpinButtonRenderer_getTextureArrowDownHover(const tguiRenderer* thisRenderer); #endif // CTGUI_SPINBUTTONRENDERER_H diff --git a/include/CTGUI/Renderers/TabsRenderer.h b/include/CTGUI/Renderers/TabsRenderer.h index 9784003..0c2bb28 100644 --- a/include/CTGUI/Renderers/TabsRenderer.h +++ b/include/CTGUI/Renderers/TabsRenderer.h @@ -8,67 +8,67 @@ CTGUI_API tguiRenderer* tguiTabsRenderer_create(void); CTGUI_API tguiRenderer* tguiTabsRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiTabsRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiTabsRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiTabsRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getSelectedTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getTextColorDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getBorderColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getBorderColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setSelectedBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getSelectedBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setSelectedBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getSelectedBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setSelectedBorderColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTabsRenderer_getSelectedBorderColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setSelectedBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTabsRenderer_getSelectedBorderColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextureTab(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTabsRenderer_getTextureTab(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextureTab(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTabsRenderer_getTextureTab(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextureTabHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTabsRenderer_getTextureTabHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextureTabHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTabsRenderer_getTextureTabHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextureSelectedTab(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTabsRenderer_getTextureSelectedTab(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextureSelectedTab(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTabsRenderer_getTextureSelectedTab(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextureSelectedTabHover(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTabsRenderer_getTextureSelectedTabHover(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextureSelectedTabHover(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTabsRenderer_getTextureSelectedTabHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setTextureDisabledTab(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTabsRenderer_getTextureDisabledTab(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setTextureDisabledTab(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTabsRenderer_getTextureDisabledTab(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTabsRenderer_setDistanceToSide(tguiRenderer* renderer, float value); -CTGUI_API float tguiTabsRenderer_getDistanceToSide(const tguiRenderer* renderer); +CTGUI_API void tguiTabsRenderer_setDistanceToSide(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiTabsRenderer_getDistanceToSide(const tguiRenderer* thisRenderer); #endif // CTGUI_TABSRENDERER_H diff --git a/include/CTGUI/Renderers/TextAreaRenderer.h b/include/CTGUI/Renderers/TextAreaRenderer.h index 6e20413..0929662 100644 --- a/include/CTGUI/Renderers/TextAreaRenderer.h +++ b/include/CTGUI/Renderers/TextAreaRenderer.h @@ -8,43 +8,43 @@ CTGUI_API tguiRenderer* tguiTextAreaRenderer_create(void); CTGUI_API tguiRenderer* tguiTextAreaRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiTextAreaRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiTextAreaRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiTextAreaRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiTextAreaRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiTextAreaRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setDefaultTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getDefaultTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setDefaultTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getDefaultTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setSelectedTextBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getSelectedTextBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setSelectedTextBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getSelectedTextBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setCaretColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTextAreaRenderer_getCaretColor(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setCaretColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTextAreaRenderer_getCaretColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTextAreaRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTextAreaRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setCaretWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiTextAreaRenderer_getCaretWidth(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setCaretWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiTextAreaRenderer_getCaretWidth(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiTextAreaRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiTextAreaRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTextAreaRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiTextAreaRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiTextAreaRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiTextAreaRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); #endif // CTGUI_TEXTAREARENDERER_H diff --git a/include/CTGUI/Renderers/TreeViewRenderer.h b/include/CTGUI/Renderers/TreeViewRenderer.h index afaa101..40b0913 100644 --- a/include/CTGUI/Renderers/TreeViewRenderer.h +++ b/include/CTGUI/Renderers/TreeViewRenderer.h @@ -8,55 +8,55 @@ CTGUI_API tguiRenderer* tguiTreeViewRenderer_create(void); CTGUI_API tguiRenderer* tguiTreeViewRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiTreeViewRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiTreeViewRenderer_getBorders(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiTreeViewRenderer_getBorders(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline); -CTGUI_API tguiOutline* tguiTreeViewRenderer_getPadding(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value); +CTGUI_API const tguiOutline* tguiTreeViewRenderer_getPadding(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getSelectedTextColor(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getSelectedTextColorHover(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color); -CTGUI_API tguiColor* tguiTreeViewRenderer_getBorderColor(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value); +CTGUI_API const tguiColor* tguiTreeViewRenderer_getBorderColor(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTreeViewRenderer_getTextureBackground(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTreeViewRenderer_getTextureBackground(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setTextureBranchExpanded(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTreeViewRenderer_getTextureBranchExpanded(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setTextureBranchExpanded(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTreeViewRenderer_getTextureBranchExpanded(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setTextureBranchCollapsed(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTreeViewRenderer_getTextureBranchCollapsed(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setTextureBranchCollapsed(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTreeViewRenderer_getTextureBranchCollapsed(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setTextureLeaf(tguiRenderer* renderer, tguiTexture* texture); -CTGUI_API tguiTexture* tguiTreeViewRenderer_getTextureLeaf(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setTextureLeaf(tguiRenderer* thisRenderer, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiTreeViewRenderer_getTextureLeaf(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData); -CTGUI_API tguiRendererData* tguiTreeViewRenderer_getScrollbar(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiTreeViewRenderer_getScrollbar(const tguiRenderer* thisRenderer); -CTGUI_API void tguiTreeViewRenderer_setScrollbarWidth(tguiRenderer* renderer, float value); -CTGUI_API float tguiTreeViewRenderer_getScrollbarWidth(const tguiRenderer* renderer); +CTGUI_API void tguiTreeViewRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiTreeViewRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer); #endif // CTGUI_TREEVIEWRENDERER_H diff --git a/include/CTGUI/Renderers/WidgetRenderer.h b/include/CTGUI/Renderers/WidgetRenderer.h index 66e15e6..ae82976 100644 --- a/include/CTGUI/Renderers/WidgetRenderer.h +++ b/include/CTGUI/Renderers/WidgetRenderer.h @@ -1,64 +1,48 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_WIDGET_RENDERER_H -#define CTGUI_WIDGET_RENDERER_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_WIDGETRENDERER_H +#define CTGUI_WIDGETRENDERER_H #include CTGUI_API tguiRenderer* tguiWidgetRenderer_create(void); CTGUI_API tguiRenderer* tguiWidgetRenderer_copy(const tguiRenderer* other); -CTGUI_API void tguiWidgetRenderer_free(tguiRenderer* renderer); -CTGUI_API void tguiWidgetRenderer_setOpacity(tguiRenderer* renderer, float alpha); -CTGUI_API float tguiWidgetRenderer_getOpacity(const tguiRenderer* renderer); +CTGUI_API void tguiWidgetRenderer_setOpacity(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiWidgetRenderer_getOpacity(const tguiRenderer* thisRenderer); + +CTGUI_API void tguiWidgetRenderer_setOpacityDisabled(tguiRenderer* thisRenderer, float value); +CTGUI_API float tguiWidgetRenderer_getOpacityDisabled(const tguiRenderer* thisRenderer); + +CTGUI_API void tguiWidgetRenderer_setFont(tguiRenderer* thisRenderer, const tguiFont* value); +CTGUI_API const tguiFont* tguiWidgetRenderer_getFont(const tguiRenderer* thisRenderer); + +CTGUI_API void tguiWidgetRenderer_setTextSize(tguiRenderer* thisRenderer, unsigned int value); +CTGUI_API unsigned int tguiWidgetRenderer_getTextSize(const tguiRenderer* thisRenderer); + +CTGUI_API void tguiWidgetRenderer_setTransparentTexture(tguiRenderer* thisRenderer, tguiBool value); +CTGUI_API tguiBool tguiWidgetRenderer_getTransparentTexture(const tguiRenderer* thisRenderer); -CTGUI_API void tguiWidgetRenderer_setOpacityDisabled(tguiRenderer* renderer, float alpha); -CTGUI_API float tguiWidgetRenderer_getOpacityDisabled(const tguiRenderer* renderer); +CTGUI_API void tguiWidgetRenderer_setData(tguiRenderer* thisRenderer, const tguiRendererData* value); +CTGUI_API const tguiRendererData* tguiWidgetRenderer_getData(const tguiRenderer* thisRenderer); -CTGUI_API void tguiWidgetRenderer_setFont(tguiRenderer* renderer, tguiFont* font); -CTGUI_API tguiFont* tguiWidgetRenderer_getFont(const tguiRenderer* renderer); +CTGUI_API void tguiWidgetRenderer_setPropertyBool(tguiRenderer* thisRenderer, tguiUtf32 property, tguiBool value); -CTGUI_API void tguiWidgetRenderer_setTextSize(tguiRenderer* renderer, unsigned int size); -CTGUI_API unsigned int tguiWidgetRenderer_getTextSize(const tguiRenderer* renderer); +CTGUI_API void tguiWidgetRenderer_setPropertyFont(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiFont* value); -CTGUI_API void tguiWidgetRenderer_setTransparentTexture(tguiRenderer* renderer, tguiBool ignoreTransparentParts); -CTGUI_API tguiBool tguiWidgetRenderer_getTransparentTexture(tguiRenderer* renderer); +CTGUI_API void tguiWidgetRenderer_setPropertyColor(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiColor* value); -CTGUI_API void tguiWidgetRenderer_setData(tguiRenderer* renderer, tguiRendererData* data); -CTGUI_API tguiRendererData* tguiWidgetRenderer_getData(const tguiRenderer* renderer); +CTGUI_API void tguiWidgetRenderer_setPropertyString(tguiRenderer* thisRenderer, tguiUtf32 property, tguiUtf32 value); -CTGUI_API void tguiWidgetRenderer_setPropertyBool(tguiRenderer* renderer, tguiUtf32 property, tguiBool value); -CTGUI_API void tguiWidgetRenderer_setPropertyFont(tguiRenderer* renderer, tguiUtf32 property, tguiFont* value); -CTGUI_API void tguiWidgetRenderer_setPropertyColor(tguiRenderer* renderer, tguiUtf32 property, tguiColor* value); -CTGUI_API void tguiWidgetRenderer_setPropertyString(tguiRenderer* renderer, tguiUtf32 property, tguiUtf32 value); -CTGUI_API void tguiWidgetRenderer_setPropertyNumber(tguiRenderer* renderer, tguiUtf32 property, float value); -CTGUI_API void tguiWidgetRenderer_setPropertyOutline(tguiRenderer* renderer, tguiUtf32 property, tguiOutline* value); -CTGUI_API void tguiWidgetRenderer_setPropertyTexture(tguiRenderer* renderer, tguiUtf32 property, tguiTexture* value); -CTGUI_API void tguiWidgetRenderer_setPropertyTextStyle(tguiRenderer* renderer, tguiUtf32 property, tguiUint32 value); -CTGUI_API void tguiWidgetRenderer_setPropertyRendererData(tguiRenderer* renderer, tguiUtf32 property, tguiRendererData* value); +CTGUI_API void tguiWidgetRenderer_setPropertyNumber(tguiRenderer* thisRenderer, tguiUtf32 property, float value); + +CTGUI_API void tguiWidgetRenderer_setPropertyOutline(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiOutline* value); + +CTGUI_API void tguiWidgetRenderer_setPropertyTexture(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiTexture* value); + +CTGUI_API void tguiWidgetRenderer_setPropertyTextStyle(tguiRenderer* thisRenderer, tguiUtf32 property, tguiUint32 value); + +CTGUI_API void tguiWidgetRenderer_setPropertyRendererData(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiRendererData* value); CTGUI_API tguiBool tguiWidgetRenderer_hasProperty(const tguiRenderer* renderer, tguiUtf32 property); @@ -72,5 +56,6 @@ CTGUI_API tguiTexture* tguiWidgetRenderer_getPropertyTexture(const tguiRenderer* CTGUI_API tguiUint32 tguiWidgetRenderer_getPropertyTextStyle(const tguiRenderer* renderer, tguiUtf32 property); CTGUI_API tguiRendererData* tguiWidgetRenderer_getPropertyRendererData(const tguiRenderer* renderer, tguiUtf32 property); -#endif // CTGUI_WIDGET_RENDERER_H +CTGUI_API void tguiWidgetRenderer_free(tguiRenderer* renderer); +#endif // CTGUI_WIDGETRENDERER_H diff --git a/include/CTGUI/Widgets/BitmapButton.h b/include/CTGUI/Widgets/BitmapButton.h index 2a5c51d..b54d567 100644 --- a/include/CTGUI/Widgets/BitmapButton.h +++ b/include/CTGUI/Widgets/BitmapButton.h @@ -1,39 +1,16 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_BITMAP_BUTTON_H -#define CTGUI_BITMAP_BUTTON_H +#ifndef CTGUI_BITMAPBUTTON_H +#define CTGUI_BITMAPBUTTON_H #include CTGUI_API tguiWidget* tguiBitmapButton_create(void); -CTGUI_API void tguiBitmapButton_setImage(tguiWidget* widget, tguiTexture* image); - -CTGUI_API void tguiBitmapButton_setImageScaling(tguiWidget* widget, float imageScaling); -CTGUI_API float tguiBitmapButton_getImageScaling(const tguiWidget* widget); +CTGUI_API void tguiBitmapButton_setImage(tguiWidget* thisWidget, const tguiTexture* value); +CTGUI_API const tguiTexture* tguiBitmapButton_getImage(const tguiWidget* thisWidget); -#endif // CTGUI_BITMAP_BUTTON_H +CTGUI_API void tguiBitmapButton_setImageScaling(tguiWidget* thisWidget, float value); +CTGUI_API float tguiBitmapButton_getImageScaling(const tguiWidget* thisWidget); +#endif // CTGUI_BITMAPBUTTON_H diff --git a/include/CTGUI/Widgets/BoxLayout.h b/include/CTGUI/Widgets/BoxLayout.h index 5e03cee..991cba5 100644 --- a/include/CTGUI/Widgets/BoxLayout.h +++ b/include/CTGUI/Widgets/BoxLayout.h @@ -1,36 +1,14 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_BOX_LAYOUT_H -#define CTGUI_BOX_LAYOUT_H +#ifndef CTGUI_BOXLAYOUT_H +#define CTGUI_BOXLAYOUT_H #include -CTGUI_API void tguiBoxLayout_insert(tguiWidget* layout, size_t index, tguiWidget* widget, tguiUtf32 widgetName); -CTGUI_API tguiBool tguiBoxLayout_removeAtIndex(tguiWidget* layout, size_t index); -CTGUI_API tguiWidget* tguiBoxLayout_getAtIndex(tguiWidget* layout, size_t index); +CTGUI_API void tguiBoxLayout_insert(tguiWidget* thisWidget, size_t index, tguiWidget* widgetToAdd, tguiUtf32 widgetName); + +CTGUI_API tguiBool tguiBoxLayout_removeAtIndex(tguiWidget* thisWidget, size_t index); -#endif // CTGUI_BOX_LAYOUT_H +CTGUI_API tguiWidget* tguiBoxLayout_getAtIndex(const tguiWidget* thisWidget, size_t index); +#endif // CTGUI_BOXLAYOUT_H diff --git a/include/CTGUI/Widgets/BoxLayoutRatios.h b/include/CTGUI/Widgets/BoxLayoutRatios.h index af1e57b..4590b10 100644 --- a/include/CTGUI/Widgets/BoxLayoutRatios.h +++ b/include/CTGUI/Widgets/BoxLayoutRatios.h @@ -1,44 +1,24 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_BOX_LAYOUT_RATIOS_H -#define CTGUI_BOX_LAYOUT_RATIOS_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_BOXLAYOUTRATIOS_H +#define CTGUI_BOXLAYOUTRATIOS_H #include -CTGUI_API void tguiBoxLayoutRatios_add(tguiWidget* layout, tguiWidget* widget, float ratio, tguiUtf32 widgetName); -CTGUI_API void tguiBoxLayoutRatios_insert(tguiWidget* layout, size_t index, tguiWidget* widget, float ratio, tguiUtf32 widgetName); +CTGUI_API void tguiBoxLayoutRatios_add(tguiWidget* thisWidget, tguiWidget* widget, float ratio, tguiUtf32 widgetName); + +CTGUI_API void tguiBoxLayoutRatios_insert(tguiWidget* thisWidget, size_t index, tguiWidget* widget, float ratio, tguiUtf32 widgetName); + +CTGUI_API void tguiBoxLayoutRatios_addSpace(tguiWidget* thisWidget, float ratio); + +CTGUI_API void tguiBoxLayoutRatios_insertSpace(tguiWidget* thisWidget, size_t index, float ratio); -CTGUI_API void tguiBoxLayoutRatios_addSpace(tguiWidget* layout, float ratio); -CTGUI_API void tguiBoxLayoutRatios_insertSpace(tguiWidget* layout, size_t index, float ratio); +CTGUI_API void tguiBoxLayoutRatios_setRatio(tguiWidget* thisWidget, tguiWidget* widget, float ratio); -CTGUI_API void tguiBoxLayoutRatios_setRatio(tguiWidget* layout, tguiWidget* widget, float ratio); -CTGUI_API void tguiBoxLayoutRatios_setRatioAtIndex(tguiWidget* layout, size_t index, float ratio); +CTGUI_API void tguiBoxLayoutRatios_setRatioAtIndex(tguiWidget* thisWidget, size_t index, float ratio); -CTGUI_API float tguiBoxLayoutRatios_getRatio(tguiWidget* layout, tguiWidget* widget); -CTGUI_API float tguiBoxLayoutRatios_getRatioAtIndex(tguiWidget* layout, size_t index); +CTGUI_API float tguiBoxLayoutRatios_getRatio(const tguiWidget* thisWidget, tguiWidget* widget); -#endif // CTGUI_BOX_LAYOUT_RATIOS_H +CTGUI_API float tguiBoxLayoutRatios_getRatioAtIndex(const tguiWidget* thisWidget, size_t index); +#endif // CTGUI_BOXLAYOUTRATIOS_H diff --git a/include/CTGUI/Widgets/Button.h b/include/CTGUI/Widgets/Button.h index 2acb960..590f827 100644 --- a/include/CTGUI/Widgets/Button.h +++ b/include/CTGUI/Widgets/Button.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_BUTTON_H #define CTGUI_BUTTON_H @@ -31,4 +8,3 @@ CTGUI_API tguiWidget* tguiButton_create(void); #endif // CTGUI_BUTTON_H - diff --git a/include/CTGUI/Widgets/ButtonBase.h b/include/CTGUI/Widgets/ButtonBase.h index cfcac5e..55b1e89 100644 --- a/include/CTGUI/Widgets/ButtonBase.h +++ b/include/CTGUI/Widgets/ButtonBase.h @@ -1,38 +1,13 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_BUTTON_BASE_H -#define CTGUI_BUTTON_BASE_H +#ifndef CTGUI_BUTTONBASE_H +#define CTGUI_BUTTONBASE_H #include -CTGUI_API void tguiButtonBase_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiButtonBase_getText(const tguiWidget* widget); - -CTGUI_API void tguiButtonBase_setTextPositionAbs(tguiWidget* widget, tguiVector2f position, tguiVector2f origin); // Position is absolute, origin is value between 0 and 1 -CTGUI_API void tguiButtonBase_setTextPositionRel(tguiWidget* widget, tguiVector2f position, tguiVector2f origin); // position and origin are values between 0 and 1 - -#endif // CTGUI_BUTTON_BASE_H +CTGUI_API void tguiButtonBase_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiButtonBase_getText(const tguiWidget* thisWidget); +CTGUI_API void tguiButtonBase_setTextPositionAbs(tguiWidget* widget, tguiVector2f position, tguiVector2f origin); +CTGUI_API void tguiButtonBase_setTextPositionRel(tguiWidget* widget, tguiVector2f position, tguiVector2f origin); +#endif // CTGUI_BUTTONBASE_H diff --git a/include/CTGUI/Widgets/ChatBox.h b/include/CTGUI/Widgets/ChatBox.h index 5584171..cc18a25 100644 --- a/include/CTGUI/Widgets/ChatBox.h +++ b/include/CTGUI/Widgets/ChatBox.h @@ -1,65 +1,46 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_CHAT_BOX_H -#define CTGUI_CHAT_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_CHATBOX_H +#define CTGUI_CHATBOX_H #include CTGUI_API tguiWidget* tguiChatBox_create(void); -CTGUI_API void tguiChatBox_addLine(tguiWidget* widget, tguiUtf32 text); -CTGUI_API void tguiChatBox_addLineWithColor(tguiWidget* widget, tguiUtf32 text, tguiColor* color); -CTGUI_API void tguiChatBox_addLineWithColorAndStyle(tguiWidget* widget, tguiUtf32 text, tguiColor* color, tguiUint32 style); +CTGUI_API void tguiChatBox_addLine(tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API void tguiChatBox_addLineWithColor(tguiWidget* thisWidget, tguiUtf32 text, const tguiColor* color); + +CTGUI_API void tguiChatBox_addLineWithColorAndStyle(tguiWidget* thisWidget, tguiUtf32 text, const tguiColor* color, tguiUint32 style); + +CTGUI_API tguiUtf32 tguiChatBox_getLine(tguiWidget* thisWidget, size_t lineIndex); + +CTGUI_API const tguiColor* tguiChatBox_getLineColor(tguiWidget* thisWidget, size_t lineIndex); -CTGUI_API tguiUtf32 tguiChatBox_getLine(const tguiWidget* widget, size_t lineIndex); -CTGUI_API tguiColor* tguiChatBox_getLineColor(const tguiWidget* widget, size_t lineIndex); -CTGUI_API tguiUint32 tguiChatBox_getLineTextStyle(const tguiWidget* widget, size_t lineIndex); +CTGUI_API tguiUint32 tguiChatBox_getLineTextStyle(tguiWidget* thisWidget, size_t lineIndex); -CTGUI_API tguiBool tguiChatBox_removeLine(tguiWidget* widget, size_t lineIndex); -CTGUI_API void tguiChatBox_removeAllLines(tguiWidget* widget); +CTGUI_API tguiBool tguiChatBox_removeLine(tguiWidget* thisWidget, size_t lineIndex); -CTGUI_API size_t tguiChatBox_getLineAmount(const tguiWidget* widget); +CTGUI_API void tguiChatBox_removeAllLines(tguiWidget* thisWidget); -CTGUI_API void tguiChatBox_setLineLimit(tguiWidget* widget, size_t maxLines); -CTGUI_API size_t tguiChatBox_getLineLimit(const tguiWidget* widget); +CTGUI_API size_t tguiChatBox_getLineAmount(tguiWidget* thisWidget); -CTGUI_API void tguiChatBox_setTextColor(tguiWidget* widget, tguiColor* color); -CTGUI_API tguiColor* tguiChatBox_getTextColor(const tguiWidget* widget); +CTGUI_API void tguiChatBox_setLineLimit(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiChatBox_getLineLimit(const tguiWidget* thisWidget); -CTGUI_API void tguiChatBox_setTextStyle(tguiWidget* widget, tguiUint32 style); -CTGUI_API tguiUint32 tguiChatBox_getTextStyle(const tguiWidget* widget); +CTGUI_API void tguiChatBox_setTextColor(tguiWidget* thisWidget, const tguiColor* value); +CTGUI_API const tguiColor* tguiChatBox_getTextColor(const tguiWidget* thisWidget); -CTGUI_API void tguiChatBox_setLinesStartFromTop(tguiWidget* widget, tguiBool startFromTop); -CTGUI_API tguiBool tguiChatBox_getLinesStartFromTop(const tguiWidget* widget); +CTGUI_API void tguiChatBox_setTextStyle(tguiWidget* thisWidget, tguiUint32 value); +CTGUI_API tguiUint32 tguiChatBox_getTextStyle(const tguiWidget* thisWidget); -CTGUI_API void tguiChatBox_setNewLinesBelowOthers(tguiWidget* widget, tguiBool newLinesBelowOthers); -CTGUI_API tguiBool tguiChatBox_getNewLinesBelowOthers(const tguiWidget* widget); +CTGUI_API void tguiChatBox_setLinesStartFromTop(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiChatBox_getLinesStartFromTop(const tguiWidget* thisWidget); -CTGUI_API void tguiChatBox_setScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiChatBox_getScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiChatBox_setNewLinesBelowOthers(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiChatBox_getNewLinesBelowOthers(const tguiWidget* thisWidget); -#endif // CTGUI_CHAT_BOX_H +CTGUI_API void tguiChatBox_setScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiChatBox_getScrollbarValue(const tguiWidget* thisWidget); +#endif // CTGUI_CHATBOX_H diff --git a/include/CTGUI/Widgets/CheckBox.h b/include/CTGUI/Widgets/CheckBox.h index 1529607..25568ba 100644 --- a/include/CTGUI/Widgets/CheckBox.h +++ b/include/CTGUI/Widgets/CheckBox.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_CHECK_BOX_H -#define CTGUI_CHECK_BOX_H +#ifndef CTGUI_CHECKBOX_H +#define CTGUI_CHECKBOX_H #include CTGUI_API tguiWidget* tguiCheckBox_create(void); -#endif // CTGUI_CHECK_BOX_H - +#endif // CTGUI_CHECKBOX_H diff --git a/include/CTGUI/Widgets/ChildWindow.h b/include/CTGUI/Widgets/ChildWindow.h index 7edd3dc..d4f977d 100644 --- a/include/CTGUI/Widgets/ChildWindow.h +++ b/include/CTGUI/Widgets/ChildWindow.h @@ -1,66 +1,44 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_CHILD_WINDOW_H -#define CTGUI_CHILD_WINDOW_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_CHILDWINDOW_H +#define CTGUI_CHILDWINDOW_H #include #include CTGUI_API tguiWidget* tguiChildWindow_create(void); -CTGUI_API void tguiChildWindow_setClientSize(tguiWidget* widget, tguiVector2f size); -CTGUI_API void tguiChildWindow_setClientSizeFromLayout(tguiWidget* widget, tguiLayout2d* layout); -CTGUI_API tguiVector2f tguiChildWindow_getClientSize(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setClientSize(tguiWidget* thisWidget, tguiVector2f size); + +CTGUI_API void tguiChildWindow_setClientSizeFromLayout(tguiWidget* thisWidget, const tguiLayout2d* layout); -CTGUI_API void tguiChildWindow_setMaximumSize(tguiWidget* widget, tguiVector2f maxSize); -CTGUI_API tguiVector2f tguiChildWindow_getMaximumSize(const tguiWidget* widget); +CTGUI_API tguiVector2f tguiChildWindow_getClientSize(tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setMinimumSize(tguiWidget* widget, tguiVector2f minSize); -CTGUI_API tguiVector2f tguiChildWindow_getMinimumSize(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setMaximumSize(tguiWidget* thisWidget, tguiVector2f value); +CTGUI_API tguiVector2f tguiChildWindow_getMaximumSize(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setTitle(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiChildWindow_getTitle(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setMinimumSize(tguiWidget* thisWidget, tguiVector2f value); +CTGUI_API tguiVector2f tguiChildWindow_getMinimumSize(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setTitleTextSize(tguiWidget* widget, unsigned int textSize); -CTGUI_API unsigned int tguiChildWindow_getTitleTextSize(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setTitle(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiChildWindow_getTitle(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setTitleAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment); -CTGUI_API tguiHorizontalAlignment tguiChildWindow_getTitleAlignment(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setTitleTextSize(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiChildWindow_getTitleTextSize(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setTitleButtons(tguiWidget* widget, unsigned int buttons); -CTGUI_API unsigned int tguiChildWindow_getTitleButtons(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setTitleAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiChildWindow_getTitleAlignment(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setResizable(tguiWidget* widget, tguiBool resizable); -CTGUI_API tguiBool tguiChildWindow_isResizable(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setTitleButtons(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiChildWindow_getTitleButtons(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setKeepInParent(tguiWidget* widget, tguiBool keepInParent); -CTGUI_API tguiBool tguiChildWindow_isKeptInParent(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setResizable(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiChildWindow_isResizable(const tguiWidget* thisWidget); -CTGUI_API void tguiChildWindow_setPositionLocked(tguiWidget* widget, tguiBool positionLocked); -CTGUI_API tguiBool tguiChildWindow_isPositionLocked(const tguiWidget* widget); +CTGUI_API void tguiChildWindow_setKeepInParent(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiChildWindow_getKeepInParent(const tguiWidget* thisWidget); -#endif // CTGUI_CHILD_WINDOW_H +CTGUI_API void tguiChildWindow_setPositionLocked(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiChildWindow_isPositionLocked(const tguiWidget* thisWidget); +#endif // CTGUI_CHILDWINDOW_H diff --git a/include/CTGUI/Widgets/ClickableWidget.h b/include/CTGUI/Widgets/ClickableWidget.h index a00a39e..0c22b42 100644 --- a/include/CTGUI/Widgets/ClickableWidget.h +++ b/include/CTGUI/Widgets/ClickableWidget.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_CLICKABLE_WIDGET_H -#define CTGUI_CLICKABLE_WIDGET_H +#ifndef CTGUI_CLICKABLEWIDGET_H +#define CTGUI_CLICKABLEWIDGET_H #include CTGUI_API tguiWidget* tguiClickableWidget_create(void); -#endif // CTGUI_CLICKABLE_WIDGET_H - +#endif // CTGUI_CLICKABLEWIDGET_H diff --git a/include/CTGUI/Widgets/ColorPicker.h b/include/CTGUI/Widgets/ColorPicker.h index 2b9f4e9..ac0bb09 100644 --- a/include/CTGUI/Widgets/ColorPicker.h +++ b/include/CTGUI/Widgets/ColorPicker.h @@ -1,37 +1,13 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_COLOR_PICKER_H -#define CTGUI_COLOR_PICKER_H +#ifndef CTGUI_COLORPICKER_H +#define CTGUI_COLORPICKER_H #include CTGUI_API tguiWidget* tguiColorPicker_create(void); -CTGUI_API void tguiColorPicker_setColor(tguiWidget* colorPicker, tguiColor* color); -CTGUI_API tguiColor* tguiColorPicker_getColor(const tguiWidget* colorPicker); - -#endif // CTGUI_COLOR_PICKER_H +CTGUI_API void tguiColorPicker_setColor(tguiWidget* thisWidget, const tguiColor* value); +CTGUI_API const tguiColor* tguiColorPicker_getColor(const tguiWidget* thisWidget); +#endif // CTGUI_COLORPICKER_H diff --git a/include/CTGUI/Widgets/ComboBox.h b/include/CTGUI/Widgets/ComboBox.h index 8709425..f75ed62 100644 --- a/include/CTGUI/Widgets/ComboBox.h +++ b/include/CTGUI/Widgets/ComboBox.h @@ -1,85 +1,74 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_COMBO_BOX_H -#define CTGUI_COMBO_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_COMBOBOX_H +#define CTGUI_COMBOBOX_H #include typedef enum { - tguiExpandDirectionDown, - tguiExpandDirectionUp, - tguiExpandDirectionAutomatic -} tguiExpandDirection; + tguiComboBoxExpandDirectionDown, + tguiComboBoxExpandDirectionUp, + tguiComboBoxExpandDirectionAutomatic, +} tguiComboBoxExpandDirection; CTGUI_API tguiWidget* tguiComboBox_create(void); -CTGUI_API void tguiComboBox_setItemsToDisplay(tguiWidget* widget, size_t itemsToDisplay); -CTGUI_API size_t tguiComboBox_getItemsToDisplay(const tguiWidget* widget); +CTGUI_API void tguiComboBox_setItemsToDisplay(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiComboBox_getItemsToDisplay(const tguiWidget* thisWidget); + +CTGUI_API size_t tguiComboBox_addItem(tguiWidget* thisWidget, tguiUtf32 item, tguiUtf32 id); + +CTGUI_API tguiUtf32 tguiComboBox_getItemById(const tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API const tguiUtf32* tguiComboBox_getItems(tguiWidget* thisWidget, size_t* returnCount); + +CTGUI_API const tguiUtf32* tguiComboBox_getItemIds(tguiWidget* thisWidget, size_t* returnCount); + +CTGUI_API tguiBool tguiComboBox_setSelectedItem(tguiWidget* thisWidget, tguiUtf32 item); + +CTGUI_API tguiBool tguiComboBox_setSelectedItemById(tguiWidget* thisWidget, tguiUtf32 item); + +CTGUI_API tguiBool tguiComboBox_setSelectedItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiComboBox_deselectItem(tguiWidget* thisWidget); + +CTGUI_API tguiBool tguiComboBox_removeItem(tguiWidget* thisWidget, tguiUtf32 item); + +CTGUI_API tguiBool tguiComboBox_removeItemById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiBool tguiComboBox_removeItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiComboBox_removeAllItems(tguiWidget* thisWidget); -CTGUI_API size_t tguiComboBox_addItem(tguiWidget* widget, tguiUtf32 item, tguiUtf32 id); -CTGUI_API tguiUtf32 tguiComboBox_getItemById(const tguiWidget* widget, tguiUtf32 id); +CTGUI_API tguiUtf32 tguiComboBox_getSelectedItem(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiComboBox_setSelectedItem(tguiWidget* widget, tguiUtf32 item); -CTGUI_API tguiBool tguiComboBox_setSelectedItemById(tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiBool tguiComboBox_setSelectedItemByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiComboBox_deselectItem(tguiWidget* widget); +CTGUI_API tguiUtf32 tguiComboBox_getSelectedItemId(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiComboBox_removeItem(tguiWidget* widget, tguiUtf32 item); -CTGUI_API tguiBool tguiComboBox_removeItemById(tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiBool tguiComboBox_removeItemByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiComboBox_removeAllItems(tguiWidget* widget); +CTGUI_API int tguiComboBox_getSelectedItemIndex(const tguiWidget* thisWidget); -CTGUI_API tguiUtf32 tguiComboBox_getSelectedItem(const tguiWidget* widget); -CTGUI_API tguiUtf32 tguiComboBox_getSelectedItemId(const tguiWidget* widget); -CTGUI_API int tguiComboBox_getSelectedItemIndex(const tguiWidget* widget); +CTGUI_API tguiBool tguiComboBox_changeItem(tguiWidget* thisWidget, tguiUtf32 originalValue, tguiUtf32 newValue); -CTGUI_API tguiBool tguiComboBox_changeItem(tguiWidget* widget, tguiUtf32 originalValue, tguiUtf32 newValue); -CTGUI_API tguiBool tguiComboBox_changeItemById(tguiWidget* widget, tguiUtf32 id, tguiUtf32 newValue); -CTGUI_API tguiBool tguiComboBox_changeItemByIndex(tguiWidget* widget, size_t index, tguiUtf32 newValue); +CTGUI_API tguiBool tguiComboBox_changeItemById(tguiWidget* thisWidget, tguiUtf32 id, tguiUtf32 newValue); -CTGUI_API size_t tguiComboBox_getItemCount(const tguiWidget* widget); +CTGUI_API tguiBool tguiComboBox_changeItemByIndex(tguiWidget* thisWidget, size_t index, tguiUtf32 newValue); -CTGUI_API const tguiUtf32* tguiComboBox_getItems(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array -CTGUI_API const tguiUtf32* tguiComboBox_getItemIds(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array +CTGUI_API size_t tguiComboBox_getItemCount(const tguiWidget* thisWidget); -CTGUI_API void tguiComboBox_setMaximumItems(tguiWidget* widget, unsigned int maxItems); -CTGUI_API size_t tguiComboBox_getMaximumItems(const tguiWidget* widget); +CTGUI_API void tguiComboBox_setMaximumItems(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiComboBox_getMaximumItems(const tguiWidget* thisWidget); -CTGUI_API void tguiComboBox_setDefaultText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiComboBox_getDefaultText(const tguiWidget* widget); +CTGUI_API void tguiComboBox_setDefaultText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiComboBox_getDefaultText(const tguiWidget* thisWidget); -CTGUI_API void tguiComboBox_setExpandDirection(tguiWidget* widget, tguiExpandDirection expandDirection); -CTGUI_API tguiExpandDirection tguiComboBox_getExpandDirection(const tguiWidget* widget); +CTGUI_API void tguiComboBox_setExpandDirection(tguiWidget* thisWidget, tguiComboBoxExpandDirection value); +CTGUI_API tguiComboBoxExpandDirection tguiComboBox_getExpandDirection(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiComboBox_contains(tguiWidget* widget, tguiUtf32 item); -CTGUI_API tguiBool tguiComboBox_containsId(tguiWidget* widget, tguiUtf32 id); +CTGUI_API void tguiComboBox_setChangeItemOnScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiComboBox_getChangeItemOnScroll(const tguiWidget* thisWidget); -CTGUI_API void tguiComboBox_setChangeItemOnScroll(tguiWidget* widget, tguiBool changeOnScroll); -CTGUI_API tguiBool tguiComboBox_getChangeItemOnScroll(const tguiWidget* widget); +CTGUI_API tguiBool tguiComboBox_contains(const tguiWidget* thisWidget, tguiUtf32 item); -#endif // CTGUI_COMBO_BOX_H +CTGUI_API tguiBool tguiComboBox_containsId(const tguiWidget* thisWidget, tguiUtf32 id); +#endif // CTGUI_COMBOBOX_H diff --git a/include/CTGUI/Widgets/EditBox.h b/include/CTGUI/Widgets/EditBox.h index 88b659e..1b9dfc6 100644 --- a/include/CTGUI/Widgets/EditBox.h +++ b/include/CTGUI/Widgets/EditBox.h @@ -1,68 +1,45 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_EDIT_BOX_H -#define CTGUI_EDIT_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_EDITBOX_H +#define CTGUI_EDITBOX_H #include #include CTGUI_API tguiWidget* tguiEditBox_create(void); -CTGUI_API void tguiEditBox_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiEditBox_getText(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiEditBox_getText(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setDefaultText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiEditBox_getDefaultText(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setDefaultText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiEditBox_getDefaultText(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_selectText(tguiWidget* widget, size_t start, size_t length); -CTGUI_API tguiUtf32 tguiEditBox_getSelectedText(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setPasswordCharacter(tguiWidget* thisWidget, tguiChar32 value); +CTGUI_API tguiChar32 tguiEditBox_getPasswordCharacter(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setPasswordCharacter(tguiWidget* widget, tguiChar32 passwordChar); -CTGUI_API tguiChar32 tguiEditBox_getPasswordCharacter(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setMaximumCharacters(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiEditBox_getMaximumCharacters(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setMaximumCharacters(tguiWidget* widget, unsigned int maximumCharacters); -CTGUI_API unsigned int tguiEditBox_getMaximumCharacters(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiEditBox_getAlignment(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment); -CTGUI_API tguiHorizontalAlignment tguiEditBox_getAlignment(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setTextWidthLimited(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiEditBox_isTextWidthLimited(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_limitTextWidth(tguiWidget* widget, tguiBool limitWidth); -CTGUI_API tguiBool tguiEditBox_isTextWidthLimited(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setReadOnly(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiEditBox_isReadOnly(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setReadOnly(tguiWidget* widget, tguiBool readOnly); -CTGUI_API tguiBool tguiEditBox_isReadOnly(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setCaretPosition(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiEditBox_getCaretPosition(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setCaretPosition(tguiWidget* widget, size_t caretPosition); -CTGUI_API size_t tguiEditBox_getCaretPosition(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setInputValidator(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiEditBox_getInputValidator(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setInputValidator(tguiWidget* widget, tguiUtf32 validator); -CTGUI_API tguiUtf32 tguiEditBox_getInputValidator(const tguiWidget* widget); +CTGUI_API void tguiEditBox_setSuffix(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiEditBox_getSuffix(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBox_setSuffix(tguiWidget* widget, tguiUtf32 suffix); -CTGUI_API tguiUtf32 tguiEditBox_getSuffix(const tguiWidget* widget); +CTGUI_API void tguiEditBox_selectText(tguiWidget* thisWidget, size_t start, size_t length); -#endif // CTGUI_EDIT_BOX_H +CTGUI_API tguiUtf32 tguiEditBox_getSelectedText(const tguiWidget* thisWidget); +#endif // CTGUI_EDITBOX_H diff --git a/include/CTGUI/Widgets/EditBoxSlider.h b/include/CTGUI/Widgets/EditBoxSlider.h index 4fac4a5..86374be 100644 --- a/include/CTGUI/Widgets/EditBoxSlider.h +++ b/include/CTGUI/Widgets/EditBoxSlider.h @@ -1,58 +1,35 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_EDIT_BOX_SLIDER_H -#define CTGUI_EDIT_BOX_SLIDER_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_EDITBOXSLIDER_H +#define CTGUI_EDITBOXSLIDER_H #include #include CTGUI_API tguiWidget* tguiEditBoxSlider_create(void); -CTGUI_API tguiRenderer* tguiEditBoxSlider_getEditBoxRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiEditBoxSlider_getEditBoxSharedRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiEditBoxSlider_getSliderRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiEditBoxSlider_getSliderSharedRenderer(const tguiWidget* widget); +CTGUI_API tguiRenderer* tguiEditBoxSlider_getEditBoxRenderer(const tguiWidget* thisWidget); +CTGUI_API tguiRenderer* tguiEditBoxSlider_getEditBoxSharedRenderer(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBoxSlider_setMinimum(tguiWidget* widget, float minimum); -CTGUI_API float tguiEditBoxSlider_getMinimum(const tguiWidget* widget); +CTGUI_API tguiRenderer* tguiEditBoxSlider_getSliderRenderer(const tguiWidget* thisWidget); +CTGUI_API tguiRenderer* tguiEditBoxSlider_getSliderSharedRenderer(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBoxSlider_setMaximum(tguiWidget* widget, float maximum); -CTGUI_API float tguiEditBoxSlider_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiEditBoxSlider_setMinimum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiEditBoxSlider_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void ttguiEditBoxSlider_setValue(tguiWidget* widget, float value); -CTGUI_API float tguiEditBoxSlider_getValue(const tguiWidget* widget); +CTGUI_API void tguiEditBoxSlider_setMaximum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiEditBoxSlider_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBoxSlider_setStep(tguiWidget* widget, float step); -CTGUI_API float tguiEditBoxSlider_getStep(const tguiWidget* widget); +CTGUI_API void tguiEditBoxSlider_setValue(tguiWidget* thisWidget, float value); +CTGUI_API float tguiEditBoxSlider_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBoxSlider_setDecimalPlaces(tguiWidget* widget, unsigned int decimalPlaces); -CTGUI_API unsigned int tguiEditBoxSlider_getDecimalPlaces(const tguiWidget* widget); +CTGUI_API void tguiEditBoxSlider_setStep(tguiWidget* thisWidget, float value); +CTGUI_API float tguiEditBoxSlider_getStep(const tguiWidget* thisWidget); -CTGUI_API void tguiEditBoxSlider_setTextAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment); -CTGUI_API tguiHorizontalAlignment tguiEditBoxSlider_getTextAlignment(const tguiWidget* widget); +CTGUI_API void tguiEditBoxSlider_setDecimalPlaces(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiEditBoxSlider_getDecimalPlaces(const tguiWidget* thisWidget); -#endif // CTGUI_EDIT_BOX_SLIDER_H +CTGUI_API void tguiEditBoxSlider_setTextAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiEditBoxSlider_getTextAlignment(const tguiWidget* thisWidget); +#endif // CTGUI_EDITBOXSLIDER_H diff --git a/include/CTGUI/Widgets/FileDialog.h b/include/CTGUI/Widgets/FileDialog.h index d1d811a..73bbdf4 100644 --- a/include/CTGUI/Widgets/FileDialog.h +++ b/include/CTGUI/Widgets/FileDialog.h @@ -1,34 +1,40 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_FILE_DIALOG_H -#define CTGUI_FILE_DIALOG_H +#ifndef CTGUI_FILEDIALOG_H +#define CTGUI_FILEDIALOG_H #include -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +CTGUI_API tguiWidget* tguiFileDialog_create(void); + +CTGUI_API void tguiFileDialog_setFilename(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiFileDialog_getFilename(const tguiWidget* thisWidget); + +CTGUI_API size_t tguiFileDialog_getFileTypeFiltersIndex(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setConfirmButtonText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiFileDialog_getConfirmButtonText(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setCancelButtonText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiFileDialog_getCancelButtonText(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setCreateFolderButtonText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiFileDialog_getCreateFolderButtonText(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setFilenameLabelText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiFileDialog_getFilenameLabelText(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setAllowCreateFolder(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiFileDialog_getAllowCreateFolder(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setFileMustExist(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiFileDialog_getFileMustExist(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setSelectingDirectory(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiFileDialog_getSelectingDirectory(const tguiWidget* thisWidget); + +CTGUI_API void tguiFileDialog_setMultiSelect(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiFileDialog_getMultiSelect(const tguiWidget* thisWidget); typedef struct tguiFileDialogFilter tguiFileDialogFilter; @@ -40,48 +46,16 @@ CTGUI_API const tguiUtf32* tguiFileDialogFilter_getExpressions(const tguiFileDia ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -CTGUI_API tguiWidget* tguiFileDialog_create(void); - -CTGUI_API const tguiUtf32* tguiFileDialog_getSelectedPaths(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array - CTGUI_API void tguiFileDialog_setPath(tguiWidget* widget, tguiUtf32 path); CTGUI_API tguiUtf32 tguiFileDialog_getPath(const tguiWidget* widget); -CTGUI_API void tguiFileDialog_setFilename(tguiWidget* widget, tguiUtf32 filename); -CTGUI_API tguiUtf32 tguiFileDialog_getFilename(const tguiWidget* widget); +CTGUI_API const tguiUtf32* tguiFileDialog_getSelectedPaths(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array CTGUI_API void tguiFileDialog_setFileTypeFilters(tguiWidget* widget, const tguiFileDialogFilter* filters, size_t filterCount, size_t defaultFilterIndex); CTGUI_API tguiFileDialogFilter** tguiFileDialog_getFileTypeFilters(const tguiWidget* widget, size_t* count); // tguiFileDialogFilter_free must be called on each element in the returned array, count is set by the function to indicate the array length -CTGUI_API size_t tguiFileDialog_getFileTypeFiltersIndex(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setConfirmButtonText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiFileDialog_getConfirmButtonText(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setCancelButtonText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiFileDialog_getCancelButtonText(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setCreateFolderButtonText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiFileDialog_getCreateFolderButtonText(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setAllowCreateFolder(tguiWidget* widget, tguiBool allowCreateFolder); -CTGUI_API tguiBool tguiFileDialog_getAllowCreateFolder(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setFilenameLabelText(tguiWidget* widget, tguiUtf32 labelText); -CTGUI_API tguiUtf32 tguiFileDialog_getFilenameLabelText(const tguiWidget* widget); CTGUI_API void tguiFileDialog_setListViewColumnCaptions(tguiWidget* widget, tguiUtf32 nameColumnText, tguiUtf32 sizeColumnText, tguiUtf32 modifiedColumnText); CTGUI_API tguiUtf32 tguiFileDialog_getListViewColumnCaptionsName(const tguiWidget* widget); CTGUI_API tguiUtf32 tguiFileDialog_getListViewColumnCaptionsSize(const tguiWidget* widget); CTGUI_API tguiUtf32 tguiFileDialog_getListViewColumnCaptionsModified(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setFileMustExist(tguiWidget* widget, tguiBool enforceExistence); -CTGUI_API tguiBool tguiFileDialog_getFileMustExist(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setSelectingDirectory(tguiWidget* widget, tguiBool selectDirectories); -CTGUI_API tguiBool tguiFileDialog_getSelectingDirectory(const tguiWidget* widget); - -CTGUI_API void tguiFileDialog_setMultiSelect(tguiWidget* widget, tguiBool multiSelect); -CTGUI_API tguiBool tguiFileDialog_getMultiSelect(const tguiWidget* widget); - -#endif // CTGUI_FILE_DIALOG_H - +#endif // CTGUI_FILEDIALOG_H diff --git a/include/CTGUI/Widgets/Grid.h b/include/CTGUI/Widgets/Grid.h index 017308d..082a41b 100644 --- a/include/CTGUI/Widgets/Grid.h +++ b/include/CTGUI/Widgets/Grid.h @@ -1,35 +1,49 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_GRID_H #define CTGUI_GRID_H #include -#include -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef enum +{ + tguiGridAlignmentCenter, + tguiGridAlignmentUpperLeft, + tguiGridAlignmentUp, + tguiGridAlignmentUpperRight, + tguiGridAlignmentRight, + tguiGridAlignmentBottomRight, + tguiGridAlignmentBottom, + tguiGridAlignmentBottomLeft, + tguiGridAlignmentLeft, +} tguiGridAlignment; + +CTGUI_API tguiWidget* tguiGrid_create(void); + +CTGUI_API void tguiGrid_setAutoSize(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiGrid_getAutoSize(const tguiWidget* thisWidget); + +CTGUI_API void tguiGrid_addWidget(tguiWidget* thisWidget, tguiWidget* widget, size_t row, size_t col, tguiGridAlignment alignment, const tguiOutline* padding); + +CTGUI_API void tguiGrid_setWidgetCell(tguiWidget* thisWidget, tguiWidget* widget, size_t row, size_t col, tguiGridAlignment alignment, const tguiOutline* padding); + +CTGUI_API tguiWidget* tguiGrid_getWidget(tguiWidget* thisWidget, size_t row, size_t col); + +CTGUI_API void tguiGrid_setWidgetAlignment(tguiWidget* thisWidget, tguiWidget* widget, tguiGridAlignment alignment); + +CTGUI_API void tguiGrid_setWidgetAlignmentByCell(tguiWidget* thisWidget, size_t row, size_t col, tguiGridAlignment alignment); + +CTGUI_API tguiGridAlignment tguiGrid_getWidgetAlignment(const tguiWidget* thisWidget, tguiWidget* widget); + +CTGUI_API tguiGridAlignment tguiGrid_getWidgetAlignmentByCell(const tguiWidget* thisWidget, size_t row, size_t col); + +CTGUI_API void tguiGrid_setWidgetPadding(tguiWidget* thisWidget, tguiWidget* widget, const tguiOutline* padding); + +CTGUI_API void tguiGrid_setWidgetPaddingByCell(tguiWidget* thisWidget, size_t row, size_t col, const tguiOutline* padding); + +CTGUI_API const tguiOutline* tguiGrid_getWidgetPadding(const tguiWidget* thisWidget, tguiWidget* widget); + +CTGUI_API const tguiOutline* tguiGrid_getWidgetPaddingByCell(const tguiWidget* thisWidget, size_t row, size_t col); typedef struct { @@ -42,26 +56,5 @@ CTGUI_API void tguiGridWidgetLocation_free(tguiGridWidgetLocation* locationList, ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -CTGUI_API tguiWidget* tguiGrid_create(void); - -CTGUI_API void tguiGrid_setAutoSize(tguiWidget* widget, tguiBool autoSize); -CTGUI_API tguiBool tguiGrid_getAutoSize(const tguiWidget* widget); - -CTGUI_API void tguiGrid_addWidget(tguiWidget* grid, tguiWidget* widget, size_t row, size_t col, tguiAlignment alignment, tguiOutline* padding); -CTGUI_API void tguiGrid_setWidgetCell(tguiWidget* grid, tguiWidget* widget, size_t row, size_t col, tguiAlignment alignment, tguiOutline* padding); -CTGUI_API tguiWidget* tguiGrid_getWidget(tguiWidget* grid, size_t row, size_t col); - CTGUI_API tguiGridWidgetLocation* tguiGrid_getWidgetLocations(const tguiWidget* grid, size_t* count); // tguiGridWidgetLocation_free needs to be called on returned value. NULL is returned if there are no locations. The count is set by the function to indicate length of returned array. - -CTGUI_API void tguiGrid_setWidgetPadding(tguiWidget* grid, tguiWidget* widget, tguiOutline* padding); -CTGUI_API void tguiGrid_setWidgetPaddingByCell(tguiWidget* grid, size_t row, size_t col, tguiOutline* padding); -CTGUI_API tguiOutline* tguiGrid_getWidgetPadding(tguiWidget* grid, tguiWidget* widget); -CTGUI_API tguiOutline* tguiGrid_getWidgetPaddingByCell(tguiWidget* grid, size_t row, size_t col); - -CTGUI_API void tguiGrid_setWidgetAlignment(tguiWidget* grid, tguiWidget* widget, tguiAlignment alignment); -CTGUI_API void tguiGrid_setWidgetAlignmentByCell(tguiWidget* grid, size_t row, size_t col, tguiAlignment alignment); -CTGUI_API tguiAlignment tguiGrid_getWidgetAlignment(tguiWidget* grid, tguiWidget* widget); -CTGUI_API tguiAlignment tguiGrid_getWidgetAlignmentByCell(tguiWidget* grid, size_t row, size_t col); - #endif // CTGUI_GRID_H - diff --git a/include/CTGUI/Widgets/Group.h b/include/CTGUI/Widgets/Group.h index ff94f16..aaae43f 100644 --- a/include/CTGUI/Widgets/Group.h +++ b/include/CTGUI/Widgets/Group.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_GROUP_H #define CTGUI_GROUP_H @@ -31,4 +8,3 @@ CTGUI_API tguiWidget* tguiGroup_create(void); #endif // CTGUI_GROUP_H - diff --git a/include/CTGUI/Widgets/HorizontalLayout.h b/include/CTGUI/Widgets/HorizontalLayout.h index bba93a2..01410d5 100644 --- a/include/CTGUI/Widgets/HorizontalLayout.h +++ b/include/CTGUI/Widgets/HorizontalLayout.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_HORIZONTAL_LAYOUT_H -#define CTGUI_HORIZONTAL_LAYOUT_H +#ifndef CTGUI_HORIZONTALLAYOUT_H +#define CTGUI_HORIZONTALLAYOUT_H #include CTGUI_API tguiWidget* tguiHorizontalLayout_create(void); -#endif // CTGUI_HORIZONTAL_LAYOUT_H - +#endif // CTGUI_HORIZONTALLAYOUT_H diff --git a/include/CTGUI/Widgets/HorizontalWrap.h b/include/CTGUI/Widgets/HorizontalWrap.h index 44ee6f2..3a068f2 100644 --- a/include/CTGUI/Widgets/HorizontalWrap.h +++ b/include/CTGUI/Widgets/HorizontalWrap.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_HORIZONTAL_WRAP_H -#define CTGUI_HORIZONTAL_WRAP_H +#ifndef CTGUI_HORIZONTALWRAP_H +#define CTGUI_HORIZONTALWRAP_H #include CTGUI_API tguiWidget* tguiHorizontalWrap_create(void); -#endif // CTGUI_HORIZONTAL_WRAP_H - +#endif // CTGUI_HORIZONTALWRAP_H diff --git a/include/CTGUI/Widgets/Knob.h b/include/CTGUI/Widgets/Knob.h index d06d367..289e9c7 100644 --- a/include/CTGUI/Widgets/Knob.h +++ b/include/CTGUI/Widgets/Knob.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_KNOB_H #define CTGUI_KNOB_H @@ -30,23 +7,22 @@ CTGUI_API tguiWidget* tguiKnob_create(void); -CTGUI_API void tguiKnob_setStartRotation(tguiWidget* widget, float startRotation); -CTGUI_API float tguiKnob_getStartRotation(const tguiWidget* widget); +CTGUI_API void tguiKnob_setStartRotation(tguiWidget* thisWidget, float value); +CTGUI_API float tguiKnob_getStartRotation(const tguiWidget* thisWidget); -CTGUI_API void tguiKnob_setEndRotation(tguiWidget* widget, float startRotation); -CTGUI_API float tguiKnob_getEndRotation(const tguiWidget* widget); +CTGUI_API void tguiKnob_setEndRotation(tguiWidget* thisWidget, float value); +CTGUI_API float tguiKnob_getEndRotation(const tguiWidget* thisWidget); -CTGUI_API void tguiKnob_setMinimum(tguiWidget* widget, float minimum); -CTGUI_API float tguiKnob_getMinimum(const tguiWidget* widget); +CTGUI_API void tguiKnob_setMinimum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiKnob_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void tguiKnob_setMaximum(tguiWidget* widget, float maximum); -CTGUI_API float tguiKnob_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiKnob_setMaximum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiKnob_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiKnob_setValue(tguiWidget* widget, float value); -CTGUI_API float tguiKnob_getValue(const tguiWidget* widget); +CTGUI_API void tguiKnob_setValue(tguiWidget* thisWidget, float value); +CTGUI_API float tguiKnob_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiKnob_setClockwiseTurning(tguiWidget* widget, tguiBool clockwise); -CTGUI_API tguiBool tguiKnob_getClockwiseTurning(const tguiWidget* widget); +CTGUI_API void tguiKnob_setClockwiseTurning(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiKnob_getClockwiseTurning(const tguiWidget* thisWidget); #endif // CTGUI_KNOB_H - diff --git a/include/CTGUI/Widgets/Label.h b/include/CTGUI/Widgets/Label.h index e1027b9..672c129 100644 --- a/include/CTGUI/Widgets/Label.h +++ b/include/CTGUI/Widgets/Label.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_LABEL_H #define CTGUI_LABEL_H @@ -32,29 +9,25 @@ CTGUI_API tguiWidget* tguiLabel_create(void); -CTGUI_API void tguiLabel_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiLabel_getText(const tguiWidget* widget); - -CTGUI_API void tguiLabel_setHorizontalAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment); -CTGUI_API tguiHorizontalAlignment tguiLabel_getHorizontalAlignment(const tguiWidget* widget); +CTGUI_API void tguiLabel_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiLabel_getText(const tguiWidget* thisWidget); -CTGUI_API void tguiLabel_setVerticalAlignment(tguiWidget* widget, tguiVerticalAlignment alignment); -CTGUI_API tguiVerticalAlignment tguiLabel_getVerticalAlignment(const tguiWidget* widget); +CTGUI_API void tguiLabel_setHorizontalAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiLabel_getHorizontalAlignment(const tguiWidget* thisWidget); -CTGUI_API void tguiLabel_setAutoSize(tguiWidget* widget, tguiBool autoSize); -CTGUI_API tguiBool tguiLabel_getAutoSize(const tguiWidget* widget); +CTGUI_API void tguiLabel_setVerticalAlignment(tguiWidget* thisWidget, tguiVerticalAlignment value); +CTGUI_API tguiVerticalAlignment tguiLabel_getVerticalAlignment(const tguiWidget* thisWidget); -CTGUI_API void tguiLabel_setMaximumTextWidth(tguiWidget* widget, float maximumTextWidth); -CTGUI_API float tguiLabel_getMaximumTextWidth(const tguiWidget* widget); +CTGUI_API void tguiLabel_setAutoSize(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiLabel_getAutoSize(const tguiWidget* thisWidget); -CTGUI_API void tguiLabel_ignoreMouseEvents(tguiWidget* widget, tguiBool ignore); -CTGUI_API tguiBool tguiLabel_isIgnoringMouseEvents(const tguiWidget* widget); +CTGUI_API void tguiLabel_setMaximumTextWidth(tguiWidget* thisWidget, float value); +CTGUI_API float tguiLabel_getMaximumTextWidth(const tguiWidget* thisWidget); -CTGUI_API void tguiLabel_setScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiLabel_getScrollbarPolicy(const tguiWidget* widget); +CTGUI_API void tguiLabel_setScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiLabel_getScrollbarPolicy(const tguiWidget* thisWidget); -CTGUI_API void tguiLabel_setScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiLabel_getScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiLabel_setScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiLabel_getScrollbarValue(const tguiWidget* thisWidget); #endif // CTGUI_LABEL_H - diff --git a/include/CTGUI/Widgets/ListBox.h b/include/CTGUI/Widgets/ListBox.h index eb849b0..6013933 100644 --- a/include/CTGUI/Widgets/ListBox.h +++ b/include/CTGUI/Widgets/ListBox.h @@ -1,85 +1,78 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_LIST_BOX_H -#define CTGUI_LIST_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_LISTBOX_H +#define CTGUI_LISTBOX_H #include #include CTGUI_API tguiWidget* tguiListBox_create(void); -CTGUI_API size_t tguiListBox_addItem(tguiWidget* widget, tguiUtf32 item, tguiUtf32 id); -CTGUI_API tguiUtf32 tguiListBox_getItemById(const tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiUtf32 tguiListBox_getItemByIndex(const tguiWidget* widget, size_t index); -CTGUI_API int tguiListBox_getIndexById(const tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiUtf32 tguiListBox_getIdByIndex(const tguiWidget* widget, size_t index); +CTGUI_API size_t tguiListBox_addItem(tguiWidget* thisWidget, tguiUtf32 item, tguiUtf32 id); + +CTGUI_API tguiUtf32 tguiListBox_getItemById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiUtf32 tguiListBox_getItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API int tguiListBox_getIndexById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiUtf32 tguiListBox_getIdByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API tguiBool tguiListBox_setSelectedItem(tguiWidget* thisWidget, tguiUtf32 item); + +CTGUI_API tguiBool tguiListBox_setSelectedItemById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiBool tguiListBox_setSelectedItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiListBox_deselectItem(tguiWidget* thisWidget); + +CTGUI_API tguiBool tguiListBox_removeItem(tguiWidget* thisWidget, tguiUtf32 item); + +CTGUI_API tguiBool tguiListBox_removeItemById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiBool tguiListBox_removeItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiListBox_removeAllItems(tguiWidget* thisWidget); + +CTGUI_API tguiUtf32 tguiListBox_getSelectedItem(const tguiWidget* thisWidget); + +CTGUI_API tguiUtf32 tguiListBox_getSelectedItemId(const tguiWidget* thisWidget); + +CTGUI_API int tguiListBox_getSelectedItemIndex(const tguiWidget* thisWidget); + +CTGUI_API void tguiListBox_changeItem(tguiWidget* thisWidget, tguiUtf32 originalValue, tguiUtf32 newValue); -CTGUI_API tguiBool tguiListBox_setSelectedItem(tguiWidget* widget, tguiUtf32 item); -CTGUI_API tguiBool tguiListBox_setSelectedItemById(tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiBool tguiListBox_setSelectedItemByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiListBox_deselectItem(tguiWidget* widget); +CTGUI_API void tguiListBox_changeItemById(tguiWidget* thisWidget, tguiUtf32 id, tguiUtf32 newValue); -CTGUI_API tguiBool tguiListBox_removeItem(tguiWidget* widget, tguiUtf32 item); -CTGUI_API tguiBool tguiListBox_removeItemById(tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiBool tguiListBox_removeItemByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiListBox_removeAllItems(tguiWidget* widget); +CTGUI_API void tguiListBox_changeItemByIndex(tguiWidget* thisWidget, size_t index, tguiUtf32 newValue); -CTGUI_API tguiUtf32 tguiListBox_getSelectedItem(const tguiWidget* widget); -CTGUI_API tguiUtf32 tguiListBox_getSelectedItemId(const tguiWidget* widget); -CTGUI_API int tguiListBox_getSelectedItemIndex(const tguiWidget* widget); +CTGUI_API size_t tguiListBox_getItemCount(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiListBox_changeItem(tguiWidget* widget, tguiUtf32 originalValue, tguiUtf32 newValue); -CTGUI_API tguiBool tguiListBox_changeItemById(tguiWidget* widget, tguiUtf32 id, tguiUtf32 newValue); -CTGUI_API tguiBool tguiListBox_changeItemByIndex(tguiWidget* widget, size_t index, tguiUtf32 newValue); +CTGUI_API const tguiUtf32* tguiListBox_getItems(const tguiWidget* thisWidget, size_t* returnCount); -CTGUI_API size_t tguiListBox_getItemCount(const tguiWidget* widget); +CTGUI_API const tguiUtf32* tguiListBox_getItemIds(const tguiWidget* thisWidget, size_t* returnCount); -CTGUI_API const tguiUtf32* tguiListBox_getItems(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array -CTGUI_API const tguiUtf32* tguiListBox_getItemIds(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array +CTGUI_API void tguiListBox_setItemData(tguiWidget* thisWidget, size_t index, void* data); -CTGUI_API void tguiListBox_setItemData(tguiWidget* widget, size_t index, void* data); -CTGUI_API void* tguiListBox_getItemData(const tguiWidget* widget, size_t index); +CTGUI_API void* tguiListBox_getItemData(tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListBox_setItemHeight(tguiWidget* widget, unsigned int height); -CTGUI_API unsigned int tguiListBox_getItemHeight(const tguiWidget* widget); +CTGUI_API void tguiListBox_setItemHeight(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListBox_getItemHeight(const tguiWidget* thisWidget); -CTGUI_API void tguiListBox_setMaximumItems(tguiWidget* widget, size_t maxItems); -CTGUI_API size_t tguiListBox_getMaximumItems(const tguiWidget* widget); +CTGUI_API void tguiListBox_setMaximumItems(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiListBox_getMaximumItems(const tguiWidget* thisWidget); -CTGUI_API void tguiListBox_setAutoScroll(tguiWidget* widget, tguiBool autoScroll); -CTGUI_API tguiBool tguiListBox_getAutoScroll(const tguiWidget* widget); +CTGUI_API void tguiListBox_setAutoScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListBox_getAutoScroll(const tguiWidget* thisWidget); -CTGUI_API void tguiListBox_setTextAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment); -CTGUI_API tguiHorizontalAlignment tguiListBox_getTextAlignment(const tguiWidget* widget); +CTGUI_API void tguiListBox_setTextAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiListBox_getTextAlignment(const tguiWidget* thisWidget); -CTGUI_API void tguiListBox_setScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiListBox_getScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiListBox_setScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListBox_getScrollbarValue(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiListBox_contains(tguiWidget* widget, tguiUtf32 item); -CTGUI_API tguiBool tguiListBox_containsId(tguiWidget* widget, tguiUtf32 id); +CTGUI_API tguiBool tguiListBox_contains(tguiWidget* thisWidget, tguiUtf32 item); -#endif // CTGUI_LIST_BOX_H +CTGUI_API tguiBool tguiListBox_containsId(tguiWidget* thisWidget, tguiUtf32 id); +#endif // CTGUI_LISTBOX_H diff --git a/include/CTGUI/Widgets/ListView.h b/include/CTGUI/Widgets/ListView.h index c489092..256cfb9 100644 --- a/include/CTGUI/Widgets/ListView.h +++ b/include/CTGUI/Widgets/ListView.h @@ -1,30 +1,7 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_LIST_VIEW_H -#define CTGUI_LIST_VIEW_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_LISTVIEW_H +#define CTGUI_LISTVIEW_H #include #include @@ -32,111 +9,129 @@ CTGUI_API tguiWidget* tguiListView_create(void); -CTGUI_API size_t tguiListView_addColumn(tguiWidget* widget, tguiUtf32 text, float width, tguiHorizontalAlignment columnAlignment); +CTGUI_API size_t tguiListView_addColumn(tguiWidget* thisWidget, tguiUtf32 text, float width, tguiHorizontalAlignment columnAlignment); -CTGUI_API void tguiListView_setColumnText(tguiWidget* widget, size_t index, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiListView_getColumnText(tguiWidget* widget, size_t index); +CTGUI_API void tguiListView_setColumnText(tguiWidget* thisWidget, size_t index, tguiUtf32 text); -CTGUI_API void tguiListView_setColumnWidth(tguiWidget* widget, size_t index, float width); -CTGUI_API float tguiListView_getColumnWidth(tguiWidget* widget, size_t index); -CTGUI_API float tguiListView_getColumnDesignWidth(tguiWidget* widget, size_t index); +CTGUI_API tguiUtf32 tguiListView_getColumnText(const tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListView_setColumnAlignment(tguiWidget* widget, size_t index, tguiHorizontalAlignment columnAlignment); -CTGUI_API tguiHorizontalAlignment tguiListView_getColumnAlignment(tguiWidget* widget, size_t index); +CTGUI_API void tguiListView_setColumnWidth(tguiWidget* thisWidget, size_t index, float width); -CTGUI_API void tguiListView_setColumnAutoResize(tguiWidget* widget, size_t index, tguiBool autoResize); -CTGUI_API tguiBool tguiListView_getColumnAutoResize(const tguiWidget* widget, size_t index); +CTGUI_API float tguiListView_getColumnWidth(const tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListView_setColumnExpanded(tguiWidget* widget, size_t index, tguiBool expand); -CTGUI_API tguiBool tguiListView_getColumnExpanded(const tguiWidget* widget, size_t index); +CTGUI_API float tguiListView_getColumnDesignWidth(const tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListView_removeAllColumns(tguiWidget* widget); +CTGUI_API void tguiListView_setColumnAlignment(tguiWidget* thisWidget, size_t index, tguiHorizontalAlignment columnAlignment); -CTGUI_API size_t tguiListView_getColumnCount(const tguiWidget* widget); +CTGUI_API tguiHorizontalAlignment tguiListView_getColumnAlignment(const tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListView_setHeaderHeight(tguiWidget* widget, float height); -CTGUI_API float tguiListView_getHeaderHeight(tguiWidget* widget); -CTGUI_API float tguiListView_getCurrentHeaderHeight(tguiWidget* widget); +CTGUI_API void tguiListView_setColumnAutoResize(tguiWidget* thisWidget, size_t index, tguiBool autoResize); -CTGUI_API void tguiListView_setHeaderVisible(tguiWidget* widget, tguiBool showHeader); -CTGUI_API tguiBool tguiListView_getHeaderVisible(tguiWidget* widget); +CTGUI_API tguiBool tguiListView_getColumnAutoResize(const tguiWidget* thisWidget, size_t index); -CTGUI_API size_t tguiListView_addItem(tguiWidget* widget, tguiUtf32 text); -CTGUI_API size_t tguiListView_addItemRow(tguiWidget* widget, const tguiUtf32* item, unsigned int itemLength); +CTGUI_API void tguiListView_setColumnExpanded(tguiWidget* thisWidget, size_t index, tguiBool expand); -CTGUI_API void tguiListView_insertItem(tguiWidget* widget, size_t index, tguiUtf32 text); -CTGUI_API void tguiListView_insertItemRow(tguiWidget* widget, size_t index, const tguiUtf32* item, unsigned int itemLength); +CTGUI_API tguiBool tguiListView_getColumnExpanded(const tguiWidget* thisWidget, size_t index); -CTGUI_API tguiBool tguiListView_changeItem(tguiWidget* widget, size_t index, const tguiUtf32* item, unsigned int itemLength); -CTGUI_API tguiBool tguiListView_changeSubItem(tguiWidget* widget, size_t index, size_t column, tguiUtf32 text); +CTGUI_API void tguiListView_removeAllColumns(tguiWidget* thisWidget); -CTGUI_API tguiBool tguiListView_removeItem(tguiWidget* widget, size_t index); -CTGUI_API void tguiListView_removeAllItems(tguiWidget* widget); +CTGUI_API size_t tguiListView_getColumnCount(const tguiWidget* thisWidget); -CTGUI_API void tguiListView_setSelectedItem(tguiWidget* widget, size_t index); -CTGUI_API void tguiListView_setSelectedItems(tguiWidget* widget, const size_t* indices, unsigned int indicesLength); -CTGUI_API int tguiListView_getSelectedItemIndex(const tguiWidget* widget); -CTGUI_API const size_t* tguiListView_getSelectedItemIndices(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array -CTGUI_API void tguiListView_deselectItems(tguiWidget* widget); +CTGUI_API void tguiListView_setHeaderVisible(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListView_getHeaderVisible(const tguiWidget* thisWidget); -CTGUI_API void tguiListView_setMultiSelect(tguiWidget* widget, tguiBool multiSelect); -CTGUI_API tguiBool tguiListView_getMultiSelect(const tguiWidget* widget); +CTGUI_API void tguiListView_setHeaderHeight(tguiWidget* thisWidget, float value); +CTGUI_API float tguiListView_getHeaderHeight(const tguiWidget* thisWidget); -CTGUI_API void tguiListView_setItemData(tguiWidget* widget, size_t index, void* data); -CTGUI_API void* tguiListView_getItemData(const tguiWidget* widget, size_t index); +CTGUI_API float tguiListView_getCurrentHeaderHeight(const tguiWidget* thisWidget); -CTGUI_API void tguiListView_setItemIcon(tguiWidget* widget, size_t index, tguiTexture* texture); +CTGUI_API size_t tguiListView_addItem(tguiWidget* thisWidget, tguiUtf32 text); -CTGUI_API size_t tguiListView_getItemCount(const tguiWidget* widget); +CTGUI_API size_t tguiListView_addItemRow(tguiWidget* thisWidget, const tguiUtf32* item, size_t itemLength); -CTGUI_API tguiUtf32 tguiListView_getItem(tguiWidget* widget, size_t index); -CTGUI_API tguiUtf32 tguiListView_getItemCell(tguiWidget* widget, size_t rowIndex, size_t columnIndex); -CTGUI_API const tguiUtf32* tguiListView_getItemRow(const tguiWidget* widget, size_t index, size_t* count); // count is set by the function to indicate length of returned array -CTGUI_API const tguiUtf32* tguiListView_getItems(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array +CTGUI_API void tguiListView_insertItem(tguiWidget* thisWidget, size_t index, tguiUtf32 text); -CTGUI_API void tguiListView_setItemHeight(tguiWidget* widget, unsigned int height); -CTGUI_API unsigned int tguiListView_getItemHeight(const tguiWidget* widget); +CTGUI_API void tguiListView_insertItemRow(tguiWidget* thisWidget, size_t index, const tguiUtf32* item, size_t itemLength); -CTGUI_API void tguiListView_setHeaderTextSize(tguiWidget* widget, unsigned int size); -CTGUI_API unsigned int tguiListView_getHeaderTextSize(const tguiWidget* widget); +CTGUI_API tguiBool tguiListView_changeItem(tguiWidget* thisWidget, size_t index, const tguiUtf32* item, size_t itemLength); -CTGUI_API void tguiListView_setSeparatorWidth(tguiWidget* widget, unsigned int width); -CTGUI_API unsigned int tguiListView_getSeparatorWidth(const tguiWidget* widget); +CTGUI_API tguiBool tguiListView_changeSubItem(tguiWidget* thisWidget, size_t index, size_t column, tguiUtf32 text); -CTGUI_API void tguiListView_setHeaderSeparatorHeight(tguiWidget* widget, unsigned int height); -CTGUI_API unsigned int tguiListView_getHeaderSeparatorHeight(const tguiWidget* widget); +CTGUI_API tguiBool tguiListView_removeItem(tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListView_setGridLinesWidth(tguiWidget* widget, unsigned int width); -CTGUI_API unsigned int tguiListView_getGridLinesWidth(const tguiWidget* widget); +CTGUI_API void tguiListView_removeAllItems(tguiWidget* thisWidget); -CTGUI_API void tguiListView_setAutoScroll(tguiWidget* widget, tguiBool autoScroll); -CTGUI_API tguiBool tguiListView_getAutoScroll(const tguiWidget* widget); +CTGUI_API void tguiListView_setSelectedItem(tguiWidget* thisWidget, size_t index); -CTGUI_API void tguiListView_setShowVerticalGridLines(tguiWidget* widget, tguiBool showGridLines); -CTGUI_API tguiBool tguiListView_getShowVerticalGridLines(const tguiWidget* widget); +CTGUI_API void tguiListView_setSelectedItems(tguiWidget* thisWidget, const size_t* indices, size_t indicesLength); -CTGUI_API void tguiListView_setShowHorizontalGridLines(tguiWidget* widget, tguiBool showGridLines); -CTGUI_API tguiBool tguiListView_getShowHorizontalGridLines(const tguiWidget* widget); +CTGUI_API int tguiListView_getSelectedItemIndex(tguiWidget* thisWidget); -CTGUI_API void tguiListView_setVerticalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiListView_getVerticalScrollbarPolicy(const tguiWidget* widget); +CTGUI_API const size_t* tguiListView_getSelectedItemIndices(const tguiWidget* thisWidget, size_t* returnCount); -CTGUI_API void tguiListView_setHorizontalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiListView_getHorizontalScrollbarPolicy(const tguiWidget* widget); +CTGUI_API void tguiListView_deselectItems(tguiWidget* thisWidget); -CTGUI_API void tguiListView_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiListView_getVerticalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiListView_setMultiSelect(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListView_getMultiSelect(const tguiWidget* thisWidget); -CTGUI_API void tguiListView_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiListView_getHorizontalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiListView_setItemData(tguiWidget* thisWidget, size_t index, void* data); -CTGUI_API void tguiListView_sort(tguiWidget* widget, size_t index, tguiBool (*function)(tguiUtf32, tguiUtf32)); +CTGUI_API void* tguiListView_getItemData(const tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiListView_setItemIcon(tguiWidget* thisWidget, size_t index, const tguiTexture* texture); + +CTGUI_API size_t tguiListView_getItemCount(const tguiWidget* thisWidget); + +CTGUI_API tguiUtf32 tguiListView_getItem(tguiWidget* thisWidget, size_t index); + +CTGUI_API tguiUtf32 tguiListView_getItemCell(tguiWidget* thisWidget, size_t rowIndex, size_t columnIndex); + +CTGUI_API const tguiUtf32* tguiListView_getItemRow(tguiWidget* thisWidget, size_t index, size_t* returnCount); + +CTGUI_API const tguiUtf32* tguiListView_getItems(const tguiWidget* thisWidget, size_t* returnCount); + +CTGUI_API void tguiListView_setItemHeight(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getItemHeight(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setHeaderTextSize(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getHeaderTextSize(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setSeparatorWidth(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getSeparatorWidth(const tguiWidget* thisWidget); -CTGUI_API void tguiListView_setFixedIconSize(tguiWidget* widget, tguiVector2f iconSize); -CTGUI_API tguiVector2f tguiListView_getFixedIconSize(const tguiWidget* widget); +CTGUI_API void tguiListView_setHeaderSeparatorHeight(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getHeaderSeparatorHeight(const tguiWidget* thisWidget); -CTGUI_API void setResizableColumns(tguiWidget* widget, tguiBool resizable); -CTGUI_API tguiBool getResizableColumns(const tguiWidget* widget); +CTGUI_API void tguiListView_setGridLinesWidth(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getGridLinesWidth(const tguiWidget* thisWidget); -#endif // CTGUI_LIST_VIEW_H +CTGUI_API void tguiListView_setAutoScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListView_getAutoScroll(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setShowVerticalGridLines(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListView_getShowVerticalGridLines(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setShowHorizontalGridLines(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListView_getShowHorizontalGridLines(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setVerticalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiListView_getVerticalScrollbarPolicy(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setHorizontalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiListView_getHorizontalScrollbarPolicy(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getVerticalScrollbarValue(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiListView_getHorizontalScrollbarValue(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setFixedIconSize(tguiWidget* thisWidget, tguiVector2f value); +CTGUI_API tguiVector2f tguiListView_getFixedIconSize(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_setResizableColumns(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiListView_getResizableColumns(const tguiWidget* thisWidget); + +CTGUI_API void tguiListView_sort(tguiWidget* widget, size_t index, tguiBool (*function)(tguiUtf32, tguiUtf32)); +#endif // CTGUI_LISTVIEW_H diff --git a/include/CTGUI/Widgets/MenuBar.h b/include/CTGUI/Widgets/MenuBar.h index c153a73..3b8ff34 100644 --- a/include/CTGUI/Widgets/MenuBar.h +++ b/include/CTGUI/Widgets/MenuBar.h @@ -1,34 +1,49 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. -#ifndef CTGUI_MENU_BAR_H -#define CTGUI_MENU_BAR_H +#ifndef CTGUI_MENUBAR_H +#define CTGUI_MENUBAR_H #include -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +CTGUI_API tguiWidget* tguiMenuBar_create(void); + +CTGUI_API void tguiMenuBar_addMenu(tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API tguiBool tguiMenuBar_addMenuItem(tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 text); + +CTGUI_API tguiBool tguiMenuBar_addMenuItemToLastMenu(tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API tguiBool tguiMenuBar_addMenuItemHierarchy(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool createParents); + +CTGUI_API tguiBool tguiMenuBar_changeMenuItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiUtf32 text); + +CTGUI_API tguiBool tguiMenuBar_removeMenu(tguiWidget* thisWidget, tguiUtf32 menu); + +CTGUI_API tguiBool tguiMenuBar_removeMenuItem(tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 menuItem); + +CTGUI_API tguiBool tguiMenuBar_removeMenuItemHierarchy(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool removeParentsWhenEmpty); + +CTGUI_API void tguiMenuBar_removeAllMenus(tguiWidget* thisWidget); + +CTGUI_API tguiBool tguiMenuBar_setMenuEnabled(tguiWidget* thisWidget, tguiUtf32 text, tguiBool enabled); + +CTGUI_API tguiBool tguiMenuBar_getMenuEnabled(const tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API tguiBool tguiMenuBar_setMenuItemEnabled(tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 text, tguiBool enabled); + +CTGUI_API tguiBool tguiMenuBar_getMenuItemEnabled(const tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 text); + +CTGUI_API tguiBool tguiMenuBar_setMenuItemEnabledHierarchy(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool enabled); + +CTGUI_API tguiBool tguiMenuBar_getMenuItemEnabledHierarchy(const tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength); + +CTGUI_API void tguiMenuBar_closeMenu(tguiWidget* thisWidget); + +CTGUI_API void tguiMenuBar_setMinimumSubMenuWidth(tguiWidget* thisWidget, float value); +CTGUI_API float tguiMenuBar_getMinimumSubMenuWidth(const tguiWidget* thisWidget); + +CTGUI_API void tguiMenuBar_setInvertedMenuDirection(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiMenuBar_getInvertedMenuDirection(const tguiWidget* thisWidget); typedef struct tguiMenuBarElement tguiMenuBarElement; // Needed because the struct contains a pointer to itself @@ -50,36 +65,6 @@ CTGUI_API void tguiMenuBarMenuList_free(tguiMenuBarMenuList* menuList); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -CTGUI_API tguiWidget* tguiMenuBar_create(void); - -CTGUI_API void tguiMenuBar_addMenu(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiBool tguiMenuBar_addMenuItem(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 text); -CTGUI_API tguiBool tguiMenuBar_addMenuItemToLastMenu(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiBool tguiMenuBar_addMenuItemHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool createParents); - -CTGUI_API tguiBool tguiMenuBar_changeMenuItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiUtf32 text); - -CTGUI_API tguiBool tguiMenuBar_removeMenu(tguiWidget* widget, tguiUtf32 menu); -CTGUI_API tguiBool tguiMenuBar_removeMenuItem(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 menuItem); -CTGUI_API tguiBool tguiMenuBar_removeMenuItemHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool removeParentsWhenEmpty); -CTGUI_API void tguiMenuBar_removeAllMenus(tguiWidget* widget); - -CTGUI_API tguiBool tguiMenuBar_setMenuEnabled(tguiWidget* widget, tguiUtf32 text, tguiBool enabled); -CTGUI_API tguiBool tguiMenuBar_getMenuEnabled(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiBool tguiMenuBar_setMenuItemEnabled(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 text, tguiBool enabled); -CTGUI_API tguiBool tguiMenuBar_getMenuItemEnabled(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 text); -CTGUI_API tguiBool tguiMenuBar_setMenuItemEnabledHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool enabled); -CTGUI_API tguiBool tguiMenuBar_getMenuItemEnabledHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); - -CTGUI_API void tguiMenuBar_setMinimumSubMenuWidth(tguiWidget* widget, float minimumWidth); -CTGUI_API float tguiMenuBar_getMinimumSubMenuWidth(const tguiWidget* widget); - -CTGUI_API void tguiMenuBar_setInvertedMenuDirection(tguiWidget* widget, tguiBool invertDirection); -CTGUI_API tguiBool tguiMenuBar_getInvertedMenuDirection(const tguiWidget* widget); - CTGUI_API tguiMenuBarMenuList* tguiMenuBar_getMenus(tguiWidget* widget); // You must call tguiMenuBarMenuList_free on the returned value -CTGUI_API void tguiMenuBar_closeMenu(tguiWidget* widget); - -#endif // CTGUI_MENU_BAR_H - +#endif // CTGUI_MENUBAR_H diff --git a/include/CTGUI/Widgets/MessageBox.h b/include/CTGUI/Widgets/MessageBox.h index 251d02a..6ee1857 100644 --- a/include/CTGUI/Widgets/MessageBox.h +++ b/include/CTGUI/Widgets/MessageBox.h @@ -1,48 +1,26 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_MESSAGE_BOX_H -#define CTGUI_MESSAGE_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_MESSAGEBOX_H +#define CTGUI_MESSAGEBOX_H #include #include CTGUI_API tguiWidget* tguiMessageBox_create(void); -CTGUI_API void tguiMessageBox_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiMessageBox_getText(const tguiWidget* widget); +CTGUI_API void tguiMessageBox_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiMessageBox_getText(const tguiWidget* thisWidget); + +CTGUI_API void tguiMessageBox_addButton(tguiWidget* thisWidget, tguiUtf32 text); -CTGUI_API void tguiMessageBox_addButton(tguiWidget* widget, tguiUtf32 text); -CTGUI_API void tguiMessageBox_removeButtons(tguiWidget* widget); -CTGUI_API const tguiUtf32* tguiMessageBox_getButtons(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array +CTGUI_API void tguiMessageBox_changeButtons(tguiWidget* thisWidget, const tguiUtf32* buttonCaptions, size_t buttonCaptionsLength); -CTGUI_API void tguiMessageBox_setLabelAlignment(tguiWidget* widget, tguiHorizontalAlignment labelAlignment); -CTGUI_API tguiHorizontalAlignment tguiMessageBox_getLabelAlignment(const tguiWidget* widget); +CTGUI_API const tguiUtf32* tguiMessageBox_getButtons(tguiWidget* thisWidget, size_t* returnCount); -CTGUI_API void tguiMessageBox_setButtonAlignment(tguiWidget* widget, tguiHorizontalAlignment buttonAlignment); -CTGUI_API tguiHorizontalAlignment tguiMessageBox_getButtonAlignment(const tguiWidget* widget); +CTGUI_API void tguiMessageBox_setLabelAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiMessageBox_getLabelAlignment(const tguiWidget* thisWidget); -#endif // CTGUI_MESSAGE_BOX_H +CTGUI_API void tguiMessageBox_setButtonAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value); +CTGUI_API tguiHorizontalAlignment tguiMessageBox_getButtonAlignment(const tguiWidget* thisWidget); +#endif // CTGUI_MESSAGEBOX_H diff --git a/include/CTGUI/Widgets/Panel.h b/include/CTGUI/Widgets/Panel.h index 6444fca..72a3054 100644 --- a/include/CTGUI/Widgets/Panel.h +++ b/include/CTGUI/Widgets/Panel.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_PANEL_H #define CTGUI_PANEL_H @@ -31,4 +8,3 @@ CTGUI_API tguiWidget* tguiPanel_create(void); #endif // CTGUI_PANEL_H - diff --git a/include/CTGUI/Widgets/PanelListBox.h b/include/CTGUI/Widgets/PanelListBox.h index ed2c732..3c391a4 100644 --- a/include/CTGUI/Widgets/PanelListBox.h +++ b/include/CTGUI/Widgets/PanelListBox.h @@ -1,55 +1,52 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_PANEL_LIST_BOX_H -#define CTGUI_PANEL_LIST_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_PANELLISTBOX_H +#define CTGUI_PANELLISTBOX_H #include -#include CTGUI_API tguiWidget* tguiPanelListBox_create(void); +CTGUI_API void tguiPanelListBox_deselectItem(tguiWidget* thisWidget); + +CTGUI_API void tguiPanelListBox_removeAllItems(tguiWidget* thisWidget); + +CTGUI_API tguiBool tguiPanelListBox_setSelectedItemById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiBool tguiPanelListBox_setSelectedItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API tguiBool tguiPanelListBox_removeItemById(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API tguiBool tguiPanelListBox_removeItemByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API tguiUtf32 tguiPanelListBox_getSelectedItemId(const tguiWidget* thisWidget); + +CTGUI_API int tguiPanelListBox_getSelectedItemIndex(const tguiWidget* thisWidget); + +CTGUI_API size_t tguiPanelListBox_getItemCount(const tguiWidget* thisWidget); + +CTGUI_API const tguiUtf32* tguiPanelListBox_getItemIds(const tguiWidget* thisWidget, size_t* returnCount); + +CTGUI_API void tguiPanelListBox_setMaximumItems(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiPanelListBox_getMaximumItems(const tguiWidget* thisWidget); + +CTGUI_API tguiBool tguiPanelListBox_containsId(tguiWidget* thisWidget, tguiUtf32 id); + +CTGUI_API const tguiLayout* tguiPanelListBox_getItemsWidth(const tguiWidget* thisWidget); + +CTGUI_API void tguiPanelListBox_setItemsHeight(tguiWidget* thisWidget, const tguiLayout* height); + +CTGUI_API const tguiLayout* tguiPanelListBox_getItemsHeight(const tguiWidget* thisWidget); + CTGUI_API tguiWidget* tguiPanelListBox_addItem(tguiWidget* widget, tguiUtf32 id); CTGUI_API tguiWidget* tguiPanelListBox_addItemAtIndex(tguiWidget* widget, tguiUtf32 id, size_t index); CTGUI_API tguiWidget* tguiPanelListBox_getPanelTemplate(tguiWidget* widget); -CTGUI_API tguiLayout* tguiPanelListBox_getItemsWidth(const tguiWidget* widget); - -CTGUI_API void tguiPanelListBox_setItemsHeight(tguiWidget* widget, const tguiLayout* height); -CTGUI_API tguiLayout* tguiPanelListBox_getItemsHeight(const tguiWidget* widget); - CTGUI_API tguiBool tguiPanelListBox_setSelectedItem(tguiWidget* widget, const tguiWidget* panelPtr); -CTGUI_API tguiBool tguiPanelListBox_setSelectedItemById(tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiBool tguiPanelListBox_setSelectedItemByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiPanelListBox_deselectItem(tguiWidget* widget); +CTGUI_API tguiWidget* tguiPanelListBox_getSelectedItem(const tguiWidget* widget); CTGUI_API tguiBool tguiPanelListBox_removeItem(tguiWidget* widget, const tguiWidget* panelPtr); -CTGUI_API tguiBool tguiPanelListBox_removeItemById(tguiWidget* widget, tguiUtf32 id); -CTGUI_API tguiBool tguiPanelListBox_removeItemByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiPanelListBox_removeAllItems(tguiWidget* widget); CTGUI_API tguiWidget* tguiPanelListBox_getItemById(const tguiWidget* widget, tguiUtf32 id); CTGUI_API tguiWidget* tguiPanelListBox_getItemByIndex(const tguiWidget* widget, size_t index); @@ -57,19 +54,7 @@ CTGUI_API int tguiPanelListBox_getIndexById(const tguiWidget* widget, tguiUtf32 CTGUI_API int tguiPanelListBox_getIndexByItem(const tguiWidget* widget, const tguiWidget* panelPtr); CTGUI_API tguiUtf32 tguiPanelListBox_getIdByIndex(const tguiWidget* widget, size_t index); -CTGUI_API tguiWidget* tguiPanelListBox_getSelectedItem(const tguiWidget* widget); -CTGUI_API tguiUtf32 tguiPanelListBox_getSelectedItemId(const tguiWidget* widget); -CTGUI_API int tguiPanelListBox_getSelectedItemIndex(const tguiWidget* widget); - -CTGUI_API size_t tguiPanelListBox_getItemCount(const tguiWidget* widget); CTGUI_API tguiWidget** tguiPanelListBox_getItems(const tguiWidget* widget, size_t* count); // tguiWidget_free must be called on each element in the returned array, count is set by the function to indicate the array length -CTGUI_API const tguiUtf32* tguiPanelListBox_getItemIds(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array - -CTGUI_API void tguiPanelListBox_setMaximumItems(tguiWidget* widget, size_t maximumItems); -CTGUI_API size_t tguiPanelListBox_getMaximumItems(const tguiWidget* widget); CTGUI_API tguiBool tguiPanelListBox_contains(const tguiWidget* widget, const tguiWidget* panelPtr); -CTGUI_API tguiBool tguiPanelListBox_containsId(const tguiWidget* widget, tguiUtf32 id); - -#endif // CTGUI_PANEL_LIST_BOX_H - +#endif // CTGUI_PANELLISTBOX_H diff --git a/include/CTGUI/Widgets/Picture.h b/include/CTGUI/Widgets/Picture.h index 42937d8..c41eaec 100644 --- a/include/CTGUI/Widgets/Picture.h +++ b/include/CTGUI/Widgets/Picture.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_PICTURE_H #define CTGUI_PICTURE_H @@ -30,8 +7,4 @@ CTGUI_API tguiWidget* tguiPicture_create(void); -CTGUI_API void tguiPicture_ignoreMouseEvents(tguiWidget* widget, tguiBool ignore); -CTGUI_API tguiBool tguiPicture_isIgnoringMouseEvents(const tguiWidget* widget); - #endif // CTGUI_PICTURE_H - diff --git a/include/CTGUI/Widgets/ProgressBar.h b/include/CTGUI/Widgets/ProgressBar.h index c71a227..2d7fb95 100644 --- a/include/CTGUI/Widgets/ProgressBar.h +++ b/include/CTGUI/Widgets/ProgressBar.h @@ -1,59 +1,35 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_PROGRESS_BAR_H -#define CTGUI_PROGRESS_BAR_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_PROGRESSBAR_H +#define CTGUI_PROGRESSBAR_H #include typedef enum { - tguiFillDirectionLeftToRight, - tguiFillDirectionRightToLeft, - tguiFillDirectionTopToBottom, - tguiFillDirectionBottomToTop -} tguiFillDirection; + tguiProgressBarFillDirectionLeftToRight, + tguiProgressBarFillDirectionRightToLeft, + tguiProgressBarFillDirectionTopToBottom, + tguiProgressBarFillDirectionBottomToTop, +} tguiProgressBarFillDirection; CTGUI_API tguiWidget* tguiProgressBar_create(void); -CTGUI_API void tguiProgressBar_setMinimum(tguiWidget* widget, unsigned int minimum); -CTGUI_API unsigned int tguiProgressBar_getMinimum(const tguiWidget* widget); - -CTGUI_API void tguiProgressBar_setMaximum(tguiWidget* widget, unsigned int maximum); -CTGUI_API unsigned int tguiProgressBar_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiProgressBar_setMinimum(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiProgressBar_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void tguiProgressBar_setValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiProgressBar_getValue(const tguiWidget* widget); +CTGUI_API void tguiProgressBar_setMaximum(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiProgressBar_getMaximum(const tguiWidget* thisWidget); -CTGUI_API unsigned int tguiProgressBar_incrementValue(const tguiWidget* widget); +CTGUI_API void tguiProgressBar_setValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiProgressBar_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiProgressBar_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiProgressBar_getText(const tguiWidget* widget); +CTGUI_API unsigned int tguiProgressBar_incrementValue(tguiWidget* thisWidget); -CTGUI_API void tguiProgressBar_setFillDirection(tguiWidget* widget, tguiFillDirection fillDirection); -CTGUI_API tguiFillDirection tguiProgressBar_getFillDirection(const tguiWidget* widget); +CTGUI_API void tguiProgressBar_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiProgressBar_getText(const tguiWidget* thisWidget); -#endif // CTGUI_PROGRESS_BAR_H +CTGUI_API void tguiProgressBar_setFillDirection(tguiWidget* thisWidget, tguiProgressBarFillDirection value); +CTGUI_API tguiProgressBarFillDirection tguiProgressBar_getFillDirection(const tguiWidget* thisWidget); +#endif // CTGUI_PROGRESSBAR_H diff --git a/include/CTGUI/Widgets/RadioButton.h b/include/CTGUI/Widgets/RadioButton.h index 7ed79a6..f96ee26 100644 --- a/include/CTGUI/Widgets/RadioButton.h +++ b/include/CTGUI/Widgets/RadioButton.h @@ -1,43 +1,19 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_RADIO_BUTTON_H -#define CTGUI_RADIO_BUTTON_H +#ifndef CTGUI_RADIOBUTTON_H +#define CTGUI_RADIOBUTTON_H #include CTGUI_API tguiWidget* tguiRadioButton_create(void); -CTGUI_API void tguiRadioButton_setChecked(tguiWidget* widget, tguiBool checked); -CTGUI_API tguiBool tguiRadioButton_isChecked(const tguiWidget* widget); - -CTGUI_API void tguiRadioButton_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiRadioButton_getText(const tguiWidget* widget); +CTGUI_API void tguiRadioButton_setChecked(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiRadioButton_isChecked(const tguiWidget* thisWidget); -CTGUI_API void tguiRadioButton_setTextClickable(tguiWidget* widget, tguiBool clickable); -CTGUI_API tguiBool tguiRadioButton_isTextClickable(const tguiWidget* widget); +CTGUI_API void tguiRadioButton_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiRadioButton_getText(const tguiWidget* thisWidget); -#endif // CTGUI_RADIO_BUTTON_H +CTGUI_API void tguiRadioButton_setTextClickable(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiRadioButton_isTextClickable(const tguiWidget* thisWidget); +#endif // CTGUI_RADIOBUTTON_H diff --git a/include/CTGUI/Widgets/RadioButtonGroup.h b/include/CTGUI/Widgets/RadioButtonGroup.h index 9a47429..8ef76ce 100644 --- a/include/CTGUI/Widgets/RadioButtonGroup.h +++ b/include/CTGUI/Widgets/RadioButtonGroup.h @@ -1,38 +1,14 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_RADIO_BUTTON_GROUP_H -#define CTGUI_RADIO_BUTTON_GROUP_H +#ifndef CTGUI_RADIOBUTTONGROUP_H +#define CTGUI_RADIOBUTTONGROUP_H #include CTGUI_API tguiWidget* tguiRadioButtonGroup_create(void); -CTGUI_API void uncheckRadioButtons(tguiWidget* widget); - -CTGUI_API tguiWidget* getCheckedRadioButton(tguiWidget* widget); +CTGUI_API void tguiRadioButtonGroup_uncheckRadioButtons(tguiWidget* thisWidget); -#endif // CTGUI_RADIO_BUTTON_GROUP_H +CTGUI_API tguiWidget* tguiRadioButtonGroup_getCheckedRadioButton(tguiWidget* thisWidget); +#endif // CTGUI_RADIOBUTTONGROUP_H diff --git a/include/CTGUI/Widgets/RangeSlider.h b/include/CTGUI/Widgets/RangeSlider.h index 984d88b..0f57efb 100644 --- a/include/CTGUI/Widgets/RangeSlider.h +++ b/include/CTGUI/Widgets/RangeSlider.h @@ -1,49 +1,25 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_RANGE_SLIDER_H -#define CTGUI_RANGE_SLIDER_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_RANGESLIDER_H +#define CTGUI_RANGESLIDER_H #include CTGUI_API tguiWidget* tguiRangeSlider_create(void); -CTGUI_API void tguiRangeSlider_setMinimum(tguiWidget* widget, float minimum); -CTGUI_API float tguiRangeSlider_getMinimum(const tguiWidget* widget); - -CTGUI_API void tguiRangeSlider_setMaximum(tguiWidget* widget, float maximum); -CTGUI_API float tguiRangeSlider_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiRangeSlider_setMinimum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiRangeSlider_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void tguiRangeSlider_setSelectionStart(tguiWidget* widget, float value); -CTGUI_API float tguiRangeSlider_getSelectionStart(const tguiWidget* widget); +CTGUI_API void tguiRangeSlider_setMaximum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiRangeSlider_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiRangeSlider_setSelectionEnd(tguiWidget* widget, float value); -CTGUI_API float tguiRangeSlider_getSelectionEnd(const tguiWidget* widget); +CTGUI_API void tguiRangeSlider_setSelectionStart(tguiWidget* thisWidget, float value); +CTGUI_API float tguiRangeSlider_getSelectionStart(const tguiWidget* thisWidget); -CTGUI_API void tguiRangeSlider_setStep(tguiWidget* widget, float step); -CTGUI_API float tguiRangeSlider_getStep(const tguiWidget* widget); +CTGUI_API void tguiRangeSlider_setSelectionEnd(tguiWidget* thisWidget, float value); +CTGUI_API float tguiRangeSlider_getSelectionEnd(const tguiWidget* thisWidget); -#endif // CTGUI_RANGE_SLIDER_H +CTGUI_API void tguiRangeSlider_setStep(tguiWidget* thisWidget, float value); +CTGUI_API float tguiRangeSlider_getStep(const tguiWidget* thisWidget); +#endif // CTGUI_RANGESLIDER_H diff --git a/include/CTGUI/Widgets/RichTextLabel.h b/include/CTGUI/Widgets/RichTextLabel.h index 8f4055e..936346e 100644 --- a/include/CTGUI/Widgets/RichTextLabel.h +++ b/include/CTGUI/Widgets/RichTextLabel.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_RICH_TEXT_LABEL_H -#define CTGUI_RICH_TEXT_LABEL_H +#ifndef CTGUI_RICHTEXTLABEL_H +#define CTGUI_RICHTEXTLABEL_H #include CTGUI_API tguiWidget* tguiRichTextLabel_create(void); -#endif // CTGUI_RICH_TEXT_LABEL_H - +#endif // CTGUI_RICHTEXTLABEL_H diff --git a/include/CTGUI/Widgets/ScrollablePanel.h b/include/CTGUI/Widgets/ScrollablePanel.h index dbfe6be..83502b1 100644 --- a/include/CTGUI/Widgets/ScrollablePanel.h +++ b/include/CTGUI/Widgets/ScrollablePanel.h @@ -1,63 +1,40 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_SCROLLABLE_PANEL_H -#define CTGUI_SCROLLABLE_PANEL_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_SCROLLABLEPANEL_H +#define CTGUI_SCROLLABLEPANEL_H #include #include CTGUI_API tguiWidget* tguiScrollablePanel_create(void); -CTGUI_API void tguiScrollablePanel_setContentSize(tguiWidget* widget, tguiVector2f contentSize); -CTGUI_API tguiVector2f tguiScrollablePanel_getContentSize(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setContentSize(tguiWidget* thisWidget, tguiVector2f value); +CTGUI_API tguiVector2f tguiScrollablePanel_getContentSize(const tguiWidget* thisWidget); -CTGUI_API float tguiScrollablePanel_getScrollbarWidth(const tguiWidget* widget); +CTGUI_API float tguiScrollablePanel_getScrollbarWidth(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollablePanel_setVerticalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiScrollablePanel_getVerticalScrollbarPolicy(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setVerticalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiScrollablePanel_getVerticalScrollbarPolicy(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollablePanel_setHorizontalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiScrollablePanel_getHorizontalScrollbarPolicy(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setHorizontalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiScrollablePanel_getHorizontalScrollbarPolicy(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollablePanel_setVerticalScrollAmount(tguiWidget* widget, unsigned int scrollAmount); -CTGUI_API unsigned int tguiScrollablePanel_getVerticalScrollAmount(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setVerticalScrollAmount(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollablePanel_getVerticalScrollAmount(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollablePanel_setHorizontalScrollAmount(tguiWidget* widget, unsigned int scrollAmount); -CTGUI_API unsigned int tguiScrollablePanel_getHorizontalScrollAmount(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setHorizontalScrollAmount(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollablePanel_getHorizontalScrollAmount(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollablePanel_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiScrollablePanel_getVerticalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollablePanel_getVerticalScrollbarValue(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollablePanel_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiScrollablePanel_getHorizontalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiScrollablePanel_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollablePanel_getHorizontalScrollbarValue(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiScrollablePanel_isVerticalScrollbarShown(const tguiWidget* widget); -CTGUI_API tguiBool tguiScrollablePanel_isHorizontalScrollbarShown(const tguiWidget* widget); +CTGUI_API tguiBool tguiScrollablePanel_isVerticalScrollbarShown(const tguiWidget* thisWidget); -CTGUI_API tguiVector2f tguiScrollablePanel_getContentOffset(const tguiWidget* widget); +CTGUI_API tguiBool tguiScrollablePanel_isHorizontalScrollbarShown(const tguiWidget* thisWidget); -#endif // CTGUI_SCROLLABLE_PANEL_H +CTGUI_API tguiVector2f tguiScrollablePanel_getContentOffset(const tguiWidget* thisWidget); +#endif // CTGUI_SCROLLABLEPANEL_H diff --git a/include/CTGUI/Widgets/Scrollbar.h b/include/CTGUI/Widgets/Scrollbar.h index 746a6dd..b67341b 100644 --- a/include/CTGUI/Widgets/Scrollbar.h +++ b/include/CTGUI/Widgets/Scrollbar.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_SCROLLBAR_H #define CTGUI_SCROLLBAR_H @@ -30,25 +7,24 @@ CTGUI_API tguiWidget* tguiScrollbar_create(void); -CTGUI_API void tguiScrollbar_setViewportSize(tguiWidget* widget, unsigned int viewport); -CTGUI_API unsigned int tguiScrollbar_getViewportSize(const tguiWidget* widget); +CTGUI_API void tguiScrollbar_setViewportSize(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollbar_getViewportSize(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollbar_setMaximum(tguiWidget* widget, unsigned int maximum); -CTGUI_API unsigned int tguiScrollbar_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiScrollbar_setMaximum(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollbar_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollbar_setValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiScrollbar_getValue(const tguiWidget* widget); +CTGUI_API void tguiScrollbar_setValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollbar_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollbar_setScrollAmount(tguiWidget* widget, unsigned int scrollAmount); -CTGUI_API unsigned int tguiScrollbar_getScrollAmount(const tguiWidget* widget); +CTGUI_API void tguiScrollbar_setScrollAmount(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiScrollbar_getScrollAmount(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollbar_setAutoHide(tguiWidget* widget, tguiBool autoHide); -CTGUI_API tguiBool tguiScrollbar_getAutoHide(const tguiWidget* widget); +CTGUI_API void tguiScrollbar_setAutoHide(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiScrollbar_getAutoHide(const tguiWidget* thisWidget); -CTGUI_API void tguiScrollbar_setVerticalScroll(tguiWidget* widget, tguiBool vertical); -CTGUI_API tguiBool tguiScrollbar_getVerticalScroll(const tguiWidget* widget); +CTGUI_API void tguiScrollbar_setVerticalScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiScrollbar_getVerticalScroll(const tguiWidget* thisWidget); -CTGUI_API float tguiScrollbar_getDefaultWidth(const tguiWidget* widget); +CTGUI_API float tguiScrollbar_getDefaultWidth(const tguiWidget* thisWidget); #endif // CTGUI_SCROLLBAR_H - diff --git a/include/CTGUI/Widgets/SeparatorLine.h b/include/CTGUI/Widgets/SeparatorLine.h index baa19a9..10fb896 100644 --- a/include/CTGUI/Widgets/SeparatorLine.h +++ b/include/CTGUI/Widgets/SeparatorLine.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_SEPARATOR_LINE_H -#define CTGUI_SEPARATOR_LINE_H +#ifndef CTGUI_SEPARATORLINE_H +#define CTGUI_SEPARATORLINE_H #include CTGUI_API tguiWidget* tguiSeparatorLine_create(void); -#endif // CTGUI_SEPARATOR_LINE_H - +#endif // CTGUI_SEPARATORLINE_H diff --git a/include/CTGUI/Widgets/Slider.h b/include/CTGUI/Widgets/Slider.h index 62b6465..36bc91e 100644 --- a/include/CTGUI/Widgets/Slider.h +++ b/include/CTGUI/Widgets/Slider.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_SLIDER_H #define CTGUI_SLIDER_H @@ -30,26 +7,25 @@ CTGUI_API tguiWidget* tguiSlider_create(void); -CTGUI_API void tguiSlider_setMinimum(tguiWidget* widget, float minimum); -CTGUI_API float tguiSlider_getMinimum(const tguiWidget* widget); +CTGUI_API void tguiSlider_setMinimum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSlider_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void tguiSlider_setMaximum(tguiWidget* widget, float maximum); -CTGUI_API float tguiSlider_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiSlider_setMaximum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSlider_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiSlider_setValue(tguiWidget* widget, float value); -CTGUI_API float tguiSlider_getValue(const tguiWidget* widget); +CTGUI_API void tguiSlider_setValue(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSlider_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiSlider_setStep(tguiWidget* widget, float step); -CTGUI_API float tguiSlider_getStep(const tguiWidget* widget); +CTGUI_API void tguiSlider_setStep(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSlider_getStep(const tguiWidget* thisWidget); -CTGUI_API void tguiSlider_setVerticalScroll(tguiWidget* widget, tguiBool vertical); -CTGUI_API tguiBool tguiSlider_getVerticalScroll(const tguiWidget* widget); +CTGUI_API void tguiSlider_setVerticalScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiSlider_getVerticalScroll(const tguiWidget* thisWidget); -CTGUI_API void tguiSlider_setInvertedDirection(tguiWidget* widget, tguiBool invertedDirection); -CTGUI_API tguiBool tguiSlider_getInvertedDirection(const tguiWidget* widget); +CTGUI_API void tguiSlider_setInvertedDirection(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiSlider_getInvertedDirection(const tguiWidget* thisWidget); -CTGUI_API void tguiSlider_setChangeValueOnScroll(tguiWidget* widget, tguiBool changeValueOnScroll); -CTGUI_API tguiBool tguiSlider_getChangeValueOnScroll(const tguiWidget* widget); +CTGUI_API void tguiSlider_setChangeValueOnScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiSlider_getChangeValueOnScroll(const tguiWidget* thisWidget); #endif // CTGUI_SLIDER_H - diff --git a/include/CTGUI/Widgets/SpinButton.h b/include/CTGUI/Widgets/SpinButton.h index d5b9fdc..0003461 100644 --- a/include/CTGUI/Widgets/SpinButton.h +++ b/include/CTGUI/Widgets/SpinButton.h @@ -1,49 +1,25 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_SPIN_BUTTON_H -#define CTGUI_SPIN_BUTTON_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_SPINBUTTON_H +#define CTGUI_SPINBUTTON_H #include CTGUI_API tguiWidget* tguiSpinButton_create(void); -CTGUI_API void tguiSpinButton_setMinimum(tguiWidget* widget, float minimum); -CTGUI_API float tguiSpinButton_getMinimum(const tguiWidget* widget); - -CTGUI_API void tguiSpinButton_setMaximum(tguiWidget* widget, float maximum); -CTGUI_API float tguiSpinButton_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiSpinButton_setMinimum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinButton_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinButton_setValue(tguiWidget* widget, float value); -CTGUI_API float tguiSpinButton_getValue(const tguiWidget* widget); +CTGUI_API void tguiSpinButton_setMaximum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinButton_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinButton_setStep(tguiWidget* widget, float step); -CTGUI_API float tguiSpinButton_getStep(const tguiWidget* widget); +CTGUI_API void tguiSpinButton_setValue(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinButton_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinButton_setVerticalScroll(tguiWidget* widget, tguiBool vertical); -CTGUI_API tguiBool tguiSpinButton_getVerticalScroll(const tguiWidget* widget); +CTGUI_API void tguiSpinButton_setStep(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinButton_getStep(const tguiWidget* thisWidget); -#endif // CTGUI_SPIN_BUTTON_H +CTGUI_API void tguiSpinButton_setVerticalScroll(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiSpinButton_getVerticalScroll(const tguiWidget* thisWidget); +#endif // CTGUI_SPINBUTTON_H diff --git a/include/CTGUI/Widgets/SpinControl.h b/include/CTGUI/Widgets/SpinControl.h index 572bf71..f388530 100644 --- a/include/CTGUI/Widgets/SpinControl.h +++ b/include/CTGUI/Widgets/SpinControl.h @@ -1,57 +1,34 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_SPIN_CONTROL_H -#define CTGUI_SPIN_CONTROL_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_SPINCONTROL_H +#define CTGUI_SPINCONTROL_H #include CTGUI_API tguiWidget* tguiSpinControl_create(void); -CTGUI_API tguiRenderer* tguiSpinControl_getSpinButtonRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiSpinControl_getSpinButtonSharedRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiSpinControl_getSpinTextRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiSpinControl_getSpinTextSharedRenderer(const tguiWidget* widget); +CTGUI_API tguiRenderer* tguiSpinControl_getSpinButtonRenderer(const tguiWidget* thisWidget); +CTGUI_API tguiRenderer* tguiSpinControl_getSpinButtonSharedRenderer(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinControl_setMinimum(tguiWidget* widget, float minimum); -CTGUI_API float tguiSpinControl_getMinimum(const tguiWidget* widget); +CTGUI_API tguiRenderer* tguiSpinControl_getSpinTextRenderer(const tguiWidget* thisWidget); +CTGUI_API tguiRenderer* tguiSpinControl_getSpinTextSharedRenderer(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinControl_setMaximum(tguiWidget* widget, float maximum); -CTGUI_API float tguiSpinControl_getMaximum(const tguiWidget* widget); +CTGUI_API void tguiSpinControl_setMinimum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinControl_getMinimum(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinControl_setValue(tguiWidget* widget, float value); -CTGUI_API float tguiSpinControl_getValue(const tguiWidget* widget); +CTGUI_API void tguiSpinControl_setMaximum(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinControl_getMaximum(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinControl_setStep(tguiWidget* widget, float step); -CTGUI_API float tguiSpinControl_getStep(const tguiWidget* widget); +CTGUI_API void tguiSpinControl_setValue(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinControl_getValue(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinControl_setDecimalPlaces(tguiWidget* widget, unsigned int decimalPlaces); -CTGUI_API unsigned int tguiSpinControl_getDecimalPlaces(const tguiWidget* widget); +CTGUI_API void tguiSpinControl_setStep(tguiWidget* thisWidget, float value); +CTGUI_API float tguiSpinControl_getStep(const tguiWidget* thisWidget); -CTGUI_API void tguiSpinControl_setUseWideArrows(tguiWidget* widget, tguiBool useWideArrows); -CTGUI_API tguiBool tguiSpinControl_getUseWideArrows(const tguiWidget* widget); +CTGUI_API void tguiSpinControl_setDecimalPlaces(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiSpinControl_getDecimalPlaces(const tguiWidget* thisWidget); -#endif // CTGUI_SPIN_CONTROL_H +CTGUI_API void tguiSpinControl_setUseWideArrows(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiSpinControl_getUseWideArrows(const tguiWidget* thisWidget); +#endif // CTGUI_SPINCONTROL_H diff --git a/include/CTGUI/Widgets/TabContainer.h b/include/CTGUI/Widgets/TabContainer.h index 2a86a3c..a17c348 100644 --- a/include/CTGUI/Widgets/TabContainer.h +++ b/include/CTGUI/Widgets/TabContainer.h @@ -1,75 +1,52 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_TAB_CONTAINER_H -#define CTGUI_TAB_CONTAINER_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_TABCONTAINER_H +#define CTGUI_TABCONTAINER_H #include typedef enum { - tguiTabContainerTabAlignTop = 0, //!< Tabs are above panels - tguiTabContainerTabAlignBottom = 1 << 0 //!< Tabs are below panels + tguiTabContainerTabAlignTop, + tguiTabContainerTabAlignBottom, } tguiTabContainerTabAlign; -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - CTGUI_API tguiWidget* tguiTabContainer_create(void); -CTGUI_API tguiRenderer* tguiTabContainer_getTabsRenderer(const tguiWidget* widget); -CTGUI_API tguiRenderer* tguiTabContainer_getTabsSharedRenderer(const tguiWidget* widget); +CTGUI_API tguiRenderer* tguiTabContainer_getTabsRenderer(const tguiWidget* thisWidget); +CTGUI_API tguiRenderer* tguiTabContainer_getTabsSharedRenderer(const tguiWidget* thisWidget); -CTGUI_API void tguiTabContainer_setTansHeight(tguiWidget* widget, float height); -CTGUI_API void tguiTabContainer_setTabsHeightFromLayout(tguiWidget* widget, tguiLayout* layout); +CTGUI_API void tguiTabContainer_select(tguiWidget* thisWidget, size_t index); -CTGUI_API tguiWidget* tguiTabContainer_addTab(tguiWidget* widget, tguiUtf32 name, tguiBool select); -CTGUI_API tguiWidget* tguiTabContainer_insertTab(tguiWidget* widget, size_t index, tguiUtf32 name, tguiBool select); +CTGUI_API size_t tguiTabContainer_getPanelCount(const tguiWidget* thisWidget); -CTGUI_API tguiBool tguiTabContainer_removeTabWithName(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiBool tguiTabContainer_removeTabWithIndex(tguiWidget* widget, size_t index); +CTGUI_API int tguiTabContainer_getSelectedIndex(const tguiWidget* thisWidget); -CTGUI_API void tguiTabContainer_select(tguiWidget* widget, size_t index); +CTGUI_API tguiUtf32 tguiTabContainer_getTabText(const tguiWidget* thisWidget, size_t index); -CTGUI_API size_t tguiTabContainer_getPanelCount(const tguiWidget* widget); +CTGUI_API tguiBool tguiTabContainer_changeTabText(tguiWidget* thisWidget, size_t index, tguiUtf32 text); -CTGUI_API int tguiTabContainer_getIndex(const tguiWidget* widget, const tguiWidget* panel); +CTGUI_API void tguiTabContainer_setTabFixedSize(tguiWidget* thisWidget, float value); +CTGUI_API float tguiTabContainer_getTabFixedSize(const tguiWidget* thisWidget); -CTGUI_API tguiWidget* tguiTabContainer_getSelected(const tguiWidget* widget); -CTGUI_API int tguiTabContainer_getSelectedIndex(const tguiWidget* widget); +CTGUI_API void tguiTabContainer_setTabAlignment(tguiWidget* thisWidget, tguiTabContainerTabAlign value); +CTGUI_API tguiTabContainerTabAlign tguiTabContainer_getTabAlignment(const tguiWidget* thisWidget); -CTGUI_API tguiWidget* tguiTabContainer_getPanel(const tguiWidget* widget, int index); -CTGUI_API tguiWidget* tguiTabContainer_getTabs(const tguiWidget* widget); -CTGUI_API tguiUtf32 tguiTabContainer_getTabText(const tguiWidget* widget, size_t index); +CTGUI_API void tguiTabContainer_setTabsHeight(tguiWidget* thisWidget, float height); -CTGUI_API tguiBool tguiTabContainer_changeTabText(tguiWidget* widget, size_t index, tguiUtf32 text); +CTGUI_API void tguiTabContainer_setTabsHeightFromLayout(tguiWidget* thisWidget, const tguiLayout* layout); -CTGUI_API void tguiTabContainer_setTabAlignment(tguiWidget* widget, tguiTabContainerTabAlign align); -CTGUI_API tguiTabContainerTabAlign tguiTabContainer_getTabAlignment(const tguiWidget* widget); +CTGUI_API tguiBool tguiTabContainer_removeTabWithName(tguiWidget* thisWidget, tguiUtf32 text); -CTGUI_API void tguiTabContainer_setTabFixedSize(tguiWidget* widget, float fixedSize); -CTGUI_API float tguiTabContainer_getTabFixedSize(const tguiWidget* widget); +CTGUI_API tguiBool tguiTabContainer_removeTabWithIndex(tguiWidget* thisWidget, size_t index); -#endif // CTGUI_TAB_CONTAINER_H +CTGUI_API tguiWidget* tguiTabContainer_addTab(tguiWidget* widget, tguiUtf32 name, tguiBool select); +CTGUI_API tguiWidget* tguiTabContainer_insertTab(tguiWidget* widget, size_t index, tguiUtf32 name, tguiBool select); + +CTGUI_API int tguiTabContainer_getIndex(const tguiWidget* widget, const tguiWidget* panel); +CTGUI_API tguiWidget* tguiTabContainer_getSelected(const tguiWidget* widget); + +CTGUI_API tguiWidget* tguiTabContainer_getPanel(const tguiWidget* widget, int index); +CTGUI_API tguiWidget* tguiTabContainer_getTabs(const tguiWidget* widget); +#endif // CTGUI_TABCONTAINER_H diff --git a/include/CTGUI/Widgets/Tabs.h b/include/CTGUI/Widgets/Tabs.h index d136d6a..1bb314f 100644 --- a/include/CTGUI/Widgets/Tabs.h +++ b/include/CTGUI/Widgets/Tabs.h @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #ifndef CTGUI_TABS_H #define CTGUI_TABS_H @@ -30,39 +7,47 @@ CTGUI_API tguiWidget* tguiTabs_create(void); -CTGUI_API void tguiTabs_setAutoSize(tguiWidget* widget, tguiBool autoSize); -CTGUI_API tguiBool tguiTabs_getAutoSize(const tguiWidget* widget); +CTGUI_API void tguiTabs_setAutoSize(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiTabs_getAutoSize(const tguiWidget* thisWidget); -CTGUI_API size_t tguiTabs_add(tguiWidget* widget, tguiUtf32 text, tguiBool select); -CTGUI_API void tguiTabs_insert(tguiWidget* widget, size_t index, tguiUtf32 text, tguiBool select); -CTGUI_API tguiUtf32 tguiTabs_getText(const tguiWidget* widget, size_t index); +CTGUI_API size_t tguiTabs_add(tguiWidget* thisWidget, tguiUtf32 text, tguiBool select); -CTGUI_API tguiBool tguiTabs_changeText(tguiWidget* widget, size_t index, tguiUtf32 text); +CTGUI_API void tguiTabs_insert(tguiWidget* thisWidget, size_t index, tguiUtf32 text, tguiBool select); -CTGUI_API tguiBool tguiTabs_selectByText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiBool tguiTabs_selectByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiTabs_deselect(tguiWidget* widget); +CTGUI_API tguiUtf32 tguiTabs_getText(tguiWidget* thisWidget, size_t index); -CTGUI_API tguiBool tguiTabs_removeByText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiBool tguiTabs_removeByIndex(tguiWidget* widget, size_t index); -CTGUI_API void tguiTabs_removeAll(tguiWidget* widget); +CTGUI_API tguiBool tguiTabs_changeText(tguiWidget* thisWidget, size_t index, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiTabs_getSelected(const tguiWidget* widget); -CTGUI_API int tguiTabs_getSelectedIndex(const tguiWidget* widget); +CTGUI_API void tguiTabs_deselect(tguiWidget* thisWidget); -CTGUI_API size_t tguiTabs_getTabsCount(const tguiWidget* widget); +CTGUI_API void tguiTabs_removeAll(tguiWidget* thisWidget); -CTGUI_API void tguiTabs_setTabVisible(tguiWidget* widget, size_t index, tguiBool visible); -CTGUI_API tguiBool tguiTabs_getTabVisible(const tguiWidget* widget, size_t index); +CTGUI_API tguiUtf32 tguiTabs_getSelected(tguiWidget* thisWidget); -CTGUI_API void tguiTabs_setTabEnabled(tguiWidget* widget, size_t index, tguiBool enabled); -CTGUI_API tguiBool tguiTabs_getTabEnabled(const tguiWidget* widget, size_t index); +CTGUI_API int tguiTabs_getSelectedIndex(tguiWidget* thisWidget); -CTGUI_API void tguiTabs_setMaximumTabWidth(tguiWidget* widget, float maximumTabWidth); -CTGUI_API float tguiTabs_getMaximumTabWidth(const tguiWidget* widget); +CTGUI_API size_t tguiTabs_getTabsCount(tguiWidget* thisWidget); -CTGUI_API void tguiTabs_setMinimumTabWidth(tguiWidget* widget, float minimumTabWidth); -CTGUI_API float tguiTabs_getMinimumTabWidth(const tguiWidget* widget); +CTGUI_API void tguiTabs_setTabVisible(tguiWidget* thisWidget, size_t index, tguiBool visible); -#endif // CTGUI_TABS_H +CTGUI_API tguiBool tguiTabs_getTabVisible(tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiTabs_setTabEnabled(tguiWidget* thisWidget, size_t index, tguiBool visible); + +CTGUI_API tguiBool tguiTabs_getTabEnabled(tguiWidget* thisWidget, size_t index); + +CTGUI_API void tguiTabs_setMaximumTabWidth(tguiWidget* thisWidget, float value); +CTGUI_API float tguiTabs_getMaximumTabWidth(const tguiWidget* thisWidget); + +CTGUI_API void tguiTabs_setMinimumTabWidth(tguiWidget* thisWidget, float value); +CTGUI_API float tguiTabs_getMinimumTabWidth(const tguiWidget* thisWidget); +CTGUI_API tguiBool tguiTabs_selectByText(tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API tguiBool tguiTabs_selectByIndex(tguiWidget* thisWidget, size_t index); + +CTGUI_API tguiBool tguiTabs_removeByText(tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API tguiBool tguiTabs_removeByIndex(tguiWidget* thisWidget, size_t index); + +#endif // CTGUI_TABS_H diff --git a/include/CTGUI/Widgets/TextArea.h b/include/CTGUI/Widgets/TextArea.h index 65a4d6e..85a560d 100644 --- a/include/CTGUI/Widgets/TextArea.h +++ b/include/CTGUI/Widgets/TextArea.h @@ -1,77 +1,60 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -#ifndef CTGUI_TEXT_BOX_H -#define CTGUI_TEXT_BOX_H +// This file is generated, it should not be edited directly. + +#ifndef CTGUI_TEXTAREA_H +#define CTGUI_TEXTAREA_H #include #include CTGUI_API tguiWidget* tguiTextArea_create(void); -CTGUI_API void tguiTextArea_setText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API void tguiTextArea_addText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiTextArea_getText(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiTextArea_getText(const tguiWidget* thisWidget); + +CTGUI_API void tguiTextArea_addText(tguiWidget* thisWidget, tguiUtf32 text); + +CTGUI_API void tguiTextArea_setDefaultText(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiTextArea_getDefaultText(const tguiWidget* thisWidget); + +CTGUI_API void tguiTextArea_setSelectedText(tguiWidget* thisWidget, size_t selectionStartIndex, size_t selectionEndIndex); + +CTGUI_API tguiUtf32 tguiTextArea_getSelectedText(const tguiWidget* thisWidget); + +CTGUI_API size_t tguiTextArea_getSelectionStart(const tguiWidget* thisWidget); + +CTGUI_API size_t tguiTextArea_getSelectionEnd(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setDefaultText(tguiWidget* widget, tguiUtf32 text); -CTGUI_API tguiUtf32 tguiTextArea_getDefaultText(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setMaximumCharacters(tguiWidget* thisWidget, size_t value); +CTGUI_API size_t tguiTextArea_getMaximumCharacters(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setSelectedText(const tguiWidget* widget, size_t selectionStartIndex, size_t selectionEndIndex); -CTGUI_API tguiUtf32 tguiTextArea_getSelectedText(const tguiWidget* widget); -CTGUI_API size_t tguiTextArea_getSelectionStart(const tguiWidget* widget); -CTGUI_API size_t tguiTextArea_getSelectionEnd(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setTabString(tguiWidget* thisWidget, tguiUtf32 value); +CTGUI_API tguiUtf32 tguiTextArea_getTabString(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setMaximumCharacters(tguiWidget* widget, size_t maximumCharacters); -CTGUI_API size_t tguiTextArea_getMaximumCharacters(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setCaretPosition(tguiWidget* thisWidget, size_t charactersBeforeCaret); -CTGUI_API void tguiTextArea_setTabString(tguiWidget* widget, tguiUtf32 tabText); -CTGUI_API tguiUtf32 tguiTextArea_getTabString(const tguiWidget* widget); +CTGUI_API size_t tguiTextArea_getCaretPosition(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setCaretPosition(tguiWidget* widget, size_t charactersBeforeCaret); -CTGUI_API size_t tguiTextArea_getCaretPosition(const tguiWidget* widget); -CTGUI_API size_t tguiTextArea_getCaretLine(const tguiWidget* widget); -CTGUI_API size_t tguiTextArea_getCaretColumn(const tguiWidget* widget); +CTGUI_API size_t tguiTextArea_getCaretLine(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setReadOnly(tguiWidget* widget, tguiBool readOnly); -CTGUI_API tguiBool tguiTextArea_isReadOnly(const tguiWidget* widget); +CTGUI_API size_t tguiTextArea_getCaretColumn(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setVerticalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiTextArea_getVerticalScrollbarPolicy(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setReadOnly(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiTextArea_isReadOnly(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setHorizontalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy); -CTGUI_API tguiScrollbarPolicy tguiTextArea_getHorizontalScrollbarPolicy(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setVerticalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiTextArea_getVerticalScrollbarPolicy(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_enableMonospacedFontOptimization(tguiWidget* widget, tguiBool enable); +CTGUI_API void tguiTextArea_setHorizontalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value); +CTGUI_API tguiScrollbarPolicy tguiTextArea_getHorizontalScrollbarPolicy(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiTextArea_getVerticalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiTextArea_getVerticalScrollbarValue(const tguiWidget* thisWidget); -CTGUI_API void tguiTextArea_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiTextArea_getHorizontalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiTextArea_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiTextArea_getHorizontalScrollbarValue(const tguiWidget* thisWidget); -CTGUI_API size_t tguiTextArea_getLinesCount(const tguiWidget* widget); +CTGUI_API void tguiTextArea_enableMonospacedFontOptimization(tguiWidget* thisWidget, tguiBool enable); -#endif // CTGUI_TEXT_BOX_H +CTGUI_API size_t tguiTextArea_getLinesCount(tguiWidget* thisWidget); +#endif // CTGUI_TEXTAREA_H diff --git a/include/CTGUI/Widgets/ToggleButton.h b/include/CTGUI/Widgets/ToggleButton.h index 7df8e53..9286d0e 100644 --- a/include/CTGUI/Widgets/ToggleButton.h +++ b/include/CTGUI/Widgets/ToggleButton.h @@ -1,37 +1,13 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_TOGGLE_BUTTON_H -#define CTGUI_TOGGLE_BUTTON_H +#ifndef CTGUI_TOGGLEBUTTON_H +#define CTGUI_TOGGLEBUTTON_H #include CTGUI_API tguiWidget* tguiToggleButton_create(void); -CTGUI_API void tguiToggleButton_setDown(tguiWidget* widget, tguiBool down); -CTGUI_API tguiBool tguiToggleButton_isDown(const tguiWidget* widget); - -#endif // CTGUI_TOGGLE_BUTTON_H +CTGUI_API void tguiToggleButton_setDown(tguiWidget* thisWidget, tguiBool value); +CTGUI_API tguiBool tguiToggleButton_isDown(const tguiWidget* thisWidget); +#endif // CTGUI_TOGGLEBUTTON_H diff --git a/include/CTGUI/Widgets/TreeView.h b/include/CTGUI/Widgets/TreeView.h index d291ea9..21c810f 100644 --- a/include/CTGUI/Widgets/TreeView.h +++ b/include/CTGUI/Widgets/TreeView.h @@ -1,80 +1,58 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_TREE_VIEW_H -#define CTGUI_TREE_VIEW_H +#ifndef CTGUI_TREEVIEW_H +#define CTGUI_TREEVIEW_H #include -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +CTGUI_API tguiWidget* tguiTreeView_create(void); -typedef struct tguiTreeViewConstNode tguiTreeViewConstNode; // Needed because the struct contains a pointer to itself +CTGUI_API void tguiTreeView_setItemHeight(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiTreeView_getItemHeight(const tguiWidget* thisWidget); -struct tguiTreeViewConstNode -{ - tguiBool expanded; - tguiUtf32 text; - tguiTreeViewConstNode* nodes; - size_t nodesCount; -}; +CTGUI_API void tguiTreeView_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiTreeView_getVerticalScrollbarValue(const tguiWidget* thisWidget); -CTGUI_API void tguiTreeViewConstNode_free(tguiTreeViewConstNode* node); // Needs to be called on the pointer returned by tguiTreeView_getNode, and on EACH element of the array returned by tguiTreeView_getNodes. Do NOT call this function on the recursive nodes that are found inside the struct. +CTGUI_API void tguiTreeView_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value); +CTGUI_API unsigned int tguiTreeView_getHorizontalScrollbarValue(const tguiWidget* thisWidget); -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +CTGUI_API tguiBool tguiTreeView_addItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool createParents); -CTGUI_API tguiWidget* tguiTreeView_create(void); +CTGUI_API tguiBool tguiTreeView_changeItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiUtf32 leafText); -CTGUI_API tguiBool tguiTreeView_addItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool createParents); -CTGUI_API tguiBool tguiTreeView_changeItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiUtf32 leafText); +CTGUI_API void tguiTreeView_expand(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength); -CTGUI_API void tguiTreeView_expand(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); -CTGUI_API void tguiTreeView_collapse(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); +CTGUI_API void tguiTreeView_collapse(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength); -CTGUI_API void tguiTreeView_expandAll(tguiWidget* widget); -CTGUI_API void tguiTreeView_collapseAll(tguiWidget* widget); +CTGUI_API void tguiTreeView_expandAll(tguiWidget* thisWidget); -CTGUI_API tguiBool tguiTreeView_selectItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); +CTGUI_API void tguiTreeView_collapseAll(tguiWidget* thisWidget); -CTGUI_API void tguiTreeView_deselectItem(tguiWidget* widget); +CTGUI_API void tguiTreeView_deselectItem(tguiWidget* thisWidget); -CTGUI_API tguiBool tguiTreeView_removeItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool removeParentsWhenEmpty); -CTGUI_API void tguiTreeView_removeAllItems(tguiWidget* widget); +CTGUI_API void tguiTreeView_removeAllItems(tguiWidget* thisWidget); -CTGUI_API const tguiUtf32* tguiTreeView_getSelectedItem(const tguiWidget* widget, size_t* count); // count is set by the function to indicate length of returned array +CTGUI_API const tguiUtf32* tguiTreeView_getSelectedItem(const tguiWidget* thisWidget, size_t* returnCount); -CTGUI_API const tguiTreeViewConstNode* tguiTreeView_getNode(const tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); // tguiTreeViewConstNode_free must be called on the returned value -CTGUI_API tguiTreeViewConstNode** tguiTreeView_getNodes(const tguiWidget* widget, size_t* count); // tguiTreeViewConstNode_free must be called on each element in the returned array, count is set by the function to indicate the array length. NULL is returned if the tree view is empty. +CTGUI_API tguiBool tguiTreeView_selectItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength); + +CTGUI_API tguiBool tguiTreeView_removeItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool removeParentsWhenEmpty); + +typedef struct tguiTreeViewConstNode tguiTreeViewConstNode; // Needed because the struct contains a pointer to itself -CTGUI_API void tguiTreeView_setItemHeight(tguiWidget* widget, unsigned int itemHeight); -CTGUI_API unsigned int tguiTreeView_getItemHeight(const tguiWidget* widget); +struct tguiTreeViewConstNode +{ + tguiBool expanded; + tguiUtf32 text; + tguiTreeViewConstNode* nodes; + size_t nodesCount; +}; -CTGUI_API void tguiTreeView_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiTreeView_getVerticalScrollbarValue(const tguiWidget* widget); +CTGUI_API void tguiTreeViewConstNode_free(tguiTreeViewConstNode* node); // Needs to be called on the pointer returned by tguiTreeView_getNode, and on EACH element of the array returned by tguiTreeView_getNodes. Do NOT call this function on the recursive nodes that are found inside the struct. -CTGUI_API void tguiTreeView_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value); -CTGUI_API unsigned int tguiTreeView_getHorizontalScrollbarValue(const tguiWidget* widget); +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -#endif // CTGUI_TREE_VIEW_H +CTGUI_API const tguiTreeViewConstNode* tguiTreeView_getNode(const tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength); // tguiTreeViewConstNode_free must be called on the returned value +CTGUI_API tguiTreeViewConstNode** tguiTreeView_getNodes(const tguiWidget* widget, size_t* count); // tguiTreeViewConstNode_free must be called on each element in the returned array, count is set by the function to indicate the array length. NULL is returned if the tree view is empty. +#endif // CTGUI_TREEVIEW_H diff --git a/include/CTGUI/Widgets/VerticalLayout.h b/include/CTGUI/Widgets/VerticalLayout.h index c200df1..1ea8231 100644 --- a/include/CTGUI/Widgets/VerticalLayout.h +++ b/include/CTGUI/Widgets/VerticalLayout.h @@ -1,34 +1,10 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated, it should not be edited directly. - -#ifndef CTGUI_VERTICAL_LAYOUT_H -#define CTGUI_VERTICAL_LAYOUT_H +#ifndef CTGUI_VERTICALLAYOUT_H +#define CTGUI_VERTICALLAYOUT_H #include CTGUI_API tguiWidget* tguiVerticalLayout_create(void); -#endif // CTGUI_VERTICAL_LAYOUT_H - +#endif // CTGUI_VERTICALLAYOUT_H diff --git a/src/CTGUI/CMakeLists.txt b/src/CTGUI/CMakeLists.txt index 10f8985..340cedb 100644 --- a/src/CTGUI/CMakeLists.txt +++ b/src/CTGUI/CMakeLists.txt @@ -42,6 +42,7 @@ set(SRC ${SRCROOT}/RendererData.cpp ${SRCROOT}/RendererDataStruct.hpp ${INCROOT}/RendererData.h + ${SRCROOT}/RendererStruct.hpp ${INCROOT}/ScrollbarPolicy.h ${SRCROOT}/Sprite.cpp ${SRCROOT}/SpriteStruct.hpp diff --git a/src/CTGUI/Renderers/RendererStruct.hpp b/src/CTGUI/RendererStruct.hpp similarity index 100% rename from src/CTGUI/Renderers/RendererStruct.hpp rename to src/CTGUI/RendererStruct.hpp diff --git a/src/CTGUI/Renderers/BoxLayoutRenderer.cpp b/src/CTGUI/Renderers/BoxLayoutRenderer.cpp index 695f7e7..c556122 100644 --- a/src/CTGUI/Renderers/BoxLayoutRenderer.cpp +++ b/src/CTGUI/Renderers/BoxLayoutRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include @@ -14,21 +14,21 @@ tguiRenderer* tguiBoxLayoutRenderer_create(void) return new tguiRenderer(new tgui::BoxLayoutRenderer); } -tguiRenderer* tguiBoxLayoutRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiBoxLayoutRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::BoxLayoutRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::BoxLayoutRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRenderer_setSpaceBetweenWidgets(tguiRenderer* renderer, float value) +void tguiBoxLayoutRenderer_setSpaceBetweenWidgets(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setSpaceBetweenWidgets(value); + DOWNCAST(thisRenderer->This)->setSpaceBetweenWidgets(value); } -float tguiBoxLayoutRenderer_getSpaceBetweenWidgets(const tguiRenderer* renderer) +float tguiBoxLayoutRenderer_getSpaceBetweenWidgets(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getSpaceBetweenWidgets(); + return DOWNCAST(thisRenderer->This)->getSpaceBetweenWidgets(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ButtonRenderer.cpp b/src/CTGUI/Renderers/ButtonRenderer.cpp index 05f0a21..f4dd485 100644 --- a/src/CTGUI/Renderers/ButtonRenderer.cpp +++ b/src/CTGUI/Renderers/ButtonRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,537 +16,537 @@ tguiRenderer* tguiButtonRenderer_create(void) return new tguiRenderer(new tgui::ButtonRenderer); } -tguiRenderer* tguiButtonRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiButtonRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ButtonRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ButtonRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiButtonRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiButtonRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiButtonRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorDown(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorDown(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDown(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDown(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorDown(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorDown(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDown()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDown()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorDownHover(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorDownHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDownHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDownHover(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorDownHover(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorDownHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDownHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDownHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorDownFocused(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorDownFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDownFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDownFocused(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorDownFocused(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorDownFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDownFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDownFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextColorDownDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextColorDownDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDownDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDownDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextColorDownDisabled(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextColorDownDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDownDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDownDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorDown(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorDown(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDown(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDown(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorDown(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorDown(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDown()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDown()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorDownHover(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorDownHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDownHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDownHover(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorDownHover(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorDownHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDownHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDownHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorDownFocused(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorDownFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDownFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDownFocused(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorDownFocused(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorDownFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDownFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDownFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBackgroundColorDownDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBackgroundColorDownDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDownDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDownDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBackgroundColorDownDisabled(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBackgroundColorDownDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDownDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDownDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorHover(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorDown(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorDown(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDown(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDown(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorDown(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorDown(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDown()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDown()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorDownHover(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorDownHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDownHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDownHover(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorDownHover(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorDownHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDownHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDownHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorDownFocused(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorDownFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDownFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDownFocused(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorDownFocused(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorDownFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDownFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDownFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setBorderColorDownDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setBorderColorDownDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDownDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDownDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getBorderColorDownDisabled(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getBorderColorDownDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDownDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDownDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTexture(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTexture(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTexture(*texture->This); + DOWNCAST(thisRenderer->This)->setTexture(*value->This); } -tguiTexture* tguiButtonRenderer_getTexture(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTexture(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTexture())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTexture())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureHover(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureHover(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureFocused(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureFocused(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureFocused(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureFocused(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureFocused(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureFocused(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureFocused())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureFocused())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDisabled(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureDown(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureDown(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDown(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDown(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureDown(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureDown(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDown())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDown())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureDownHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureDownHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDownHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDownHover(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureDownHover(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureDownHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDownHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDownHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureDownFocused(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureDownFocused(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDownFocused(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDownFocused(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureDownFocused(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureDownFocused(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDownFocused())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDownFocused())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextureDownDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiButtonRenderer_setTextureDownDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDownDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDownDisabled(*value->This); } -tguiTexture* tguiButtonRenderer_getTextureDownDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiButtonRenderer_getTextureDownDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDownDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDownDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiButtonRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleHover(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleHover(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleHover(style); + DOWNCAST(thisRenderer->This)->setTextStyleHover(value); } -tguiUint32 tguiButtonRenderer_getTextStyleHover(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleHover(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleHover(); + return DOWNCAST(thisRenderer->This)->getTextStyleHover(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleFocused(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleFocused(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleFocused(style); + DOWNCAST(thisRenderer->This)->setTextStyleFocused(value); } -tguiUint32 tguiButtonRenderer_getTextStyleFocused(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleFocused(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleFocused(); + return DOWNCAST(thisRenderer->This)->getTextStyleFocused(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleDisabled(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleDisabled(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleDisabled(style); + DOWNCAST(thisRenderer->This)->setTextStyleDisabled(value); } -tguiUint32 tguiButtonRenderer_getTextStyleDisabled(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleDisabled(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleDisabled(); + return DOWNCAST(thisRenderer->This)->getTextStyleDisabled(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleDown(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleDown(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleDown(style); + DOWNCAST(thisRenderer->This)->setTextStyleDown(value); } -tguiUint32 tguiButtonRenderer_getTextStyleDown(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleDown(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleDown(); + return DOWNCAST(thisRenderer->This)->getTextStyleDown(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleDownHover(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleDownHover(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleDownHover(style); + DOWNCAST(thisRenderer->This)->setTextStyleDownHover(value); } -tguiUint32 tguiButtonRenderer_getTextStyleDownHover(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleDownHover(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleDownHover(); + return DOWNCAST(thisRenderer->This)->getTextStyleDownHover(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleDownFocused(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleDownFocused(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleDownFocused(style); + DOWNCAST(thisRenderer->This)->setTextStyleDownFocused(value); } -tguiUint32 tguiButtonRenderer_getTextStyleDownFocused(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleDownFocused(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleDownFocused(); + return DOWNCAST(thisRenderer->This)->getTextStyleDownFocused(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextStyleDownDisabled(tguiRenderer* renderer, tguiUint32 style) +void tguiButtonRenderer_setTextStyleDownDisabled(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleDownDisabled(style); + DOWNCAST(thisRenderer->This)->setTextStyleDownDisabled(value); } -tguiUint32 tguiButtonRenderer_getTextStyleDownDisabled(const tguiRenderer* renderer) +tguiUint32 tguiButtonRenderer_getTextStyleDownDisabled(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleDownDisabled(); + return DOWNCAST(thisRenderer->This)->getTextStyleDownDisabled(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextOutlineColor(tguiRenderer* renderer, tguiColor* color) +void tguiButtonRenderer_setTextOutlineColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextOutlineColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextOutlineColor(ctgui::toCppColor(value)); } -tguiColor* tguiButtonRenderer_getTextOutlineColor(const tguiRenderer* renderer) +const tguiColor* tguiButtonRenderer_getTextOutlineColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextOutlineColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextOutlineColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setTextOutlineThickness(tguiRenderer* renderer, float value) +void tguiButtonRenderer_setTextOutlineThickness(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setTextOutlineThickness(value); + DOWNCAST(thisRenderer->This)->setTextOutlineThickness(value); } -float tguiButtonRenderer_getTextOutlineThickness(const tguiRenderer* renderer) +float tguiButtonRenderer_getTextOutlineThickness(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextOutlineThickness(); + return DOWNCAST(thisRenderer->This)->getTextOutlineThickness(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonRenderer_setRoundedBorderRadius(tguiRenderer* renderer, float value) +void tguiButtonRenderer_setRoundedBorderRadius(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setRoundedBorderRadius(value); + DOWNCAST(thisRenderer->This)->setRoundedBorderRadius(value); } -float tguiButtonRenderer_getRoundedBorderRadius(const tguiRenderer* renderer) +float tguiButtonRenderer_getRoundedBorderRadius(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getRoundedBorderRadius(); + return DOWNCAST(thisRenderer->This)->getRoundedBorderRadius(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ChatBoxRenderer.cpp b/src/CTGUI/Renderers/ChatBoxRenderer.cpp index 49182e0..c6831d2 100644 --- a/src/CTGUI/Renderers/ChatBoxRenderer.cpp +++ b/src/CTGUI/Renderers/ChatBoxRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,93 +17,93 @@ tguiRenderer* tguiChatBoxRenderer_create(void) return new tguiRenderer(new tgui::ChatBoxRenderer); } -tguiRenderer* tguiChatBoxRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiChatBoxRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ChatBoxRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ChatBoxRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiChatBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiChatBoxRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiChatBoxRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiChatBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiChatBoxRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiChatBoxRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiChatBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiChatBoxRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiChatBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiChatBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiChatBoxRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiChatBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiChatBoxRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiChatBoxRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiChatBoxRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiChatBoxRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiChatBoxRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiChatBoxRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBoxRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiChatBoxRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiChatBoxRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiChatBoxRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ChildWindowRenderer.cpp b/src/CTGUI/Renderers/ChildWindowRenderer.cpp index a3489c9..8914f7d 100644 --- a/src/CTGUI/Renderers/ChildWindowRenderer.cpp +++ b/src/CTGUI/Renderers/ChildWindowRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,213 +17,213 @@ tguiRenderer* tguiChildWindowRenderer_create(void) return new tguiRenderer(new tgui::ChildWindowRenderer); } -tguiRenderer* tguiChildWindowRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiChildWindowRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ChildWindowRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ChildWindowRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiChildWindowRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiChildWindowRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiChildWindowRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setTitleBarColor(tguiRenderer* renderer, tguiColor* color) +void tguiChildWindowRenderer_setTitleBarColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTitleBarColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTitleBarColor(ctgui::toCppColor(value)); } -tguiColor* tguiChildWindowRenderer_getTitleBarColor(const tguiRenderer* renderer) +const tguiColor* tguiChildWindowRenderer_getTitleBarColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTitleBarColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTitleBarColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setTitleColor(tguiRenderer* renderer, tguiColor* color) +void tguiChildWindowRenderer_setTitleColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTitleColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTitleColor(ctgui::toCppColor(value)); } -tguiColor* tguiChildWindowRenderer_getTitleColor(const tguiRenderer* renderer) +const tguiColor* tguiChildWindowRenderer_getTitleColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTitleColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTitleColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiChildWindowRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiChildWindowRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiChildWindowRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiChildWindowRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiChildWindowRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiChildWindowRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiChildWindowRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiChildWindowRenderer_getBorderColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiChildWindowRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setBorderBelowTitleBar(tguiRenderer* renderer, float value) +void tguiChildWindowRenderer_setBorderBelowTitleBar(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setBorderBelowTitleBar(value); + DOWNCAST(thisRenderer->This)->setBorderBelowTitleBar(value); } -float tguiChildWindowRenderer_getBorderBelowTitleBar(const tguiRenderer* renderer) +float tguiChildWindowRenderer_getBorderBelowTitleBar(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getBorderBelowTitleBar(); + return DOWNCAST(thisRenderer->This)->getBorderBelowTitleBar(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setTitleBarHeight(tguiRenderer* renderer, float value) +void tguiChildWindowRenderer_setTitleBarHeight(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setTitleBarHeight(value); + DOWNCAST(thisRenderer->This)->setTitleBarHeight(value); } -float tguiChildWindowRenderer_getTitleBarHeight(const tguiRenderer* renderer) +float tguiChildWindowRenderer_getTitleBarHeight(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTitleBarHeight(); + return DOWNCAST(thisRenderer->This)->getTitleBarHeight(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setDistanceToSide(tguiRenderer* renderer, float value) +void tguiChildWindowRenderer_setDistanceToSide(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setDistanceToSide(value); + DOWNCAST(thisRenderer->This)->setDistanceToSide(value); } -float tguiChildWindowRenderer_getDistanceToSide(const tguiRenderer* renderer) +float tguiChildWindowRenderer_getDistanceToSide(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getDistanceToSide(); + return DOWNCAST(thisRenderer->This)->getDistanceToSide(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setPaddingBetweenButtons(tguiRenderer* renderer, float value) +void tguiChildWindowRenderer_setPaddingBetweenButtons(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setPaddingBetweenButtons(value); + DOWNCAST(thisRenderer->This)->setPaddingBetweenButtons(value); } -float tguiChildWindowRenderer_getPaddingBetweenButtons(const tguiRenderer* renderer) +float tguiChildWindowRenderer_getPaddingBetweenButtons(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getPaddingBetweenButtons(); + return DOWNCAST(thisRenderer->This)->getPaddingBetweenButtons(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setMinimumResizableBorderWidth(tguiRenderer* renderer, float value) +void tguiChildWindowRenderer_setMinimumResizableBorderWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setMinimumResizableBorderWidth(value); + DOWNCAST(thisRenderer->This)->setMinimumResizableBorderWidth(value); } -float tguiChildWindowRenderer_getMinimumResizableBorderWidth(const tguiRenderer* renderer) +float tguiChildWindowRenderer_getMinimumResizableBorderWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getMinimumResizableBorderWidth(); + return DOWNCAST(thisRenderer->This)->getMinimumResizableBorderWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setShowTextOnTitleButtons(tguiRenderer* renderer, tguiBool value) +void tguiChildWindowRenderer_setShowTextOnTitleButtons(tguiRenderer* thisRenderer, tguiBool value) { - DOWNCAST(renderer->This)->setShowTextOnTitleButtons(value != 0); + DOWNCAST(thisRenderer->This)->setShowTextOnTitleButtons(value != 0); } -tguiBool tguiChildWindowRenderer_getShowTextOnTitleButtons(const tguiRenderer* renderer) +tguiBool tguiChildWindowRenderer_getShowTextOnTitleButtons(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getShowTextOnTitleButtons(); + return DOWNCAST(thisRenderer->This)->getShowTextOnTitleButtons(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setTextureTitleBar(tguiRenderer* renderer, tguiTexture* texture) +void tguiChildWindowRenderer_setTextureTitleBar(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTitleBar(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTitleBar(*value->This); } -tguiTexture* tguiChildWindowRenderer_getTextureTitleBar(const tguiRenderer* renderer) +const tguiTexture* tguiChildWindowRenderer_getTextureTitleBar(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTitleBar())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTitleBar())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiChildWindowRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiChildWindowRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiChildWindowRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setCloseButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiChildWindowRenderer_setCloseButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setCloseButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setCloseButton(value->This); } -tguiRendererData* tguiChildWindowRenderer_getCloseButton(const tguiRenderer* renderer) +const tguiRendererData* tguiChildWindowRenderer_getCloseButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getCloseButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getCloseButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setMaximizeButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiChildWindowRenderer_setMaximizeButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setMaximizeButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setMaximizeButton(value->This); } -tguiRendererData* tguiChildWindowRenderer_getMaximizeButton(const tguiRenderer* renderer) +const tguiRendererData* tguiChildWindowRenderer_getMaximizeButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getMaximizeButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getMaximizeButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindowRenderer_setMinimizeButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiChildWindowRenderer_setMinimizeButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setMinimizeButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setMinimizeButton(value->This); } -tguiRendererData* tguiChildWindowRenderer_getMinimizeButton(const tguiRenderer* renderer) +const tguiRendererData* tguiChildWindowRenderer_getMinimizeButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getMinimizeButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getMinimizeButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ColorPickerRenderer.cpp b/src/CTGUI/Renderers/ColorPickerRenderer.cpp index abfce9f..454116b 100644 --- a/src/CTGUI/Renderers/ColorPickerRenderer.cpp +++ b/src/CTGUI/Renderers/ColorPickerRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include @@ -15,45 +15,45 @@ tguiRenderer* tguiColorPickerRenderer_create(void) return new tguiRenderer(new tgui::ColorPickerRenderer); } -tguiRenderer* tguiColorPickerRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiColorPickerRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ColorPickerRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ColorPickerRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiColorPickerRenderer_setButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiColorPickerRenderer_setButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setButton(value->This); } -tguiRendererData* tguiColorPickerRenderer_getButton(const tguiRenderer* renderer) +const tguiRendererData* tguiColorPickerRenderer_getButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiColorPickerRenderer_setLabel(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiColorPickerRenderer_setLabel(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setLabel(rendererData->This); + DOWNCAST(thisRenderer->This)->setLabel(value->This); } -tguiRendererData* tguiColorPickerRenderer_getLabel(const tguiRenderer* renderer) +const tguiRendererData* tguiColorPickerRenderer_getLabel(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getLabel()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getLabel()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiColorPickerRenderer_setSlider(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiColorPickerRenderer_setSlider(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setSlider(rendererData->This); + DOWNCAST(thisRenderer->This)->setSlider(value->This); } -tguiRendererData* tguiColorPickerRenderer_getSlider(const tguiRenderer* renderer) +const tguiRendererData* tguiColorPickerRenderer_getSlider(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getSlider()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getSlider()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ComboBoxRenderer.cpp b/src/CTGUI/Renderers/ComboBoxRenderer.cpp index e0fd561..0c45366 100644 --- a/src/CTGUI/Renderers/ComboBoxRenderer.cpp +++ b/src/CTGUI/Renderers/ComboBoxRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,273 +17,273 @@ tguiRenderer* tguiComboBoxRenderer_create(void) return new tguiRenderer(new tgui::ComboBoxRenderer); } -tguiRenderer* tguiComboBoxRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiComboBoxRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ComboBoxRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ComboBoxRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiComboBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiComboBoxRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiComboBoxRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiComboBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiComboBoxRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiComboBoxRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getTextColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setDefaultTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setDefaultTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setDefaultTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setDefaultTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getDefaultTextColor(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getDefaultTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getDefaultTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getDefaultTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setArrowBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setArrowBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getArrowBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getArrowBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setArrowBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setArrowBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setArrowBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setArrowBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowBackgroundColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowBackgroundColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getArrowBackgroundColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowBackgroundColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowBackgroundColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setArrowColor(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setArrowColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColor(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getArrowColor(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getArrowColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setArrowColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setArrowColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getArrowColorHover(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getArrowColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setArrowColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setArrowColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getArrowColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getArrowColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiComboBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiComboBoxRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiComboBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiComboBoxRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiComboBoxRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiComboBoxRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextureBackgroundDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiComboBoxRenderer_setTextureBackgroundDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackgroundDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackgroundDisabled(*value->This); } -tguiTexture* tguiComboBoxRenderer_getTextureBackgroundDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiComboBoxRenderer_getTextureBackgroundDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackgroundDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackgroundDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextureArrow(tguiRenderer* renderer, tguiTexture* texture) +void tguiComboBoxRenderer_setTextureArrow(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrow(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrow(*value->This); } -tguiTexture* tguiComboBoxRenderer_getTextureArrow(const tguiRenderer* renderer) +const tguiTexture* tguiComboBoxRenderer_getTextureArrow(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrow())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrow())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextureArrowHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiComboBoxRenderer_setTextureArrowHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowHover(*value->This); } -tguiTexture* tguiComboBoxRenderer_getTextureArrowHover(const tguiRenderer* renderer) +const tguiTexture* tguiComboBoxRenderer_getTextureArrowHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextureArrowDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiComboBoxRenderer_setTextureArrowDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowDisabled(*value->This); } -tguiTexture* tguiComboBoxRenderer_getTextureArrowDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiComboBoxRenderer_getTextureArrowDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiComboBoxRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiComboBoxRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiComboBoxRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setDefaultTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiComboBoxRenderer_setDefaultTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setDefaultTextStyle(style); + DOWNCAST(thisRenderer->This)->setDefaultTextStyle(value); } -tguiUint32 tguiComboBoxRenderer_getDefaultTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiComboBoxRenderer_getDefaultTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getDefaultTextStyle(); + return DOWNCAST(thisRenderer->This)->getDefaultTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBoxRenderer_setListBox(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiComboBoxRenderer_setListBox(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setListBox(rendererData->This); + DOWNCAST(thisRenderer->This)->setListBox(value->This); } -tguiRendererData* tguiComboBoxRenderer_getListBox(const tguiRenderer* renderer) +const tguiRendererData* tguiComboBoxRenderer_getListBox(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getListBox()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getListBox()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/EditBoxRenderer.cpp b/src/CTGUI/Renderers/EditBoxRenderer.cpp index 5b7349b..0317a09 100644 --- a/src/CTGUI/Renderers/EditBoxRenderer.cpp +++ b/src/CTGUI/Renderers/EditBoxRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,321 +16,321 @@ tguiRenderer* tguiEditBoxRenderer_create(void) return new tguiRenderer(new tgui::EditBoxRenderer); } -tguiRenderer* tguiEditBoxRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiEditBoxRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::EditBoxRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::EditBoxRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiEditBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiEditBoxRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiEditBoxRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiEditBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiEditBoxRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiEditBoxRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setCaretWidth(tguiRenderer* renderer, float value) +void tguiEditBoxRenderer_setCaretWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setCaretWidth(value); + DOWNCAST(thisRenderer->This)->setCaretWidth(value); } -float tguiEditBoxRenderer_getCaretWidth(const tguiRenderer* renderer) +float tguiEditBoxRenderer_getCaretWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getCaretWidth(); + return DOWNCAST(thisRenderer->This)->getCaretWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setDefaultTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setDefaultTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setDefaultTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setDefaultTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getDefaultTextColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getDefaultTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getDefaultTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getDefaultTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setTextColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getTextColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getTextColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getTextColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setSelectedTextBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setSelectedTextBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getSelectedTextBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getSelectedTextBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBackgroundColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBackgroundColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBackgroundColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBackgroundColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setCaretColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setCaretColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCaretColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCaretColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getCaretColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getCaretColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCaretColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCaretColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setCaretColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setCaretColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCaretColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCaretColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getCaretColorHover(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getCaretColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCaretColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCaretColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setCaretColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setCaretColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCaretColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCaretColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getCaretColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getCaretColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCaretColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCaretColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBorderColorHover(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBorderColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBorderColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setBorderColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiEditBoxRenderer_setBorderColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiEditBoxRenderer_getBorderColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiEditBoxRenderer_getBorderColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTexture(tguiRenderer* renderer, tguiTexture* texture) +void tguiEditBoxRenderer_setTexture(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTexture(*texture->This); + DOWNCAST(thisRenderer->This)->setTexture(*value->This); } -tguiTexture* tguiEditBoxRenderer_getTexture(const tguiRenderer* renderer) +const tguiTexture* tguiEditBoxRenderer_getTexture(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTexture())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTexture())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextureHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiEditBoxRenderer_setTextureHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureHover(*value->This); } -tguiTexture* tguiEditBoxRenderer_getTextureHover(const tguiRenderer* renderer) +const tguiTexture* tguiEditBoxRenderer_getTextureHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextureFocused(tguiRenderer* renderer, tguiTexture* texture) +void tguiEditBoxRenderer_setTextureFocused(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureFocused(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureFocused(*value->This); } -tguiTexture* tguiEditBoxRenderer_getTextureFocused(const tguiRenderer* renderer) +const tguiTexture* tguiEditBoxRenderer_getTextureFocused(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureFocused())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureFocused())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextureDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiEditBoxRenderer_setTextureDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDisabled(*value->This); } -tguiTexture* tguiEditBoxRenderer_getTextureDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiEditBoxRenderer_getTextureDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiEditBoxRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiEditBoxRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiEditBoxRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxRenderer_setDefaultTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiEditBoxRenderer_setDefaultTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setDefaultTextStyle(style); + DOWNCAST(thisRenderer->This)->setDefaultTextStyle(value); } -tguiUint32 tguiEditBoxRenderer_getDefaultTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiEditBoxRenderer_getDefaultTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getDefaultTextStyle(); + return DOWNCAST(thisRenderer->This)->getDefaultTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/FileDialogRenderer.cpp b/src/CTGUI/Renderers/FileDialogRenderer.cpp index e474696..3fc5ee0 100644 --- a/src/CTGUI/Renderers/FileDialogRenderer.cpp +++ b/src/CTGUI/Renderers/FileDialogRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include @@ -15,117 +15,117 @@ tguiRenderer* tguiFileDialogRenderer_create(void) return new tguiRenderer(new tgui::FileDialogRenderer); } -tguiRenderer* tguiFileDialogRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiFileDialogRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::FileDialogRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::FileDialogRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setListView(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setListView(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setListView(rendererData->This); + DOWNCAST(thisRenderer->This)->setListView(value->This); } -tguiRendererData* tguiFileDialogRenderer_getListView(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getListView(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getListView()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getListView()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setEditBox(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setEditBox(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setEditBox(rendererData->This); + DOWNCAST(thisRenderer->This)->setEditBox(value->This); } -tguiRendererData* tguiFileDialogRenderer_getEditBox(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getEditBox(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getEditBox()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getEditBox()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setFilenameLabel(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setFilenameLabel(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setFilenameLabel(rendererData->This); + DOWNCAST(thisRenderer->This)->setFilenameLabel(value->This); } -tguiRendererData* tguiFileDialogRenderer_getFilenameLabel(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getFilenameLabel(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getFilenameLabel()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getFilenameLabel()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setFileTypeComboBox(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setFileTypeComboBox(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setFileTypeComboBox(rendererData->This); + DOWNCAST(thisRenderer->This)->setFileTypeComboBox(value->This); } -tguiRendererData* tguiFileDialogRenderer_getFileTypeComboBox(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getFileTypeComboBox(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getFileTypeComboBox()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getFileTypeComboBox()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setButton(value->This); } -tguiRendererData* tguiFileDialogRenderer_getButton(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setBackButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setBackButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setBackButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setBackButton(value->This); } -tguiRendererData* tguiFileDialogRenderer_getBackButton(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getBackButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getBackButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getBackButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setForwardButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setForwardButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setForwardButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setForwardButton(value->This); } -tguiRendererData* tguiFileDialogRenderer_getForwardButton(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getForwardButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getForwardButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getForwardButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setUpButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiFileDialogRenderer_setUpButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setUpButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setUpButton(value->This); } -tguiRendererData* tguiFileDialogRenderer_getUpButton(const tguiRenderer* renderer) +const tguiRendererData* tguiFileDialogRenderer_getUpButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getUpButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getUpButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogRenderer_setArrowsOnNavigationButtonsVisible(tguiRenderer* renderer, tguiBool value) +void tguiFileDialogRenderer_setArrowsOnNavigationButtonsVisible(tguiRenderer* thisRenderer, tguiBool value) { - DOWNCAST(renderer->This)->setArrowsOnNavigationButtonsVisible(value != 0); + DOWNCAST(thisRenderer->This)->setArrowsOnNavigationButtonsVisible(value != 0); } -tguiBool tguiFileDialogRenderer_getArrowsOnNavigationButtonsVisible(const tguiRenderer* renderer) +tguiBool tguiFileDialogRenderer_getArrowsOnNavigationButtonsVisible(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getArrowsOnNavigationButtonsVisible(); + return DOWNCAST(thisRenderer->This)->getArrowsOnNavigationButtonsVisible(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/GroupRenderer.cpp b/src/CTGUI/Renderers/GroupRenderer.cpp index d968f1c..a125b11 100644 --- a/src/CTGUI/Renderers/GroupRenderer.cpp +++ b/src/CTGUI/Renderers/GroupRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include @@ -15,21 +15,21 @@ tguiRenderer* tguiGroupRenderer_create(void) return new tguiRenderer(new tgui::GroupRenderer); } -tguiRenderer* tguiGroupRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiGroupRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::GroupRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::GroupRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiGroupRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiGroupRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiGroupRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiGroupRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/KnobRenderer.cpp b/src/CTGUI/Renderers/KnobRenderer.cpp index b5458dc..7501b41 100644 --- a/src/CTGUI/Renderers/KnobRenderer.cpp +++ b/src/CTGUI/Renderers/KnobRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,93 +16,93 @@ tguiRenderer* tguiKnobRenderer_create(void) return new tguiRenderer(new tgui::KnobRenderer); } -tguiRenderer* tguiKnobRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiKnobRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::KnobRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::KnobRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiKnobRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiKnobRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiKnobRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiKnobRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiKnobRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiKnobRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color) +void tguiKnobRenderer_setThumbColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setThumbColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setThumbColor(ctgui::toCppColor(value)); } -tguiColor* tguiKnobRenderer_getThumbColor(const tguiRenderer* renderer) +const tguiColor* tguiKnobRenderer_getThumbColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getThumbColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiKnobRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiKnobRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiKnobRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiKnobRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiKnobRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiKnobRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setTextureForeground(tguiRenderer* renderer, tguiTexture* texture) +void tguiKnobRenderer_setTextureForeground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureForeground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureForeground(*value->This); } -tguiTexture* tguiKnobRenderer_getTextureForeground(const tguiRenderer* renderer) +const tguiTexture* tguiKnobRenderer_getTextureForeground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureForeground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureForeground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnobRenderer_setImageRotation(tguiRenderer* renderer, float value) +void tguiKnobRenderer_setImageRotation(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setImageRotation(value); + DOWNCAST(thisRenderer->This)->setImageRotation(value); } -float tguiKnobRenderer_getImageRotation(const tguiRenderer* renderer) +float tguiKnobRenderer_getImageRotation(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getImageRotation(); + return DOWNCAST(thisRenderer->This)->getImageRotation(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/LabelRenderer.cpp b/src/CTGUI/Renderers/LabelRenderer.cpp index 4b5ded4..975e091 100644 --- a/src/CTGUI/Renderers/LabelRenderer.cpp +++ b/src/CTGUI/Renderers/LabelRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,141 +17,141 @@ tguiRenderer* tguiLabelRenderer_create(void) return new tguiRenderer(new tgui::LabelRenderer); } -tguiRenderer* tguiLabelRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiLabelRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::LabelRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::LabelRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiLabelRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiLabelRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiLabelRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiLabelRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiLabelRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiLabelRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiLabelRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiLabelRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiLabelRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setTextOutlineColor(tguiRenderer* renderer, tguiColor* color) +void tguiLabelRenderer_setTextOutlineColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextOutlineColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextOutlineColor(ctgui::toCppColor(value)); } -tguiColor* tguiLabelRenderer_getTextOutlineColor(const tguiRenderer* renderer) +const tguiColor* tguiLabelRenderer_getTextOutlineColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextOutlineColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextOutlineColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setTextOutlineThickness(tguiRenderer* renderer, float value) +void tguiLabelRenderer_setTextOutlineThickness(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setTextOutlineThickness(value); + DOWNCAST(thisRenderer->This)->setTextOutlineThickness(value); } -float tguiLabelRenderer_getTextOutlineThickness(const tguiRenderer* renderer) +float tguiLabelRenderer_getTextOutlineThickness(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextOutlineThickness(); + return DOWNCAST(thisRenderer->This)->getTextOutlineThickness(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiLabelRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiLabelRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiLabelRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiLabelRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiLabelRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiLabelRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiLabelRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiLabelRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiLabelRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiLabelRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiLabelRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiLabelRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiLabelRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiLabelRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiLabelRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabelRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiLabelRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiLabelRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiLabelRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ListBoxRenderer.cpp b/src/CTGUI/Renderers/ListBoxRenderer.cpp index f831293..c98c047 100644 --- a/src/CTGUI/Renderers/ListBoxRenderer.cpp +++ b/src/CTGUI/Renderers/ListBoxRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,201 +17,201 @@ tguiRenderer* tguiListBoxRenderer_create(void) return new tguiRenderer(new tgui::ListBoxRenderer); } -tguiRenderer* tguiListBoxRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiListBoxRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ListBoxRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ListBoxRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiListBoxRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiListBoxRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiListBoxRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiListBoxRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiListBoxRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiListBoxRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getSelectedTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiListBoxRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiListBoxRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiListBoxRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiListBoxRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiListBoxRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiListBoxRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiListBoxRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiListBoxRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiListBoxRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setSelectedTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiListBoxRenderer_setSelectedTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setSelectedTextStyle(style); + DOWNCAST(thisRenderer->This)->setSelectedTextStyle(value); } -tguiUint32 tguiListBoxRenderer_getSelectedTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiListBoxRenderer_getSelectedTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getSelectedTextStyle(); + return DOWNCAST(thisRenderer->This)->getSelectedTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiListBoxRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiListBoxRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiListBoxRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBoxRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiListBoxRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiListBoxRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiListBoxRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ListViewRenderer.cpp b/src/CTGUI/Renderers/ListViewRenderer.cpp index 89da025..5341c41 100644 --- a/src/CTGUI/Renderers/ListViewRenderer.cpp +++ b/src/CTGUI/Renderers/ListViewRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,237 +17,237 @@ tguiRenderer* tguiListViewRenderer_create(void) return new tguiRenderer(new tgui::ListViewRenderer); } -tguiRenderer* tguiListViewRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiListViewRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ListViewRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ListViewRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiListViewRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiListViewRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiListViewRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiListViewRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiListViewRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiListViewRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getSelectedTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setHeaderBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setHeaderBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setHeaderBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setHeaderBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getHeaderBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getHeaderBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getHeaderBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getHeaderBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setHeaderTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setHeaderTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setHeaderTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setHeaderTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getHeaderTextColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getHeaderTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getHeaderTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getHeaderTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setSeparatorColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setSeparatorColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSeparatorColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSeparatorColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getSeparatorColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getSeparatorColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSeparatorColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSeparatorColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setGridLinesColor(tguiRenderer* renderer, tguiColor* color) +void tguiListViewRenderer_setGridLinesColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setGridLinesColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setGridLinesColor(ctgui::toCppColor(value)); } -tguiColor* tguiListViewRenderer_getGridLinesColor(const tguiRenderer* renderer) +const tguiColor* tguiListViewRenderer_getGridLinesColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getGridLinesColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getGridLinesColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setTextureHeaderBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiListViewRenderer_setTextureHeaderBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureHeaderBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureHeaderBackground(*value->This); } -tguiTexture* tguiListViewRenderer_getTextureHeaderBackground(const tguiRenderer* renderer) +const tguiTexture* tguiListViewRenderer_getTextureHeaderBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureHeaderBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureHeaderBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiListViewRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiListViewRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiListViewRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiListViewRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiListViewRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiListViewRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListViewRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiListViewRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiListViewRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiListViewRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/MenuBarRenderer.cpp b/src/CTGUI/Renderers/MenuBarRenderer.cpp index dff19eb..f0bff0c 100644 --- a/src/CTGUI/Renderers/MenuBarRenderer.cpp +++ b/src/CTGUI/Renderers/MenuBarRenderer.cpp @@ -1,7 +1,8 @@ // This file is generated, it should not be edited directly. #include -#include +#include +#include #include @@ -14,165 +15,165 @@ tguiRenderer* tguiMenuBarRenderer_create(void) return new tguiRenderer(new tgui::MenuBarRenderer); } -tguiRenderer* tguiMenuBarRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiMenuBarRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::MenuBarRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::MenuBarRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiMenuBarRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiMenuBarRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiMenuBarRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiMenuBarRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiMenuBarRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiMenuBarRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiMenuBarRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiMenuBarRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiMenuBarRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiMenuBarRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiMenuBarRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiMenuBarRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiMenuBarRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiMenuBarRenderer_getTextColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiMenuBarRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setSeparatorColor(tguiRenderer* renderer, tguiColor* color) +void tguiMenuBarRenderer_setSeparatorColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSeparatorColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSeparatorColor(ctgui::toCppColor(value)); } -tguiColor* tguiMenuBarRenderer_getSeparatorColor(const tguiRenderer* renderer) +const tguiColor* tguiMenuBarRenderer_getSeparatorColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSeparatorColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSeparatorColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiMenuBarRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiMenuBarRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiMenuBarRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setTextureItemBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiMenuBarRenderer_setTextureItemBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureItemBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureItemBackground(*value->This); } -tguiTexture* tguiMenuBarRenderer_getTextureItemBackground(const tguiRenderer* renderer) +const tguiTexture* tguiMenuBarRenderer_getTextureItemBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureItemBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureItemBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setTextureSelectedItemBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiMenuBarRenderer_setTextureSelectedItemBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureSelectedItemBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureSelectedItemBackground(*value->This); } -tguiTexture* tguiMenuBarRenderer_getTextureSelectedItemBackground(const tguiRenderer* renderer) +const tguiTexture* tguiMenuBarRenderer_getTextureSelectedItemBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureSelectedItemBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureSelectedItemBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setDistanceToSide(tguiRenderer* renderer, float value) +void tguiMenuBarRenderer_setDistanceToSide(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setDistanceToSide(value); + DOWNCAST(thisRenderer->This)->setDistanceToSide(value); } -float tguiMenuBarRenderer_getDistanceToSide(const tguiRenderer* renderer) +float tguiMenuBarRenderer_getDistanceToSide(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getDistanceToSide(); + return DOWNCAST(thisRenderer->This)->getDistanceToSide(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setSeparatorThickness(tguiRenderer* renderer, float value) +void tguiMenuBarRenderer_setSeparatorThickness(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setSeparatorThickness(value); + DOWNCAST(thisRenderer->This)->setSeparatorThickness(value); } -float tguiMenuBarRenderer_getSeparatorThickness(const tguiRenderer* renderer) +float tguiMenuBarRenderer_getSeparatorThickness(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getSeparatorThickness(); + return DOWNCAST(thisRenderer->This)->getSeparatorThickness(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setSeparatorVerticalPadding(tguiRenderer* renderer, float value) +void tguiMenuBarRenderer_setSeparatorVerticalPadding(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setSeparatorVerticalPadding(value); + DOWNCAST(thisRenderer->This)->setSeparatorVerticalPadding(value); } -float tguiMenuBarRenderer_getSeparatorVerticalPadding(const tguiRenderer* renderer) +float tguiMenuBarRenderer_getSeparatorVerticalPadding(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getSeparatorVerticalPadding(); + return DOWNCAST(thisRenderer->This)->getSeparatorVerticalPadding(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBarRenderer_setSeparatorSidePadding(tguiRenderer* renderer, float value) +void tguiMenuBarRenderer_setSeparatorSidePadding(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setSeparatorSidePadding(value); + DOWNCAST(thisRenderer->This)->setSeparatorSidePadding(value); } -float tguiMenuBarRenderer_getSeparatorSidePadding(const tguiRenderer* renderer) +float tguiMenuBarRenderer_getSeparatorSidePadding(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getSeparatorSidePadding(); + return DOWNCAST(thisRenderer->This)->getSeparatorSidePadding(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/MessageBoxRenderer.cpp b/src/CTGUI/Renderers/MessageBoxRenderer.cpp index 9775f8e..1fb5bab 100644 --- a/src/CTGUI/Renderers/MessageBoxRenderer.cpp +++ b/src/CTGUI/Renderers/MessageBoxRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include @@ -15,33 +15,33 @@ tguiRenderer* tguiMessageBoxRenderer_create(void) return new tguiRenderer(new tgui::MessageBoxRenderer); } -tguiRenderer* tguiMessageBoxRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiMessageBoxRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::MessageBoxRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::MessageBoxRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMessageBoxRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiMessageBoxRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiMessageBoxRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiMessageBoxRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMessageBoxRenderer_setButton(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiMessageBoxRenderer_setButton(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setButton(rendererData->This); + DOWNCAST(thisRenderer->This)->setButton(value->This); } -tguiRendererData* tguiMessageBoxRenderer_getButton(const tguiRenderer* renderer) +const tguiRendererData* tguiMessageBoxRenderer_getButton(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getButton()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getButton()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/PanelListBoxRenderer.cpp b/src/CTGUI/Renderers/PanelListBoxRenderer.cpp index dd882d6..c854869 100644 --- a/src/CTGUI/Renderers/PanelListBoxRenderer.cpp +++ b/src/CTGUI/Renderers/PanelListBoxRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include @@ -14,57 +14,57 @@ tguiRenderer* tguiPanelListBoxRenderer_create(void) return new tguiRenderer(new tgui::PanelListBoxRenderer); } -tguiRenderer* tguiPanelListBoxRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiPanelListBoxRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::PanelListBoxRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::PanelListBoxRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelListBoxRenderer_setItemsBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiPanelListBoxRenderer_setItemsBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setItemsBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setItemsBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getItemsBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getItemsBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelListBoxRenderer_setItemsBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiPanelListBoxRenderer_setItemsBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setItemsBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setItemsBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiPanelListBoxRenderer_getItemsBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getItemsBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getItemsBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedItemsBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedItemsBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedItemsBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedItemsBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiPanelListBoxRenderer_setSelectedItemsBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedItemsBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedItemsBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiPanelListBoxRenderer_getSelectedItemsBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedItemsBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedItemsBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/PanelRenderer.cpp b/src/CTGUI/Renderers/PanelRenderer.cpp index 032fff7..aacb7b1 100644 --- a/src/CTGUI/Renderers/PanelRenderer.cpp +++ b/src/CTGUI/Renderers/PanelRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,69 +16,69 @@ tguiRenderer* tguiPanelRenderer_create(void) return new tguiRenderer(new tgui::PanelRenderer); } -tguiRenderer* tguiPanelRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiPanelRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::PanelRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::PanelRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiPanelRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiPanelRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiPanelRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiPanelRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiPanelRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiPanelRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiPanelRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiPanelRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiPanelRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiPanelRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiPanelRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiPanelRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelRenderer_setRoundedBorderRadius(tguiRenderer* renderer, float value) +void tguiPanelRenderer_setRoundedBorderRadius(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setRoundedBorderRadius(value); + DOWNCAST(thisRenderer->This)->setRoundedBorderRadius(value); } -float tguiPanelRenderer_getRoundedBorderRadius(const tguiRenderer* renderer) +float tguiPanelRenderer_getRoundedBorderRadius(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getRoundedBorderRadius(); + return DOWNCAST(thisRenderer->This)->getRoundedBorderRadius(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/PictureRenderer.cpp b/src/CTGUI/Renderers/PictureRenderer.cpp index b2e1a39..3aa3fe5 100644 --- a/src/CTGUI/Renderers/PictureRenderer.cpp +++ b/src/CTGUI/Renderers/PictureRenderer.cpp @@ -1,7 +1,8 @@ // This file is generated, it should not be edited directly. #include -#include +#include +#include #include @@ -14,21 +15,21 @@ tguiRenderer* tguiPictureRenderer_create(void) return new tguiRenderer(new tgui::PictureRenderer); } -tguiRenderer* tguiPictureRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiPictureRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::PictureRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::PictureRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPictureRenderer_setTexture(tguiRenderer* renderer, tguiTexture* texture) +void tguiPictureRenderer_setTexture(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTexture(*texture->This); + DOWNCAST(thisRenderer->This)->setTexture(*value->This); } -tguiTexture* tguiPictureRenderer_getTexture(const tguiRenderer* renderer) +const tguiTexture* tguiPictureRenderer_getTexture(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTexture())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTexture())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ProgressBarRenderer.cpp b/src/CTGUI/Renderers/ProgressBarRenderer.cpp index d8f6535..4cb86ca 100644 --- a/src/CTGUI/Renderers/ProgressBarRenderer.cpp +++ b/src/CTGUI/Renderers/ProgressBarRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,141 +16,141 @@ tguiRenderer* tguiProgressBarRenderer_create(void) return new tguiRenderer(new tgui::ProgressBarRenderer); } -tguiRenderer* tguiProgressBarRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiProgressBarRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ProgressBarRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ProgressBarRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiProgressBarRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiProgressBarRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiProgressBarRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiProgressBarRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiProgressBarRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiProgressBarRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextColorFilled(tguiRenderer* renderer, tguiColor* color) +void tguiProgressBarRenderer_setTextColorFilled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorFilled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorFilled(ctgui::toCppColor(value)); } -tguiColor* tguiProgressBarRenderer_getTextColorFilled(const tguiRenderer* renderer) +const tguiColor* tguiProgressBarRenderer_getTextColorFilled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorFilled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorFilled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiProgressBarRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiProgressBarRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiProgressBarRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setFillColor(tguiRenderer* renderer, tguiColor* color) +void tguiProgressBarRenderer_setFillColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setFillColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setFillColor(ctgui::toCppColor(value)); } -tguiColor* tguiProgressBarRenderer_getFillColor(const tguiRenderer* renderer) +const tguiColor* tguiProgressBarRenderer_getFillColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getFillColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getFillColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiProgressBarRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiProgressBarRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiProgressBarRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiProgressBarRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiProgressBarRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiProgressBarRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextureFill(tguiRenderer* renderer, tguiTexture* texture) +void tguiProgressBarRenderer_setTextureFill(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureFill(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureFill(*value->This); } -tguiTexture* tguiProgressBarRenderer_getTextureFill(const tguiRenderer* renderer) +const tguiTexture* tguiProgressBarRenderer_getTextureFill(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureFill())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureFill())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiProgressBarRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiProgressBarRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiProgressBarRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextOutlineColor(tguiRenderer* renderer, tguiColor* color) +void tguiProgressBarRenderer_setTextOutlineColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextOutlineColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextOutlineColor(ctgui::toCppColor(value)); } -tguiColor* tguiProgressBarRenderer_getTextOutlineColor(const tguiRenderer* renderer) +const tguiColor* tguiProgressBarRenderer_getTextOutlineColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextOutlineColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextOutlineColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBarRenderer_setTextOutlineThickness(tguiRenderer* renderer, float value) +void tguiProgressBarRenderer_setTextOutlineThickness(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setTextOutlineThickness(value); + DOWNCAST(thisRenderer->This)->setTextOutlineThickness(value); } -float tguiProgressBarRenderer_getTextOutlineThickness(const tguiRenderer* renderer) +float tguiProgressBarRenderer_getTextOutlineThickness(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextOutlineThickness(); + return DOWNCAST(thisRenderer->This)->getTextOutlineThickness(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/RadioButtonRenderer.cpp b/src/CTGUI/Renderers/RadioButtonRenderer.cpp index 5e612f9..9e3a29b 100644 --- a/src/CTGUI/Renderers/RadioButtonRenderer.cpp +++ b/src/CTGUI/Renderers/RadioButtonRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,429 +16,429 @@ tguiRenderer* tguiRadioButtonRenderer_create(void) return new tguiRenderer(new tgui::RadioButtonRenderer); } -tguiRenderer* tguiRadioButtonRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiRadioButtonRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::RadioButtonRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::RadioButtonRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextDistanceRatio(tguiRenderer* renderer, float value) +void tguiRadioButtonRenderer_setTextDistanceRatio(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setTextDistanceRatio(value); + DOWNCAST(thisRenderer->This)->setTextDistanceRatio(value); } -float tguiRadioButtonRenderer_getTextDistanceRatio(const tguiRenderer* renderer) +float tguiRadioButtonRenderer_getTextDistanceRatio(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextDistanceRatio(); + return DOWNCAST(thisRenderer->This)->getTextDistanceRatio(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiRadioButtonRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiRadioButtonRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiRadioButtonRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getTextColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextColorChecked(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setTextColorChecked(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorChecked(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorChecked(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getTextColorChecked(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getTextColorChecked(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorChecked()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorChecked()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextColorCheckedHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setTextColorCheckedHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorCheckedHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorCheckedHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getTextColorCheckedHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getTextColorCheckedHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorCheckedHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorCheckedHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextColorCheckedDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setTextColorCheckedDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorCheckedDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorCheckedDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getTextColorCheckedDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getTextColorCheckedDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorCheckedDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorCheckedDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBackgroundColorChecked(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBackgroundColorChecked(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorChecked(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorChecked(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBackgroundColorChecked(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBackgroundColorChecked(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorChecked()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorChecked()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBackgroundColorCheckedHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBackgroundColorCheckedHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorCheckedHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorCheckedHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorCheckedHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorCheckedHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBackgroundColorCheckedDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBackgroundColorCheckedDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorCheckedDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorCheckedDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBackgroundColorCheckedDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorCheckedDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorCheckedDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorFocused(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorFocused(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorFocused(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorChecked(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorChecked(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorChecked(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorChecked(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorChecked(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorChecked(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorChecked()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorChecked()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorCheckedHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorCheckedHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorCheckedHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorCheckedHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorCheckedHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorCheckedHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorCheckedFocused(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorCheckedFocused(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorCheckedFocused(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorCheckedFocused(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedFocused(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedFocused(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorCheckedFocused()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorCheckedFocused()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setBorderColorCheckedDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setBorderColorCheckedDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorCheckedDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorCheckedDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getBorderColorCheckedDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorCheckedDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorCheckedDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setCheckColor(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setCheckColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCheckColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCheckColor(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getCheckColor(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getCheckColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCheckColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCheckColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setCheckColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setCheckColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCheckColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCheckColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getCheckColorHover(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getCheckColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCheckColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCheckColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setCheckColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiRadioButtonRenderer_setCheckColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCheckColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCheckColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiRadioButtonRenderer_getCheckColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiRadioButtonRenderer_getCheckColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCheckColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCheckColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureUnchecked(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureUnchecked(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureUnchecked(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureUnchecked(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureUnchecked(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureUnchecked(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureUnchecked())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureUnchecked())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureChecked(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureChecked(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureChecked(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureChecked(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureChecked(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureChecked(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureChecked())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureChecked())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureUncheckedHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureUncheckedHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureUncheckedHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureUncheckedHover(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedHover(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureUncheckedHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureUncheckedHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureCheckedHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureCheckedHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureCheckedHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureCheckedHover(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureCheckedHover(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureCheckedHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureCheckedHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureCheckedHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureUncheckedFocused(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureUncheckedFocused(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureUncheckedFocused(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureUncheckedFocused(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedFocused(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedFocused(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureUncheckedFocused())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureUncheckedFocused())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureCheckedFocused(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureCheckedFocused(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureCheckedFocused(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureCheckedFocused(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureCheckedFocused(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureCheckedFocused(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureCheckedFocused())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureCheckedFocused())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureUncheckedDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureUncheckedDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureUncheckedDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureUncheckedDisabled(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureUncheckedDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureUncheckedDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureUncheckedDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextureCheckedDisabled(tguiRenderer* renderer, tguiTexture* texture) +void tguiRadioButtonRenderer_setTextureCheckedDisabled(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureCheckedDisabled(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureCheckedDisabled(*value->This); } -tguiTexture* tguiRadioButtonRenderer_getTextureCheckedDisabled(const tguiRenderer* renderer) +const tguiTexture* tguiRadioButtonRenderer_getTextureCheckedDisabled(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureCheckedDisabled())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureCheckedDisabled())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextStyle(tguiRenderer* renderer, tguiUint32 style) +void tguiRadioButtonRenderer_setTextStyle(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyle(style); + DOWNCAST(thisRenderer->This)->setTextStyle(value); } -tguiUint32 tguiRadioButtonRenderer_getTextStyle(const tguiRenderer* renderer) +tguiUint32 tguiRadioButtonRenderer_getTextStyle(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyle(); + return DOWNCAST(thisRenderer->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButtonRenderer_setTextStyleChecked(tguiRenderer* renderer, tguiUint32 style) +void tguiRadioButtonRenderer_setTextStyleChecked(tguiRenderer* thisRenderer, tguiUint32 value) { - DOWNCAST(renderer->This)->setTextStyleChecked(style); + DOWNCAST(thisRenderer->This)->setTextStyleChecked(value); } -tguiUint32 tguiRadioButtonRenderer_getTextStyleChecked(const tguiRenderer* renderer) +tguiUint32 tguiRadioButtonRenderer_getTextStyleChecked(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getTextStyleChecked(); + return DOWNCAST(thisRenderer->This)->getTextStyleChecked(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/RangeSliderRenderer.cpp b/src/CTGUI/Renderers/RangeSliderRenderer.cpp index ea8f034..102d7e9 100644 --- a/src/CTGUI/Renderers/RangeSliderRenderer.cpp +++ b/src/CTGUI/Renderers/RangeSliderRenderer.cpp @@ -1,8 +1,8 @@ // This file is generated, it should not be edited directly. #include -#include -#include +#include +#include #include @@ -15,201 +15,57 @@ tguiRenderer* tguiRangeSliderRenderer_create(void) return new tguiRenderer(new tgui::RangeSliderRenderer); } -tguiRenderer* tguiRangeSliderRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiRangeSliderRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::RangeSliderRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::RangeSliderRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSliderRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiRangeSliderRenderer_setSelectedTrackColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setSelectedTrackColor(ctgui::toCppColor(value)); } -tguiOutline* tguiRangeSliderRenderer_getBorders(const tguiRenderer* renderer) +const tguiColor* tguiRangeSliderRenderer_getSelectedTrackColor(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTrackColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSliderRenderer_setTrackColor(tguiRenderer* renderer, tguiColor* color) +void tguiRangeSliderRenderer_setSelectedTrackColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTrackColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTrackColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiRangeSliderRenderer_getTrackColor(const tguiRenderer* renderer) +const tguiColor* tguiRangeSliderRenderer_getSelectedTrackColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTrackColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTrackColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSliderRenderer_setTrackColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiRangeSliderRenderer_setTextureSelectedTrack(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTrackColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextureSelectedTrack(*value->This); } -tguiColor* tguiRangeSliderRenderer_getTrackColorHover(const tguiRenderer* renderer) +const tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrack(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTrackColorHover()); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureSelectedTrack())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSliderRenderer_setSelectedTrackColor(tguiRenderer* renderer, tguiColor* color) +void tguiRangeSliderRenderer_setTextureSelectedTrackHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setSelectedTrackColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextureSelectedTrackHover(*value->This); } -tguiColor* tguiRangeSliderRenderer_getSelectedTrackColor(const tguiRenderer* renderer) +const tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrackHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTrackColor()); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setSelectedTrackColorHover(tguiRenderer* renderer, tguiColor* color) -{ - DOWNCAST(renderer->This)->setSelectedTrackColorHover(ctgui::toCppColor(color)); -} - -tguiColor* tguiRangeSliderRenderer_getSelectedTrackColorHover(const tguiRenderer* renderer) -{ - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTrackColorHover()); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color) -{ - DOWNCAST(renderer->This)->setThumbColor(ctgui::toCppColor(color)); -} - -tguiColor* tguiRangeSliderRenderer_getThumbColor(const tguiRenderer* renderer) -{ - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColor()); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setThumbColorHover(tguiRenderer* renderer, tguiColor* color) -{ - DOWNCAST(renderer->This)->setThumbColorHover(ctgui::toCppColor(color)); -} - -tguiColor* tguiRangeSliderRenderer_getThumbColorHover(const tguiRenderer* renderer) -{ - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColorHover()); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) -{ - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); -} - -tguiColor* tguiRangeSliderRenderer_getBorderColor(const tguiRenderer* renderer) -{ - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color) -{ - DOWNCAST(renderer->This)->setBorderColorHover(ctgui::toCppColor(color)); -} - -tguiColor* tguiRangeSliderRenderer_getBorderColorHover(const tguiRenderer* renderer) -{ - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorHover()); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setTextureTrack(tguiRenderer* renderer, tguiTexture* texture) -{ - DOWNCAST(renderer->This)->setTextureTrack(*texture->This); -} - -tguiTexture* tguiRangeSliderRenderer_getTextureTrack(const tguiRenderer* renderer) -{ - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTrack())); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setTextureTrackHover(tguiRenderer* renderer, tguiTexture* texture) -{ - DOWNCAST(renderer->This)->setTextureTrackHover(*texture->This); -} - -tguiTexture* tguiRangeSliderRenderer_getTextureTrackHover(const tguiRenderer* renderer) -{ - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTrackHover())); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setTextureSelectedTrack(tguiRenderer* renderer, tguiTexture* texture) -{ - DOWNCAST(renderer->This)->setTextureSelectedTrack(*texture->This); -} - -tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrack(const tguiRenderer* renderer) -{ - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureSelectedTrack())); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setTextureSelectedTrackHover(tguiRenderer* renderer, tguiTexture* texture) -{ - DOWNCAST(renderer->This)->setTextureSelectedTrackHover(*texture->This); -} - -tguiTexture* tguiRangeSliderRenderer_getTextureSelectedTrackHover(const tguiRenderer* renderer) -{ - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureSelectedTrackHover())); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setTextureThumb(tguiRenderer* renderer, tguiTexture* texture) -{ - DOWNCAST(renderer->This)->setTextureThumb(*texture->This); -} - -tguiTexture* tguiRangeSliderRenderer_getTextureThumb(const tguiRenderer* renderer) -{ - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureThumb())); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setTextureThumbHover(tguiRenderer* renderer, tguiTexture* texture) -{ - DOWNCAST(renderer->This)->setTextureThumbHover(*texture->This); -} - -tguiTexture* tguiRangeSliderRenderer_getTextureThumbHover(const tguiRenderer* renderer) -{ - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureThumbHover())); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiRangeSliderRenderer_setThumbWithinTrack(tguiRenderer* renderer, tguiBool value) -{ - DOWNCAST(renderer->This)->setThumbWithinTrack(value != 0); -} - -tguiBool tguiRangeSliderRenderer_getThumbWithinTrack(const tguiRenderer* renderer) -{ - return DOWNCAST(renderer->This)->getThumbWithinTrack(); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureSelectedTrackHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ScrollablePanelRenderer.cpp b/src/CTGUI/Renderers/ScrollablePanelRenderer.cpp index a0422b8..06672e3 100644 --- a/src/CTGUI/Renderers/ScrollablePanelRenderer.cpp +++ b/src/CTGUI/Renderers/ScrollablePanelRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include @@ -15,33 +15,33 @@ tguiRenderer* tguiScrollablePanelRenderer_create(void) return new tguiRenderer(new tgui::ScrollablePanelRenderer); } -tguiRenderer* tguiScrollablePanelRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiScrollablePanelRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ScrollablePanelRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ScrollablePanelRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanelRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiScrollablePanelRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiScrollablePanelRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiScrollablePanelRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanelRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiScrollablePanelRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiScrollablePanelRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiScrollablePanelRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/ScrollbarRenderer.cpp b/src/CTGUI/Renderers/ScrollbarRenderer.cpp index 33d9c76..4891087 100644 --- a/src/CTGUI/Renderers/ScrollbarRenderer.cpp +++ b/src/CTGUI/Renderers/ScrollbarRenderer.cpp @@ -1,7 +1,8 @@ // This file is generated, it should not be edited directly. #include -#include +#include +#include #include @@ -14,201 +15,201 @@ tguiRenderer* tguiScrollbarRenderer_create(void) return new tguiRenderer(new tgui::ScrollbarRenderer); } -tguiRenderer* tguiScrollbarRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiScrollbarRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::ScrollbarRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::ScrollbarRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTrackColor(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setTrackColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTrackColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTrackColor(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getTrackColor(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getTrackColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTrackColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTrackColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTrackColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setTrackColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTrackColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTrackColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getTrackColorHover(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getTrackColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTrackColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTrackColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setThumbColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setThumbColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setThumbColor(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getThumbColor(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getThumbColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getThumbColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setThumbColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setThumbColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setThumbColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setThumbColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getThumbColorHover(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getThumbColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getThumbColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setArrowBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setArrowBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getArrowBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getArrowBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setArrowBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setArrowBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getArrowBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getArrowBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setArrowColor(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setArrowColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColor(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getArrowColor(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getArrowColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setArrowColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiScrollbarRenderer_setArrowColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiScrollbarRenderer_getArrowColorHover(const tguiRenderer* renderer) +const tguiColor* tguiScrollbarRenderer_getArrowColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureTrack(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureTrack(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTrack(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTrack(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureTrack(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureTrack(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTrack())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTrack())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureTrackHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureTrackHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTrackHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTrackHover(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureTrackHover(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureTrackHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTrackHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTrackHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureThumb(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureThumb(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureThumb(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureThumb(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureThumb(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureThumb(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureThumb())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureThumb())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureThumbHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureThumbHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureThumbHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureThumbHover(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureThumbHover(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureThumbHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureThumbHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureThumbHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureArrowUp(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureArrowUp(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowUp(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowUp(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureArrowUp(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureArrowUp(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowUp())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowUp())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureArrowUpHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureArrowUpHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowUpHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowUpHover(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureArrowUpHover(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureArrowUpHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowUpHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowUpHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureArrowDown(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureArrowDown(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowDown(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowDown(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureArrowDown(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureArrowDown(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowDown())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowDown())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbarRenderer_setTextureArrowDownHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiScrollbarRenderer_setTextureArrowDownHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowDownHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowDownHover(*value->This); } -tguiTexture* tguiScrollbarRenderer_getTextureArrowDownHover(const tguiRenderer* renderer) +const tguiTexture* tguiScrollbarRenderer_getTextureArrowDownHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowDownHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowDownHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/SeparatorLineRenderer.cpp b/src/CTGUI/Renderers/SeparatorLineRenderer.cpp index da1331f..3c9430d 100644 --- a/src/CTGUI/Renderers/SeparatorLineRenderer.cpp +++ b/src/CTGUI/Renderers/SeparatorLineRenderer.cpp @@ -1,7 +1,7 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include @@ -14,21 +14,21 @@ tguiRenderer* tguiSeparatorLineRenderer_create(void) return new tguiRenderer(new tgui::SeparatorLineRenderer); } -tguiRenderer* tguiSeparatorLineRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiSeparatorLineRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::SeparatorLineRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::SeparatorLineRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSeparatorLineRenderer_setColor(tguiRenderer* renderer, tguiColor* color) +void tguiSeparatorLineRenderer_setColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setColor(ctgui::toCppColor(value)); } -tguiColor* tguiSeparatorLineRenderer_getColor(const tguiRenderer* renderer) +const tguiColor* tguiSeparatorLineRenderer_getColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/SliderRenderer.cpp b/src/CTGUI/Renderers/SliderRenderer.cpp index fae7949..e2d4910 100644 --- a/src/CTGUI/Renderers/SliderRenderer.cpp +++ b/src/CTGUI/Renderers/SliderRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,153 +16,153 @@ tguiRenderer* tguiSliderRenderer_create(void) return new tguiRenderer(new tgui::SliderRenderer); } -tguiRenderer* tguiSliderRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiSliderRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::SliderRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::SliderRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiSliderRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiSliderRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiSliderRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setTrackColor(tguiRenderer* renderer, tguiColor* color) +void tguiSliderRenderer_setTrackColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTrackColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTrackColor(ctgui::toCppColor(value)); } -tguiColor* tguiSliderRenderer_getTrackColor(const tguiRenderer* renderer) +const tguiColor* tguiSliderRenderer_getTrackColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTrackColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTrackColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setTrackColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiSliderRenderer_setTrackColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTrackColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTrackColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiSliderRenderer_getTrackColorHover(const tguiRenderer* renderer) +const tguiColor* tguiSliderRenderer_getTrackColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTrackColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTrackColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setThumbColor(tguiRenderer* renderer, tguiColor* color) +void tguiSliderRenderer_setThumbColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setThumbColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setThumbColor(ctgui::toCppColor(value)); } -tguiColor* tguiSliderRenderer_getThumbColor(const tguiRenderer* renderer) +const tguiColor* tguiSliderRenderer_getThumbColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getThumbColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setThumbColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiSliderRenderer_setThumbColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setThumbColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setThumbColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiSliderRenderer_getThumbColorHover(const tguiRenderer* renderer) +const tguiColor* tguiSliderRenderer_getThumbColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getThumbColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getThumbColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiSliderRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiSliderRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiSliderRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiSliderRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiSliderRenderer_getBorderColorHover(const tguiRenderer* renderer) +const tguiColor* tguiSliderRenderer_getBorderColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setTextureTrack(tguiRenderer* renderer, tguiTexture* texture) +void tguiSliderRenderer_setTextureTrack(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTrack(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTrack(*value->This); } -tguiTexture* tguiSliderRenderer_getTextureTrack(const tguiRenderer* renderer) +const tguiTexture* tguiSliderRenderer_getTextureTrack(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTrack())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTrack())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setTextureTrackHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiSliderRenderer_setTextureTrackHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTrackHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTrackHover(*value->This); } -tguiTexture* tguiSliderRenderer_getTextureTrackHover(const tguiRenderer* renderer) +const tguiTexture* tguiSliderRenderer_getTextureTrackHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTrackHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTrackHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setTextureThumb(tguiRenderer* renderer, tguiTexture* texture) +void tguiSliderRenderer_setTextureThumb(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureThumb(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureThumb(*value->This); } -tguiTexture* tguiSliderRenderer_getTextureThumb(const tguiRenderer* renderer) +const tguiTexture* tguiSliderRenderer_getTextureThumb(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureThumb())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureThumb())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setTextureThumbHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiSliderRenderer_setTextureThumbHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureThumbHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureThumbHover(*value->This); } -tguiTexture* tguiSliderRenderer_getTextureThumbHover(const tguiRenderer* renderer) +const tguiTexture* tguiSliderRenderer_getTextureThumbHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureThumbHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureThumbHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSliderRenderer_setThumbWithinTrack(tguiRenderer* renderer, tguiBool value) +void tguiSliderRenderer_setThumbWithinTrack(tguiRenderer* thisRenderer, tguiBool value) { - DOWNCAST(renderer->This)->setThumbWithinTrack(value != 0); + DOWNCAST(thisRenderer->This)->setThumbWithinTrack(value != 0); } -tguiBool tguiSliderRenderer_getThumbWithinTrack(const tguiRenderer* renderer) +tguiBool tguiSliderRenderer_getThumbWithinTrack(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getThumbWithinTrack(); + return DOWNCAST(thisRenderer->This)->getThumbWithinTrack(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/SpinButtonRenderer.cpp b/src/CTGUI/Renderers/SpinButtonRenderer.cpp index 5f15e7d..2f993ad 100644 --- a/src/CTGUI/Renderers/SpinButtonRenderer.cpp +++ b/src/CTGUI/Renderers/SpinButtonRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,141 +16,141 @@ tguiRenderer* tguiSpinButtonRenderer_create(void) return new tguiRenderer(new tgui::SpinButtonRenderer); } -tguiRenderer* tguiSpinButtonRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiSpinButtonRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::SpinButtonRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::SpinButtonRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiSpinButtonRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiSpinButtonRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiSpinButtonRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setBorderBetweenArrows(tguiRenderer* renderer, float value) +void tguiSpinButtonRenderer_setBorderBetweenArrows(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setBorderBetweenArrows(value); + DOWNCAST(thisRenderer->This)->setBorderBetweenArrows(value); } -float tguiSpinButtonRenderer_getBorderBetweenArrows(const tguiRenderer* renderer) +float tguiSpinButtonRenderer_getBorderBetweenArrows(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getBorderBetweenArrows(); + return DOWNCAST(thisRenderer->This)->getBorderBetweenArrows(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiSpinButtonRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiSpinButtonRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiSpinButtonRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiSpinButtonRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiSpinButtonRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiSpinButtonRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setArrowColor(tguiRenderer* renderer, tguiColor* color) +void tguiSpinButtonRenderer_setArrowColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColor(ctgui::toCppColor(value)); } -tguiColor* tguiSpinButtonRenderer_getArrowColor(const tguiRenderer* renderer) +const tguiColor* tguiSpinButtonRenderer_getArrowColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setArrowColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiSpinButtonRenderer_setArrowColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setArrowColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setArrowColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiSpinButtonRenderer_getArrowColorHover(const tguiRenderer* renderer) +const tguiColor* tguiSpinButtonRenderer_getArrowColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getArrowColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getArrowColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiSpinButtonRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiSpinButtonRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiSpinButtonRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setTextureArrowUp(tguiRenderer* renderer, tguiTexture* texture) +void tguiSpinButtonRenderer_setTextureArrowUp(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowUp(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowUp(*value->This); } -tguiTexture* tguiSpinButtonRenderer_getTextureArrowUp(const tguiRenderer* renderer) +const tguiTexture* tguiSpinButtonRenderer_getTextureArrowUp(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowUp())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowUp())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setTextureArrowUpHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiSpinButtonRenderer_setTextureArrowUpHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowUpHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowUpHover(*value->This); } -tguiTexture* tguiSpinButtonRenderer_getTextureArrowUpHover(const tguiRenderer* renderer) +const tguiTexture* tguiSpinButtonRenderer_getTextureArrowUpHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowUpHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowUpHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setTextureArrowDown(tguiRenderer* renderer, tguiTexture* texture) +void tguiSpinButtonRenderer_setTextureArrowDown(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowDown(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowDown(*value->This); } -tguiTexture* tguiSpinButtonRenderer_getTextureArrowDown(const tguiRenderer* renderer) +const tguiTexture* tguiSpinButtonRenderer_getTextureArrowDown(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowDown())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowDown())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButtonRenderer_setTextureArrowDownHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiSpinButtonRenderer_setTextureArrowDownHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureArrowDownHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureArrowDownHover(*value->This); } -tguiTexture* tguiSpinButtonRenderer_getTextureArrowDownHover(const tguiRenderer* renderer) +const tguiTexture* tguiSpinButtonRenderer_getTextureArrowDownHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureArrowDownHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureArrowDownHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/TabsRenderer.cpp b/src/CTGUI/Renderers/TabsRenderer.cpp index dcc460c..99806e9 100644 --- a/src/CTGUI/Renderers/TabsRenderer.cpp +++ b/src/CTGUI/Renderers/TabsRenderer.cpp @@ -1,8 +1,9 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include +#include #include @@ -15,261 +16,261 @@ tguiRenderer* tguiTabsRenderer_create(void) return new tguiRenderer(new tgui::TabsRenderer); } -tguiRenderer* tguiTabsRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiTabsRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::TabsRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::TabsRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiTabsRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiTabsRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiTabsRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setBackgroundColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setBackgroundColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getBackgroundColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getBackgroundColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getSelectedTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextColorDisabled(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setTextColorDisabled(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorDisabled(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorDisabled(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getTextColorDisabled(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getTextColorDisabled(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorDisabled()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorDisabled()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setBorderColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getBorderColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getBorderColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setSelectedBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setSelectedBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getSelectedBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getSelectedBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setSelectedBorderColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTabsRenderer_setSelectedBorderColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBorderColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBorderColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTabsRenderer_getSelectedBorderColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTabsRenderer_getSelectedBorderColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBorderColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBorderColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextureTab(tguiRenderer* renderer, tguiTexture* texture) +void tguiTabsRenderer_setTextureTab(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTab(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTab(*value->This); } -tguiTexture* tguiTabsRenderer_getTextureTab(const tguiRenderer* renderer) +const tguiTexture* tguiTabsRenderer_getTextureTab(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTab())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTab())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextureTabHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiTabsRenderer_setTextureTabHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureTabHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureTabHover(*value->This); } -tguiTexture* tguiTabsRenderer_getTextureTabHover(const tguiRenderer* renderer) +const tguiTexture* tguiTabsRenderer_getTextureTabHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureTabHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureTabHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextureSelectedTab(tguiRenderer* renderer, tguiTexture* texture) +void tguiTabsRenderer_setTextureSelectedTab(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureSelectedTab(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureSelectedTab(*value->This); } -tguiTexture* tguiTabsRenderer_getTextureSelectedTab(const tguiRenderer* renderer) +const tguiTexture* tguiTabsRenderer_getTextureSelectedTab(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureSelectedTab())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureSelectedTab())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextureSelectedTabHover(tguiRenderer* renderer, tguiTexture* texture) +void tguiTabsRenderer_setTextureSelectedTabHover(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureSelectedTabHover(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureSelectedTabHover(*value->This); } -tguiTexture* tguiTabsRenderer_getTextureSelectedTabHover(const tguiRenderer* renderer) +const tguiTexture* tguiTabsRenderer_getTextureSelectedTabHover(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureSelectedTabHover())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureSelectedTabHover())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setTextureDisabledTab(tguiRenderer* renderer, tguiTexture* texture) +void tguiTabsRenderer_setTextureDisabledTab(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureDisabledTab(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureDisabledTab(*value->This); } -tguiTexture* tguiTabsRenderer_getTextureDisabledTab(const tguiRenderer* renderer) +const tguiTexture* tguiTabsRenderer_getTextureDisabledTab(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureDisabledTab())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureDisabledTab())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabsRenderer_setDistanceToSide(tguiRenderer* renderer, float value) +void tguiTabsRenderer_setDistanceToSide(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setDistanceToSide(value); + DOWNCAST(thisRenderer->This)->setDistanceToSide(value); } -float tguiTabsRenderer_getDistanceToSide(const tguiRenderer* renderer) +float tguiTabsRenderer_getDistanceToSide(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getDistanceToSide(); + return DOWNCAST(thisRenderer->This)->getDistanceToSide(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/TextAreaRenderer.cpp b/src/CTGUI/Renderers/TextAreaRenderer.cpp index fdff740..96c7a54 100644 --- a/src/CTGUI/Renderers/TextAreaRenderer.cpp +++ b/src/CTGUI/Renderers/TextAreaRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,165 +17,165 @@ tguiRenderer* tguiTextAreaRenderer_create(void) return new tguiRenderer(new tgui::TextAreaRenderer); } -tguiRenderer* tguiTextAreaRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiTextAreaRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::TextAreaRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::TextAreaRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiTextAreaRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiTextAreaRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiTextAreaRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiTextAreaRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiTextAreaRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiTextAreaRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setDefaultTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setDefaultTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setDefaultTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setDefaultTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getDefaultTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getDefaultTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getDefaultTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getDefaultTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setSelectedTextBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setSelectedTextBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getSelectedTextBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getSelectedTextBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setCaretColor(tguiRenderer* renderer, tguiColor* color) +void tguiTextAreaRenderer_setCaretColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setCaretColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setCaretColor(ctgui::toCppColor(value)); } -tguiColor* tguiTextAreaRenderer_getCaretColor(const tguiRenderer* renderer) +const tguiColor* tguiTextAreaRenderer_getCaretColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getCaretColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getCaretColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiTextAreaRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiTextAreaRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiTextAreaRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setCaretWidth(tguiRenderer* renderer, float value) +void tguiTextAreaRenderer_setCaretWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setCaretWidth(value); + DOWNCAST(thisRenderer->This)->setCaretWidth(value); } -float tguiTextAreaRenderer_getCaretWidth(const tguiRenderer* renderer) +float tguiTextAreaRenderer_getCaretWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getCaretWidth(); + return DOWNCAST(thisRenderer->This)->getCaretWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiTextAreaRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiTextAreaRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiTextAreaRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextAreaRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiTextAreaRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiTextAreaRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiTextAreaRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/TreeViewRenderer.cpp b/src/CTGUI/Renderers/TreeViewRenderer.cpp index 297168a..01c81b7 100644 --- a/src/CTGUI/Renderers/TreeViewRenderer.cpp +++ b/src/CTGUI/Renderers/TreeViewRenderer.cpp @@ -1,9 +1,10 @@ // This file is generated, it should not be edited directly. #include -#include +#include #include #include +#include #include @@ -16,213 +17,213 @@ tguiRenderer* tguiTreeViewRenderer_create(void) return new tguiRenderer(new tgui::TreeViewRenderer); } -tguiRenderer* tguiTreeViewRenderer_copy(const tguiRenderer* renderer) +tguiRenderer* tguiTreeViewRenderer_copy(const tguiRenderer* thisRenderer) { - return new tguiRenderer(new tgui::TreeViewRenderer(*DOWNCAST(renderer->This))); + return new tguiRenderer(new tgui::TreeViewRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setBorders(tguiRenderer* renderer, tguiOutline* outline) +void tguiTreeViewRenderer_setBorders(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setBorders(outline->This); + DOWNCAST(thisRenderer->This)->setBorders(value->This); } -tguiOutline* tguiTreeViewRenderer_getBorders(const tguiRenderer* renderer) +const tguiOutline* tguiTreeViewRenderer_getBorders(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getBorders()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getBorders()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setPadding(tguiRenderer* renderer, tguiOutline* outline) +void tguiTreeViewRenderer_setPadding(tguiRenderer* thisRenderer, const tguiOutline* value) { - DOWNCAST(renderer->This)->setPadding(outline->This); + DOWNCAST(thisRenderer->This)->setPadding(value->This); } -tguiOutline* tguiTreeViewRenderer_getPadding(const tguiRenderer* renderer) +const tguiOutline* tguiTreeViewRenderer_getPadding(const tguiRenderer* thisRenderer) { - return new tguiOutline(DOWNCAST(renderer->This)->getPadding()); + return new tguiOutline(DOWNCAST(thisRenderer->This)->getPadding()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setSelectedBackgroundColor(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setSelectedBackgroundColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColor(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColor(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setSelectedBackgroundColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedBackgroundColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getSelectedBackgroundColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedBackgroundColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedBackgroundColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setSelectedTextColor(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setSelectedTextColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getSelectedTextColor(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getSelectedTextColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setSelectedTextColorHover(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setSelectedTextColorHover(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setSelectedTextColorHover(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setSelectedTextColorHover(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getSelectedTextColorHover(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getSelectedTextColorHover(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getSelectedTextColorHover()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getSelectedTextColorHover()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setBorderColor(tguiRenderer* renderer, tguiColor* color) +void tguiTreeViewRenderer_setBorderColor(tguiRenderer* thisRenderer, const tguiColor* value) { - DOWNCAST(renderer->This)->setBorderColor(ctgui::toCppColor(color)); + DOWNCAST(thisRenderer->This)->setBorderColor(ctgui::toCppColor(value)); } -tguiColor* tguiTreeViewRenderer_getBorderColor(const tguiRenderer* renderer) +const tguiColor* tguiTreeViewRenderer_getBorderColor(const tguiRenderer* thisRenderer) { - return ctgui::fromCppColor(DOWNCAST(renderer->This)->getBorderColor()); + return ctgui::fromCppColor(DOWNCAST(thisRenderer->This)->getBorderColor()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setTextureBackground(tguiRenderer* renderer, tguiTexture* texture) +void tguiTreeViewRenderer_setTextureBackground(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBackground(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBackground(*value->This); } -tguiTexture* tguiTreeViewRenderer_getTextureBackground(const tguiRenderer* renderer) +const tguiTexture* tguiTreeViewRenderer_getTextureBackground(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBackground())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBackground())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setTextureBranchExpanded(tguiRenderer* renderer, tguiTexture* texture) +void tguiTreeViewRenderer_setTextureBranchExpanded(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBranchExpanded(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBranchExpanded(*value->This); } -tguiTexture* tguiTreeViewRenderer_getTextureBranchExpanded(const tguiRenderer* renderer) +const tguiTexture* tguiTreeViewRenderer_getTextureBranchExpanded(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBranchExpanded())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBranchExpanded())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setTextureBranchCollapsed(tguiRenderer* renderer, tguiTexture* texture) +void tguiTreeViewRenderer_setTextureBranchCollapsed(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureBranchCollapsed(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureBranchCollapsed(*value->This); } -tguiTexture* tguiTreeViewRenderer_getTextureBranchCollapsed(const tguiRenderer* renderer) +const tguiTexture* tguiTreeViewRenderer_getTextureBranchCollapsed(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureBranchCollapsed())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureBranchCollapsed())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setTextureLeaf(tguiRenderer* renderer, tguiTexture* texture) +void tguiTreeViewRenderer_setTextureLeaf(tguiRenderer* thisRenderer, const tguiTexture* value) { - DOWNCAST(renderer->This)->setTextureLeaf(*texture->This); + DOWNCAST(thisRenderer->This)->setTextureLeaf(*value->This); } -tguiTexture* tguiTreeViewRenderer_getTextureLeaf(const tguiRenderer* renderer) +const tguiTexture* tguiTreeViewRenderer_getTextureLeaf(const tguiRenderer* thisRenderer) { - return new tguiTexture(std::make_unique(DOWNCAST(renderer->This)->getTextureLeaf())); + return new tguiTexture(std::make_unique(DOWNCAST(thisRenderer->This)->getTextureLeaf())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setScrollbar(tguiRenderer* renderer, tguiRendererData* rendererData) +void tguiTreeViewRenderer_setScrollbar(tguiRenderer* thisRenderer, const tguiRendererData* value) { - DOWNCAST(renderer->This)->setScrollbar(rendererData->This); + DOWNCAST(thisRenderer->This)->setScrollbar(value->This); } -tguiRendererData* tguiTreeViewRenderer_getScrollbar(const tguiRenderer* renderer) +const tguiRendererData* tguiTreeViewRenderer_getScrollbar(const tguiRenderer* thisRenderer) { - return new tguiRendererData(DOWNCAST(renderer->This)->getScrollbar()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getScrollbar()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewRenderer_setScrollbarWidth(tguiRenderer* renderer, float value) +void tguiTreeViewRenderer_setScrollbarWidth(tguiRenderer* thisRenderer, float value) { - DOWNCAST(renderer->This)->setScrollbarWidth(value); + DOWNCAST(thisRenderer->This)->setScrollbarWidth(value); } -float tguiTreeViewRenderer_getScrollbarWidth(const tguiRenderer* renderer) +float tguiTreeViewRenderer_getScrollbarWidth(const tguiRenderer* thisRenderer) { - return DOWNCAST(renderer->This)->getScrollbarWidth(); + return DOWNCAST(thisRenderer->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Renderers/WidgetRenderer.cpp b/src/CTGUI/Renderers/WidgetRenderer.cpp index 9f60077..dd2325f 100644 --- a/src/CTGUI/Renderers/WidgetRenderer.cpp +++ b/src/CTGUI/Renderers/WidgetRenderer.cpp @@ -1,37 +1,16 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include -#include +#include +#include #include #include -#include #include #include +#define DOWNCAST(x) static_cast(x) + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// tguiRenderer* tguiWidgetRenderer_create(void) @@ -39,136 +18,144 @@ tguiRenderer* tguiWidgetRenderer_create(void) return new tguiRenderer(new tgui::WidgetRenderer); } -tguiRenderer* tguiWidgetRenderer_copy(const tguiRenderer* renderer) -{ - return new tguiRenderer(new tgui::WidgetRenderer(*renderer->This)); -} - -void tguiWidgetRenderer_free(tguiRenderer* renderer) +tguiRenderer* tguiWidgetRenderer_copy(const tguiRenderer* thisRenderer) { - if (renderer->AllocatedInWrapper) - delete renderer->This; - - delete renderer; + return new tguiRenderer(new tgui::WidgetRenderer(*DOWNCAST(thisRenderer->This))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setOpacity(tguiRenderer* renderer, float alpha) +void tguiWidgetRenderer_setOpacity(tguiRenderer* thisRenderer, float value) { - renderer->This->setOpacity(alpha); + DOWNCAST(thisRenderer->This)->setOpacity(value); } -float tguiWidgetRenderer_getOpacity(const tguiRenderer* renderer) +float tguiWidgetRenderer_getOpacity(const tguiRenderer* thisRenderer) { - return renderer->This->getOpacity(); + return DOWNCAST(thisRenderer->This)->getOpacity(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setOpacityDisabled(tguiRenderer* renderer, float alpha) +void tguiWidgetRenderer_setOpacityDisabled(tguiRenderer* thisRenderer, float value) { - renderer->This->setOpacityDisabled(alpha); + DOWNCAST(thisRenderer->This)->setOpacityDisabled(value); } -float tguiWidgetRenderer_getOpacityDisabled(const tguiRenderer* renderer) +float tguiWidgetRenderer_getOpacityDisabled(const tguiRenderer* thisRenderer) { - return renderer->This->getOpacityDisabled(); + return DOWNCAST(thisRenderer->This)->getOpacityDisabled(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setFont(tguiRenderer* renderer, tguiFont* font) +void tguiWidgetRenderer_setFont(tguiRenderer* thisRenderer, const tguiFont* value) { - renderer->This->setFont(*font->This); + DOWNCAST(thisRenderer->This)->setFont(*value->This); } -tguiFont* tguiWidgetRenderer_getFont(const tguiRenderer* renderer) +const tguiFont* tguiWidgetRenderer_getFont(const tguiRenderer* thisRenderer) { - return new tguiFont(std::make_unique(renderer->This->getFont())); + return new tguiFont(std::make_unique(DOWNCAST(thisRenderer->This)->getFont())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setTextSize(tguiRenderer* renderer, unsigned int size) +void tguiWidgetRenderer_setTextSize(tguiRenderer* thisRenderer, unsigned int value) { - renderer->This->setTextSize(size); + DOWNCAST(thisRenderer->This)->setTextSize(value); } -unsigned int tguiWidgetRenderer_getTextSize(const tguiRenderer* renderer) +unsigned int tguiWidgetRenderer_getTextSize(const tguiRenderer* thisRenderer) { - return renderer->This->getTextSize(); + return DOWNCAST(thisRenderer->This)->getTextSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setTransparentTexture(tguiRenderer* renderer, tguiBool ignoreTransparentParts) +void tguiWidgetRenderer_setTransparentTexture(tguiRenderer* thisRenderer, tguiBool value) { - renderer->This->setTransparentTexture(ignoreTransparentParts != 0); + DOWNCAST(thisRenderer->This)->setTransparentTexture(value != 0); } -tguiBool tguiWidgetRenderer_getTransparentTexture(tguiRenderer* renderer) +tguiBool tguiWidgetRenderer_getTransparentTexture(const tguiRenderer* thisRenderer) { - return renderer->This->getTransparentTexture(); + return DOWNCAST(thisRenderer->This)->getTransparentTexture(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setData(tguiRenderer* renderer, tguiRendererData* data) +void tguiWidgetRenderer_setData(tguiRenderer* thisRenderer, const tguiRendererData* value) { - return renderer->This->setData(data->This); + DOWNCAST(thisRenderer->This)->setData(value->This); } -tguiRendererData* tguiWidgetRenderer_getData(const tguiRenderer* renderer) +const tguiRendererData* tguiWidgetRenderer_getData(const tguiRenderer* thisRenderer) { - return new tguiRendererData(renderer->This->getData()); + return new tguiRendererData(DOWNCAST(thisRenderer->This)->getData()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiWidgetRenderer_setPropertyBool(tguiRenderer* renderer, tguiUtf32 property, tguiBool value) +void tguiWidgetRenderer_setPropertyBool(tguiRenderer* thisRenderer, tguiUtf32 property, tguiBool value) { - renderer->This->setProperty(ctgui::toCppStr(property), value != 0); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), value != 0); } -void tguiWidgetRenderer_setPropertyFont(tguiRenderer* renderer, tguiUtf32 property, tguiFont* value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyFont(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiFont* value) { - renderer->This->setProperty(ctgui::toCppStr(property), *value->This); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), *value->This); } -void tguiWidgetRenderer_setPropertyColor(tguiRenderer* renderer, tguiUtf32 property, tguiColor* value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyColor(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiColor* value) { - renderer->This->setProperty(ctgui::toCppStr(property), ctgui::toCppColor(value)); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), ctgui::toCppColor(value)); } -void tguiWidgetRenderer_setPropertyString(tguiRenderer* renderer, tguiUtf32 property, tguiUtf32 value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyString(tguiRenderer* thisRenderer, tguiUtf32 property, tguiUtf32 value) { - renderer->This->setProperty(ctgui::toCppStr(property), ctgui::toCppStr(value)); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), ctgui::toCppStr(value)); } -void tguiWidgetRenderer_setPropertyNumber(tguiRenderer* renderer, tguiUtf32 property, float value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyNumber(tguiRenderer* thisRenderer, tguiUtf32 property, float value) { - renderer->This->setProperty(ctgui::toCppStr(property), value); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), value); } -void tguiWidgetRenderer_setPropertyOutline(tguiRenderer* renderer, tguiUtf32 property, tguiOutline* value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyOutline(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiOutline* value) { - renderer->This->setProperty(ctgui::toCppStr(property), value->This); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), value->This); } -void tguiWidgetRenderer_setPropertyTexture(tguiRenderer* renderer, tguiUtf32 property, tguiTexture* value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyTexture(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiTexture* value) { - renderer->This->setProperty(ctgui::toCppStr(property), *value->This); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), *value->This); } -void tguiWidgetRenderer_setPropertyTextStyle(tguiRenderer* renderer, tguiUtf32 property, tguiUint32 value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyTextStyle(tguiRenderer* thisRenderer, tguiUtf32 property, tguiUint32 value) { - renderer->This->setProperty(ctgui::toCppStr(property), tgui::TextStyles(value)); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), value); } -void tguiWidgetRenderer_setPropertyRendererData(tguiRenderer* renderer, tguiUtf32 property, tguiRendererData* value) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_setPropertyRendererData(tguiRenderer* thisRenderer, tguiUtf32 property, const tguiRendererData* value) { - return renderer->This->setProperty(ctgui::toCppStr(property), value->This); + DOWNCAST(thisRenderer->This)->setProperty(ctgui::toCppStr(property), value->This); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -224,3 +211,13 @@ tguiRendererData* tguiWidgetRenderer_getPropertyRendererData(const tguiRenderer* { return new tguiRendererData(renderer->This->getProperty(ctgui::toCppStr(property)).getRenderer()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiWidgetRenderer_free(tguiRenderer* renderer) +{ + if (renderer->AllocatedInWrapper) + delete renderer->This; + + delete renderer; +} diff --git a/src/CTGUI/Theme.cpp b/src/CTGUI/Theme.cpp index 53a660c..8e6e9ff 100644 --- a/src/CTGUI/Theme.cpp +++ b/src/CTGUI/Theme.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/CTGUI/Widget.cpp b/src/CTGUI/Widget.cpp index 1c3d052..8f3052e 100644 --- a/src/CTGUI/Widget.cpp +++ b/src/CTGUI/Widget.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/CTGUI/Widgets/BitmapButton.cpp b/src/CTGUI/Widgets/BitmapButton.cpp index d6a30d2..72ed1dc 100644 --- a/src/CTGUI/Widgets/BitmapButton.cpp +++ b/src/CTGUI/Widgets/BitmapButton.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -40,20 +17,26 @@ tguiWidget* tguiBitmapButton_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBitmapButton_setImage(tguiWidget* widget, tguiTexture* image) +void tguiBitmapButton_setImage(tguiWidget* thisWidget, const tguiTexture* value) { - DOWNCAST(widget->This)->setImage(*image->This); + DOWNCAST(thisWidget->This)->setImage(*value->This); +} + +const tguiTexture* tguiBitmapButton_getImage(const tguiWidget* thisWidget) +{ + return new tguiTexture(std::make_unique(DOWNCAST(thisWidget->This)->getImage())); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBitmapButton_setImageScaling(tguiWidget* widget, float imageScaling) +void tguiBitmapButton_setImageScaling(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setImageScaling(imageScaling); + DOWNCAST(thisWidget->This)->setImageScaling(value); } -float tguiBitmapButton_getImageScaling(const tguiWidget* widget) +float tguiBitmapButton_getImageScaling(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getImageScaling(); + return DOWNCAST(thisWidget->This)->getImageScaling(); } +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/BoxLayout.cpp b/src/CTGUI/Widgets/BoxLayout.cpp index 1cf407b..27115e0 100644 --- a/src/CTGUI/Widgets/BoxLayout.cpp +++ b/src/CTGUI/Widgets/BoxLayout.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -32,25 +9,27 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayout_insert(tguiWidget* layout, size_t index, tguiWidget* widget, tguiUtf32 widgetName) +void tguiBoxLayout_insert(tguiWidget* thisWidget, size_t index, tguiWidget* widgetToAdd, tguiUtf32 widgetName) { - DOWNCAST(layout->This)->insert(index, widget->This, ctgui::toCppStr(widgetName)); + DOWNCAST(thisWidget->This)->insert(index, widgetToAdd->This, ctgui::toCppStr(widgetName)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiBoxLayout_removeAtIndex(tguiWidget* layout, size_t index) +tguiBool tguiBoxLayout_removeAtIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(layout->This)->remove(index); + return DOWNCAST(thisWidget->This)->remove(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiBoxLayout_getAtIndex(tguiWidget* layout, size_t index) +tguiWidget* tguiBoxLayout_getAtIndex(const tguiWidget* thisWidget, size_t index) { - tgui::Widget::Ptr widget = DOWNCAST(layout->This)->get(index); - if (widget) - return new tguiWidget(widget); + tgui::Widget::Ptr widgetToReturn = DOWNCAST(thisWidget->This)->get(index); + if (widgetToReturn) + return new tguiWidget(widgetToReturn); else return nullptr; } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/BoxLayoutRatios.cpp b/src/CTGUI/Widgets/BoxLayoutRatios.cpp index 7e88369..e422b6b 100644 --- a/src/CTGUI/Widgets/BoxLayoutRatios.cpp +++ b/src/CTGUI/Widgets/BoxLayoutRatios.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -32,56 +9,58 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRatios_add(tguiWidget* layout, tguiWidget* widget, float ratio, tguiUtf32 widgetName) +void tguiBoxLayoutRatios_add(tguiWidget* thisWidget, tguiWidget* widget, float ratio, tguiUtf32 widgetName) { - DOWNCAST(layout->This)->add(widget->This, ratio, ctgui::toCppStr(widgetName)); + DOWNCAST(thisWidget->This)->add(widget->This, ratio, ctgui::toCppStr(widgetName)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRatios_insert(tguiWidget* layout, size_t index, tguiWidget* widget, float ratio, tguiUtf32 widgetName) +void tguiBoxLayoutRatios_insert(tguiWidget* thisWidget, size_t index, tguiWidget* widget, float ratio, tguiUtf32 widgetName) { - DOWNCAST(layout->This)->insert(index, widget->This, ratio, ctgui::toCppStr(widgetName)); + DOWNCAST(thisWidget->This)->insert(index, widget->This, ratio, ctgui::toCppStr(widgetName)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRatios_addSpace(tguiWidget* layout, float ratio) +void tguiBoxLayoutRatios_addSpace(tguiWidget* thisWidget, float ratio) { - DOWNCAST(layout->This)->addSpace(ratio); + DOWNCAST(thisWidget->This)->addSpace(ratio); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRatios_insertSpace(tguiWidget* layout, size_t index, float ratio) +void tguiBoxLayoutRatios_insertSpace(tguiWidget* thisWidget, size_t index, float ratio) { - DOWNCAST(layout->This)->insertSpace(index, ratio); + DOWNCAST(thisWidget->This)->insertSpace(index, ratio); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRatios_setRatio(tguiWidget* layout, tguiWidget* widget, float ratio) +void tguiBoxLayoutRatios_setRatio(tguiWidget* thisWidget, tguiWidget* widget, float ratio) { - DOWNCAST(layout->This)->setRatio(widget->This, ratio); + DOWNCAST(thisWidget->This)->setRatio(widget->This, ratio); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiBoxLayoutRatios_setRatioAtIndex(tguiWidget* layout, size_t index, float ratio) +void tguiBoxLayoutRatios_setRatioAtIndex(tguiWidget* thisWidget, size_t index, float ratio) { - DOWNCAST(layout->This)->setRatio(index, ratio); + DOWNCAST(thisWidget->This)->setRatio(index, ratio); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -float tguiBoxLayoutRatios_getRatio(tguiWidget* layout, tguiWidget* widget) +float tguiBoxLayoutRatios_getRatio(const tguiWidget* thisWidget, tguiWidget* widget) { - return DOWNCAST(layout->This)->getRatio(widget->This); + return DOWNCAST(thisWidget->This)->getRatio(widget->This); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -float tguiBoxLayoutRatios_getRatioAtIndex(tguiWidget* layout, size_t index) +float tguiBoxLayoutRatios_getRatioAtIndex(const tguiWidget* thisWidget, size_t index) { - return DOWNCAST(layout->This)->getRatio(index); + return DOWNCAST(thisWidget->This)->getRatio(index); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/Button.cpp b/src/CTGUI/Widgets/Button.cpp index d8f6176..f89d64e 100644 --- a/src/CTGUI/Widgets/Button.cpp +++ b/src/CTGUI/Widgets/Button.cpp @@ -1,36 +1,17 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include +#define DOWNCAST(x) std::static_pointer_cast(x) + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// tguiWidget* tguiButton_create(void) { return ctgui::addWidgetRef(tgui::Button::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ButtonBase.cpp b/src/CTGUI/Widgets/ButtonBase.cpp index 07a372f..69c358c 100644 --- a/src/CTGUI/Widgets/ButtonBase.cpp +++ b/src/CTGUI/Widgets/ButtonBase.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -32,14 +9,14 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiButtonBase_setText(tguiWidget* widget, tguiUtf32 text) +void tguiButtonBase_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -tguiUtf32 tguiButtonBase_getText(const tguiWidget* widget) +tguiUtf32 tguiButtonBase_getText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ChatBox.cpp b/src/CTGUI/Widgets/ChatBox.cpp index 884c74c..b7d007a 100644 --- a/src/CTGUI/Widgets/ChatBox.cpp +++ b/src/CTGUI/Widgets/ChatBox.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,123 +16,137 @@ tguiWidget* tguiChatBox_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBox_addLine(tguiWidget* widget, tguiUtf32 text) +void tguiChatBox_addLine(tguiWidget* thisWidget, tguiUtf32 text) { - DOWNCAST(widget->This)->addLine(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->addLine(ctgui::toCppStr(text)); } -void tguiChatBox_addLineWithColor(tguiWidget* widget, tguiUtf32 text, tguiColor* color) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiChatBox_addLineWithColor(tguiWidget* thisWidget, tguiUtf32 text, const tguiColor* color) { - DOWNCAST(widget->This)->addLine(ctgui::toCppStr(text), ctgui::toCppColor(color)); + DOWNCAST(thisWidget->This)->addLine(ctgui::toCppStr(text), ctgui::toCppColor(color)); } -void tguiChatBox_addLineWithColorAndStyle(tguiWidget* widget, tguiUtf32 text, tguiColor* color, tguiUint32 style) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiChatBox_addLineWithColorAndStyle(tguiWidget* thisWidget, tguiUtf32 text, const tguiColor* color, tguiUint32 style) { - DOWNCAST(widget->This)->addLine(ctgui::toCppStr(text), ctgui::toCppColor(color), style); + DOWNCAST(thisWidget->This)->addLine(ctgui::toCppStr(text), ctgui::toCppColor(color), style); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiUtf32 tguiChatBox_getLine(const tguiWidget* widget, size_t lineIndex) +tguiUtf32 tguiChatBox_getLine(tguiWidget* thisWidget, size_t lineIndex) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getLine(lineIndex)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getLine(lineIndex)); } -tguiColor* tguiChatBox_getLineColor(const tguiWidget* widget, size_t lineIndex) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiColor* tguiChatBox_getLineColor(tguiWidget* thisWidget, size_t lineIndex) { - return ctgui::fromCppColor(DOWNCAST(widget->This)->getLineColor(lineIndex)); + return ctgui::fromCppColor(DOWNCAST(thisWidget->This)->getLineColor(lineIndex)); } -tguiUint32 tguiChatBox_getLineTextStyle(const tguiWidget* widget, size_t lineIndex) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUint32 tguiChatBox_getLineTextStyle(tguiWidget* thisWidget, size_t lineIndex) { - return DOWNCAST(widget->This)->getLineTextStyle(lineIndex); + return DOWNCAST(thisWidget->This)->getLineTextStyle(lineIndex); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiChatBox_removeLine(tguiWidget* widget, size_t lineIndex) +tguiBool tguiChatBox_removeLine(tguiWidget* thisWidget, size_t lineIndex) { - return DOWNCAST(widget->This)->removeLine(lineIndex); + return DOWNCAST(thisWidget->This)->removeLine(lineIndex); } -void tguiChatBox_removeAllLines(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiChatBox_removeAllLines(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->removeAllLines(); + DOWNCAST(thisWidget->This)->removeAllLines(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiChatBox_getLineAmount(const tguiWidget* widget) +size_t tguiChatBox_getLineAmount(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getLineAmount(); + return DOWNCAST(thisWidget->This)->getLineAmount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBox_setLineLimit(tguiWidget* widget, size_t maxLines) +void tguiChatBox_setLineLimit(tguiWidget* thisWidget, size_t value) { - DOWNCAST(widget->This)->setLineLimit(maxLines); + DOWNCAST(thisWidget->This)->setLineLimit(value); } -size_t tguiChatBox_getLineLimit(const tguiWidget* widget) +size_t tguiChatBox_getLineLimit(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getLineLimit(); + return DOWNCAST(thisWidget->This)->getLineLimit(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBox_setTextColor(tguiWidget* widget, tguiColor* color) +void tguiChatBox_setTextColor(tguiWidget* thisWidget, const tguiColor* value) { - DOWNCAST(widget->This)->setTextColor(ctgui::toCppColor(color)); + DOWNCAST(thisWidget->This)->setTextColor(ctgui::toCppColor(value)); } -tguiColor* tguiChatBox_getTextColor(const tguiWidget* widget) +const tguiColor* tguiChatBox_getTextColor(const tguiWidget* thisWidget) { - return ctgui::fromCppColor(DOWNCAST(widget->This)->getTextColor()); + return ctgui::fromCppColor(DOWNCAST(thisWidget->This)->getTextColor()); } -void tguiChatBox_setTextStyle(tguiWidget* widget, tguiUint32 style) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiChatBox_setTextStyle(tguiWidget* thisWidget, tguiUint32 value) { - DOWNCAST(widget->This)->setTextStyle(style); + DOWNCAST(thisWidget->This)->setTextStyle(value); } -tguiUint32 tguiChatBox_getTextStyle(const tguiWidget* widget) +tguiUint32 tguiChatBox_getTextStyle(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getTextStyle(); + return DOWNCAST(thisWidget->This)->getTextStyle(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBox_setLinesStartFromTop(tguiWidget* widget, tguiBool startFromTop) +void tguiChatBox_setLinesStartFromTop(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setLinesStartFromTop(startFromTop != 0); + DOWNCAST(thisWidget->This)->setLinesStartFromTop(value != 0); } -tguiBool tguiChatBox_getLinesStartFromTop(const tguiWidget* widget) +tguiBool tguiChatBox_getLinesStartFromTop(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getLinesStartFromTop(); + return DOWNCAST(thisWidget->This)->getLinesStartFromTop(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBox_setNewLinesBelowOthers(tguiWidget* widget, tguiBool newLinesBelowOthers) +void tguiChatBox_setNewLinesBelowOthers(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setNewLinesBelowOthers(newLinesBelowOthers != 0); + DOWNCAST(thisWidget->This)->setNewLinesBelowOthers(value != 0); } -tguiBool tguiChatBox_getNewLinesBelowOthers(const tguiWidget* widget) +tguiBool tguiChatBox_getNewLinesBelowOthers(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getNewLinesBelowOthers(); + return DOWNCAST(thisWidget->This)->getNewLinesBelowOthers(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChatBox_setScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiChatBox_setScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setScrollbarValue(value); + DOWNCAST(thisWidget->This)->setScrollbarValue(value); } -unsigned int tguiChatBox_getScrollbarValue(const tguiWidget* widget) +unsigned int tguiChatBox_getScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getScrollbarValue(); + return DOWNCAST(thisWidget->This)->getScrollbarValue(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/CheckBox.cpp b/src/CTGUI/Widgets/CheckBox.cpp index b9570d5..615a4ab 100644 --- a/src/CTGUI/Widgets/CheckBox.cpp +++ b/src/CTGUI/Widgets/CheckBox.cpp @@ -1,34 +1,17 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include +#define DOWNCAST(x) std::static_pointer_cast(x) + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiCheckBox_create(void) { return ctgui::addWidgetRef(tgui::CheckBox::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ChildWindow.cpp b/src/CTGUI/Widgets/ChildWindow.cpp index 93f2c73..81a5dc8 100644 --- a/src/CTGUI/Widgets/ChildWindow.cpp +++ b/src/CTGUI/Widgets/ChildWindow.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -40,128 +17,134 @@ tguiWidget* tguiChildWindow_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setClientSize(tguiWidget* widget, tguiVector2f size) +void tguiChildWindow_setClientSize(tguiWidget* thisWidget, tguiVector2f size) { - DOWNCAST(widget->This)->setClientSize({size.x, size.y}); + DOWNCAST(thisWidget->This)->setClientSize({size.x, size.y}); } -void tguiChildWindow_setClientSizeFromLayout(tguiWidget* widget, tguiLayout2d* layout) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiChildWindow_setClientSizeFromLayout(tguiWidget* thisWidget, const tguiLayout2d* layout) { - DOWNCAST(widget->This)->setClientSize(layout->This); + DOWNCAST(thisWidget->This)->setClientSize(layout->This); } -tguiVector2f tguiChildWindow_getClientSize(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiVector2f tguiChildWindow_getClientSize(tguiWidget* thisWidget) { - const tgui::Vector2f size = DOWNCAST(widget->This)->getClientSize(); - return {size.x, size.y}; + const tgui::Vector2f value = DOWNCAST(thisWidget->This)->getClientSize(); + return {value.x, value.y}; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setMaximumSize(tguiWidget* widget, tguiVector2f maxSize) +void tguiChildWindow_setMaximumSize(tguiWidget* thisWidget, tguiVector2f value) { - DOWNCAST(widget->This)->setMaximumSize({maxSize.x, maxSize.y}); + DOWNCAST(thisWidget->This)->setMaximumSize({value.x, value.y}); } -tguiVector2f tguiChildWindow_getMaximumSize(const tguiWidget* widget) +tguiVector2f tguiChildWindow_getMaximumSize(const tguiWidget* thisWidget) { - tgui::Vector2f size = DOWNCAST(widget->This)->getMaximumSize(); - return {size.x, size.y}; + const tgui::Vector2f value = DOWNCAST(thisWidget->This)->getMaximumSize(); + return {value.x, value.y}; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setMinimumSize(tguiWidget* widget, tguiVector2f minSize) +void tguiChildWindow_setMinimumSize(tguiWidget* thisWidget, tguiVector2f value) { - DOWNCAST(widget->This)->setMinimumSize({minSize.x, minSize.y}); + DOWNCAST(thisWidget->This)->setMinimumSize({value.x, value.y}); } -tguiVector2f tguiChildWindow_getMinimumSize(const tguiWidget* widget) +tguiVector2f tguiChildWindow_getMinimumSize(const tguiWidget* thisWidget) { - tgui::Vector2f size = DOWNCAST(widget->This)->getMinimumSize(); - return {size.x, size.y}; + const tgui::Vector2f value = DOWNCAST(thisWidget->This)->getMinimumSize(); + return {value.x, value.y}; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setTitle(tguiWidget* widget, tguiUtf32 text) +void tguiChildWindow_setTitle(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setTitle(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setTitle(ctgui::toCppStr(value)); } -tguiUtf32 tguiChildWindow_getTitle(const tguiWidget* widget) +tguiUtf32 tguiChildWindow_getTitle(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getTitle()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getTitle()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setTitleTextSize(tguiWidget* widget, unsigned int textSize) +void tguiChildWindow_setTitleTextSize(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setTitleTextSize(textSize); + DOWNCAST(thisWidget->This)->setTitleTextSize(value); } -unsigned int tguiChildWindow_getTitleTextSize(const tguiWidget* widget) +unsigned int tguiChildWindow_getTitleTextSize(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getTitleTextSize(); + return DOWNCAST(thisWidget->This)->getTitleTextSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setTitleAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment) +void tguiChildWindow_setTitleAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - DOWNCAST(widget->This)->setTitleAlignment(static_cast(alignment)); + DOWNCAST(thisWidget->This)->setTitleAlignment(static_cast(value)); } -tguiHorizontalAlignment tguiChildWindow_getTitleAlignment(const tguiWidget* widget) +tguiHorizontalAlignment tguiChildWindow_getTitleAlignment(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getTitleAlignment()); + return static_cast(DOWNCAST(thisWidget->This)->getTitleAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setTitleButtons(tguiWidget* widget, unsigned int buttons) +void tguiChildWindow_setTitleButtons(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setTitleButtons(buttons); + DOWNCAST(thisWidget->This)->setTitleButtons(value); } -unsigned int tguiChildWindow_getTitleButtons(const tguiWidget* widget) +unsigned int tguiChildWindow_getTitleButtons(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getTitleButtons(); + return DOWNCAST(thisWidget->This)->getTitleButtons(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setResizable(tguiWidget* widget, tguiBool resizable) +void tguiChildWindow_setResizable(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setResizable(resizable != 0); + DOWNCAST(thisWidget->This)->setResizable(value != 0); } -tguiBool tguiChildWindow_isResizable(const tguiWidget* widget) +tguiBool tguiChildWindow_isResizable(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isResizable(); + return DOWNCAST(thisWidget->This)->isResizable(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setKeepInParent(tguiWidget* widget, tguiBool keepInParent) +void tguiChildWindow_setKeepInParent(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setKeepInParent(keepInParent != 0); + DOWNCAST(thisWidget->This)->setKeepInParent(value != 0); } -tguiBool tguiChildWindow_isKeptInParent(const tguiWidget* widget) +tguiBool tguiChildWindow_getKeepInParent(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isKeptInParent(); + return DOWNCAST(thisWidget->This)->getKeepInParent(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiChildWindow_setPositionLocked(tguiWidget* widget, tguiBool positionLocked) +void tguiChildWindow_setPositionLocked(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setPositionLocked(positionLocked != 0); + DOWNCAST(thisWidget->This)->setPositionLocked(value != 0); } -tguiBool tguiChildWindow_isPositionLocked(const tguiWidget* widget) +tguiBool tguiChildWindow_isPositionLocked(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isPositionLocked(); + return DOWNCAST(thisWidget->This)->isPositionLocked(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ClickableWidget.cpp b/src/CTGUI/Widgets/ClickableWidget.cpp index f9c2b87..811f252 100644 --- a/src/CTGUI/Widgets/ClickableWidget.cpp +++ b/src/CTGUI/Widgets/ClickableWidget.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -36,3 +13,5 @@ tguiWidget* tguiClickableWidget_create(void) { return ctgui::addWidgetRef(tgui::ClickableWidget::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ColorPicker.cpp b/src/CTGUI/Widgets/ColorPicker.cpp index 58f0e05..a1839f0 100644 --- a/src/CTGUI/Widgets/ColorPicker.cpp +++ b/src/CTGUI/Widgets/ColorPicker.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,12 +16,14 @@ tguiWidget* tguiColorPicker_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiColorPicker_setColor(tguiWidget* colorPicker, tguiColor* color) +void tguiColorPicker_setColor(tguiWidget* thisWidget, const tguiColor* value) { - DOWNCAST(colorPicker->This)->setColor(ctgui::toCppColor(color)); + DOWNCAST(thisWidget->This)->setColor(ctgui::toCppColor(value)); } -tguiColor* tguiColorPicker_getColor(const tguiWidget* colorPicker) +const tguiColor* tguiColorPicker_getColor(const tguiWidget* thisWidget) { - return ctgui::fromCppColor(DOWNCAST(colorPicker->This)->getColor()); + return ctgui::fromCppColor(DOWNCAST(thisWidget->This)->getColor()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ComboBox.cpp b/src/CTGUI/Widgets/ComboBox.cpp index e2dcce5..fcb0173 100644 --- a/src/CTGUI/Widgets/ComboBox.cpp +++ b/src/CTGUI/Widgets/ComboBox.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,201 +16,229 @@ tguiWidget* tguiComboBox_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBox_setItemsToDisplay(tguiWidget* widget, size_t itemsToDisplay) +void tguiComboBox_setItemsToDisplay(tguiWidget* thisWidget, size_t value) { - DOWNCAST(widget->This)->setItemsToDisplay(itemsToDisplay); + DOWNCAST(thisWidget->This)->setItemsToDisplay(value); } -size_t tguiComboBox_getItemsToDisplay(const tguiWidget* widget) +size_t tguiComboBox_getItemsToDisplay(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getItemsToDisplay(); + return DOWNCAST(thisWidget->This)->getItemsToDisplay(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiComboBox_addItem(tguiWidget* widget, tguiUtf32 item, tguiUtf32 id) +size_t tguiComboBox_addItem(tguiWidget* thisWidget, tguiUtf32 item, tguiUtf32 id) { - return DOWNCAST(widget->This)->addItem(ctgui::toCppStr(item), ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->addItem(ctgui::toCppStr(item), ctgui::toCppStr(id)); } -tguiUtf32 tguiComboBox_getItemById(const tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiComboBox_getItemById(const tguiWidget* thisWidget, tguiUtf32 id) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getItemById(ctgui::toCppStr(id))); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItemById(ctgui::toCppStr(id))); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiComboBox_setSelectedItem(tguiWidget* widget, tguiUtf32 item) +const tguiUtf32* tguiComboBox_getItems(tguiWidget* thisWidget, size_t* returnCount) { - return DOWNCAST(widget->This)->setSelectedItem(ctgui::toCppStr(item)); -} + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItems(); -tguiBool tguiComboBox_setSelectedItemById(tguiWidget* widget, tguiUtf32 id) -{ - return DOWNCAST(widget->This)->setSelectedItemById(ctgui::toCppStr(id)); -} + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); -tguiBool tguiComboBox_setSelectedItemByIndex(tguiWidget* widget, size_t index) -{ - return DOWNCAST(widget->This)->setSelectedItemByIndex(index); +*returnCount = cStrings.size(); +return cStrings.data(); } -void tguiComboBox_deselectItem(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiComboBox_getItemIds(tguiWidget* thisWidget, size_t* returnCount) { - DOWNCAST(widget->This)->deselectItem(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItemIds(); + + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); + +*returnCount = cStrings.size(); +return cStrings.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiComboBox_removeItem(tguiWidget* widget, tguiUtf32 item) +tguiBool tguiComboBox_setSelectedItem(tguiWidget* thisWidget, tguiUtf32 item) { - return DOWNCAST(widget->This)->removeItem(ctgui::toCppStr(item)); + return DOWNCAST(thisWidget->This)->setSelectedItem(ctgui::toCppStr(item)); } -tguiBool tguiComboBox_removeItemById(tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiComboBox_setSelectedItemById(tguiWidget* thisWidget, tguiUtf32 item) { - return DOWNCAST(widget->This)->removeItemById(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->setSelectedItemById(ctgui::toCppStr(item)); } -tguiBool tguiComboBox_removeItemByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiComboBox_setSelectedItemByIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->removeItemByIndex(index); + return DOWNCAST(thisWidget->This)->setSelectedItemByIndex(index); } -void tguiComboBox_removeAllItems(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiComboBox_deselectItem(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->removeAllItems(); + DOWNCAST(thisWidget->This)->deselectItem(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiUtf32 tguiComboBox_getSelectedItem(const tguiWidget* widget) +tguiBool tguiComboBox_removeItem(tguiWidget* thisWidget, tguiUtf32 item) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedItem()); + return DOWNCAST(thisWidget->This)->removeItem(ctgui::toCppStr(item)); } -tguiUtf32 tguiComboBox_getSelectedItemId(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiComboBox_removeItemById(tguiWidget* thisWidget, tguiUtf32 id) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedItemId()); + return DOWNCAST(thisWidget->This)->removeItemById(ctgui::toCppStr(id)); } -int tguiComboBox_getSelectedItemIndex(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiComboBox_removeItemByIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->getSelectedItemIndex(); + return DOWNCAST(thisWidget->This)->removeItemByIndex(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiComboBox_changeItem(tguiWidget* widget, tguiUtf32 originalValue, tguiUtf32 newValue) +void tguiComboBox_removeAllItems(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->changeItem(ctgui::toCppStr(originalValue), ctgui::toCppStr(newValue)); + DOWNCAST(thisWidget->This)->removeAllItems(); } -tguiBool tguiComboBox_changeItemById(tguiWidget* widget, tguiUtf32 id, tguiUtf32 newValue) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiComboBox_getSelectedItem(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->changeItemById(ctgui::toCppStr(id), ctgui::toCppStr(newValue)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedItem()); } -tguiBool tguiComboBox_changeItemByIndex(tguiWidget* widget, size_t index, tguiUtf32 newValue) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiComboBox_getSelectedItemId(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->changeItemByIndex(index, ctgui::toCppStr(newValue)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedItemId()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiComboBox_getItemCount(const tguiWidget* widget) +int tguiComboBox_getSelectedItemIndex(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getItemCount(); + return DOWNCAST(thisWidget->This)->getSelectedItemIndex(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -const tguiUtf32* tguiComboBox_getItems(const tguiWidget* widget, size_t* count) +tguiBool tguiComboBox_changeItem(tguiWidget* thisWidget, tguiUtf32 originalValue, tguiUtf32 newValue) { - static std::vector cppItems; - cppItems = DOWNCAST(widget->This)->getItems(); + return DOWNCAST(thisWidget->This)->changeItem(ctgui::toCppStr(originalValue), ctgui::toCppStr(newValue)); +} - static std::vector cItems; - cItems.clear(); - cItems.reserve(cppItems.size()); - for (const auto& item : cppItems) - cItems.emplace_back(reinterpret_cast(item.c_str())); +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - *count = cItems.size(); - return cItems.data(); +tguiBool tguiComboBox_changeItemById(tguiWidget* thisWidget, tguiUtf32 id, tguiUtf32 newValue) +{ + return DOWNCAST(thisWidget->This)->changeItemById(ctgui::toCppStr(id), ctgui::toCppStr(newValue)); } -const tguiUtf32* tguiComboBox_getItemIds(const tguiWidget* widget, size_t* count) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiComboBox_changeItemByIndex(tguiWidget* thisWidget, size_t index, tguiUtf32 newValue) { - static std::vector cppIds; - cppIds = DOWNCAST(widget->This)->getItemIds(); + return DOWNCAST(thisWidget->This)->changeItemByIndex(index, ctgui::toCppStr(newValue)); +} - static std::vector cIds; - cIds.clear(); - cIds.reserve(cppIds.size()); - for (const auto& id : cppIds) - cIds.emplace_back(reinterpret_cast(id.c_str())); +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - *count = cIds.size(); - return cIds.data(); +size_t tguiComboBox_getItemCount(const tguiWidget* thisWidget) +{ + return DOWNCAST(thisWidget->This)->getItemCount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBox_setMaximumItems(tguiWidget* widget, unsigned int maxItems) +void tguiComboBox_setMaximumItems(tguiWidget* thisWidget, size_t value) { - DOWNCAST(widget->This)->setMaximumItems(maxItems); + DOWNCAST(thisWidget->This)->setMaximumItems(value); } -size_t tguiComboBox_getMaximumItems(const tguiWidget* widget) +size_t tguiComboBox_getMaximumItems(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximumItems(); + return DOWNCAST(thisWidget->This)->getMaximumItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBox_setDefaultText(tguiWidget* widget, tguiUtf32 text) +void tguiComboBox_setDefaultText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setDefaultText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setDefaultText(ctgui::toCppStr(value)); } -tguiUtf32 tguiComboBox_getDefaultText(const tguiWidget* widget) +tguiUtf32 tguiComboBox_getDefaultText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getDefaultText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getDefaultText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBox_setExpandDirection(tguiWidget* widget, tguiExpandDirection expandDirection) +void tguiComboBox_setExpandDirection(tguiWidget* thisWidget, tguiComboBoxExpandDirection value) { - DOWNCAST(widget->This)->setExpandDirection(static_cast(expandDirection)); + DOWNCAST(thisWidget->This)->setExpandDirection(static_cast(value)); } -tguiExpandDirection tguiComboBox_getExpandDirection(const tguiWidget* widget) +tguiComboBoxExpandDirection tguiComboBox_getExpandDirection(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getExpandDirection()); + return static_cast(DOWNCAST(thisWidget->This)->getExpandDirection()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiComboBox_contains(tguiWidget* widget, tguiUtf32 item) +void tguiComboBox_setChangeItemOnScroll(tguiWidget* thisWidget, tguiBool value) { - return DOWNCAST(widget->This)->contains(ctgui::toCppStr(item)); + DOWNCAST(thisWidget->This)->setChangeItemOnScroll(value != 0); } -tguiBool tguiComboBox_containsId(tguiWidget* widget, tguiUtf32 id) +tguiBool tguiComboBox_getChangeItemOnScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->containsId(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->getChangeItemOnScroll(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiComboBox_setChangeItemOnScroll(tguiWidget* widget, tguiBool changeOnScroll) +tguiBool tguiComboBox_contains(const tguiWidget* thisWidget, tguiUtf32 item) { - DOWNCAST(widget->This)->setChangeItemOnScroll(changeOnScroll != 0); + return DOWNCAST(thisWidget->This)->contains(ctgui::toCppStr(item)); } -tguiBool tguiComboBox_getChangeItemOnScroll(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiComboBox_containsId(const tguiWidget* thisWidget, tguiUtf32 id) { - return DOWNCAST(widget->This)->getChangeItemOnScroll(); + return DOWNCAST(thisWidget->This)->containsId(ctgui::toCppStr(id)); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/EditBox.cpp b/src/CTGUI/Widgets/EditBox.cpp index 009f4e8..d783c02 100644 --- a/src/CTGUI/Widgets/EditBox.cpp +++ b/src/CTGUI/Widgets/EditBox.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,132 +16,136 @@ tguiWidget* tguiEditBox_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setText(tguiWidget* widget, tguiUtf32 text) +void tguiEditBox_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -tguiUtf32 tguiEditBox_getText(const tguiWidget* widget) +tguiUtf32 tguiEditBox_getText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setDefaultText(tguiWidget* widget, tguiUtf32 text) +void tguiEditBox_setDefaultText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setDefaultText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setDefaultText(ctgui::toCppStr(value)); } -tguiUtf32 tguiEditBox_getDefaultText(const tguiWidget* widget) +tguiUtf32 tguiEditBox_getDefaultText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getDefaultText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getDefaultText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_selectText(tguiWidget* widget, size_t start, size_t length) +void tguiEditBox_setPasswordCharacter(tguiWidget* thisWidget, tguiChar32 value) { - DOWNCAST(widget->This)->selectText(start, length); + DOWNCAST(thisWidget->This)->setPasswordCharacter(value); } -tguiUtf32 tguiEditBox_getSelectedText(const tguiWidget* widget) +tguiChar32 tguiEditBox_getPasswordCharacter(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedText()); + return DOWNCAST(thisWidget->This)->getPasswordCharacter(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setPasswordCharacter(tguiWidget* widget, tguiChar32 passwordChar) +void tguiEditBox_setMaximumCharacters(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setPasswordCharacter(passwordChar); + DOWNCAST(thisWidget->This)->setMaximumCharacters(value); } -tguiChar32 tguiEditBox_getPasswordCharacter(const tguiWidget* widget) +unsigned int tguiEditBox_getMaximumCharacters(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getPasswordCharacter(); + return DOWNCAST(thisWidget->This)->getMaximumCharacters(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setMaximumCharacters(tguiWidget* widget, unsigned int maximumCharacters) +void tguiEditBox_setAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - DOWNCAST(widget->This)->setMaximumCharacters(maximumCharacters); + DOWNCAST(thisWidget->This)->setAlignment(static_cast(value)); } -unsigned int tguiEditBox_getMaximumCharacters(const tguiWidget* widget) +tguiHorizontalAlignment tguiEditBox_getAlignment(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximumCharacters(); + return static_cast(DOWNCAST(thisWidget->This)->getAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment) +void tguiEditBox_setTextWidthLimited(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setAlignment(static_cast(alignment)); + DOWNCAST(thisWidget->This)->setTextWidthLimited(value != 0); } -tguiHorizontalAlignment tguiEditBox_getAlignment(const tguiWidget* widget) +tguiBool tguiEditBox_isTextWidthLimited(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getAlignment()); + return DOWNCAST(thisWidget->This)->isTextWidthLimited(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_limitTextWidth(tguiWidget* widget, tguiBool limitWidth) +void tguiEditBox_setReadOnly(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->limitTextWidth(limitWidth != 0); + DOWNCAST(thisWidget->This)->setReadOnly(value != 0); } -tguiBool tguiEditBox_isTextWidthLimited(const tguiWidget* widget) +tguiBool tguiEditBox_isReadOnly(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isTextWidthLimited(); + return DOWNCAST(thisWidget->This)->isReadOnly(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setReadOnly(tguiWidget* widget, tguiBool readOnly) +void tguiEditBox_setCaretPosition(tguiWidget* thisWidget, size_t value) { - DOWNCAST(widget->This)->setReadOnly(readOnly != 0); + DOWNCAST(thisWidget->This)->setCaretPosition(value); } -tguiBool tguiEditBox_isReadOnly(const tguiWidget* widget) +size_t tguiEditBox_getCaretPosition(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isReadOnly(); + return DOWNCAST(thisWidget->This)->getCaretPosition(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setCaretPosition(tguiWidget* widget, size_t caretPosition) +void tguiEditBox_setInputValidator(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setCaretPosition(caretPosition); + DOWNCAST(thisWidget->This)->setInputValidator(ctgui::toCppStr(value)); } -size_t tguiEditBox_getCaretPosition(const tguiWidget* widget) +tguiUtf32 tguiEditBox_getInputValidator(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getCaretPosition(); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getInputValidator()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setInputValidator(tguiWidget* widget, tguiUtf32 validator) +void tguiEditBox_setSuffix(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setInputValidator(ctgui::toCppStr(validator)); + DOWNCAST(thisWidget->This)->setSuffix(ctgui::toCppStr(value)); } -tguiUtf32 tguiEditBox_getInputValidator(const tguiWidget* widget) +tguiUtf32 tguiEditBox_getSuffix(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getInputValidator()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSuffix()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBox_setSuffix(tguiWidget* widget, tguiUtf32 suffix) +void tguiEditBox_selectText(tguiWidget* thisWidget, size_t start, size_t length) { - DOWNCAST(widget->This)->setSuffix(ctgui::toCppStr(suffix)); + DOWNCAST(thisWidget->This)->selectText(start, length); } -tguiUtf32 tguiEditBox_getSuffix(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiEditBox_getSelectedText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSuffix()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedText()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/EditBoxSlider.cpp b/src/CTGUI/Widgets/EditBoxSlider.cpp index e337441..cd9b4b7 100644 --- a/src/CTGUI/Widgets/EditBoxSlider.cpp +++ b/src/CTGUI/Widgets/EditBoxSlider.cpp @@ -1,31 +1,8 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include -#include +#include #include @@ -40,94 +17,98 @@ tguiWidget* tguiEditBoxSlider_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiRenderer* tguiEditBoxSlider_getEditBoxRenderer(const tguiWidget* widget) +tguiRenderer* tguiEditBoxSlider_getEditBoxRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getEditBoxRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getEditBoxRenderer(), false); } -tguiRenderer* tguiEditBoxSlider_getEditBoxSharedRenderer(const tguiWidget* widget) +tguiRenderer* tguiEditBoxSlider_getEditBoxSharedRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getEditBoxSharedRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getEditBoxSharedRenderer(), false); } -tguiRenderer* tguiEditBoxSlider_getSliderRenderer(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiRenderer* tguiEditBoxSlider_getSliderRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getSliderRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getSliderRenderer(), false); } -tguiRenderer* tguiEditBoxSlider_getSliderSharedRenderer(const tguiWidget* widget) +tguiRenderer* tguiEditBoxSlider_getSliderSharedRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getSliderSharedRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getSliderSharedRenderer(), false); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxSlider_setMinimum(tguiWidget* widget, float minimum) +void tguiEditBoxSlider_setMinimum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -float tguiEditBoxSlider_getMinimum(const tguiWidget* widget) +float tguiEditBoxSlider_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxSlider_setMaximum(tguiWidget* widget, float maximum) +void tguiEditBoxSlider_setMaximum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -float tguiEditBoxSlider_getMaximum(const tguiWidget* widget) +float tguiEditBoxSlider_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxSlider_setValue(tguiWidget* widget, float value) +void tguiEditBoxSlider_setValue(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -float tguiEditBoxSlider_getValue(const tguiWidget* widget) +float tguiEditBoxSlider_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxSlider_setStep(tguiWidget* widget, float step) +void tguiEditBoxSlider_setStep(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setStep(step); + DOWNCAST(thisWidget->This)->setStep(value); } -float tguiEditBoxSlider_getStep(const tguiWidget* widget) +float tguiEditBoxSlider_getStep(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getStep(); + return DOWNCAST(thisWidget->This)->getStep(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxSlider_setDecimalPlaces(tguiWidget* widget, unsigned int decimalPlaces) +void tguiEditBoxSlider_setDecimalPlaces(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setDecimalPlaces(decimalPlaces); + DOWNCAST(thisWidget->This)->setDecimalPlaces(value); } -unsigned int tguiEditBoxSlider_getDecimalPlaces(const tguiWidget* widget) +unsigned int tguiEditBoxSlider_getDecimalPlaces(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getDecimalPlaces(); + return DOWNCAST(thisWidget->This)->getDecimalPlaces(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiEditBoxSlider_setTextAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment) +void tguiEditBoxSlider_setTextAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - DOWNCAST(widget->This)->setTextAlignment(static_cast(alignment)); + DOWNCAST(thisWidget->This)->setTextAlignment(static_cast(value)); } -tguiHorizontalAlignment tguiEditBoxSlider_getAlignment(const tguiWidget* widget) +tguiHorizontalAlignment tguiEditBoxSlider_getTextAlignment(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getTextAlignment()); + return static_cast(DOWNCAST(thisWidget->This)->getTextAlignment()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/FileDialog.cpp b/src/CTGUI/Widgets/FileDialog.cpp index 2b38005..846e62b 100644 --- a/src/CTGUI/Widgets/FileDialog.cpp +++ b/src/CTGUI/Widgets/FileDialog.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -32,239 +9,241 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -struct tguiFileDialogFilter -{ - tgui::String name; - std::vector expressions; -}; - -tguiFileDialogFilter* tguiFileDialogFilter_create(tguiUtf32 name) +tguiWidget* tguiFileDialog_create(void) { - auto filter = new tguiFileDialogFilter; - filter->name = ctgui::toCppStr(name); - return filter; + return ctgui::addWidgetRef(tgui::FileDialog::create()); } -void tguiFileDialogFilter_free(tguiFileDialogFilter* filter) -{ - delete filter; -} +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialogFilter_addExpression(tguiFileDialogFilter* filter, tguiUtf32 expression) +void tguiFileDialog_setFilename(tguiWidget* thisWidget, tguiUtf32 value) { - filter->expressions.push_back(ctgui::toCppStr(expression)); + DOWNCAST(thisWidget->This)->setFilename(ctgui::toCppStr(value)); } -const tguiUtf32* tguiFileDialogFilter_getExpressions(const tguiFileDialogFilter* filter, size_t* count) +tguiUtf32 tguiFileDialog_getFilename(const tguiWidget* thisWidget) { - static std::vector cExpressions; - - cExpressions.clear(); - for (const auto& cppExpression : filter->expressions) - cExpressions.push_back(reinterpret_cast(cppExpression.c_str())); - - *count = cExpressions.size(); - return cExpressions.data(); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getFilename()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiFileDialog_create(void) +size_t tguiFileDialog_getFileTypeFiltersIndex(const tguiWidget* thisWidget) { - return ctgui::addWidgetRef(tgui::FileDialog::create()); + return DOWNCAST(thisWidget->This)->getFileTypeFiltersIndex(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -const tguiUtf32* tguiFileDialog_getSelectedPaths(const tguiWidget* widget, size_t* count) +void tguiFileDialog_setConfirmButtonText(tguiWidget* thisWidget, tguiUtf32 value) { - const std::vector& cppPaths = DOWNCAST(widget->This)->getSelectedPaths(); - - static std::vector cppPathStrings; - cppPathStrings.clear(); - for (const auto& cppPath : cppPaths) - cppPathStrings.push_back(cppPath.asString()); - - static std::vector cPaths; - cPaths.clear(); - for (const auto& path : cppPathStrings) - cPaths.emplace_back(reinterpret_cast(path.c_str())); + DOWNCAST(thisWidget->This)->setConfirmButtonText(ctgui::toCppStr(value)); +} - *count = cPaths.size(); - return cPaths.data(); +tguiUtf32 tguiFileDialog_getConfirmButtonText(const tguiWidget* thisWidget) +{ + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getConfirmButtonText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setPath(tguiWidget* widget, tguiUtf32 path) +void tguiFileDialog_setCancelButtonText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setPath(ctgui::toCppStr(path)); + DOWNCAST(thisWidget->This)->setCancelButtonText(ctgui::toCppStr(value)); } -tguiUtf32 tguiFileDialog_getPath(const tguiWidget* widget) +tguiUtf32 tguiFileDialog_getCancelButtonText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getPath().asString()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getCancelButtonText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setFilename(tguiWidget* widget, tguiUtf32 filename) +void tguiFileDialog_setCreateFolderButtonText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setFilename(ctgui::toCppStr(filename)); + DOWNCAST(thisWidget->This)->setCreateFolderButtonText(ctgui::toCppStr(value)); } -tguiUtf32 tguiFileDialog_getFilename(const tguiWidget* widget) +tguiUtf32 tguiFileDialog_getCreateFolderButtonText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getFilename()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getCreateFolderButtonText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setFileTypeFilters(tguiWidget* widget, const tguiFileDialogFilter* filters, size_t filterCount, size_t defaultFilterIndex) +void tguiFileDialog_setFilenameLabelText(tguiWidget* thisWidget, tguiUtf32 value) { - std::vector>> cppFilters; - for (size_t i = 0; i < filterCount; ++i) - cppFilters.emplace_back(std::make_pair(filters[i].name, filters[i].expressions)); - - DOWNCAST(widget->This)->setFileTypeFilters(cppFilters, defaultFilterIndex); + DOWNCAST(thisWidget->This)->setFilenameLabelText(ctgui::toCppStr(value)); } -tguiFileDialogFilter** tguiFileDialog_getFileTypeFilters(const tguiWidget* widget, size_t* count) +tguiUtf32 tguiFileDialog_getFilenameLabelText(const tguiWidget* thisWidget) { - const std::vector>>& cppFilters = DOWNCAST(widget->This)->getFileTypeFilters(); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getFilenameLabelText()); +} - static std::vector cFilters; - cFilters.clear(); - for (const auto& cppFilter : cppFilters) - { - tguiFileDialogFilter* cFilter = cFilters.emplace_back(tguiFileDialogFilter_create(reinterpret_cast(cppFilter.first.c_str()))); - for (const auto& cppExpression : cppFilter.second) - tguiFileDialogFilter_addExpression(cFilter, reinterpret_cast(cppExpression.c_str())); - } +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - *count = cFilters.size(); - return cFilters.data(); +void tguiFileDialog_setAllowCreateFolder(tguiWidget* thisWidget, tguiBool value) +{ + DOWNCAST(thisWidget->This)->setAllowCreateFolder(value != 0); } -size_t tguiFileDialog_getFileTypeFiltersIndex(const tguiWidget* widget) +tguiBool tguiFileDialog_getAllowCreateFolder(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getFileTypeFiltersIndex(); + return DOWNCAST(thisWidget->This)->getAllowCreateFolder(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setConfirmButtonText(tguiWidget* widget, tguiUtf32 text) +void tguiFileDialog_setFileMustExist(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setConfirmButtonText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setFileMustExist(value != 0); } -tguiUtf32 tguiFileDialog_getConfirmButtonText(const tguiWidget* widget) +tguiBool tguiFileDialog_getFileMustExist(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getConfirmButtonText()); + return DOWNCAST(thisWidget->This)->getFileMustExist(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setCancelButtonText(tguiWidget* widget, tguiUtf32 text) +void tguiFileDialog_setSelectingDirectory(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setCancelButtonText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setSelectingDirectory(value != 0); } -tguiUtf32 tguiFileDialog_getCancelButtonText(const tguiWidget* widget) +tguiBool tguiFileDialog_getSelectingDirectory(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getCancelButtonText()); + return DOWNCAST(thisWidget->This)->getSelectingDirectory(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setCreateFolderButtonText(tguiWidget* widget, tguiUtf32 text) +void tguiFileDialog_setMultiSelect(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setCreateFolderButtonText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setMultiSelect(value != 0); } -tguiUtf32 tguiFileDialog_getCreateFolderButtonText(const tguiWidget* widget) +tguiBool tguiFileDialog_getMultiSelect(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getCreateFolderButtonText()); + return DOWNCAST(thisWidget->This)->getMultiSelect(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setAllowCreateFolder(tguiWidget* widget, tguiBool allowCreateFolder) +struct tguiFileDialogFilter { - DOWNCAST(widget->This)->setAllowCreateFolder(allowCreateFolder != 0); -} + tgui::String name; + std::vector expressions; +}; -tguiBool tguiFileDialog_getAllowCreateFolder(const tguiWidget* widget) +tguiFileDialogFilter* tguiFileDialogFilter_create(tguiUtf32 name) { - return DOWNCAST(widget->This)->getAllowCreateFolder(); + auto filter = new tguiFileDialogFilter; + filter->name = ctgui::toCppStr(name); + return filter; } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +void tguiFileDialogFilter_free(tguiFileDialogFilter* filter) +{ + delete filter; +} -void tguiFileDialog_setFilenameLabelText(tguiWidget* widget, tguiUtf32 labelText) +void tguiFileDialogFilter_addExpression(tguiFileDialogFilter* filter, tguiUtf32 expression) { - DOWNCAST(widget->This)->setFilenameLabelText(ctgui::toCppStr(labelText)); + filter->expressions.push_back(ctgui::toCppStr(expression)); } -tguiUtf32 tguiFileDialog_getFilenameLabelText(const tguiWidget* widget) +const tguiUtf32* tguiFileDialogFilter_getExpressions(const tguiFileDialogFilter* filter, size_t* count) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getFilenameLabelText()); + static std::vector cExpressions; + + cExpressions.clear(); + for (const auto& cppExpression : filter->expressions) + cExpressions.push_back(reinterpret_cast(cppExpression.c_str())); + + *count = cExpressions.size(); + return cExpressions.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setListViewColumnCaptions(tguiWidget* widget, tguiUtf32 nameColumnText, tguiUtf32 sizeColumnText, tguiUtf32 modifiedColumnText) +void tguiFileDialog_setPath(tguiWidget* widget, tguiUtf32 path) { - DOWNCAST(widget->This)->setListViewColumnCaptions(ctgui::toCppStr(nameColumnText), ctgui::toCppStr(sizeColumnText), ctgui::toCppStr(modifiedColumnText)); + DOWNCAST(widget->This)->setPath(ctgui::toCppStr(path)); } -tguiUtf32 tguiFileDialog_getListViewColumnCaptionsName(const tguiWidget* widget) +tguiUtf32 tguiFileDialog_getPath(const tguiWidget* widget) { - return ctgui::fromCppStr(std::get<0>(DOWNCAST(widget->This)->getListViewColumnCaptions())); + return ctgui::fromCppStr(DOWNCAST(widget->This)->getPath().asString()); } -tguiUtf32 tguiFileDialog_getListViewColumnCaptionsSize(const tguiWidget* widget) -{ - return ctgui::fromCppStr(std::get<1>(DOWNCAST(widget->This)->getListViewColumnCaptions())); -} +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiUtf32 tguiFileDialog_getListViewColumnCaptionsModified(const tguiWidget* widget) +const tguiUtf32* tguiFileDialog_getSelectedPaths(const tguiWidget* widget, size_t* count) { - return ctgui::fromCppStr(std::get<2>(DOWNCAST(widget->This)->getListViewColumnCaptions())); + const std::vector& cppPaths = DOWNCAST(widget->This)->getSelectedPaths(); + + static std::vector cppPathStrings; + cppPathStrings.clear(); + for (const auto& cppPath : cppPaths) + cppPathStrings.push_back(cppPath.asString()); + + static std::vector cPaths; + cPaths.clear(); + for (const auto& path : cppPathStrings) + cPaths.emplace_back(reinterpret_cast(path.c_str())); + + *count = cPaths.size(); + return cPaths.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setFileMustExist(tguiWidget* widget, tguiBool enforceExistence) +void tguiFileDialog_setFileTypeFilters(tguiWidget* widget, const tguiFileDialogFilter* filters, size_t filterCount, size_t defaultFilterIndex) { - DOWNCAST(widget->This)->setFileMustExist(enforceExistence != 0); + std::vector>> cppFilters; + for (size_t i = 0; i < filterCount; ++i) + cppFilters.emplace_back(std::make_pair(filters[i].name, filters[i].expressions)); + + DOWNCAST(widget->This)->setFileTypeFilters(cppFilters, defaultFilterIndex); } -tguiBool tguiFileDialog_getFileMustExist(const tguiWidget* widget) +tguiFileDialogFilter** tguiFileDialog_getFileTypeFilters(const tguiWidget* widget, size_t* count) { - return DOWNCAST(widget->This)->getFileMustExist(); + const std::vector>>& cppFilters = DOWNCAST(widget->This)->getFileTypeFilters(); + + static std::vector cFilters; + cFilters.clear(); + for (const auto& cppFilter : cppFilters) + { + tguiFileDialogFilter* cFilter = cFilters.emplace_back(tguiFileDialogFilter_create(reinterpret_cast(cppFilter.first.c_str()))); + for (const auto& cppExpression : cppFilter.second) + tguiFileDialogFilter_addExpression(cFilter, reinterpret_cast(cppExpression.c_str())); + } + + *count = cFilters.size(); + return cFilters.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiFileDialog_setSelectingDirectory(tguiWidget* widget, tguiBool selectDirectories) +void tguiFileDialog_setListViewColumnCaptions(tguiWidget* widget, tguiUtf32 nameColumnText, tguiUtf32 sizeColumnText, tguiUtf32 modifiedColumnText) { - DOWNCAST(widget->This)->setSelectingDirectory(selectDirectories != 0); + DOWNCAST(widget->This)->setListViewColumnCaptions(ctgui::toCppStr(nameColumnText), ctgui::toCppStr(sizeColumnText), ctgui::toCppStr(modifiedColumnText)); } -tguiBool tguiFileDialog_getSelectingDirectory(const tguiWidget* widget) +tguiUtf32 tguiFileDialog_getListViewColumnCaptionsName(const tguiWidget* widget) { - return DOWNCAST(widget->This)->getSelectingDirectory(); + return ctgui::fromCppStr(std::get<0>(DOWNCAST(widget->This)->getListViewColumnCaptions())); } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiFileDialog_setMultiSelect(tguiWidget* widget, tguiBool multiSelect) +tguiUtf32 tguiFileDialog_getListViewColumnCaptionsSize(const tguiWidget* widget) { - DOWNCAST(widget->This)->setMultiSelect(multiSelect != 0); + return ctgui::fromCppStr(std::get<1>(DOWNCAST(widget->This)->getListViewColumnCaptions())); } -tguiBool tguiFileDialog_getMultiSelect(const tguiWidget* widget) +tguiUtf32 tguiFileDialog_getListViewColumnCaptionsModified(const tguiWidget* widget) { - return DOWNCAST(widget->This)->getMultiSelect(); + return ctgui::fromCppStr(std::get<2>(DOWNCAST(widget->This)->getListViewColumnCaptions())); } diff --git a/src/CTGUI/Widgets/Grid.cpp b/src/CTGUI/Widgets/Grid.cpp index dafd422..467010e 100644 --- a/src/CTGUI/Widgets/Grid.cpp +++ b/src/CTGUI/Widgets/Grid.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -33,19 +10,6 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiGridWidgetLocation_free(tguiGridWidgetLocation* locationList, size_t count) -{ - if (!locationList) - return; - - for (size_t i = 0; i < count; ++i) - ctgui::removeWidgetRef(locationList[i].widget->This); - - delete[] locationList; -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - tguiWidget* tguiGrid_create(void) { return ctgui::addWidgetRef(tgui::Grid::create()); @@ -53,103 +17,132 @@ tguiWidget* tguiGrid_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiGrid_setAutoSize(tguiWidget* widget, tguiBool autoSize) +void tguiGrid_setAutoSize(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setAutoSize(autoSize != 0); + DOWNCAST(thisWidget->This)->setAutoSize(value != 0); } -tguiBool tguiGrid_getAutoSize(const tguiWidget* widget) +tguiBool tguiGrid_getAutoSize(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getAutoSize(); + return DOWNCAST(thisWidget->This)->getAutoSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiGrid_addWidget(tguiWidget* grid, tguiWidget* widget, size_t row, size_t col, tguiAlignment alignment, tguiOutline* padding) +void tguiGrid_addWidget(tguiWidget* thisWidget, tguiWidget* widget, size_t row, size_t col, tguiGridAlignment alignment, const tguiOutline* padding) { - DOWNCAST(grid->This)->addWidget(widget->This, row, col, static_cast(alignment), padding->This); + DOWNCAST(thisWidget->This)->addWidget(widget->This, row, col, static_cast(alignment), padding->This); } -void tguiGrid_setWidgetCell(tguiWidget* grid, tguiWidget* widget, size_t row, size_t col, tguiAlignment alignment, tguiOutline* padding) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiGrid_setWidgetCell(tguiWidget* thisWidget, tguiWidget* widget, size_t row, size_t col, tguiGridAlignment alignment, const tguiOutline* padding) { - DOWNCAST(grid->This)->setWidgetCell(widget->This, row, col, static_cast(alignment), padding->This); + DOWNCAST(thisWidget->This)->setWidgetCell(widget->This, row, col, static_cast(alignment), padding->This); } -tguiWidget* tguiGrid_getWidget(tguiWidget* grid, size_t row, size_t col) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiGrid_getWidget(tguiWidget* thisWidget, size_t row, size_t col) { - tgui::Widget::Ptr widget = DOWNCAST(grid->This)->getWidget(row, col); - if (widget) - return new tguiWidget(widget); + tgui::Widget::Ptr widgetToReturn = DOWNCAST(thisWidget->This)->getWidget(row, col); + if (widgetToReturn) + return new tguiWidget(widgetToReturn); else return nullptr; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiGridWidgetLocation* tguiGrid_getWidgetLocations(const tguiWidget* grid, size_t* count) +void tguiGrid_setWidgetAlignment(tguiWidget* thisWidget, tguiWidget* widget, tguiGridAlignment alignment) { - const auto& cppLocations = DOWNCAST(grid->This)->getWidgetLocations(); - if (cppLocations.empty()) - { - *count = 0; - return nullptr; - } + DOWNCAST(thisWidget->This)->setWidgetAlignment(widget->This, static_cast(alignment)); +} - tguiGridWidgetLocation* cLocations = new tguiGridWidgetLocation[cppLocations.size()]; - size_t index = 0; - for (const auto& pair : cppLocations) - { - const tgui::Widget::Ptr& cppWidget = pair.first; - cLocations[index].widget = ctgui::addWidgetRef(cppWidget); - cLocations[index].row = pair.second.first; - cLocations[index].column = pair.second.second; - ++index; - } +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - *count = cppLocations.size(); - return cLocations; +void tguiGrid_setWidgetAlignmentByCell(tguiWidget* thisWidget, size_t row, size_t col, tguiGridAlignment alignment) +{ + DOWNCAST(thisWidget->This)->setWidgetAlignment(row, col, static_cast(alignment)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiGrid_setWidgetPadding(tguiWidget* grid, tguiWidget* widget, tguiOutline* padding) +tguiGridAlignment tguiGrid_getWidgetAlignment(const tguiWidget* thisWidget, tguiWidget* widget) { - DOWNCAST(grid->This)->setWidgetPadding(widget->This, padding->This); + return static_cast(DOWNCAST(thisWidget->This)->getWidgetAlignment(widget->This)); } -void tguiGrid_setWidgetPaddingByCell(tguiWidget* grid, size_t row, size_t col, tguiOutline* padding) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiGridAlignment tguiGrid_getWidgetAlignmentByCell(const tguiWidget* thisWidget, size_t row, size_t col) { - DOWNCAST(grid->This)->setWidgetPadding(row, col, padding->This); + return static_cast(DOWNCAST(thisWidget->This)->getWidgetAlignment(row, col)); } -tguiOutline* tguiGrid_getWidgetPadding(tguiWidget* grid, tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiGrid_setWidgetPadding(tguiWidget* thisWidget, tguiWidget* widget, const tguiOutline* padding) { - return new tguiOutline(DOWNCAST(grid->This)->getWidgetPadding(widget->This)); + DOWNCAST(thisWidget->This)->setWidgetPadding(widget->This, padding->This); } -tguiOutline* tguiGrid_getWidgetPaddingByCell(tguiWidget* grid, size_t row, size_t col) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiGrid_setWidgetPaddingByCell(tguiWidget* thisWidget, size_t row, size_t col, const tguiOutline* padding) { - return new tguiOutline(DOWNCAST(grid->This)->getWidgetPadding(row, col)); + DOWNCAST(thisWidget->This)->setWidgetPadding(row, col, padding->This); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiGrid_setWidgetAlignment(tguiWidget* grid, tguiWidget* widget, tguiAlignment alignment) +const tguiOutline* tguiGrid_getWidgetPadding(const tguiWidget* thisWidget, tguiWidget* widget) { - DOWNCAST(grid->This)->setWidgetAlignment(widget->This, static_cast(alignment)); + return new tguiOutline(DOWNCAST(thisWidget->This)->getWidgetPadding(widget->This)); } -void tguiGrid_setWidgetAlignmentByCell(tguiWidget* grid, size_t row, size_t col, tguiAlignment alignment) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiOutline* tguiGrid_getWidgetPaddingByCell(const tguiWidget* thisWidget, size_t row, size_t col) { - DOWNCAST(grid->This)->setWidgetAlignment(row, col, static_cast(alignment)); + return new tguiOutline(DOWNCAST(thisWidget->This)->getWidgetPadding(row, col)); } -tguiAlignment tguiGrid_getWidgetAlignment(tguiWidget* grid, tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiGridWidgetLocation_free(tguiGridWidgetLocation* locationList, size_t count) { - return static_cast(DOWNCAST(grid->This)->getWidgetAlignment(widget->This)); + if (!locationList) + return; + + for (size_t i = 0; i < count; ++i) + ctgui::removeWidgetRef(locationList[i].widget->This); + + delete[] locationList; } -tguiAlignment tguiGrid_getWidgetAlignmentByCell(tguiWidget* grid, size_t row, size_t col) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiGridWidgetLocation* tguiGrid_getWidgetLocations(const tguiWidget* grid, size_t* count) { - return static_cast(DOWNCAST(grid->This)->getWidgetAlignment(row, col)); + const auto& cppLocations = DOWNCAST(grid->This)->getWidgetLocations(); + if (cppLocations.empty()) + { + *count = 0; + return nullptr; + } + + tguiGridWidgetLocation* cLocations = new tguiGridWidgetLocation[cppLocations.size()]; + size_t index = 0; + for (const auto& pair : cppLocations) + { + const tgui::Widget::Ptr& cppWidget = pair.first; + cLocations[index].widget = ctgui::addWidgetRef(cppWidget); + cLocations[index].row = pair.second.first; + cLocations[index].column = pair.second.second; + ++index; + } + + *count = cppLocations.size(); + return cLocations; } diff --git a/src/CTGUI/Widgets/Group.cpp b/src/CTGUI/Widgets/Group.cpp index 16d7e69..b87758b 100644 --- a/src/CTGUI/Widgets/Group.cpp +++ b/src/CTGUI/Widgets/Group.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -30,7 +7,11 @@ #define DOWNCAST(x) std::static_pointer_cast(x) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiGroup_create(void) { return ctgui::addWidgetRef(tgui::Group::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/HorizontalLayout.cpp b/src/CTGUI/Widgets/HorizontalLayout.cpp index a0aa575..48eb04b 100644 --- a/src/CTGUI/Widgets/HorizontalLayout.cpp +++ b/src/CTGUI/Widgets/HorizontalLayout.cpp @@ -1,34 +1,17 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include +#define DOWNCAST(x) std::static_pointer_cast(x) + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiHorizontalLayout_create(void) { return ctgui::addWidgetRef(tgui::HorizontalLayout::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/HorizontalWrap.cpp b/src/CTGUI/Widgets/HorizontalWrap.cpp index e33887e..536f595 100644 --- a/src/CTGUI/Widgets/HorizontalWrap.cpp +++ b/src/CTGUI/Widgets/HorizontalWrap.cpp @@ -1,34 +1,17 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include +#define DOWNCAST(x) std::static_pointer_cast(x) + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiHorizontalWrap_create(void) { return ctgui::addWidgetRef(tgui::HorizontalWrap::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/Knob.cpp b/src/CTGUI/Widgets/Knob.cpp index 9dbea13..39cdf66 100644 --- a/src/CTGUI/Widgets/Knob.cpp +++ b/src/CTGUI/Widgets/Knob.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,72 +16,74 @@ tguiWidget* tguiKnob_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnob_setStartRotation(tguiWidget* widget, float startRotation) +void tguiKnob_setStartRotation(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setStartRotation(startRotation); + DOWNCAST(thisWidget->This)->setStartRotation(value); } -float tguiKnob_getStartRotation(const tguiWidget* widget) +float tguiKnob_getStartRotation(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getStartRotation(); + return DOWNCAST(thisWidget->This)->getStartRotation(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnob_setEndRotation(tguiWidget* widget, float startRotation) +void tguiKnob_setEndRotation(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setEndRotation(startRotation); + DOWNCAST(thisWidget->This)->setEndRotation(value); } -float tguiKnob_getEndRotation(const tguiWidget* widget) +float tguiKnob_getEndRotation(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getEndRotation(); + return DOWNCAST(thisWidget->This)->getEndRotation(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnob_setMinimum(tguiWidget* widget, float minimum) +void tguiKnob_setMinimum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -float tguiKnob_getMinimum(const tguiWidget* widget) +float tguiKnob_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnob_setMaximum(tguiWidget* widget, float maximum) +void tguiKnob_setMaximum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -float tguiKnob_getMaximum(const tguiWidget* widget) +float tguiKnob_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnob_setValue(tguiWidget* widget, float value) +void tguiKnob_setValue(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -float tguiKnob_getValue(const tguiWidget* widget) +float tguiKnob_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiKnob_setClockwiseTurning(tguiWidget* widget, tguiBool clockwise) +void tguiKnob_setClockwiseTurning(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setClockwiseTurning(clockwise != 0); + DOWNCAST(thisWidget->This)->setClockwiseTurning(value != 0); } -tguiBool tguiKnob_getClockwiseTurning(const tguiWidget* widget) +tguiBool tguiKnob_getClockwiseTurning(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getClockwiseTurning(); + return DOWNCAST(thisWidget->This)->getClockwiseTurning(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/Label.cpp b/src/CTGUI/Widgets/Label.cpp index 32d4311..c8ee629 100644 --- a/src/CTGUI/Widgets/Label.cpp +++ b/src/CTGUI/Widgets/Label.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,94 +16,86 @@ tguiWidget* tguiLabel_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_setText(tguiWidget* widget, tguiUtf32 text) +void tguiLabel_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -tguiUtf32 tguiLabel_getText(const tguiWidget* widget) +tguiUtf32 tguiLabel_getText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_setHorizontalAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment) -{ - DOWNCAST(widget->This)->setHorizontalAlignment(static_cast(alignment)); -} - -tguiHorizontalAlignment tguiLabel_getHorizontalAlignment(const tguiWidget* widget) +void tguiLabel_setHorizontalAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - return static_cast(DOWNCAST(widget->This)->getHorizontalAlignment()); + DOWNCAST(thisWidget->This)->setHorizontalAlignment(static_cast(value)); } -void tguiLabel_setVerticalAlignment(tguiWidget* widget, tguiVerticalAlignment alignment) +tguiHorizontalAlignment tguiLabel_getHorizontalAlignment(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->setVerticalAlignment(static_cast(alignment)); -} - -tguiVerticalAlignment tguiLabel_getVerticalAlignment(const tguiWidget* widget) -{ - return static_cast(DOWNCAST(widget->This)->getVerticalAlignment()); + return static_cast(DOWNCAST(thisWidget->This)->getHorizontalAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_setAutoSize(tguiWidget* widget, tguiBool autoSize) +void tguiLabel_setVerticalAlignment(tguiWidget* thisWidget, tguiVerticalAlignment value) { - DOWNCAST(widget->This)->setAutoSize(autoSize != 0); + DOWNCAST(thisWidget->This)->setVerticalAlignment(static_cast(value)); } -tguiBool tguiLabel_getAutoSize(const tguiWidget* widget) +tguiVerticalAlignment tguiLabel_getVerticalAlignment(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getAutoSize(); + return static_cast(DOWNCAST(thisWidget->This)->getVerticalAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_setMaximumTextWidth(tguiWidget* widget, float maximumTextWidth) +void tguiLabel_setAutoSize(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setMaximumTextWidth(maximumTextWidth); + DOWNCAST(thisWidget->This)->setAutoSize(value != 0); } -float tguiLabel_getMaximumTextWidth(const tguiWidget* widget) +tguiBool tguiLabel_getAutoSize(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximumTextWidth(); + return DOWNCAST(thisWidget->This)->getAutoSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_ignoreMouseEvents(tguiWidget* widget, tguiBool ignore) +void tguiLabel_setMaximumTextWidth(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->ignoreMouseEvents(ignore != 0); + DOWNCAST(thisWidget->This)->setMaximumTextWidth(value); } -tguiBool tguiLabel_isIgnoringMouseEvents(const tguiWidget* widget) +float tguiLabel_getMaximumTextWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isIgnoringMouseEvents(); + return DOWNCAST(thisWidget->This)->getMaximumTextWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_setScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiLabel_setScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiLabel_getScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiLabel_getScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiLabel_setScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiLabel_setScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setScrollbarValue(value); + DOWNCAST(thisWidget->This)->setScrollbarValue(value); } -unsigned int tguiLabel_getScrollbarValue(const tguiWidget* widget) +unsigned int tguiLabel_getScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getScrollbarValue(); + return DOWNCAST(thisWidget->This)->getScrollbarValue(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ListBox.cpp b/src/CTGUI/Widgets/ListBox.cpp index 22ae7a1..bd74083 100644 --- a/src/CTGUI/Widgets/ListBox.cpp +++ b/src/CTGUI/Widgets/ListBox.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,235 +16,281 @@ tguiWidget* tguiListBox_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiListBox_addItem(tguiWidget* widget, tguiUtf32 item, tguiUtf32 id) +size_t tguiListBox_addItem(tguiWidget* thisWidget, tguiUtf32 item, tguiUtf32 id) { - return DOWNCAST(widget->This)->addItem(ctgui::toCppStr(item), ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->addItem(ctgui::toCppStr(item), ctgui::toCppStr(id)); } -tguiUtf32 tguiListBox_getItemById(const tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiListBox_getItemById(tguiWidget* thisWidget, tguiUtf32 id) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getItemById(ctgui::toCppStr(id))); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItemById(ctgui::toCppStr(id))); } -tguiUtf32 tguiListBox_getItemByIndex(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiListBox_getItemByIndex(tguiWidget* thisWidget, size_t index) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getItemByIndex(index)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItemByIndex(index)); } -int tguiListBox_getIndexById(const tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +int tguiListBox_getIndexById(tguiWidget* thisWidget, tguiUtf32 id) { - return DOWNCAST(widget->This)->getIndexById(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->getIndexById(ctgui::toCppStr(id)); } -tguiUtf32 tguiListBox_getIdByIndex(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiListBox_getIdByIndex(tguiWidget* thisWidget, size_t index) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getIdByIndex(index)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getIdByIndex(index)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiListBox_setSelectedItem(tguiWidget* widget, tguiUtf32 item) +tguiBool tguiListBox_setSelectedItem(tguiWidget* thisWidget, tguiUtf32 item) { - return DOWNCAST(widget->This)->setSelectedItem(ctgui::toCppStr(item)); + return DOWNCAST(thisWidget->This)->setSelectedItem(ctgui::toCppStr(item)); } -tguiBool tguiListBox_setSelectedItemById(tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiListBox_setSelectedItemById(tguiWidget* thisWidget, tguiUtf32 id) { - return DOWNCAST(widget->This)->setSelectedItemById(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->setSelectedItemById(ctgui::toCppStr(id)); } -tguiBool tguiListBox_setSelectedItemByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiListBox_setSelectedItemByIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->setSelectedItemByIndex(index); + return DOWNCAST(thisWidget->This)->setSelectedItemByIndex(index); } -void tguiListBox_deselectItem(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListBox_deselectItem(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->deselectItem(); + DOWNCAST(thisWidget->This)->deselectItem(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiListBox_removeItem(tguiWidget* widget, tguiUtf32 item) +tguiBool tguiListBox_removeItem(tguiWidget* thisWidget, tguiUtf32 item) { - return DOWNCAST(widget->This)->removeItem(ctgui::toCppStr(item)); + return DOWNCAST(thisWidget->This)->removeItem(ctgui::toCppStr(item)); } -tguiBool tguiListBox_removeItemById(tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiListBox_removeItemById(tguiWidget* thisWidget, tguiUtf32 id) { - return DOWNCAST(widget->This)->removeItemById(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->removeItemById(ctgui::toCppStr(id)); } -tguiBool tguiListBox_removeItemByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiListBox_removeItemByIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->removeItemByIndex(index); + return DOWNCAST(thisWidget->This)->removeItemByIndex(index); } -void tguiListBox_removeAllItems(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListBox_removeAllItems(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->removeAllItems(); + DOWNCAST(thisWidget->This)->removeAllItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiUtf32 tguiListBox_getSelectedItem(const tguiWidget* widget) +tguiUtf32 tguiListBox_getSelectedItem(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedItem()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedItem()); } -tguiUtf32 tguiListBox_getSelectedItemId(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiListBox_getSelectedItemId(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedItemId()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedItemId()); } -int tguiListBox_getSelectedItemIndex(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +int tguiListBox_getSelectedItemIndex(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSelectedItemIndex(); + return DOWNCAST(thisWidget->This)->getSelectedItemIndex(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiListBox_changeItem(tguiWidget* widget, tguiUtf32 originalValue, tguiUtf32 newValue) +void tguiListBox_changeItem(tguiWidget* thisWidget, tguiUtf32 originalValue, tguiUtf32 newValue) { - return DOWNCAST(widget->This)->changeItem(ctgui::toCppStr(originalValue), ctgui::toCppStr(newValue)); + DOWNCAST(thisWidget->This)->changeItem(ctgui::toCppStr(originalValue), ctgui::toCppStr(newValue)); } -tguiBool tguiListBox_changeItemById(tguiWidget* widget, tguiUtf32 id, tguiUtf32 newValue) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListBox_changeItemById(tguiWidget* thisWidget, tguiUtf32 id, tguiUtf32 newValue) { - return DOWNCAST(widget->This)->changeItemById(ctgui::toCppStr(id), ctgui::toCppStr(newValue)); + DOWNCAST(thisWidget->This)->changeItemById(ctgui::toCppStr(id), ctgui::toCppStr(newValue)); } -tguiBool tguiListBox_changeItemByIndex(tguiWidget* widget, size_t index, tguiUtf32 newValue) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListBox_changeItemByIndex(tguiWidget* thisWidget, size_t index, tguiUtf32 newValue) { - return DOWNCAST(widget->This)->changeItemByIndex(index, ctgui::toCppStr(newValue)); + DOWNCAST(thisWidget->This)->changeItemByIndex(index, ctgui::toCppStr(newValue)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiListBox_getItemCount(const tguiWidget* widget) +size_t tguiListBox_getItemCount(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getItemCount(); + return DOWNCAST(thisWidget->This)->getItemCount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -const tguiUtf32* tguiListBox_getItems(const tguiWidget* widget, size_t* count) +const tguiUtf32* tguiListBox_getItems(const tguiWidget* thisWidget, size_t* returnCount) { - static std::vector cppItems; - cppItems = DOWNCAST(widget->This)->getItems(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItems(); - static std::vector cItems; - cItems.clear(); - cItems.reserve(cppItems.size()); - for (const auto& item : cppItems) - cItems.emplace_back(reinterpret_cast(item.c_str())); + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); - *count = cItems.size(); - return cItems.data(); +*returnCount = cStrings.size(); +return cStrings.data(); } -const tguiUtf32* tguiListBox_getItemIds(const tguiWidget* widget, size_t* count) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiListBox_getItemIds(const tguiWidget* thisWidget, size_t* returnCount) { - static std::vector cppIds; - cppIds = DOWNCAST(widget->This)->getItemIds(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItemIds(); - static std::vector cIds; - cIds.clear(); - cIds.reserve(cppIds.size()); - for (const auto& id : cppIds) - cIds.emplace_back(reinterpret_cast(id.c_str())); + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); - *count = cIds.size(); - return cIds.data(); +*returnCount = cStrings.size(); +return cStrings.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBox_setItemData(tguiWidget* widget, size_t index, void* data) +void tguiListBox_setItemData(tguiWidget* thisWidget, size_t index, void* data) { - DOWNCAST(widget->This)->setItemData(index, data); + DOWNCAST(thisWidget->This)->setItemData(index, data); } -void* tguiListBox_getItemData(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void* tguiListBox_getItemData(tguiWidget* thisWidget, size_t index) { try { - return DOWNCAST(widget->This)->getItemData(index); + // User data will be of type void* when it was set in the C binding + return DOWNCAST(thisWidget->This)->getItemData(index); } catch (const std::bad_cast&) { - return nullptr; + try + { + // User data will be of type tgui::String when it was set by loading the widget from a form + return const_cast(static_cast(ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItemData(index)))); + } + catch (const std::bad_cast&) + { + return nullptr; + } } + } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBox_setItemHeight(tguiWidget* widget, unsigned int height) +void tguiListBox_setItemHeight(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setItemHeight(height); + DOWNCAST(thisWidget->This)->setItemHeight(value); } -unsigned int tguiListBox_getItemHeight(const tguiWidget* widget) +unsigned int tguiListBox_getItemHeight(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getItemHeight(); + return DOWNCAST(thisWidget->This)->getItemHeight(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBox_setMaximumItems(tguiWidget* widget, size_t maxItems) +void tguiListBox_setMaximumItems(tguiWidget* thisWidget, size_t value) { - DOWNCAST(widget->This)->setMaximumItems(maxItems); + DOWNCAST(thisWidget->This)->setMaximumItems(value); } -size_t tguiListBox_getMaximumItems(const tguiWidget* widget) +size_t tguiListBox_getMaximumItems(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximumItems(); + return DOWNCAST(thisWidget->This)->getMaximumItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBox_setAutoScroll(tguiWidget* widget, tguiBool autoScroll) +void tguiListBox_setAutoScroll(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setAutoScroll(autoScroll != 0); + DOWNCAST(thisWidget->This)->setAutoScroll(value != 0); } -tguiBool tguiListBox_getAutoScroll(const tguiWidget* widget) +tguiBool tguiListBox_getAutoScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getAutoScroll(); + return DOWNCAST(thisWidget->This)->getAutoScroll(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBox_setTextAlignment(tguiWidget* widget, tguiHorizontalAlignment alignment) +void tguiListBox_setTextAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - DOWNCAST(widget->This)->setTextAlignment(static_cast(alignment)); + DOWNCAST(thisWidget->This)->setTextAlignment(static_cast(value)); } -tguiHorizontalAlignment tguiListBox_getTextAlignment(const tguiWidget* widget) +tguiHorizontalAlignment tguiListBox_getTextAlignment(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getTextAlignment()); + return static_cast(DOWNCAST(thisWidget->This)->getTextAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListBox_setScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiListBox_setScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setScrollbarValue(value); + DOWNCAST(thisWidget->This)->setScrollbarValue(value); } -unsigned int tguiListBox_getScrollbarValue(const tguiWidget* widget) +unsigned int tguiListBox_getScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getScrollbarValue(); + return DOWNCAST(thisWidget->This)->getScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiListBox_contains(tguiWidget* widget, tguiUtf32 item) +tguiBool tguiListBox_contains(tguiWidget* thisWidget, tguiUtf32 item) { - return DOWNCAST(widget->This)->contains(ctgui::toCppStr(item)); + return DOWNCAST(thisWidget->This)->contains(ctgui::toCppStr(item)); } -tguiBool tguiListBox_containsId(tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiListBox_containsId(tguiWidget* thisWidget, tguiUtf32 id) { - return DOWNCAST(widget->This)->containsId(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->containsId(ctgui::toCppStr(id)); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ListView.cpp b/src/CTGUI/Widgets/ListView.cpp index fde17f5..d112ce3 100644 --- a/src/CTGUI/Widgets/ListView.cpp +++ b/src/CTGUI/Widgets/ListView.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -40,482 +17,531 @@ tguiWidget* tguiListView_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiListView_addColumn(tguiWidget* widget, tguiUtf32 text, float width, tguiHorizontalAlignment columnAlignment) +size_t tguiListView_addColumn(tguiWidget* thisWidget, tguiUtf32 text, float width, tguiHorizontalAlignment columnAlignment) { - return DOWNCAST(widget->This)->addColumn(ctgui::toCppStr(text), width, static_cast(columnAlignment)); + return DOWNCAST(thisWidget->This)->addColumn(ctgui::toCppStr(text), width, static_cast(columnAlignment)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setColumnText(tguiWidget* widget, size_t index, tguiUtf32 text) +void tguiListView_setColumnText(tguiWidget* thisWidget, size_t index, tguiUtf32 text) { - DOWNCAST(widget->This)->setColumnText(index, ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setColumnText(index, ctgui::toCppStr(text)); } -tguiUtf32 tguiListView_getColumnText(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiListView_getColumnText(const tguiWidget* thisWidget, size_t index) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getColumnText(index)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getColumnText(index)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setColumnWidth(tguiWidget* widget, size_t index, float width) +void tguiListView_setColumnWidth(tguiWidget* thisWidget, size_t index, float width) { - DOWNCAST(widget->This)->setColumnWidth(index, width); + DOWNCAST(thisWidget->This)->setColumnWidth(index, width); } -float tguiListView_getColumnWidth(tguiWidget* widget, size_t index) -{ - return DOWNCAST(widget->This)->getColumnWidth(index); -} +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -float tguiListView_getColumnDesignWidth(tguiWidget* widget, size_t index) +float tguiListView_getColumnWidth(const tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->getColumnDesignWidth(index); + return DOWNCAST(thisWidget->This)->getColumnWidth(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setColumnAlignment(tguiWidget* widget, size_t index, tguiHorizontalAlignment columnAlignment) +float tguiListView_getColumnDesignWidth(const tguiWidget* thisWidget, size_t index) { - DOWNCAST(widget->This)->setColumnAlignment(index, static_cast(columnAlignment)); + return DOWNCAST(thisWidget->This)->getColumnDesignWidth(index); } -tguiHorizontalAlignment tguiListView_getColumnAlignment(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_setColumnAlignment(tguiWidget* thisWidget, size_t index, tguiHorizontalAlignment columnAlignment) { - return static_cast(DOWNCAST(widget->This)->getColumnAlignment(index)); + DOWNCAST(thisWidget->This)->setColumnAlignment(index, static_cast(columnAlignment)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setColumnAutoResize(tguiWidget* widget, size_t index, tguiBool autoResize) +tguiHorizontalAlignment tguiListView_getColumnAlignment(const tguiWidget* thisWidget, size_t index) { - DOWNCAST(widget->This)->setColumnAutoResize(index, autoResize != 0); + return static_cast(DOWNCAST(thisWidget->This)->getColumnAlignment(index)); } -tguiBool tguiListView_getColumnAutoResize(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_setColumnAutoResize(tguiWidget* thisWidget, size_t index, tguiBool autoResize) { - return DOWNCAST(widget->This)->getColumnAutoResize(index); + DOWNCAST(thisWidget->This)->setColumnAutoResize(index, autoResize != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setColumnExpanded(tguiWidget* widget, size_t index, tguiBool expand) +tguiBool tguiListView_getColumnAutoResize(const tguiWidget* thisWidget, size_t index) { - DOWNCAST(widget->This)->setColumnExpanded(index, expand != 0); + return DOWNCAST(thisWidget->This)->getColumnAutoResize(index); } -tguiBool tguiListView_getColumnExpanded(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_setColumnExpanded(tguiWidget* thisWidget, size_t index, tguiBool expand) { - return DOWNCAST(widget->This)->getColumnExpanded(index); + DOWNCAST(thisWidget->This)->setColumnExpanded(index, expand != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_removeAllColumns(tguiWidget* widget) +tguiBool tguiListView_getColumnExpanded(const tguiWidget* thisWidget, size_t index) { - DOWNCAST(widget->This)->removeAllColumns(); + return DOWNCAST(thisWidget->This)->getColumnExpanded(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiListView_getColumnCount(const tguiWidget* widget) +void tguiListView_removeAllColumns(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getColumnCount(); + DOWNCAST(thisWidget->This)->removeAllColumns(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setHeaderHeight(tguiWidget* widget, float height) +size_t tguiListView_getColumnCount(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->setHeaderHeight(height); + return DOWNCAST(thisWidget->This)->getColumnCount(); } -float tguiListView_getHeaderHeight(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_setHeaderVisible(tguiWidget* thisWidget, tguiBool value) { - return DOWNCAST(widget->This)->getHeaderHeight(); + DOWNCAST(thisWidget->This)->setHeaderVisible(value != 0); } -float tguiListView_getCurrentHeaderHeight(tguiWidget* widget) +tguiBool tguiListView_getHeaderVisible(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getCurrentHeaderHeight(); + return DOWNCAST(thisWidget->This)->getHeaderVisible(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setHeaderVisible(tguiWidget* widget, tguiBool showHeader) +void tguiListView_setHeaderHeight(tguiWidget* thisWidget, float value) +{ + DOWNCAST(thisWidget->This)->setHeaderHeight(value); +} + +float tguiListView_getHeaderHeight(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->setHeaderVisible(showHeader != 0); + return DOWNCAST(thisWidget->This)->getHeaderHeight(); } -tguiBool tguiListView_getHeaderVisible(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +float tguiListView_getCurrentHeaderHeight(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getHeaderVisible(); + return DOWNCAST(thisWidget->This)->getCurrentHeaderHeight(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiListView_addItem(tguiWidget* widget, tguiUtf32 text) +size_t tguiListView_addItem(tguiWidget* thisWidget, tguiUtf32 text) { - return DOWNCAST(widget->This)->addItem(ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->addItem(ctgui::toCppStr(text)); } -size_t tguiListView_addItemRow(tguiWidget* widget, const tguiUtf32* item, unsigned int itemLength) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiListView_addItemRow(tguiWidget* thisWidget, const tguiUtf32* item, size_t itemLength) { std::vector convertedItem; convertedItem.reserve(itemLength); - for (unsigned int i = 0; i < itemLength; ++i) + for (size_t i = 0; i < itemLength; ++i) convertedItem.push_back(ctgui::toCppStr(item[i])); - return DOWNCAST(widget->This)->addItem(std::move(convertedItem)); + return DOWNCAST(thisWidget->This)->addItem(std::move(convertedItem)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_insertItem(tguiWidget* widget, size_t index, tguiUtf32 text) +void tguiListView_insertItem(tguiWidget* thisWidget, size_t index, tguiUtf32 text) { - DOWNCAST(widget->This)->insertItem(index, ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->insertItem(index, ctgui::toCppStr(text)); } -void tguiListView_insertItemRow(tguiWidget* widget, size_t index, const tguiUtf32* item, unsigned int itemLength) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_insertItemRow(tguiWidget* thisWidget, size_t index, const tguiUtf32* item, size_t itemLength) { std::vector convertedItem; convertedItem.reserve(itemLength); - for (unsigned int i = 0; i < itemLength; ++i) + for (size_t i = 0; i < itemLength; ++i) convertedItem.push_back(ctgui::toCppStr(item[i])); - DOWNCAST(widget->This)->insertItem(index, std::move(convertedItem)); + DOWNCAST(thisWidget->This)->insertItem(index, std::move(convertedItem)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiListView_changeItem(tguiWidget* widget, size_t index, const tguiUtf32* item, unsigned int itemLength) +tguiBool tguiListView_changeItem(tguiWidget* thisWidget, size_t index, const tguiUtf32* item, size_t itemLength) { std::vector convertedItem; convertedItem.reserve(itemLength); - for (unsigned int i = 0; i < itemLength; ++i) + for (size_t i = 0; i < itemLength; ++i) convertedItem.push_back(ctgui::toCppStr(item[i])); - return DOWNCAST(widget->This)->changeItem(index, std::move(convertedItem)); + return DOWNCAST(thisWidget->This)->changeItem(index, std::move(convertedItem)); } -tguiBool tguiListView_changeSubItem(tguiWidget* widget, size_t index, size_t column, tguiUtf32 text) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiListView_changeSubItem(tguiWidget* thisWidget, size_t index, size_t column, tguiUtf32 text) { - return DOWNCAST(widget->This)->changeSubItem(index, column, ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->changeSubItem(index, column, ctgui::toCppStr(text)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiListView_removeItem(tguiWidget* widget, size_t index) +tguiBool tguiListView_removeItem(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->removeItem(index); + return DOWNCAST(thisWidget->This)->removeItem(index); } -void tguiListView_removeAllItems(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_removeAllItems(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->removeAllItems(); + DOWNCAST(thisWidget->This)->removeAllItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setSelectedItem(tguiWidget* widget, size_t index) +void tguiListView_setSelectedItem(tguiWidget* thisWidget, size_t index) { - DOWNCAST(widget->This)->setSelectedItem(index); + DOWNCAST(thisWidget->This)->setSelectedItem(index); } -void tguiListView_setSelectedItems(tguiWidget* widget, const size_t* indices, unsigned int indicesLength) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_setSelectedItems(tguiWidget* thisWidget, const size_t* indices, size_t indicesLength) { std::set convertedIndices; - for (unsigned int i = 0; i < indicesLength; ++i) + for (size_t i = 0; i < indicesLength; ++i) convertedIndices.insert(indices[i]); - return DOWNCAST(widget->This)->setSelectedItems(std::move(convertedIndices)); + DOWNCAST(thisWidget->This)->setSelectedItems(std::move(convertedIndices)); } -int tguiListView_getSelectedItemIndex(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +int tguiListView_getSelectedItemIndex(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSelectedItemIndex(); + return DOWNCAST(thisWidget->This)->getSelectedItemIndex(); } -const size_t* tguiListView_getSelectedItemIndices(const tguiWidget* widget, size_t* count) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const size_t* tguiListView_getSelectedItemIndices(const tguiWidget* thisWidget, size_t* returnCount) { - const auto& indices = DOWNCAST(widget->This)->getSelectedItemIndices(); + const auto& indices = DOWNCAST(thisWidget->This)->getSelectedItemIndices(); static std::vector cIndices; + cIndices.clear(); cIndices.reserve(indices.size()); for (size_t index : indices) - cIndices.push_back(index); + cIndices.emplace_back(index); - *count = cIndices.size(); - return cIndices.data(); +*returnCount = cIndices.size(); +return cIndices.data(); } -void tguiListView_deselectItems(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiListView_deselectItems(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->deselectItems(); + DOWNCAST(thisWidget->This)->deselectItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setMultiSelect(tguiWidget* widget, tguiBool multiSelect) +void tguiListView_setMultiSelect(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setMultiSelect(multiSelect != 0); + DOWNCAST(thisWidget->This)->setMultiSelect(value != 0); } -tguiBool tguiListView_getMultiSelect(const tguiWidget* widget) +tguiBool tguiListView_getMultiSelect(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMultiSelect(); + return DOWNCAST(thisWidget->This)->getMultiSelect(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setItemData(tguiWidget* widget, size_t index, void* data) +void tguiListView_setItemData(tguiWidget* thisWidget, size_t index, void* data) { - DOWNCAST(widget->This)->setItemData(index, data); + DOWNCAST(thisWidget->This)->setItemData(index, data); } -void* tguiListView_getItemData(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void* tguiListView_getItemData(const tguiWidget* thisWidget, size_t index) { try { - return DOWNCAST(widget->This)->getItemData(index); + // User data will be of type void* when it was set in the C binding + return DOWNCAST(thisWidget->This)->getItemData(index); } catch (const std::bad_cast&) { - return nullptr; + try + { + // User data will be of type tgui::String when it was set by loading the widget from a form + return const_cast(static_cast(ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItemData(index)))); + } + catch (const std::bad_cast&) + { + return nullptr; + } } + } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setItemIcon(tguiWidget* widget, size_t index, tguiTexture* texture) +void tguiListView_setItemIcon(tguiWidget* thisWidget, size_t index, const tguiTexture* texture) { - DOWNCAST(widget->This)->setItemIcon(index, *texture->This); + DOWNCAST(thisWidget->This)->setItemIcon(index, *texture->This); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiListView_getItemCount(const tguiWidget* widget) +size_t tguiListView_getItemCount(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getItemCount(); + return DOWNCAST(thisWidget->This)->getItemCount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiUtf32 tguiListView_getItem(tguiWidget* widget, size_t index) +tguiUtf32 tguiListView_getItem(tguiWidget* thisWidget, size_t index) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getItem(index)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItem(index)); } -tguiUtf32 tguiListView_getItemCell(tguiWidget* widget, size_t rowIndex, size_t columnIndex) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiListView_getItemCell(tguiWidget* thisWidget, size_t rowIndex, size_t columnIndex) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getItemCell(rowIndex, columnIndex)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getItemCell(rowIndex, columnIndex)); } -const tguiUtf32* tguiListView_getItemRow(const tguiWidget* widget, size_t index, size_t* count) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiListView_getItemRow(tguiWidget* thisWidget, size_t index, size_t* returnCount) { - static std::vector cppItems; - cppItems = DOWNCAST(widget->This)->getItemRow(index); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItemRow(index); - static std::vector cItems; - cItems.clear(); - cItems.reserve(cppItems.size()); - for (const auto& item : cppItems) - cItems.emplace_back(reinterpret_cast(item.c_str())); + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); - *count = cItems.size(); - return cItems.data(); +*returnCount = cStrings.size(); +return cStrings.data(); } -const tguiUtf32* tguiListView_getItems(const tguiWidget* widget, size_t* count) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiListView_getItems(const tguiWidget* thisWidget, size_t* returnCount) { - static std::vector cppItems; - cppItems = DOWNCAST(widget->This)->getItems(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItems(); - static std::vector cItems; - cItems.clear(); - cItems.reserve(cppItems.size()); - for (const auto& item : cppItems) - cItems.emplace_back(reinterpret_cast(item.c_str())); + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); - *count = cItems.size(); - return cItems.data(); +*returnCount = cStrings.size(); +return cStrings.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setItemHeight(tguiWidget* widget, unsigned int height) +void tguiListView_setItemHeight(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setItemHeight(height); + DOWNCAST(thisWidget->This)->setItemHeight(value); } -unsigned int tguiListView_getItemHeight(const tguiWidget* widget) +unsigned int tguiListView_getItemHeight(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getItemHeight(); + return DOWNCAST(thisWidget->This)->getItemHeight(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setHeaderTextSize(tguiWidget* widget, unsigned int size) +void tguiListView_setHeaderTextSize(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setHeaderTextSize(size); + DOWNCAST(thisWidget->This)->setHeaderTextSize(value); } -unsigned int tguiListView_getHeaderTextSize(const tguiWidget* widget) +unsigned int tguiListView_getHeaderTextSize(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getHeaderTextSize(); + return DOWNCAST(thisWidget->This)->getHeaderTextSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setSeparatorWidth(tguiWidget* widget, unsigned int width) +void tguiListView_setSeparatorWidth(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setSeparatorWidth(width); + DOWNCAST(thisWidget->This)->setSeparatorWidth(value); } -unsigned int tguiListView_getSeparatorWidth(const tguiWidget* widget) +unsigned int tguiListView_getSeparatorWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSeparatorWidth(); + return DOWNCAST(thisWidget->This)->getSeparatorWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setHeaderSeparatorHeight(tguiWidget* widget, unsigned int height) +void tguiListView_setHeaderSeparatorHeight(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setHeaderSeparatorHeight(height); + DOWNCAST(thisWidget->This)->setHeaderSeparatorHeight(value); } -unsigned int tguiListView_getHeaderSeparatorHeight(const tguiWidget* widget) +unsigned int tguiListView_getHeaderSeparatorHeight(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getHeaderSeparatorHeight(); + return DOWNCAST(thisWidget->This)->getHeaderSeparatorHeight(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setGridLinesWidth(tguiWidget* widget, unsigned int width) +void tguiListView_setGridLinesWidth(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setGridLinesWidth(width); + DOWNCAST(thisWidget->This)->setGridLinesWidth(value); } -unsigned int tguiListView_getGridLinesWidth(const tguiWidget* widget) +unsigned int tguiListView_getGridLinesWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getGridLinesWidth(); + return DOWNCAST(thisWidget->This)->getGridLinesWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setAutoScroll(tguiWidget* widget, tguiBool autoScroll) +void tguiListView_setAutoScroll(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setAutoScroll(autoScroll != 0); + DOWNCAST(thisWidget->This)->setAutoScroll(value != 0); } -tguiBool tguiListView_getAutoScroll(const tguiWidget* widget) +tguiBool tguiListView_getAutoScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getAutoScroll(); + return DOWNCAST(thisWidget->This)->getAutoScroll(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setShowVerticalGridLines(tguiWidget* widget, tguiBool showGridLines) +void tguiListView_setShowVerticalGridLines(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setShowVerticalGridLines(showGridLines != 0); + DOWNCAST(thisWidget->This)->setShowVerticalGridLines(value != 0); } -tguiBool tguiListView_getShowVerticalGridLines(const tguiWidget* widget) +tguiBool tguiListView_getShowVerticalGridLines(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getShowVerticalGridLines(); + return DOWNCAST(thisWidget->This)->getShowVerticalGridLines(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setShowHorizontalGridLines(tguiWidget* widget, tguiBool showGridLines) +void tguiListView_setShowHorizontalGridLines(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setShowHorizontalGridLines(showGridLines != 0); + DOWNCAST(thisWidget->This)->setShowHorizontalGridLines(value != 0); } -tguiBool tguiListView_getShowHorizontalGridLines(const tguiWidget* widget) +tguiBool tguiListView_getShowHorizontalGridLines(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getShowHorizontalGridLines(); + return DOWNCAST(thisWidget->This)->getShowHorizontalGridLines(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setVerticalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiListView_setVerticalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setVerticalScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setVerticalScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiListView_getVerticalScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiListView_getVerticalScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getVerticalScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getVerticalScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setHorizontalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiListView_setHorizontalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setHorizontalScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setHorizontalScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiListView_getHorizontalScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiListView_getHorizontalScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getHorizontalScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getHorizontalScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiListView_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setVerticalScrollbarValue(value); + DOWNCAST(thisWidget->This)->setVerticalScrollbarValue(value); } -unsigned int tguiListView_getVerticalScrollbarValue(const tguiWidget* widget) +unsigned int tguiListView_getVerticalScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScrollbarValue(); + return DOWNCAST(thisWidget->This)->getVerticalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiListView_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setHorizontalScrollbarValue(value); + DOWNCAST(thisWidget->This)->setHorizontalScrollbarValue(value); } -unsigned int tguiListView_getHorizontalScrollbarValue(const tguiWidget* widget) +unsigned int tguiListView_getHorizontalScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getHorizontalScrollbarValue(); + return DOWNCAST(thisWidget->This)->getHorizontalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_sort(tguiWidget* widget, size_t index, tguiBool (*comp)(tguiUtf32, tguiUtf32)) +void tguiListView_setFixedIconSize(tguiWidget* thisWidget, tguiVector2f value) { - DOWNCAST(widget->This)->sort(index, [&comp](const tgui::String& str1, const tgui::String& str2){ - return comp(reinterpret_cast(str1.c_str()), reinterpret_cast(str2.c_str())) != 0; - }); + DOWNCAST(thisWidget->This)->setFixedIconSize({value.x, value.y}); +} + +tguiVector2f tguiListView_getFixedIconSize(const tguiWidget* thisWidget) +{ + const tgui::Vector2f value = DOWNCAST(thisWidget->This)->getFixedIconSize(); + return {value.x, value.y}; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setFixedIconSize(tguiWidget* widget, tguiVector2f iconSize) +void tguiListView_setResizableColumns(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setFixedIconSize({iconSize.x, iconSize.y}); + DOWNCAST(thisWidget->This)->setResizableColumns(value != 0); } -tguiVector2f tguiListView_getFixedIconSize(const tguiWidget* widget) +tguiBool tguiListView_getResizableColumns(const tguiWidget* thisWidget) { - const tgui::Vector2f iconSize = DOWNCAST(widget->This)->getFixedIconSize(); - return {iconSize.x, iconSize.y}; + return DOWNCAST(thisWidget->This)->getResizableColumns(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiListView_setResizableColumns(tguiWidget* widget, tguiBool autoScroll) -{ - DOWNCAST(widget->This)->setResizableColumns(autoScroll != 0); -} - -tguiBool tguiListView_getResizableColumns(const tguiWidget* widget) +void tguiListView_sort(tguiWidget* widget, size_t index, tguiBool (*comp)(tguiUtf32, tguiUtf32)) { - return DOWNCAST(widget->This)->getResizableColumns(); + DOWNCAST(widget->This)->sort(index, [&comp](const tgui::String& str1, const tgui::String& str2){ + return comp(reinterpret_cast(str1.c_str()), reinterpret_cast(str2.c_str())) != 0; + }); } diff --git a/src/CTGUI/Widgets/MenuBar.cpp b/src/CTGUI/Widgets/MenuBar.cpp index 375d8d9..30c29ed 100644 --- a/src/CTGUI/Widgets/MenuBar.cpp +++ b/src/CTGUI/Widgets/MenuBar.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,134 +16,189 @@ tguiWidget* tguiMenuBar_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBar_addMenu(tguiWidget* widget, tguiUtf32 text) +void tguiMenuBar_addMenu(tguiWidget* thisWidget, tguiUtf32 text) { - DOWNCAST(widget->This)->addMenu(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->addMenu(ctgui::toCppStr(text)); } -tguiBool tguiMenuBar_addMenuItem(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 text) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_addMenuItem(tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 text) { - return DOWNCAST(widget->This)->addMenuItem(ctgui::toCppStr(menu), ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->addMenuItem(ctgui::toCppStr(menu), ctgui::toCppStr(text)); } -tguiBool tguiMenuBar_addMenuItemToLastMenu(tguiWidget* widget, tguiUtf32 text) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_addMenuItemToLastMenu(tguiWidget* thisWidget, tguiUtf32 text) { - return DOWNCAST(widget->This)->addMenuItem(ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->addMenuItem(ctgui::toCppStr(text)); } -tguiBool tguiMenuBar_addMenuItemHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool createParents) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_addMenuItemHierarchy(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool createParents) { std::vector convertedHierarchy; convertedHierarchy.reserve(hierarchyLength); - for (unsigned int i = 0; i < hierarchyLength; ++i) + for (size_t i = 0; i < hierarchyLength; ++i) convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); - return DOWNCAST(widget->This)->addMenuItem(std::move(convertedHierarchy), createParents != 0); + return DOWNCAST(thisWidget->This)->addMenuItem(std::move(convertedHierarchy), createParents != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiMenuBar_changeMenuItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiUtf32 text) +tguiBool tguiMenuBar_changeMenuItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiUtf32 text) { std::vector convertedHierarchy; convertedHierarchy.reserve(hierarchyLength); - for (unsigned int i = 0; i < hierarchyLength; ++i) + for (size_t i = 0; i < hierarchyLength; ++i) convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); - return DOWNCAST(widget->This)->changeMenuItem(std::move(convertedHierarchy), ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->changeMenuItem(std::move(convertedHierarchy), ctgui::toCppStr(text)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiMenuBar_removeMenu(tguiWidget* widget, tguiUtf32 menu) +tguiBool tguiMenuBar_removeMenu(tguiWidget* thisWidget, tguiUtf32 menu) { - return DOWNCAST(widget->This)->removeMenu(ctgui::toCppStr(menu)); + return DOWNCAST(thisWidget->This)->removeMenu(ctgui::toCppStr(menu)); } -tguiBool tguiMenuBar_removeMenuItem(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 menuItem) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_removeMenuItem(tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 menuItem) { - return DOWNCAST(widget->This)->removeMenuItem(ctgui::toCppStr(menu), ctgui::toCppStr(menuItem)); + return DOWNCAST(thisWidget->This)->removeMenuItem(ctgui::toCppStr(menu), ctgui::toCppStr(menuItem)); } -tguiBool tguiMenuBar_removeMenuItemHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool removeParentsWhenEmpty) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_removeMenuItemHierarchy(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool removeParentsWhenEmpty) { std::vector convertedHierarchy; convertedHierarchy.reserve(hierarchyLength); - for (unsigned int i = 0; i < hierarchyLength; ++i) + for (size_t i = 0; i < hierarchyLength; ++i) convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); - return DOWNCAST(widget->This)->addMenuItem(convertedHierarchy, removeParentsWhenEmpty != 0); + return DOWNCAST(thisWidget->This)->removeMenuItem(std::move(convertedHierarchy), removeParentsWhenEmpty != 0); } -void tguiMenuBar_removeAllMenus(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiMenuBar_removeAllMenus(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->removeAllMenus(); + DOWNCAST(thisWidget->This)->removeAllMenus(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiMenuBar_setMenuEnabled(tguiWidget* widget, tguiUtf32 menu, tguiBool enabled) +tguiBool tguiMenuBar_setMenuEnabled(tguiWidget* thisWidget, tguiUtf32 text, tguiBool enabled) { - return DOWNCAST(widget->This)->setMenuEnabled(ctgui::toCppStr(menu), enabled != 0); + return DOWNCAST(thisWidget->This)->setMenuEnabled(ctgui::toCppStr(text), enabled != 0); } -tguiBool tguiMenuBar_getMenuEnabled(tguiWidget* widget, tguiUtf32 menu) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_getMenuEnabled(const tguiWidget* thisWidget, tguiUtf32 text) { - return DOWNCAST(widget->This)->getMenuEnabled(ctgui::toCppStr(menu)); + return DOWNCAST(thisWidget->This)->getMenuEnabled(ctgui::toCppStr(text)); } -tguiBool tguiMenuBar_setMenuItemEnabled(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 menuItem, tguiBool enabled) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_setMenuItemEnabled(tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 text, tguiBool enabled) { - return DOWNCAST(widget->This)->setMenuItemEnabled(ctgui::toCppStr(menu), ctgui::toCppStr(menuItem), enabled != 0); + return DOWNCAST(thisWidget->This)->setMenuItemEnabled(ctgui::toCppStr(menu), ctgui::toCppStr(text), enabled != 0); } -tguiBool tguiMenuBar_getMenuItemEnabled(tguiWidget* widget, tguiUtf32 menu, tguiUtf32 menuItem) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_getMenuItemEnabled(const tguiWidget* thisWidget, tguiUtf32 menu, tguiUtf32 text) { - return DOWNCAST(widget->This)->getMenuItemEnabled(ctgui::toCppStr(menu), ctgui::toCppStr(menuItem)); + return DOWNCAST(thisWidget->This)->getMenuItemEnabled(ctgui::toCppStr(menu), ctgui::toCppStr(text)); } -tguiBool tguiMenuBar_setMenuItemEnabledHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool enabled) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_setMenuItemEnabledHierarchy(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool enabled) { std::vector convertedHierarchy; convertedHierarchy.reserve(hierarchyLength); - for (unsigned int i = 0; i < hierarchyLength; ++i) + for (size_t i = 0; i < hierarchyLength; ++i) convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); - return DOWNCAST(widget->This)->setMenuItemEnabled(convertedHierarchy, enabled != 0); + return DOWNCAST(thisWidget->This)->setMenuItemEnabled(std::move(convertedHierarchy), enabled != 0); } -tguiBool tguiMenuBar_getMenuItemEnabledHierarchy(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiMenuBar_getMenuItemEnabledHierarchy(const tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength) { std::vector convertedHierarchy; convertedHierarchy.reserve(hierarchyLength); - for (unsigned int i = 0; i < hierarchyLength; ++i) + for (size_t i = 0; i < hierarchyLength; ++i) convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); - return DOWNCAST(widget->This)->getMenuItemEnabled(convertedHierarchy); + return DOWNCAST(thisWidget->This)->getMenuItemEnabled(std::move(convertedHierarchy)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBar_setMinimumSubMenuWidth(tguiWidget* widget, float minimumWidth) +void tguiMenuBar_closeMenu(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->setMinimumSubMenuWidth(minimumWidth); + DOWNCAST(thisWidget->This)->closeMenu(); } -float tguiMenuBar_getMinimumSubMenuWidth(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiMenuBar_setMinimumSubMenuWidth(tguiWidget* thisWidget, float value) { - return DOWNCAST(widget->This)->getMinimumSubMenuWidth(); + DOWNCAST(thisWidget->This)->setMinimumSubMenuWidth(value); +} + +float tguiMenuBar_getMinimumSubMenuWidth(const tguiWidget* thisWidget) +{ + return DOWNCAST(thisWidget->This)->getMinimumSubMenuWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMenuBar_setInvertedMenuDirection(tguiWidget* widget, tguiBool invertDirection) +void tguiMenuBar_setInvertedMenuDirection(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setInvertedMenuDirection(invertDirection != 0); + DOWNCAST(thisWidget->This)->setInvertedMenuDirection(value != 0); } -tguiBool tguiMenuBar_getInvertedMenuDirection(const tguiWidget* widget) +tguiBool tguiMenuBar_getInvertedMenuDirection(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getInvertedMenuDirection(); + return DOWNCAST(thisWidget->This)->getInvertedMenuDirection(); +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +static void freeMenuItem(tguiMenuBarElement& menu) +{ + if (menu.menuItemsCount == 0) + return; + + for (size_t i = 0; i < menu.menuItemsCount; ++i) + freeMenuItem(menu.menuItems[i]); + + delete[] menu.menuItems; +} + +void tguiMenuBarMenuList_free(tguiMenuBarMenuList* menuList) +{ + if (menuList->menusCount > 0) + { + for (size_t i = 0; i < menuList->menusCount; ++i) + freeMenuItem(menuList->menus[i]); + + delete[] menuList->menus; + } + + delete menuList; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -205,36 +237,3 @@ tguiMenuBarMenuList* tguiMenuBar_getMenus(tguiWidget* widget) return menuList; } - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiMenuBar_closeMenu(tguiWidget* widget) -{ - DOWNCAST(widget->This)->closeMenu(); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -static void freeMenuItem(tguiMenuBarElement& menu) -{ - if (menu.menuItemsCount == 0) - return; - - for (size_t i = 0; i < menu.menuItemsCount; ++i) - freeMenuItem(menu.menuItems[i]); - - delete[] menu.menuItems; -} - -void tguiMenuBarMenuList_free(tguiMenuBarMenuList* menuList) -{ - if (menuList->menusCount > 0) - { - for (size_t i = 0; i < menuList->menusCount; ++i) - freeMenuItem(menuList->menus[i]); - - delete[] menuList->menus; - } - - delete menuList; -} diff --git a/src/CTGUI/Widgets/MessageBox.cpp b/src/CTGUI/Widgets/MessageBox.cpp index 5aa18fb..3bc90b0 100644 --- a/src/CTGUI/Widgets/MessageBox.cpp +++ b/src/CTGUI/Widgets/MessageBox.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,63 +16,74 @@ tguiWidget* tguiMessageBox_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMessageBox_setText(tguiWidget* widget, tguiUtf32 text) +void tguiMessageBox_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -tguiUtf32 tguiMessageBox_getText(const tguiWidget* widget) +tguiUtf32 tguiMessageBox_getText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMessageBox_addButton(tguiWidget* widget, tguiUtf32 text) +void tguiMessageBox_addButton(tguiWidget* thisWidget, tguiUtf32 text) { - DOWNCAST(widget->This)->addButton(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->addButton(ctgui::toCppStr(text)); } -void tguiMessageBox_removeButtons(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiMessageBox_changeButtons(tguiWidget* thisWidget, const tguiUtf32* buttonCaptions, size_t buttonCaptionsLength) { - DOWNCAST(widget->This)->changeButtons({}); + std::vector convertedButtoncaptions; + convertedButtoncaptions.reserve(buttonCaptionsLength); + for (size_t i = 0; i < buttonCaptionsLength; ++i) + convertedButtoncaptions.push_back(ctgui::toCppStr(buttonCaptions[i])); + + DOWNCAST(thisWidget->This)->changeButtons(std::move(convertedButtoncaptions)); } -const tguiUtf32* tguiMessageBox_getButtons(const tguiWidget* widget, size_t* count) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiMessageBox_getButtons(tguiWidget* thisWidget, size_t* returnCount) { - static std::vector cppItems; - cppItems = DOWNCAST(widget->This)->getButtons(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getButtons(); - static std::vector cItems; - cItems.clear(); - cItems.reserve(cppItems.size()); - for (const auto& item : cppItems) - cItems.emplace_back(reinterpret_cast(item.c_str())); + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); - *count = cItems.size(); - return cItems.data(); +*returnCount = cStrings.size(); +return cStrings.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMessageBox_setLabelAlignment(tguiWidget* widget, tguiHorizontalAlignment labelAlignment) +void tguiMessageBox_setLabelAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - DOWNCAST(widget->This)->setLabelAlignment(static_cast(labelAlignment)); + DOWNCAST(thisWidget->This)->setLabelAlignment(static_cast(value)); } -tguiHorizontalAlignment tguiMessageBox_getLabelAlignment(const tguiWidget* widget) +tguiHorizontalAlignment tguiMessageBox_getLabelAlignment(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getLabelAlignment()); + return static_cast(DOWNCAST(thisWidget->This)->getLabelAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiMessageBox_setButtonAlignment(tguiWidget* widget, tguiHorizontalAlignment buttonAlignment) +void tguiMessageBox_setButtonAlignment(tguiWidget* thisWidget, tguiHorizontalAlignment value) { - DOWNCAST(widget->This)->setButtonAlignment(static_cast(buttonAlignment)); + DOWNCAST(thisWidget->This)->setButtonAlignment(static_cast(value)); } -tguiHorizontalAlignment tguiMessageBox_getButtonAlignment(const tguiWidget* widget) +tguiHorizontalAlignment tguiMessageBox_getButtonAlignment(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getButtonAlignment()); + return static_cast(DOWNCAST(thisWidget->This)->getButtonAlignment()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/Panel.cpp b/src/CTGUI/Widgets/Panel.cpp index 235d43f..18537cc 100644 --- a/src/CTGUI/Widgets/Panel.cpp +++ b/src/CTGUI/Widgets/Panel.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -30,7 +7,11 @@ #define DOWNCAST(x) std::static_pointer_cast(x) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiPanel_create(void) { return ctgui::addWidgetRef(tgui::Panel::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/PanelListBox.cpp b/src/CTGUI/Widgets/PanelListBox.cpp index effc643..f147177 100644 --- a/src/CTGUI/Widgets/PanelListBox.cpp +++ b/src/CTGUI/Widgets/PanelListBox.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -40,138 +17,192 @@ tguiWidget* tguiPanelListBox_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiPanelListBox_addItem(tguiWidget* widget, tguiUtf32 id) +void tguiPanelListBox_deselectItem(tguiWidget* thisWidget) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->addItem(ctgui::toCppStr(id))); + DOWNCAST(thisWidget->This)->deselectItem(); } -tguiWidget* tguiPanelListBox_addItemAtIndex(tguiWidget* widget, tguiUtf32 id, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiPanelListBox_removeAllItems(tguiWidget* thisWidget) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->addItem(ctgui::toCppStr(id), static_cast(index))); + DOWNCAST(thisWidget->This)->removeAllItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiPanelListBox_getPanelTemplate(tguiWidget* widget) +tguiBool tguiPanelListBox_setSelectedItemById(tguiWidget* thisWidget, tguiUtf32 id) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getPanelTemplate()); + return DOWNCAST(thisWidget->This)->setSelectedItemById(ctgui::toCppStr(id)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiLayout* tguiPanelListBox_getItemsWidth(const tguiWidget* widget) +tguiBool tguiPanelListBox_setSelectedItemByIndex(tguiWidget* thisWidget, size_t index) { - return new tguiLayout(DOWNCAST(widget->This)->getItemsWidth()); + return DOWNCAST(thisWidget->This)->setSelectedItemByIndex(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiPanelListBox_setItemsHeight(tguiWidget* widget, const tguiLayout* height) +tguiBool tguiPanelListBox_removeItemById(tguiWidget* thisWidget, tguiUtf32 id) { - DOWNCAST(widget->This)->setItemsHeight(height->This); + return DOWNCAST(thisWidget->This)->removeItemById(ctgui::toCppStr(id)); } -tguiLayout* tguiPanelListBox_getItemsHeight(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiPanelListBox_removeItemByIndex(tguiWidget* thisWidget, size_t index) { - return new tguiLayout(DOWNCAST(widget->This)->getItemsHeight()); + return DOWNCAST(thisWidget->This)->removeItemByIndex(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiPanelListBox_setSelectedItem(tguiWidget* widget, const tguiWidget* panelPtr) +tguiUtf32 tguiPanelListBox_getSelectedItemId(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->setSelectedItem(panelPtr->This->cast()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedItemId()); } -tguiBool tguiPanelListBox_setSelectedItemById(tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +int tguiPanelListBox_getSelectedItemIndex(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->setSelectedItemById(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->getSelectedItemIndex(); } -tguiBool tguiPanelListBox_setSelectedItemByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiPanelListBox_getItemCount(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->setSelectedItemByIndex(index); + return DOWNCAST(thisWidget->This)->getItemCount(); } -void tguiPanelListBox_deselectItem(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiUtf32* tguiPanelListBox_getItemIds(const tguiWidget* thisWidget, size_t* returnCount) { - DOWNCAST(widget->This)->deselectItem(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getItemIds(); + + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); + +*returnCount = cStrings.size(); +return cStrings.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiPanelListBox_removeItem(tguiWidget* widget, const tguiWidget* panelPtr) +void tguiPanelListBox_setMaximumItems(tguiWidget* thisWidget, size_t value) { - return DOWNCAST(widget->This)->removeItem(panelPtr->This->cast()); + DOWNCAST(thisWidget->This)->setMaximumItems(value); } -tguiBool tguiPanelListBox_removeItemById(tguiWidget* widget, tguiUtf32 id) +size_t tguiPanelListBox_getMaximumItems(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->removeItemById(ctgui::toCppStr(id)); + return DOWNCAST(thisWidget->This)->getMaximumItems(); } -tguiBool tguiPanelListBox_removeItemByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiPanelListBox_containsId(tguiWidget* thisWidget, tguiUtf32 id) { - return DOWNCAST(widget->This)->removeItemByIndex(index); + return DOWNCAST(thisWidget->This)->containsId(ctgui::toCppStr(id)); } -void tguiPanelListBox_removeAllItems(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiLayout* tguiPanelListBox_getItemsWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->removeAllItems(); + return new tguiLayout(DOWNCAST(thisWidget->This)->getItemsWidth()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiPanelListBox_getItemById(const tguiWidget* widget, tguiUtf32 id) +void tguiPanelListBox_setItemsHeight(tguiWidget* thisWidget, const tguiLayout* height) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getItemById(ctgui::toCppStr(id))); + DOWNCAST(thisWidget->This)->setItemsHeight(height->This); } -tguiWidget* tguiPanelListBox_getItemByIndex(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const tguiLayout* tguiPanelListBox_getItemsHeight(const tguiWidget* thisWidget) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getItemByIndex(index)); + return new tguiLayout(DOWNCAST(thisWidget->This)->getItemsHeight()); } -int tguiPanelListBox_getIndexById(const tguiWidget* widget, tguiUtf32 id) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiPanelListBox_addItem(tguiWidget* widget, tguiUtf32 id) { - return DOWNCAST(widget->This)->getIndexById(ctgui::toCppStr(id)); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->addItem(ctgui::toCppStr(id))); } -int tguiPanelListBox_getIndexByItem(const tguiWidget* widget, const tguiWidget* panelPtr) - +tguiWidget* tguiPanelListBox_addItemAtIndex(tguiWidget* widget, tguiUtf32 id, size_t index) { - return DOWNCAST(widget->This)->getIndexByItem(panelPtr->This->cast()); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->addItem(ctgui::toCppStr(id), static_cast(index))); } -tguiUtf32 tguiPanelListBox_getIdByIndex(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiPanelListBox_getPanelTemplate(tguiWidget* widget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getIdByIndex(index)); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getPanelTemplate()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +tguiBool tguiPanelListBox_setSelectedItem(tguiWidget* widget, const tguiWidget* panelPtr) +{ + return DOWNCAST(widget->This)->setSelectedItem(panelPtr->This->cast()); +} + tguiWidget* tguiPanelListBox_getSelectedItem(const tguiWidget* widget) { return ctgui::addWidgetRef(DOWNCAST(widget->This)->getSelectedItem()); } -tguiUtf32 tguiPanelListBox_getSelectedItemId(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiPanelListBox_removeItem(tguiWidget* widget, const tguiWidget* panelPtr) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedItemId()); + return DOWNCAST(widget->This)->removeItem(panelPtr->This->cast()); } -int tguiPanelListBox_getSelectedItemIndex(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiPanelListBox_getItemById(const tguiWidget* widget, tguiUtf32 id) { - return DOWNCAST(widget->This)->getSelectedItemIndex(); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getItemById(ctgui::toCppStr(id))); } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +tguiWidget* tguiPanelListBox_getItemByIndex(const tguiWidget* widget, size_t index) +{ + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getItemByIndex(index)); +} + +int tguiPanelListBox_getIndexById(const tguiWidget* widget, tguiUtf32 id) +{ + return DOWNCAST(widget->This)->getIndexById(ctgui::toCppStr(id)); +} + +int tguiPanelListBox_getIndexByItem(const tguiWidget* widget, const tguiWidget* panelPtr) -size_t tguiPanelListBox_getItemCount(const tguiWidget* widget) { - return DOWNCAST(widget->This)->getItemCount(); + return DOWNCAST(widget->This)->getIndexByItem(panelPtr->This->cast()); +} + +tguiUtf32 tguiPanelListBox_getIdByIndex(const tguiWidget* widget, size_t index) +{ + return ctgui::fromCppStr(DOWNCAST(widget->This)->getIdByIndex(index)); } +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget** tguiPanelListBox_getItems(const tguiWidget* widget, size_t* count) { const auto& cppPanels = DOWNCAST(widget->This)->getItems(); @@ -186,41 +217,9 @@ tguiWidget** tguiPanelListBox_getItems(const tguiWidget* widget, size_t* count) return cPanels.data(); } -const tguiUtf32* tguiPanelListBox_getItemIds(const tguiWidget* widget, size_t* count) -{ - static std::vector cppIds; - cppIds = DOWNCAST(widget->This)->getItemIds(); - - static std::vector cIds; - cIds.clear(); - cIds.reserve(cppIds.size()); - for (const auto& id : cppIds) - cIds.emplace_back(reinterpret_cast(id.c_str())); - - *count = cIds.size(); - return cIds.data(); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiPanelListBox_setMaximumItems(tguiWidget* widget, size_t maximumItems) -{ - DOWNCAST(widget->This)->setMaximumItems(maximumItems); -} - -size_t tguiPanelListBox_getMaximumItems(const tguiWidget* widget) -{ - return DOWNCAST(widget->This)->getMaximumItems(); -} - ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// tguiBool tguiPanelListBox_contains(const tguiWidget* widget, const tguiWidget* panelPtr) { return DOWNCAST(widget->This)->contains(panelPtr->This->cast()); } - -tguiBool tguiPanelListBox_containsId(const tguiWidget* widget, tguiUtf32 id) -{ - return DOWNCAST(widget->This)->containsId(ctgui::toCppStr(id)); -} diff --git a/src/CTGUI/Widgets/Picture.cpp b/src/CTGUI/Widgets/Picture.cpp index 9a7be36..590683e 100644 --- a/src/CTGUI/Widgets/Picture.cpp +++ b/src/CTGUI/Widgets/Picture.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -38,13 +15,3 @@ tguiWidget* tguiPicture_create(void) } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiPicture_ignoreMouseEvents(tguiWidget* widget, tguiBool ignore) -{ - DOWNCAST(widget->This)->ignoreMouseEvents(ignore != 0); -} - -tguiBool tguiPicture_isIgnoringMouseEvents(const tguiWidget* widget) -{ - return DOWNCAST(widget->This)->isIgnoringMouseEvents(); -} diff --git a/src/CTGUI/Widgets/ProgressBar.cpp b/src/CTGUI/Widgets/ProgressBar.cpp index fe7b037..7c3b3dd 100644 --- a/src/CTGUI/Widgets/ProgressBar.cpp +++ b/src/CTGUI/Widgets/ProgressBar.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,67 +16,69 @@ tguiWidget* tguiProgressBar_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBar_setMinimum(tguiWidget* widget, unsigned int minimum) +void tguiProgressBar_setMinimum(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -unsigned int tguiProgressBar_getMinimum(const tguiWidget* widget) +unsigned int tguiProgressBar_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBar_setMaximum(tguiWidget* widget, unsigned int maximum) +void tguiProgressBar_setMaximum(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -unsigned int tguiProgressBar_getMaximum(const tguiWidget* widget) +unsigned int tguiProgressBar_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBar_setValue(tguiWidget* widget, unsigned int value) +void tguiProgressBar_setValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -unsigned int tguiProgressBar_getValue(const tguiWidget* widget) +unsigned int tguiProgressBar_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -unsigned int tguiProgressBar_incrementValue(const tguiWidget* widget) +unsigned int tguiProgressBar_incrementValue(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->incrementValue(); + return DOWNCAST(thisWidget->This)->incrementValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBar_setText(tguiWidget* widget, tguiUtf32 text) +void tguiProgressBar_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -tguiUtf32 tguiProgressBar_getText(const tguiWidget* widget) +tguiUtf32 tguiProgressBar_getText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiProgressBar_setFillDirection(tguiWidget* widget, tguiFillDirection fillDirection) +void tguiProgressBar_setFillDirection(tguiWidget* thisWidget, tguiProgressBarFillDirection value) { - DOWNCAST(widget->This)->setFillDirection(static_cast(fillDirection)); + DOWNCAST(thisWidget->This)->setFillDirection(static_cast(value)); } -tguiFillDirection tguiProgressBar_getFillDirection(const tguiWidget* widget) +tguiProgressBarFillDirection tguiProgressBar_getFillDirection(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getFillDirection()); + return static_cast(DOWNCAST(thisWidget->This)->getFillDirection()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/RadioButton.cpp b/src/CTGUI/Widgets/RadioButton.cpp index d89b804..60ba5ad 100644 --- a/src/CTGUI/Widgets/RadioButton.cpp +++ b/src/CTGUI/Widgets/RadioButton.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,36 +16,38 @@ tguiWidget* tguiRadioButton_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButton_setChecked(tguiWidget* widget, tguiBool checked) +void tguiRadioButton_setChecked(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setChecked(checked); + DOWNCAST(thisWidget->This)->setChecked(value != 0); } -tguiBool tguiRadioButton_isChecked(const tguiWidget* widget) +tguiBool tguiRadioButton_isChecked(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isChecked(); + return DOWNCAST(thisWidget->This)->isChecked(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButton_setText(tguiWidget* widget, tguiUtf32 text) +void tguiRadioButton_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -tguiUtf32 tguiRadioButton_getText(const tguiWidget* widget) +tguiUtf32 tguiRadioButton_getText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRadioButton_setTextClickable(tguiWidget* widget, tguiBool clickable) +void tguiRadioButton_setTextClickable(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setTextClickable(clickable != 0); + DOWNCAST(thisWidget->This)->setTextClickable(value != 0); } -tguiBool tguiRadioButton_isTextClickable(const tguiWidget* widget) +tguiBool tguiRadioButton_isTextClickable(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isTextClickable(); + return DOWNCAST(thisWidget->This)->isTextClickable(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/RadioButtonGroup.cpp b/src/CTGUI/Widgets/RadioButtonGroup.cpp index 1b793d2..b9d4dd3 100644 --- a/src/CTGUI/Widgets/RadioButtonGroup.cpp +++ b/src/CTGUI/Widgets/RadioButtonGroup.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -30,6 +7,8 @@ #define DOWNCAST(x) std::static_pointer_cast(x) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiRadioButtonGroup_create(void) { return ctgui::addWidgetRef(tgui::RadioButtonGroup::create()); @@ -37,14 +16,20 @@ tguiWidget* tguiRadioButtonGroup_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void uncheckRadioButtons(tguiWidget* widget) +void tguiRadioButtonGroup_uncheckRadioButtons(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->uncheckRadioButtons(); + DOWNCAST(thisWidget->This)->uncheckRadioButtons(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* getCheckedRadioButton(tguiWidget* widget) +tguiWidget* tguiRadioButtonGroup_getCheckedRadioButton(tguiWidget* thisWidget) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getCheckedRadioButton()); + tgui::Widget::Ptr widgetToReturn = DOWNCAST(thisWidget->This)->getCheckedRadioButton(); + if (widgetToReturn) + return new tguiWidget(widgetToReturn); + else + return nullptr; } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/RangeSlider.cpp b/src/CTGUI/Widgets/RangeSlider.cpp index 66c8daa..9123f02 100644 --- a/src/CTGUI/Widgets/RangeSlider.cpp +++ b/src/CTGUI/Widgets/RangeSlider.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,60 +16,62 @@ tguiWidget* tguiRangeSlider_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSlider_setMinimum(tguiWidget* widget, float minimum) +void tguiRangeSlider_setMinimum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -float tguiRangeSlider_getMinimum(const tguiWidget* widget) +float tguiRangeSlider_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSlider_setMaximum(tguiWidget* widget, float maximum) +void tguiRangeSlider_setMaximum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -float tguiRangeSlider_getMaximum(const tguiWidget* widget) +float tguiRangeSlider_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSlider_setSelectionStart(tguiWidget* widget, float value) +void tguiRangeSlider_setSelectionStart(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setSelectionStart(value); + DOWNCAST(thisWidget->This)->setSelectionStart(value); } -float tguiRangeSlider_getSelectionStart(const tguiWidget* widget) +float tguiRangeSlider_getSelectionStart(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSelectionStart(); + return DOWNCAST(thisWidget->This)->getSelectionStart(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSlider_setSelectionEnd(tguiWidget* widget, float value) +void tguiRangeSlider_setSelectionEnd(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setSelectionEnd(value); + DOWNCAST(thisWidget->This)->setSelectionEnd(value); } -float tguiRangeSlider_getSelectionEnd(const tguiWidget* widget) +float tguiRangeSlider_getSelectionEnd(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSelectionEnd(); + return DOWNCAST(thisWidget->This)->getSelectionEnd(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiRangeSlider_setStep(tguiWidget* widget, float step) +void tguiRangeSlider_setStep(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setStep(step); + DOWNCAST(thisWidget->This)->setStep(value); } -float tguiRangeSlider_getStep(const tguiWidget* widget) +float tguiRangeSlider_getStep(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getStep(); + return DOWNCAST(thisWidget->This)->getStep(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/RichTextLabel.cpp b/src/CTGUI/Widgets/RichTextLabel.cpp index 0ab65f5..8bab652 100644 --- a/src/CTGUI/Widgets/RichTextLabel.cpp +++ b/src/CTGUI/Widgets/RichTextLabel.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -36,3 +13,5 @@ tguiWidget* tguiRichTextLabel_create(void) { return ctgui::addWidgetRef(tgui::RichTextLabel::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ScrollablePanel.cpp b/src/CTGUI/Widgets/ScrollablePanel.cpp index 0ad12a6..d1ba174 100644 --- a/src/CTGUI/Widgets/ScrollablePanel.cpp +++ b/src/CTGUI/Widgets/ScrollablePanel.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -30,6 +7,8 @@ #define DOWNCAST(x) std::static_pointer_cast(x) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiScrollablePanel_create(void) { return ctgui::addWidgetRef(tgui::ScrollablePanel::create()); @@ -37,112 +16,116 @@ tguiWidget* tguiScrollablePanel_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setContentSize(tguiWidget* widget, tguiVector2f contentSize) +void tguiScrollablePanel_setContentSize(tguiWidget* thisWidget, tguiVector2f value) { - DOWNCAST(widget->This)->setContentSize({contentSize.x, contentSize.y}); + DOWNCAST(thisWidget->This)->setContentSize({value.x, value.y}); } -tguiVector2f tguiScrollablePanel_getContentSize(const tguiWidget* widget) +tguiVector2f tguiScrollablePanel_getContentSize(const tguiWidget* thisWidget) { - const tgui::Vector2f contentSize = DOWNCAST(widget->This)->getContentSize(); - return {contentSize.x, contentSize.y}; + const tgui::Vector2f value = DOWNCAST(thisWidget->This)->getContentSize(); + return {value.x, value.y}; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -float tguiScrollablePanel_getScrollbarWidth(const tguiWidget* widget) +float tguiScrollablePanel_getScrollbarWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getScrollbarWidth(); + return DOWNCAST(thisWidget->This)->getScrollbarWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setVerticalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiScrollablePanel_setVerticalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setVerticalScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setVerticalScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiScrollablePanel_getVerticalScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiScrollablePanel_getVerticalScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getVerticalScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getVerticalScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setHorizontalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiScrollablePanel_setHorizontalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setHorizontalScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setHorizontalScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiScrollablePanel_getHorizontalScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiScrollablePanel_getHorizontalScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getHorizontalScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getHorizontalScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setVerticalScrollAmount(tguiWidget* widget, unsigned int scrollAmount) +void tguiScrollablePanel_setVerticalScrollAmount(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setVerticalScrollAmount(scrollAmount); + DOWNCAST(thisWidget->This)->setVerticalScrollAmount(value); } -unsigned int tguiScrollablePanel_getVerticalScrollAmount(const tguiWidget* widget) +unsigned int tguiScrollablePanel_getVerticalScrollAmount(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScrollAmount(); + return DOWNCAST(thisWidget->This)->getVerticalScrollAmount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setHorizontalScrollAmount(tguiWidget* widget, unsigned int scrollAmount) +void tguiScrollablePanel_setHorizontalScrollAmount(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setHorizontalScrollAmount(scrollAmount); + DOWNCAST(thisWidget->This)->setHorizontalScrollAmount(value); } -unsigned int tguiScrollablePanel_getHorizontalScrollAmount(const tguiWidget* widget) +unsigned int tguiScrollablePanel_getHorizontalScrollAmount(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getHorizontalScrollAmount(); + return DOWNCAST(thisWidget->This)->getHorizontalScrollAmount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiScrollablePanel_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setVerticalScrollbarValue(value); + DOWNCAST(thisWidget->This)->setVerticalScrollbarValue(value); } -unsigned int tguiScrollablePanel_getVerticalScrollbarValue(const tguiWidget* widget) +unsigned int tguiScrollablePanel_getVerticalScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScrollbarValue(); + return DOWNCAST(thisWidget->This)->getVerticalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollablePanel_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiScrollablePanel_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setHorizontalScrollbarValue(value); + DOWNCAST(thisWidget->This)->setHorizontalScrollbarValue(value); } -unsigned int tguiScrollablePanel_getHorizontalScrollbarValue(const tguiWidget* widget) +unsigned int tguiScrollablePanel_getHorizontalScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getHorizontalScrollbarValue(); + return DOWNCAST(thisWidget->This)->getHorizontalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiScrollablePanel_isVerticalScrollbarShown(const tguiWidget* widget) +tguiBool tguiScrollablePanel_isVerticalScrollbarShown(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isVerticalScrollbarShown(); + return DOWNCAST(thisWidget->This)->isVerticalScrollbarShown(); } -tguiBool tguiScrollablePanel_isHorizontalScrollbarShown(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiScrollablePanel_isHorizontalScrollbarShown(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isHorizontalScrollbarShown(); + return DOWNCAST(thisWidget->This)->isHorizontalScrollbarShown(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiVector2f tguiScrollablePanel_getContentOffset(const tguiWidget* widget) +tguiVector2f tguiScrollablePanel_getContentOffset(const tguiWidget* thisWidget) { - const tgui::Vector2f contentOffset = DOWNCAST(widget->This)->getContentOffset(); - return {contentOffset.x, contentOffset.y}; + const tgui::Vector2f value = DOWNCAST(thisWidget->This)->getContentOffset(); + return {value.x, value.y}; } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/Scrollbar.cpp b/src/CTGUI/Widgets/Scrollbar.cpp index 28531ee..59afaee 100644 --- a/src/CTGUI/Widgets/Scrollbar.cpp +++ b/src/CTGUI/Widgets/Scrollbar.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,79 +16,81 @@ tguiWidget* tguiScrollbar_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbar_setViewportSize(tguiWidget* widget, unsigned int viewport) +void tguiScrollbar_setViewportSize(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setViewportSize(viewport); + DOWNCAST(thisWidget->This)->setViewportSize(value); } -unsigned int tguiScrollbar_getViewportSize(const tguiWidget* widget) +unsigned int tguiScrollbar_getViewportSize(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getViewportSize(); + return DOWNCAST(thisWidget->This)->getViewportSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbar_setMaximum(tguiWidget* widget, unsigned int maximum) +void tguiScrollbar_setMaximum(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -unsigned int tguiScrollbar_getMaximum(const tguiWidget* widget) +unsigned int tguiScrollbar_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbar_setValue(tguiWidget* widget, unsigned int value) +void tguiScrollbar_setValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -unsigned int tguiScrollbar_getValue(const tguiWidget* widget) +unsigned int tguiScrollbar_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbar_setScrollAmount(tguiWidget* widget, unsigned int scrollAmount) +void tguiScrollbar_setScrollAmount(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setScrollAmount(scrollAmount); + DOWNCAST(thisWidget->This)->setScrollAmount(value); } -unsigned int tguiScrollbar_getScrollAmount(const tguiWidget* widget) +unsigned int tguiScrollbar_getScrollAmount(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getScrollAmount(); + return DOWNCAST(thisWidget->This)->getScrollAmount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbar_setAutoHide(tguiWidget* widget, tguiBool autoHide) +void tguiScrollbar_setAutoHide(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setAutoHide(autoHide != 0); + DOWNCAST(thisWidget->This)->setAutoHide(value != 0); } -tguiBool tguiScrollbar_getAutoHide(const tguiWidget* widget) +tguiBool tguiScrollbar_getAutoHide(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getAutoHide(); + return DOWNCAST(thisWidget->This)->getAutoHide(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiScrollbar_setVerticalScroll(tguiWidget* widget, tguiBool vertical) +void tguiScrollbar_setVerticalScroll(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setVerticalScroll(vertical != 0); + DOWNCAST(thisWidget->This)->setVerticalScroll(value != 0); } -tguiBool tguiScrollbar_getVerticalScroll(const tguiWidget* widget) +tguiBool tguiScrollbar_getVerticalScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScroll(); + return DOWNCAST(thisWidget->This)->getVerticalScroll(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -float tguiScrollbar_getDefaultWidth(const tguiWidget* widget) +float tguiScrollbar_getDefaultWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getDefaultWidth(); + return DOWNCAST(thisWidget->This)->getDefaultWidth(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/SeparatorLine.cpp b/src/CTGUI/Widgets/SeparatorLine.cpp index 1b5297f..21722cb 100644 --- a/src/CTGUI/Widgets/SeparatorLine.cpp +++ b/src/CTGUI/Widgets/SeparatorLine.cpp @@ -1,36 +1,17 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include +#define DOWNCAST(x) std::static_pointer_cast(x) + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// tguiWidget* tguiSeparatorLine_create(void) { return ctgui::addWidgetRef(tgui::SeparatorLine::create()); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/Slider.cpp b/src/CTGUI/Widgets/Slider.cpp index 206da3e..127fb5c 100644 --- a/src/CTGUI/Widgets/Slider.cpp +++ b/src/CTGUI/Widgets/Slider.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,84 +16,86 @@ tguiWidget* tguiSlider_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setMinimum(tguiWidget* widget, float minimum) +void tguiSlider_setMinimum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -float tguiSlider_getMinimum(const tguiWidget* widget) +float tguiSlider_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setMaximum(tguiWidget* widget, float maximum) +void tguiSlider_setMaximum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -float tguiSlider_getMaximum(const tguiWidget* widget) +float tguiSlider_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setValue(tguiWidget* widget, float value) +void tguiSlider_setValue(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -float tguiSlider_getValue(const tguiWidget* widget) +float tguiSlider_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setStep(tguiWidget* widget, float step) +void tguiSlider_setStep(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setStep(step); + DOWNCAST(thisWidget->This)->setStep(value); } -float tguiSlider_getStep(const tguiWidget* widget) +float tguiSlider_getStep(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getStep(); + return DOWNCAST(thisWidget->This)->getStep(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setVerticalScroll(tguiWidget* widget, tguiBool vertical) +void tguiSlider_setVerticalScroll(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setVerticalScroll(vertical != 0); + DOWNCAST(thisWidget->This)->setVerticalScroll(value != 0); } -tguiBool tguiSlider_getVerticalScroll(const tguiWidget* widget) +tguiBool tguiSlider_getVerticalScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScroll(); + return DOWNCAST(thisWidget->This)->getVerticalScroll(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setInvertedDirection(tguiWidget* widget, tguiBool invertedDirection) +void tguiSlider_setInvertedDirection(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setInvertedDirection(invertedDirection != 0); + DOWNCAST(thisWidget->This)->setInvertedDirection(value != 0); } -tguiBool tguiSlider_getInvertedDirection(const tguiWidget* widget) +tguiBool tguiSlider_getInvertedDirection(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getInvertedDirection(); + return DOWNCAST(thisWidget->This)->getInvertedDirection(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSlider_setChangeValueOnScroll(tguiWidget* widget, tguiBool changeValueOnScroll) +void tguiSlider_setChangeValueOnScroll(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setChangeValueOnScroll(changeValueOnScroll != 0); + DOWNCAST(thisWidget->This)->setChangeValueOnScroll(value != 0); } -tguiBool tguiSlider_getChangeValueOnScroll(const tguiWidget* widget) +tguiBool tguiSlider_getChangeValueOnScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getChangeValueOnScroll(); + return DOWNCAST(thisWidget->This)->getChangeValueOnScroll(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/SpinButton.cpp b/src/CTGUI/Widgets/SpinButton.cpp index a38a61e..f8adaf4 100644 --- a/src/CTGUI/Widgets/SpinButton.cpp +++ b/src/CTGUI/Widgets/SpinButton.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,60 +16,62 @@ tguiWidget* tguiSpinButton_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButton_setMinimum(tguiWidget* widget, float minimum) +void tguiSpinButton_setMinimum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -float tguiSpinButton_getMinimum(const tguiWidget* widget) +float tguiSpinButton_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButton_setMaximum(tguiWidget* widget, float maximum) +void tguiSpinButton_setMaximum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -float tguiSpinButton_getMaximum(const tguiWidget* widget) +float tguiSpinButton_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButton_setValue(tguiWidget* widget, float value) +void tguiSpinButton_setValue(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -float tguiSpinButton_getValue(const tguiWidget* widget) +float tguiSpinButton_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButton_setStep(tguiWidget* widget, float step) +void tguiSpinButton_setStep(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setStep(step); + DOWNCAST(thisWidget->This)->setStep(value); } -float tguiSpinButton_getStep(const tguiWidget* widget) +float tguiSpinButton_getStep(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getStep(); + return DOWNCAST(thisWidget->This)->getStep(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinButton_setVerticalScroll(tguiWidget* widget, tguiBool vertical) +void tguiSpinButton_setVerticalScroll(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setVerticalScroll(vertical != 0); + DOWNCAST(thisWidget->This)->setVerticalScroll(value != 0); } -tguiBool tguiSpinButton_getVerticalScroll(const tguiWidget* widget) +tguiBool tguiSpinButton_getVerticalScroll(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScroll(); + return DOWNCAST(thisWidget->This)->getVerticalScroll(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/SpinControl.cpp b/src/CTGUI/Widgets/SpinControl.cpp index 09cb9f6..b9fee2c 100644 --- a/src/CTGUI/Widgets/SpinControl.cpp +++ b/src/CTGUI/Widgets/SpinControl.cpp @@ -1,31 +1,8 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include -#include +#include #include @@ -40,94 +17,98 @@ tguiWidget* tguiSpinControl_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiRenderer* tguiSpinControl_getSpinButtonRenderer(const tguiWidget* widget) +tguiRenderer* tguiSpinControl_getSpinButtonRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getSpinButtonRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getSpinButtonRenderer(), false); } -tguiRenderer* tguiSpinControl_getSpinButtonSharedRenderer(const tguiWidget* widget) +tguiRenderer* tguiSpinControl_getSpinButtonSharedRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getSpinButtonSharedRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getSpinButtonSharedRenderer(), false); } -tguiRenderer* tguiSpinControl_getSpinTextRenderer(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiRenderer* tguiSpinControl_getSpinTextRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getSpinTextRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getSpinTextRenderer(), false); } -tguiRenderer* tguiSpinControl_getSpinTextSharedRenderer(const tguiWidget* widget) +tguiRenderer* tguiSpinControl_getSpinTextSharedRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getSpinTextSharedRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getSpinTextSharedRenderer(), false); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinControl_setMinimum(tguiWidget* widget, float minimum) +void tguiSpinControl_setMinimum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMinimum(minimum); + DOWNCAST(thisWidget->This)->setMinimum(value); } -float tguiSpinControl_getMinimum(const tguiWidget* widget) +float tguiSpinControl_getMinimum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMinimum(); + return DOWNCAST(thisWidget->This)->getMinimum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinControl_setMaximum(tguiWidget* widget, float maximum) +void tguiSpinControl_setMaximum(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setMaximum(maximum); + DOWNCAST(thisWidget->This)->setMaximum(value); } -float tguiSpinControl_getMaximum(const tguiWidget* widget) +float tguiSpinControl_getMaximum(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximum(); + return DOWNCAST(thisWidget->This)->getMaximum(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinControl_setValue(tguiWidget* widget, float value) +void tguiSpinControl_setValue(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setValue(value); + DOWNCAST(thisWidget->This)->setValue(value); } -float tguiSpinControl_getValue(const tguiWidget* widget) +float tguiSpinControl_getValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getValue(); + return DOWNCAST(thisWidget->This)->getValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinControl_setStep(tguiWidget* widget, float step) +void tguiSpinControl_setStep(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setStep(step); + DOWNCAST(thisWidget->This)->setStep(value); } -float tguiSpinControl_getStep(const tguiWidget* widget) +float tguiSpinControl_getStep(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getStep(); + return DOWNCAST(thisWidget->This)->getStep(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinControl_setDecimalPlaces(tguiWidget* widget, unsigned int decimalPlaces) +void tguiSpinControl_setDecimalPlaces(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setDecimalPlaces(decimalPlaces); + DOWNCAST(thisWidget->This)->setDecimalPlaces(value); } -unsigned int tguiSpinControl_getDecimalPlaces(const tguiWidget* widget) +unsigned int tguiSpinControl_getDecimalPlaces(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getDecimalPlaces(); + return DOWNCAST(thisWidget->This)->getDecimalPlaces(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiSpinControl_setUseWideArrows(tguiWidget* widget, tguiBool useWideArrows) +void tguiSpinControl_setUseWideArrows(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setUseWideArrows(useWideArrows != 0); + DOWNCAST(thisWidget->This)->setUseWideArrows(value != 0); } -tguiBool tguiSpinControl_getUseWideArrows(const tguiWidget* widget) +tguiBool tguiSpinControl_getUseWideArrows(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getUseWideArrows(); + return DOWNCAST(thisWidget->This)->getUseWideArrows(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/TabContainer.cpp b/src/CTGUI/Widgets/TabContainer.cpp index d9d0697..8b08bd7 100644 --- a/src/CTGUI/Widgets/TabContainer.cpp +++ b/src/CTGUI/Widgets/TabContainer.cpp @@ -1,32 +1,9 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include -#include +#include #include @@ -41,129 +18,137 @@ tguiWidget* tguiTabContainer_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiRenderer* tguiTabContainer_getTabsRenderer(const tguiWidget* widget) +tguiRenderer* tguiTabContainer_getTabsRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getTabsRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getTabsRenderer(), false); } -tguiRenderer* tguiTabContainer_getTabsSharedRenderer(const tguiWidget* widget) +tguiRenderer* tguiTabContainer_getTabsSharedRenderer(const tguiWidget* thisWidget) { - return new tguiRenderer(DOWNCAST(widget->This)->getTabsSharedRenderer(), false); + return new tguiRenderer(DOWNCAST(thisWidget->This)->getTabsSharedRenderer(), false); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabContainer_setTabsHeight(tguiWidget* widget, float height) +void tguiTabContainer_select(tguiWidget* thisWidget, size_t index) { - DOWNCAST(widget->This)->setTabsHeight(height); + DOWNCAST(thisWidget->This)->select(index); } -void tguiTabContainer_setTabsHeightFromLayout(tguiWidget* widget, tguiLayout* layout) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTabContainer_getPanelCount(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->setTabsHeight(layout->This); + return DOWNCAST(thisWidget->This)->getPanelCount(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiTabContainer_addTab(tguiWidget* widget, tguiUtf32 name, tguiBool select) +int tguiTabContainer_getSelectedIndex(const tguiWidget* thisWidget) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->addTab(ctgui::toCppStr(name), select != 0)); + return DOWNCAST(thisWidget->This)->getSelectedIndex(); } -tguiWidget* tguiTabContainer_insertTab(tguiWidget* widget, size_t index, tguiUtf32 name, tguiBool select) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiTabContainer_getTabText(const tguiWidget* thisWidget, size_t index) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->insertTab(index, ctgui::toCppStr(name), select != 0)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getTabText(index)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTabContainer_removeTabWithName(tguiWidget* widget, tguiUtf32 text) +tguiBool tguiTabContainer_changeTabText(tguiWidget* thisWidget, size_t index, tguiUtf32 text) { - return DOWNCAST(widget->This)->removeTab(ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->changeTabText(index, ctgui::toCppStr(text)); } -tguiBool tguiTabContainer_removeTabWithIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTabContainer_setTabFixedSize(tguiWidget* thisWidget, float value) { - return DOWNCAST(widget->This)->removeTab(index); + DOWNCAST(thisWidget->This)->setTabFixedSize(value); } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiTabContainer_select(tguiWidget* widget, size_t index) +float tguiTabContainer_getTabFixedSize(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->select(index); + return DOWNCAST(thisWidget->This)->getTabFixedSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiTabContainer_getPanelCount(const tguiWidget* widget) +void tguiTabContainer_setTabAlignment(tguiWidget* thisWidget, tguiTabContainerTabAlign value) +{ + DOWNCAST(thisWidget->This)->setTabAlignment(static_cast(value)); +} + +tguiTabContainerTabAlign tguiTabContainer_getTabAlignment(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getPanelCount(); + return static_cast(DOWNCAST(thisWidget->This)->getTabAlignment()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -int tguiTabContainer_getIndex(const tguiWidget* widget, const tguiWidget* panel) +void tguiTabContainer_setTabsHeight(tguiWidget* thisWidget, float height) { - return DOWNCAST(widget->This)->getIndex(panel->This->cast()); + DOWNCAST(thisWidget->This)->setTabsHeight(height); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiTabContainer_getSelected(const tguiWidget* widget) +void tguiTabContainer_setTabsHeightFromLayout(tguiWidget* thisWidget, const tguiLayout* layout) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getSelected()); + DOWNCAST(thisWidget->This)->setTabsHeight(layout->This); } -int tguiTabContainer_getSelectedIndex(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiTabContainer_removeTabWithName(tguiWidget* thisWidget, tguiUtf32 text) { - return DOWNCAST(widget->This)->getSelectedIndex(); + return DOWNCAST(thisWidget->This)->removeTab(ctgui::toCppStr(text)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiTabContainer_getPanel(const tguiWidget* widget, int index) +tguiBool tguiTabContainer_removeTabWithIndex(tguiWidget* thisWidget, size_t index) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getPanel(index)); + return DOWNCAST(thisWidget->This)->removeTab(index); } -tguiWidget* tguiTabContainer_getTabs(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiWidget* tguiTabContainer_addTab(tguiWidget* widget, tguiUtf32 name, tguiBool select) { - return ctgui::addWidgetRef(DOWNCAST(widget->This)->getTabs()); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->addTab(ctgui::toCppStr(name), select != 0)); } -tguiUtf32 tguiTabContainer_getTabText(const tguiWidget* widget, size_t index) +tguiWidget* tguiTabContainer_insertTab(tguiWidget* widget, size_t index, tguiUtf32 name, tguiBool select) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getTabText(index)); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->insertTab(index, ctgui::toCppStr(name), select != 0)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTabContainer_changeTabText(tguiWidget* widget, size_t index, tguiUtf32 text) +int tguiTabContainer_getIndex(const tguiWidget* widget, const tguiWidget* panel) { - return DOWNCAST(widget->This)->changeTabText(index, ctgui::toCppStr(text)); + return DOWNCAST(widget->This)->getIndex(panel->This->cast()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabContainer_setTabAlignment(tguiWidget* widget, tguiTabContainerTabAlign align) -{ - DOWNCAST(widget->This)->setTabAlignment(static_cast(align)); -} - -tguiTabContainerTabAlign tguiTabContainer_getTabAlignment(const tguiWidget* widget) +tguiWidget* tguiTabContainer_getSelected(const tguiWidget* widget) { - return static_cast(DOWNCAST(widget->This)->getTabAlignment()); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getSelected()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabContainer_setTabFixedSize(tguiWidget* widget, float fixedSize) +tguiWidget* tguiTabContainer_getPanel(const tguiWidget* widget, int index) { - DOWNCAST(widget->This)->setTabFixedSize(fixedSize); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getPanel(index)); } -float tguiTabContainer_getTabFixedSize(const tguiWidget* widget) +tguiWidget* tguiTabContainer_getTabs(const tguiWidget* widget) { - return DOWNCAST(widget->This)->getTabFixedSize(); + return ctgui::addWidgetRef(DOWNCAST(widget->This)->getTabs()); } diff --git a/src/CTGUI/Widgets/Tabs.cpp b/src/CTGUI/Widgets/Tabs.cpp index 4969b92..6276b10 100644 --- a/src/CTGUI/Widgets/Tabs.cpp +++ b/src/CTGUI/Widgets/Tabs.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,137 +16,157 @@ tguiWidget* tguiTabs_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabs_setAutoSize(tguiWidget* widget, tguiBool autoSize) +void tguiTabs_setAutoSize(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setAutoSize(autoSize != 0); + DOWNCAST(thisWidget->This)->setAutoSize(value != 0); } -tguiBool tguiTabs_getAutoSize(const tguiWidget* widget) +tguiBool tguiTabs_getAutoSize(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getAutoSize(); + return DOWNCAST(thisWidget->This)->getAutoSize(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiTabs_add(tguiWidget* widget, tguiUtf32 text, tguiBool select) +size_t tguiTabs_add(tguiWidget* thisWidget, tguiUtf32 text, tguiBool select) { - return DOWNCAST(widget->This)->add(ctgui::toCppStr(text), select != 0); + return DOWNCAST(thisWidget->This)->add(ctgui::toCppStr(text), select != 0); } -void tguiTabs_insert(tguiWidget* widget, size_t index, tguiUtf32 text, tguiBool select) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTabs_insert(tguiWidget* thisWidget, size_t index, tguiUtf32 text, tguiBool select) { - DOWNCAST(widget->This)->insert(index, ctgui::toCppStr(text), select != 0); + DOWNCAST(thisWidget->This)->insert(index, ctgui::toCppStr(text), select != 0); } -tguiUtf32 tguiTabs_getText(const tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiTabs_getText(tguiWidget* thisWidget, size_t index) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText(index)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText(index)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTabs_changeText(tguiWidget* widget, size_t index, tguiUtf32 text) +tguiBool tguiTabs_changeText(tguiWidget* thisWidget, size_t index, tguiUtf32 text) { - return DOWNCAST(widget->This)->changeText(index, ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->changeText(index, ctgui::toCppStr(text)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTabs_selectByText(tguiWidget* widget, tguiUtf32 text) +void tguiTabs_deselect(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->select(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->deselect(); } -tguiBool tguiTabs_selectByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTabs_removeAll(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->select(index); + DOWNCAST(thisWidget->This)->removeAll(); } -void tguiTabs_deselect(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiTabs_getSelected(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->deselect(); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelected()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTabs_removeByText(tguiWidget* widget, tguiUtf32 text) +int tguiTabs_getSelectedIndex(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->remove(ctgui::toCppStr(text)); + return DOWNCAST(thisWidget->This)->getSelectedIndex(); } -tguiBool tguiTabs_removeByIndex(tguiWidget* widget, size_t index) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTabs_getTabsCount(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->remove(index); + return DOWNCAST(thisWidget->This)->getTabsCount(); } -void tguiTabs_removeAll(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTabs_setTabVisible(tguiWidget* thisWidget, size_t index, tguiBool visible) { - DOWNCAST(widget->This)->removeAll(); + DOWNCAST(thisWidget->This)->setTabVisible(index, visible != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiUtf32 tguiTabs_getSelected(const tguiWidget* widget) +tguiBool tguiTabs_getTabVisible(tguiWidget* thisWidget, size_t index) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelected()); + return DOWNCAST(thisWidget->This)->getTabVisible(index); } -int tguiTabs_getSelectedIndex(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTabs_setTabEnabled(tguiWidget* thisWidget, size_t index, tguiBool visible) { - return DOWNCAST(widget->This)->getSelectedIndex(); + DOWNCAST(thisWidget->This)->setTabEnabled(index, visible != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiTabs_getTabsCount(const tguiWidget* widget) +tguiBool tguiTabs_getTabEnabled(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->getTabsCount(); + return DOWNCAST(thisWidget->This)->getTabEnabled(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabs_setTabVisible(tguiWidget* widget, size_t index, tguiBool visible) +void tguiTabs_setMaximumTabWidth(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setTabVisible(index, visible != 0); + DOWNCAST(thisWidget->This)->setMaximumTabWidth(value); } -tguiBool tguiTabs_getTabVisible(const tguiWidget* widget, size_t index) +float tguiTabs_getMaximumTabWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getTabVisible(index); + return DOWNCAST(thisWidget->This)->getMaximumTabWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabs_setTabEnabled(tguiWidget* widget, size_t index, tguiBool enabled) +void tguiTabs_setMinimumTabWidth(tguiWidget* thisWidget, float value) { - DOWNCAST(widget->This)->setTabEnabled(index, enabled != 0); + DOWNCAST(thisWidget->This)->setMinimumTabWidth(value); } -tguiBool tguiTabs_getTabEnabled(const tguiWidget* widget, size_t index) +float tguiTabs_getMinimumTabWidth(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getTabEnabled(index); + return DOWNCAST(thisWidget->This)->getMinimumTabWidth(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabs_setMaximumTabWidth(tguiWidget* widget, float maximumTabWidth) +tguiBool tguiTabs_selectByText(tguiWidget* thisWidget, tguiUtf32 text) { - DOWNCAST(widget->This)->setMaximumTabWidth(maximumTabWidth); + return DOWNCAST(thisWidget->This)->select(ctgui::toCppStr(text)); } -float tguiTabs_getMaximumTabWidth(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiTabs_selectByIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->getMaximumTabWidth(); + return DOWNCAST(thisWidget->This)->select(index); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTabs_setMinimumTabWidth(tguiWidget* widget, float minimumTabWidth) +tguiBool tguiTabs_removeByText(tguiWidget* thisWidget, tguiUtf32 text) { - DOWNCAST(widget->This)->setMinimumTabWidth(minimumTabWidth); + return DOWNCAST(thisWidget->This)->remove(ctgui::toCppStr(text)); } -float tguiTabs_getMinimumTabWidth(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiTabs_removeByIndex(tguiWidget* thisWidget, size_t index) { - return DOWNCAST(widget->This)->getMinimumTabWidth(); + return DOWNCAST(thisWidget->This)->remove(index); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/TextArea.cpp b/src/CTGUI/Widgets/TextArea.cpp index 2728d6f..4e7ad3a 100644 --- a/src/CTGUI/Widgets/TextArea.cpp +++ b/src/CTGUI/Widgets/TextArea.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,171 +16,187 @@ tguiWidget* tguiTextArea_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setText(tguiWidget* widget, tguiUtf32 text) +void tguiTextArea_setText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setText(ctgui::toCppStr(value)); } -void tguiTextArea_addText(tguiWidget* widget, tguiUtf32 text) +tguiUtf32 tguiTextArea_getText(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->addText(ctgui::toCppStr(text)); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getText()); } -tguiUtf32 tguiTextArea_getText(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTextArea_addText(tguiWidget* thisWidget, tguiUtf32 text) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getText()); + DOWNCAST(thisWidget->This)->addText(ctgui::toCppStr(text)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setDefaultText(tguiWidget* widget, tguiUtf32 text) +void tguiTextArea_setDefaultText(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setDefaultText(ctgui::toCppStr(text)); + DOWNCAST(thisWidget->This)->setDefaultText(ctgui::toCppStr(value)); } -tguiUtf32 tguiTextArea_getDefaultText(const tguiWidget* widget) +tguiUtf32 tguiTextArea_getDefaultText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getDefaultText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getDefaultText()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setSelectedText(const tguiWidget* widget, size_t selectionStartIndex, size_t selectionEndIndex) +void tguiTextArea_setSelectedText(tguiWidget* thisWidget, size_t selectionStartIndex, size_t selectionEndIndex) { - DOWNCAST(widget->This)->setSelectedText(selectionStartIndex, selectionEndIndex); + DOWNCAST(thisWidget->This)->setSelectedText(selectionStartIndex, selectionEndIndex); } -tguiUtf32 tguiTextArea_getSelectedText(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiUtf32 tguiTextArea_getSelectedText(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getSelectedText()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getSelectedText()); } -size_t tguiTextArea_getSelectionStart(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTextArea_getSelectionStart(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSelectionStart(); + return DOWNCAST(thisWidget->This)->getSelectionStart(); } -size_t tguiTextArea_getSelectionEnd(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTextArea_getSelectionEnd(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getSelectionEnd(); + return DOWNCAST(thisWidget->This)->getSelectionEnd(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setMaximumCharacters(tguiWidget* widget, size_t maximumCharacters) +void tguiTextArea_setMaximumCharacters(tguiWidget* thisWidget, size_t value) { - DOWNCAST(widget->This)->setMaximumCharacters(maximumCharacters); + DOWNCAST(thisWidget->This)->setMaximumCharacters(value); } -size_t tguiTextArea_getMaximumCharacters(const tguiWidget* widget) +size_t tguiTextArea_getMaximumCharacters(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getMaximumCharacters(); + return DOWNCAST(thisWidget->This)->getMaximumCharacters(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setTabString(tguiWidget* widget, tguiUtf32 tabText) +void tguiTextArea_setTabString(tguiWidget* thisWidget, tguiUtf32 value) { - DOWNCAST(widget->This)->setTabString(ctgui::toCppStr(tabText)); + DOWNCAST(thisWidget->This)->setTabString(ctgui::toCppStr(value)); } -tguiUtf32 tguiTextArea_getTabString(const tguiWidget* widget) +tguiUtf32 tguiTextArea_getTabString(const tguiWidget* thisWidget) { - return ctgui::fromCppStr(DOWNCAST(widget->This)->getTabString()); + return ctgui::fromCppStr(DOWNCAST(thisWidget->This)->getTabString()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setCaretPosition(tguiWidget* widget, size_t charactersBeforeCaret) +void tguiTextArea_setCaretPosition(tguiWidget* thisWidget, size_t charactersBeforeCaret) { - DOWNCAST(widget->This)->setCaretPosition(charactersBeforeCaret); + DOWNCAST(thisWidget->This)->setCaretPosition(charactersBeforeCaret); } -size_t tguiTextArea_getCaretPosition(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTextArea_getCaretPosition(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getCaretPosition(); + return DOWNCAST(thisWidget->This)->getCaretPosition(); } -size_t tguiTextArea_getCaretLine(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTextArea_getCaretLine(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getCaretLine(); + return DOWNCAST(thisWidget->This)->getCaretLine(); } -size_t tguiTextArea_getCaretColumn(const tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +size_t tguiTextArea_getCaretColumn(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getCaretColumn(); + return DOWNCAST(thisWidget->This)->getCaretColumn(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setReadOnly(tguiWidget* widget, tguiBool readOnly) +void tguiTextArea_setReadOnly(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setReadOnly(readOnly != 0); + DOWNCAST(thisWidget->This)->setReadOnly(value != 0); } -tguiBool tguiTextArea_isReadOnly(const tguiWidget* widget) +tguiBool tguiTextArea_isReadOnly(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isReadOnly(); + return DOWNCAST(thisWidget->This)->isReadOnly(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setVerticalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiTextArea_setVerticalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setVerticalScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setVerticalScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiTextArea_getVerticalScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiTextArea_getVerticalScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getVerticalScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getVerticalScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setHorizontalScrollbarPolicy(tguiWidget* widget, tguiScrollbarPolicy policy) +void tguiTextArea_setHorizontalScrollbarPolicy(tguiWidget* thisWidget, tguiScrollbarPolicy value) { - DOWNCAST(widget->This)->setHorizontalScrollbarPolicy(static_cast(policy)); + DOWNCAST(thisWidget->This)->setHorizontalScrollbarPolicy(static_cast(value)); } -tguiScrollbarPolicy tguiTextArea_getHorizontalScrollbarPolicy(const tguiWidget* widget) +tguiScrollbarPolicy tguiTextArea_getHorizontalScrollbarPolicy(const tguiWidget* thisWidget) { - return static_cast(DOWNCAST(widget->This)->getHorizontalScrollbarPolicy()); + return static_cast(DOWNCAST(thisWidget->This)->getHorizontalScrollbarPolicy()); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_enableMonospacedFontOptimization(tguiWidget* widget, tguiBool enable) +void tguiTextArea_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value) +{ + DOWNCAST(thisWidget->This)->setVerticalScrollbarValue(value); +} + +unsigned int tguiTextArea_getVerticalScrollbarValue(const tguiWidget* thisWidget) { - DOWNCAST(widget->This)->enableMonospacedFontOptimization(enable != 0); + return DOWNCAST(thisWidget->This)->getVerticalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value) +void tguiTextArea_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - DOWNCAST(widget->This)->setVerticalScrollbarValue(value); + DOWNCAST(thisWidget->This)->setHorizontalScrollbarValue(value); } -unsigned int tguiTextArea_getVerticalScrollbarValue(const tguiWidget* widget) +unsigned int tguiTextArea_getHorizontalScrollbarValue(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getVerticalScrollbarValue(); + return DOWNCAST(thisWidget->This)->getHorizontalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTextArea_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value) -{ - DOWNCAST(widget->This)->setHorizontalScrollbarValue(value); -} - -unsigned int tguiTextArea_getHorizontalScrollbarValue(const tguiWidget* widget) +void tguiTextArea_enableMonospacedFontOptimization(tguiWidget* thisWidget, tguiBool enable) { - return DOWNCAST(widget->This)->getHorizontalScrollbarValue(); + DOWNCAST(thisWidget->This)->enableMonospacedFontOptimization(enable != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -size_t tguiTextArea_getLinesCount(const tguiWidget* widget) +size_t tguiTextArea_getLinesCount(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->getLinesCount(); + return DOWNCAST(thisWidget->This)->getLinesCount(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/ToggleButton.cpp b/src/CTGUI/Widgets/ToggleButton.cpp index cd995df..dd30863 100644 --- a/src/CTGUI/Widgets/ToggleButton.cpp +++ b/src/CTGUI/Widgets/ToggleButton.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -39,12 +16,14 @@ tguiWidget* tguiToggleButton_create(void) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiToggleButton_setDown(tguiWidget* widget, tguiBool down) +void tguiToggleButton_setDown(tguiWidget* thisWidget, tguiBool value) { - DOWNCAST(widget->This)->setDown(down != 0); + DOWNCAST(thisWidget->This)->setDown(value != 0); } -tguiBool tguiToggleButton_isDown(const tguiWidget* widget) +tguiBool tguiToggleButton_isDown(const tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->isDown(); + return DOWNCAST(thisWidget->This)->isDown(); } + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/CTGUI/Widgets/TreeView.cpp b/src/CTGUI/Widgets/TreeView.cpp index d6b36da..38f9dce 100644 --- a/src/CTGUI/Widgets/TreeView.cpp +++ b/src/CTGUI/Widgets/TreeView.cpp @@ -1,27 +1,4 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include @@ -32,139 +9,211 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -static std::vector convertHierarchy(const tguiUtf32* hierarchy, unsigned int hierarchyLength) +tguiWidget* tguiTreeView_create(void) { - std::vector convertedHierarchy; - convertedHierarchy.reserve(hierarchyLength); - for (unsigned int i = 0; i < hierarchyLength; ++i) - convertedHierarchy.emplace_back(ctgui::toCppStr(hierarchy[i])); - - return convertedHierarchy; + return ctgui::addWidgetRef(tgui::TreeView::create()); } -static void convertNode(const tgui::TreeView::ConstNode& cppNode, tguiTreeViewConstNode& cNode) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTreeView_setItemHeight(tguiWidget* thisWidget, unsigned int value) { - cNode.expanded = cppNode.expanded; - cNode.text = reinterpret_cast(cppNode.text.c_str()); - cNode.nodesCount = cppNode.nodes.size(); - if (cppNode.nodes.empty()) - cNode.nodes = nullptr; - else - { - cNode.nodes = new tguiTreeViewConstNode[cppNode.nodes.size()]; - for (size_t i = 0; i < cppNode.nodes.size(); ++i) - convertNode(cppNode.nodes[i], cNode.nodes[i]); - } + DOWNCAST(thisWidget->This)->setItemHeight(value); } -static void freeSubNodes(tguiTreeViewConstNode& node) +unsigned int tguiTreeView_getItemHeight(const tguiWidget* thisWidget) { - if (node.nodesCount == 0) - return; + return DOWNCAST(thisWidget->This)->getItemHeight(); +} - for (size_t i = 0; i < node.nodesCount; ++i) - freeSubNodes(node.nodes[i]); +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - delete[] node.nodes; +void tguiTreeView_setVerticalScrollbarValue(tguiWidget* thisWidget, unsigned int value) +{ + DOWNCAST(thisWidget->This)->setVerticalScrollbarValue(value); +} + +unsigned int tguiTreeView_getVerticalScrollbarValue(const tguiWidget* thisWidget) +{ + return DOWNCAST(thisWidget->This)->getVerticalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeViewConstNode_free(tguiTreeViewConstNode* node) +void tguiTreeView_setHorizontalScrollbarValue(tguiWidget* thisWidget, unsigned int value) { - if (!node) - return; + DOWNCAST(thisWidget->This)->setHorizontalScrollbarValue(value); +} - freeSubNodes(*node); - delete node; +unsigned int tguiTreeView_getHorizontalScrollbarValue(const tguiWidget* thisWidget) +{ + return DOWNCAST(thisWidget->This)->getHorizontalScrollbarValue(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiWidget* tguiTreeView_create(void) +tguiBool tguiTreeView_addItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool createParents) { - return ctgui::addWidgetRef(tgui::TreeView::create()); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (size_t i = 0; i < hierarchyLength; ++i) + convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); + + return DOWNCAST(thisWidget->This)->addItem(std::move(convertedHierarchy), createParents != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTreeView_addItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool createParents) +tguiBool tguiTreeView_changeItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiUtf32 leafText) { - return DOWNCAST(widget->This)->addItem(convertHierarchy(hierarchy, hierarchyLength), createParents != 0); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (size_t i = 0; i < hierarchyLength; ++i) + convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); + + return DOWNCAST(thisWidget->This)->changeItem(std::move(convertedHierarchy), ctgui::toCppStr(leafText)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTreeView_changeItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiUtf32 leafText) +void tguiTreeView_expand(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength) { - return DOWNCAST(widget->This)->changeItem(convertHierarchy(hierarchy, hierarchyLength), ctgui::toCppStr(leafText)); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (size_t i = 0; i < hierarchyLength; ++i) + convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); + + DOWNCAST(thisWidget->This)->expand(std::move(convertedHierarchy)); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeView_expand(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength) +void tguiTreeView_collapse(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength) { - DOWNCAST(widget->This)->expand(convertHierarchy(hierarchy, hierarchyLength)); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (size_t i = 0; i < hierarchyLength; ++i) + convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); + + DOWNCAST(thisWidget->This)->collapse(std::move(convertedHierarchy)); } -void tguiTreeView_collapse(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTreeView_expandAll(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->collapse(convertHierarchy(hierarchy, hierarchyLength)); + DOWNCAST(thisWidget->This)->expandAll(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeView_expandAll(tguiWidget* widget) +void tguiTreeView_collapseAll(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->expandAll(); + DOWNCAST(thisWidget->This)->collapseAll(); } -void tguiTreeView_collapseAll(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTreeView_deselectItem(tguiWidget* thisWidget) { - DOWNCAST(widget->This)->collapseAll(); + DOWNCAST(thisWidget->This)->deselectItem(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTreeView_selectItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength) +void tguiTreeView_removeAllItems(tguiWidget* thisWidget) { - return DOWNCAST(widget->This)->selectItem(convertHierarchy(hierarchy, hierarchyLength)); + DOWNCAST(thisWidget->This)->removeAllItems(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void tguiTreeView_deselectItem(tguiWidget* widget) +const tguiUtf32* tguiTreeView_getSelectedItem(const tguiWidget* thisWidget, size_t* returnCount) { - DOWNCAST(widget->This)->deselectItem(); + static std::vector cppStrings; + cppStrings = DOWNCAST(thisWidget->This)->getSelectedItem(); + + static std::vector cStrings; + cStrings.clear(); + cStrings.reserve(cppStrings.size()); + for (const auto& item : cppStrings) + cStrings.emplace_back(reinterpret_cast(item.c_str())); + +*returnCount = cStrings.size(); +return cStrings.data(); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -tguiBool tguiTreeView_removeItem(tguiWidget* widget, const tguiUtf32* hierarchy, unsigned int hierarchyLength, tguiBool removeParentsWhenEmpty) +tguiBool tguiTreeView_selectItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength) { - return DOWNCAST(widget->This)->removeItem(convertHierarchy(hierarchy, hierarchyLength), removeParentsWhenEmpty != 0); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (size_t i = 0; i < hierarchyLength; ++i) + convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); + + return DOWNCAST(thisWidget->This)->selectItem(std::move(convertedHierarchy)); } -void tguiTreeView_removeAllItems(tguiWidget* widget) +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +tguiBool tguiTreeView_removeItem(tguiWidget* thisWidget, const tguiUtf32* hierarchy, size_t hierarchyLength, tguiBool removeParentsWhenEmpty) { - DOWNCAST(widget->This)->removeAllItems(); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (size_t i = 0; i < hierarchyLength; ++i) + convertedHierarchy.push_back(ctgui::toCppStr(hierarchy[i])); + + return DOWNCAST(thisWidget->This)->removeItem(std::move(convertedHierarchy), removeParentsWhenEmpty != 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -const tguiUtf32* tguiTreeView_getSelectedItem(const tguiWidget* widget, size_t* count) +static std::vector convertHierarchy(const tguiUtf32* hierarchy, unsigned int hierarchyLength) { - static std::vector cppItems; - cppItems = DOWNCAST(widget->This)->getSelectedItem(); + std::vector convertedHierarchy; + convertedHierarchy.reserve(hierarchyLength); + for (unsigned int i = 0; i < hierarchyLength; ++i) + convertedHierarchy.emplace_back(ctgui::toCppStr(hierarchy[i])); - static std::vector cItems; - cItems.clear(); - cItems.reserve(cppItems.size()); - for (const auto& item : cppItems) - cItems.emplace_back(reinterpret_cast(item.c_str())); + return convertedHierarchy; +} - *count = cItems.size(); - return cItems.data(); +static void convertNode(const tgui::TreeView::ConstNode& cppNode, tguiTreeViewConstNode& cNode) +{ + cNode.expanded = cppNode.expanded; + cNode.text = reinterpret_cast(cppNode.text.c_str()); + cNode.nodesCount = cppNode.nodes.size(); + if (cppNode.nodes.empty()) + cNode.nodes = nullptr; + else + { + cNode.nodes = new tguiTreeViewConstNode[cppNode.nodes.size()]; + for (size_t i = 0; i < cppNode.nodes.size(); ++i) + convertNode(cppNode.nodes[i], cNode.nodes[i]); + } +} + +static void freeSubNodes(tguiTreeViewConstNode& node) +{ + if (node.nodesCount == 0) + return; + + for (size_t i = 0; i < node.nodesCount; ++i) + freeSubNodes(node.nodes[i]); + + delete[] node.nodes; +} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void tguiTreeViewConstNode_free(tguiTreeViewConstNode* node) +{ + if (!node) + return; + + freeSubNodes(*node); + delete node; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -203,39 +252,3 @@ tguiTreeViewConstNode** tguiTreeView_getNodes(const tguiWidget* widget, size_t* *count = cppNodes.size(); return cNodes.data(); } - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiTreeView_setItemHeight(tguiWidget* widget, unsigned int itemHeight) -{ - DOWNCAST(widget->This)->setItemHeight(itemHeight); -} - -unsigned int tguiTreeView_getItemHeight(const tguiWidget* widget) -{ - return DOWNCAST(widget->This)->getItemHeight(); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiTreeView_setVerticalScrollbarValue(tguiWidget* widget, unsigned int value) -{ - DOWNCAST(widget->This)->setVerticalScrollbarValue(value); -} - -unsigned int tguiTreeView_getVerticalScrollbarValue(const tguiWidget* widget) -{ - return DOWNCAST(widget->This)->getVerticalScrollbarValue(); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void tguiTreeView_setHorizontalScrollbarValue(tguiWidget* widget, unsigned int value) -{ - DOWNCAST(widget->This)->setHorizontalScrollbarValue(value); -} - -unsigned int tguiTreeView_getHorizontalScrollbarValue(const tguiWidget* widget) -{ - return DOWNCAST(widget->This)->getHorizontalScrollbarValue(); -} diff --git a/src/CTGUI/Widgets/VerticalLayout.cpp b/src/CTGUI/Widgets/VerticalLayout.cpp index cd69ac1..a279b22 100644 --- a/src/CTGUI/Widgets/VerticalLayout.cpp +++ b/src/CTGUI/Widgets/VerticalLayout.cpp @@ -1,34 +1,17 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// TGUI - Texus' Graphical User Interface -// Copyright (C) 2012-2024 Bruno Van de Velde (vdv_b@tgui.eu) -// -// This software is provided 'as-is', without any express or implied warranty. -// In no event will the authors be held liable for any damages arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it freely, -// subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; -// you must not claim that you wrote the original software. -// If you use this software in a product, an acknowledgment -// in the product documentation would be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, -// and must not be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source distribution. -// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// This file is generated, it should not be edited directly. #include #include #include +#define DOWNCAST(x) std::static_pointer_cast(x) + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + tguiWidget* tguiVerticalLayout_create(void) { return ctgui::addWidgetRef(tgui::VerticalLayout::create()); } + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////