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-03-24 22:48:41 +01:00
|
|
|
{ #category : #geometry }
|
|
|
|
DiyaWidget >> extent [
|
|
|
|
^extent
|
|
|
|
]
|
|
|
|
|
2022-03-21 22:39:52 +01:00
|
|
|
{ #category : #geometry }
|
|
|
|
DiyaWidget >> extent: size [
|
|
|
|
extent := size.
|
2022-08-07 20:43:16 +02:00
|
|
|
self setDirty.
|
2022-03-21 22:39:52 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #initialization }
|
|
|
|
DiyaWidget >> initialize [
|
|
|
|
super initialize.
|
|
|
|
]
|