1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-27 20:08:22 +01:00
Diya-API/Diya/DiyaWidget.class.st

30 lines
468 B
Smalltalk
Raw Normal View History

Class {
#name : #DiyaWidget,
#superclass : #Diya2DNode,
2022-03-21 22:39:52 +01:00
#instVars : [
'extent'
],
#category : #'Diya-Widgets'
}
2022-03-21 22:39:52 +01:00
{ #category : #'instance creation' }
DiyaWidget class >> fromStyle: aStyle [
^self new style: aStyle; yourself
]
{ #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.
]