CodeBlock

data class CodeBlock(lines: List<List<String>>, ident: String, codeTextName: String, pointerName: String, textColor: String?, runtime: Double, syntaxHighlightingOn: Boolean, syntaxHighlightingStyle: String, tabSpacing: Int, boundaries: List<Pair<Double, Double>>) : ShapeWithBoundary

Code block

Constructors

CodeBlock
Link copied to clipboard
fun CodeBlock(lines: List<List<String>>, ident: String, codeTextName: String, pointerName: String, textColor: String? = null, runtime: Double = 1.0, syntaxHighlightingOn: Boolean = true, syntaxHighlightingStyle: String = "inkpot", tabSpacing: Int = 2, boundaries: List<Pair<Double, Double>> = emptyList())
Create empty Code block

Functions

component1
Link copied to clipboard
operator fun component1(): List<List<String>>
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): String
component4
Link copied to clipboard
operator fun component4(): String
component5
Link copied to clipboard
operator fun component5(): String?
component6
Link copied to clipboard
operator fun component6(): Double
component7
Link copied to clipboard
operator fun component7(): Boolean
component8
Link copied to clipboard
operator fun component8(): String
component9
Link copied to clipboard
operator fun component9(): Int
copy
Link copied to clipboard
fun copy(lines: List<List<String>>, ident: String, codeTextName: String, pointerName: String, textColor: String? = null, runtime: Double = 1.0, syntaxHighlightingOn: Boolean = true, syntaxHighlightingStyle: String = "inkpot", tabSpacing: Int = 2, boundaries: List<Pair<Double, Double>> = emptyList()): CodeBlock
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
open override fun getConstructor(): String
getInstructionString
Link copied to clipboard
fun getInstructionString(instruction: String, spread: Boolean): String
Get instruction string to be played using Manim
getRuntimeString
Link copied to clipboard
fun getRuntimeString(): String
Get runtime string using runtime provided
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setNewBoundary
Link copied to clipboard
open override fun setNewBoundary(corners: List<Pair<Double, Double>>, newMaxSize: Int)
toPython
Link copied to clipboard
open override fun toPython(): List<String>
Function for converting linear representation instruction to its corresponding Python instructions
toString
Link copied to clipboard
open override fun toString(): String

Properties

className
Link copied to clipboard
open override val className: String
classPath
Link copied to clipboard
open override val classPath: String
codeTextName
Link copied to clipboard
val codeTextName: String
ident
Link copied to clipboard
open override val ident: String
lines
Link copied to clipboard
val lines: List<List<String>>
pointerName
Link copied to clipboard
val pointerName: String
pythonVariablePrefix
Link copied to clipboard
open override val pythonVariablePrefix: String
render
Link copied to clipboard
open val render: Boolean = false
Boolean to express whether instruction should be rendered in animation
runtime
Link copied to clipboard
open override val runtime: Double = 1.0
style
Link copied to clipboard
val style: PythonStyle
syntaxHighlightingOn
Link copied to clipboard
val syntaxHighlightingOn: Boolean = true
syntaxHighlightingStyle
Link copied to clipboard
val syntaxHighlightingStyle: String
tabSpacing
Link copied to clipboard
val tabSpacing: Int = 2
textColor
Link copied to clipboard
val textColor: String? = null
uid
Link copied to clipboard
open override val uid: String