All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.pocketbyte.locolaser.kotlinmpp.builder.KmpClassCustomFormattingBuilder.kt Maven / Gradle / Ivy

The newest version!
package ru.pocketbyte.locolaser.kotlinmpp.builder

import ru.pocketbyte.locolaser.config.resources.ResourcesConfigBuilderFactory
import ru.pocketbyte.locolaser.kotlinmpp.KotlinBaseCustomFormattingResourceConfigBuilder
import ru.pocketbyte.locolaser.kotlinmpp.KotlinBaseResourcesConfig
import ru.pocketbyte.locolaser.resource.formatting.FormattingType

internal typealias CustomFormattingClassBuilder
        = KotlinBaseCustomFormattingResourceConfigBuilder

internal typealias CustomFormattingClassBuilderFactory
        = ResourcesConfigBuilderFactory

class KmpClassCustomFormattingBuilder(
    name: String,
    builderFactory: CustomFormattingClassBuilderFactory,
) : BaseKmpClassBuilder(name, builderFactory) {

    var formattingType: FormattingType? = null

    override fun configure(builder: CustomFormattingClassBuilder) {
        super.configure(builder)

        this.formattingType?.let {
            builder.formattingType = it
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy