mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48:21 +01:00
30 lines
468 B
Smalltalk
30 lines
468 B
Smalltalk
Class {
|
|
#name : #DiyaWidget,
|
|
#superclass : #Diya2DNode,
|
|
#instVars : [
|
|
'extent'
|
|
],
|
|
#category : #'Diya-Widgets'
|
|
}
|
|
|
|
{ #category : #'instance creation' }
|
|
DiyaWidget class >> fromStyle: aStyle [
|
|
^self new style: aStyle; yourself
|
|
]
|
|
|
|
{ #category : #geometry }
|
|
DiyaWidget >> extent [
|
|
^extent
|
|
]
|
|
|
|
{ #category : #geometry }
|
|
DiyaWidget >> extent: size [
|
|
extent := size.
|
|
self setDirty.
|
|
]
|
|
|
|
{ #category : #initialization }
|
|
DiyaWidget >> initialize [
|
|
super initialize.
|
|
]
|