mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Allow to specify null instead of component
GitOrigin-RevId: 9fff8697e36ba00ea60e4edcff31db14343c43d1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3c512ef615
commit
6132294ac4
@@ -10,10 +10,10 @@ import kotlin.math.ceil
|
||||
class RegionIcon(
|
||||
private val width: Int,
|
||||
private val height: Int,
|
||||
private val painter: RegionPainter<Component>
|
||||
private val painter: RegionPainter<Component?>
|
||||
) : JBCachingScalableIcon<RegionIcon>() {
|
||||
|
||||
constructor(size: Int, painter: RegionPainter<Component>) : this(size, size, painter)
|
||||
constructor(size: Int, painter: RegionPainter<Component?>) : this(size, size, painter)
|
||||
|
||||
override fun copy(): RegionIcon {
|
||||
val icon = RegionIcon(width, height, painter)
|
||||
|
||||
Reference in New Issue
Block a user