kvision / pl.treksoft.kvision.core

Package pl.treksoft.kvision.core

KVision core classes. This includes base interfaces for all components, basic CSS enums (for colors, borders and backgrounds) and the main Widget class.

Types

BGATTACH

enum class BGATTACH

Definitions of CSS background attachment options.

BGCLIP

enum class BGCLIP

Definitions of CSS background clipping options.

BGORIGIN

enum class BGORIGIN

Definitions of CSS background origin options.

BGREPEAT

enum class BGREPEAT

Definitions of CSS background repeat options.

BGSIZE

enum class BGSIZE

Definitions of CSS background size.

BORDERSTYLE

enum class BORDERSTYLE

Definitions of CSS border styles.

Background

class Background

Type-safe definition of CSS background.

Border

class Border

Type-safe definition of CSS border.

COLOR

enum class COLOR

Definitions of CSS color names.

Color

class Color

Type-safe definition of CSS color.

Component

interface Component

Base interface for all components.

Container

interface Container : Component

Base interface for all containers.

StyledComponent

abstract class StyledComponent : Component

Base class for components supporting CSS styling.

UNIT

enum class UNIT

Definitions of CSS units.

Widget

open class Widget : StyledComponent

Base widget class. The parent of all component classes.

WidgetWrapper

open class WidgetWrapper : Widget

This class allows to wrap a component into separately styled DIV element.

Type Aliases

CssSize

typealias CssSize = Pair<Int, UNIT>

This type is used for defining CSS dimensions (width, heights, margins, paddings, etc.).

ResString

typealias ResString = String

This type is used for accessing resources with CommonJS require function.

StringBoolPair

typealias StringBoolPair = Pair<String, Boolean>

Helper type used to define CSS classes.

StringPair

typealias StringPair = Pair<String, String>

Helper type used to define CSS style attributes.