2022-03-16 18:37:51 +01:00
|
|
|
Class {
|
|
|
|
#name : #DiyaWidget,
|
|
|
|
#superclass : #Diya2DNode,
|
2022-03-21 22:39:52 +01:00
|
|
|
#instVars : [
|
|
|
|
'extent'
|
|
|
|
],
|
2022-03-16 18:37:51 +01:00
|
|
|
#category : #'Diya-Widgets'
|
|
|
|
}
|
2022-03-21 22:39:52 +01:00
|
|
|
|
|
|
|
{ #category : #'instance creation' }
|
|
|
|
DiyaWidget class >> fromStyle: aStyle [
|
|
|
|
^self new style: aStyle; yourself
|
|
|
|
]
|
|
|
|
|
2022-08-06 03:11:36 +02:00
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaWidget >> bgColor:v [
|
|
|
|
^style set: #bgcolor value: v
|
|
|
|
|
|
|
|
]
|
|
|
|
|
2022-03-24 22:48:41 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaWidget >> color [
|
|
|
|
^style get: #color
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaWidget >> color: value [
|
|
|
|
style set: #color value: value
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #geometry }
|
|
|
|
DiyaWidget >> extent [
|
|
|
|
^extent
|
|
|
|
]
|
|
|
|
|
2022-03-21 22:39:52 +01:00
|
|
|
{ #category : #geometry }
|
|
|
|
DiyaWidget >> extent: size [
|
|
|
|
extent := size.
|
|
|
|
dirty := true.
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #initialization }
|
|
|
|
DiyaWidget >> initialize [
|
|
|
|
super initialize.
|
|
|
|
]
|