Skip to content

Commit

Permalink
experimenting sdl window with ToIncWindowElement
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Jun 7, 2024
1 parent 241d752 commit 7835379
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions src/Toplo-Incubator/ToIncWindowElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Class {
#category : #'Toplo-Incubator'
}

{ #category : #accessing }
ToIncWindowElement >> borderless: aBoolean [

wspace borderless: aBoolean
]

{ #category : #'api - displaying' }
ToIncWindowElement >> close [

Expand All @@ -32,7 +38,7 @@ ToIncWindowElement >> defaultRootElement [
^ ToElement new
id: self defaultRootId;
layout: self defaultRootLayout;
fitContent
matchParent
]

{ #category : #initialization }
Expand All @@ -44,7 +50,7 @@ ToIncWindowElement >> defaultRootId [
{ #category : #initialization }
ToIncWindowElement >> defaultRootLayout [

^ BlLinearLayout vertical
^ BlBasicLayout new

]

Expand All @@ -60,6 +66,7 @@ ToIncWindowElement >> initialize [
rootElement := self defaultRootElement.
self addChild: rootElement.
self initializeRootElement.
self matchParent.
wspace := BlSpace new
]

Expand Down Expand Up @@ -103,6 +110,19 @@ ToIncWindowElement >> open [
wspace show
]

{ #category : #'api - bounds' }
ToIncWindowElement >> position: aPoint [

super position: 0@0.
wspace position: aPoint
]

{ #category : #accessing }
ToIncWindowElement >> resizable: aBoolean [

wspace resizable: aBoolean
]

{ #category : #accessing }
ToIncWindowElement >> root [
"Return my current root element.
Expand Down Expand Up @@ -137,6 +157,13 @@ ToIncWindowElement >> rootLayout: aLayout [

]

{ #category : #'api - bounds' }
ToIncWindowElement >> size: aPoint [

"super position: 0@0."
wspace extent: aPoint
]

{ #category : #'api - displaying' }
ToIncWindowElement >> toFront [

Expand Down

0 comments on commit 7835379

Please sign in to comment.