Skip to content

Commit

Permalink
Add weight propoperty
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Jul 29, 2024
1 parent 7073419 commit c1033b3
Show file tree
Hide file tree
Showing 330 changed files with 2,565 additions and 3,034 deletions.
8 changes: 4 additions & 4 deletions src/Pyramid-Bloc/BlBackground.extension.st
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Extension { #name : 'BlBackground' }
Extension { #name : #BlBackground }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlBackground >> asForm [

^ self shouldBeImplemented
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlBackground >> asString [

^ self shouldBeImplemented
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlBackground >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

self shouldBeImplemented
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlBasicLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlBasicLayout' }
Extension { #name : #BlBasicLayout }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlBasicLayout >> asIcon [

^ self iconNamed: #radioButtonUnselected
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlBottomAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlBottomAlignment' }
Extension { #name : #BlBottomAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlBottomAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlColorPaint.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlColorPaint' }
Extension { #name : #BlColorPaint }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlColorPaint >> asForm [

^ (Morph new
Expand All @@ -9,7 +9,7 @@ BlColorPaint >> asForm [
yourself) asForm
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlColorPaint >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

aPyramidBackgroundInputPresenter selectPaintSolidWith: self
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlCompositeBackground.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlCompositeBackground' }
Extension { #name : #BlCompositeBackground }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlCompositeBackground >> asForm [

^ self iconNamed: #jigsawIcon
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlCompositeBackground >> asString [

^ 'Composite'
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlCornerRadii.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlCornerRadii' }
Extension { #name : #BlCornerRadii }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlCornerRadii >> setCornerRadiiOn: aPyramidInsetsInputPresenter [

((self topLeft closeTo: self bottomRight) and: [(self topRight closeTo: self bottomLeft)]) ifTrue: [
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlElement.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlElement' }
Extension { #name : #BlElement }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlElement >> asIcon [

^ self layout asIcon
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlElement >> editWithPyramid [

| editor oldParent |
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlFlowLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlFlowLayout' }
Extension { #name : #BlFlowLayout }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlFlowLayout >> asIcon [

^ self iconNamed: #smallJustified
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlFrameLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlFrameLayout' }
Extension { #name : #BlFrameLayout }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlFrameLayout >> asIcon [

^ self iconNamed: #windowMaximize
Expand Down
8 changes: 4 additions & 4 deletions src/Pyramid-Bloc/BlGradientPaint.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlGradientPaint' }
Extension { #name : #BlGradientPaint }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> asForm [

^ (Morph new
Expand All @@ -13,13 +13,13 @@ BlGradientPaint >> asForm [
yourself) asForm
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

aPyramidBackgroundInputPresenter selectPaintGradientWith: self
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> selectOnGradientPaintInput: aPyramidGradientPaintInputPresenter [

aPyramidGradientPaintInputPresenter stopsInput value:self stops.
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlHorizontalCenterAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalCenterAlignment' }
Extension { #name : #BlHorizontalCenterAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalCenterAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalCoordinateEndAlignment' }
Extension { #name : #BlHorizontalCoordinateEndAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateEndAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalCoordinateLeftAlignment' }
Extension { #name : #BlHorizontalCoordinateLeftAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateLeftAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectStart.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalCoordinateRightAlignment' }
Extension { #name : #BlHorizontalCoordinateRightAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateRightAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalCoordinateStartAlignment' }
Extension { #name : #BlHorizontalCoordinateStartAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateStartAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlHorizontalEndAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalEndAlignment' }
Extension { #name : #BlHorizontalEndAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalEndAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlHorizontalStartAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlHorizontalStartAlignment' }
Extension { #name : #BlHorizontalStartAlignment }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlHorizontalStartAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectStart.
Expand Down
8 changes: 4 additions & 4 deletions src/Pyramid-Bloc/BlImageBackground.extension.st
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Extension { #name : 'BlImageBackground' }
Extension { #name : #BlImageBackground }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> asForm [

^ self image
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> asString [

^ 'Image - ', self image asString
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

aPyramidBackgroundInputPresenter selectImage
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlInsets.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlInsets' }
Extension { #name : #BlInsets }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlInsets >> setInsetsOn: aPyramidInsetsInputPresenter [

self isUniform ifTrue: [
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlLayout' }
Extension { #name : #BlLayout }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayout >> asIcon [

^ self iconNamed: #smallQuestion
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlLayoutCommonConstraintsAxis.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLayoutCommonConstraintsAxis' }
Extension { #name : #BlLayoutCommonConstraintsAxis }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutCommonConstraintsAxis >> asPyramidConstraintsArgument [

^ self resizer asPyramidConstraintsArgument
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutCommonConstraintsAxis >> setConstraintsOn: aPyramidBasicConstraintsInputPresenter [

self resizer setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlLayoutExactResizer.extension.st
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Extension { #name : 'BlLayoutExactResizer' }
Extension { #name : #BlLayoutExactResizer }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutExactResizer >> asPyramidConstraintsArgument [

^ {
#exact:.
self size }
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutExactResizer >> setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter [

aPyramidBasicConstraintsInputPresenter setExact
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlLayoutFitContentResizer.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLayoutFitContentResizer' }
Extension { #name : #BlLayoutFitContentResizer }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutFitContentResizer >> asPyramidConstraintsArgument [

^ #fitContent
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutFitContentResizer >> setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter [

aPyramidBasicConstraintsInputPresenter setFitContent
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlLayoutHorizontal.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLayoutHorizontal' }
Extension { #name : #BlLayoutHorizontal }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutHorizontal >> asBooleanForPyramid [

^ false
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutHorizontal >> switchOrientation [

^ BlLayoutOrientation vertical
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlLayoutMatchParentResizer.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLayoutMatchParentResizer' }
Extension { #name : #BlLayoutMatchParentResizer }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutMatchParentResizer >> asPyramidConstraintsArgument [

^ #matchParent
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutMatchParentResizer >> setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter [

aPyramidBasicConstraintsInputPresenter setMatchParent
Expand Down
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/BlLayoutVertical.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLayoutVertical' }
Extension { #name : #BlLayoutVertical }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutVertical >> asBooleanForPyramid [

^ true
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLayoutVertical >> switchOrientation [

^ BlLayoutOrientation horizontal
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlLinearGradientPaint.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlLinearGradientPaint' }
Extension { #name : #BlLinearGradientPaint }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLinearGradientPaint >> selectOnGradientPaintInput: aPyramidGradientPaintInputPresenter [

super selectOnGradientPaintInput: aPyramidGradientPaintInputPresenter.
Expand Down
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlLinearLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'BlLinearLayout' }
Extension { #name : #BlLinearLayout }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLinearLayout >> asIcon [

^ self iconNamed: #smallLeftFlush
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLinearLayoutHorizontalOrientation' }
Extension { #name : #BlLinearLayoutHorizontalOrientation }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutHorizontalOrientation >> asBooleanForPyramid [

^ false
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutHorizontalOrientation >> switchOrientation [

^ BlLinearLayoutVerticalOrientation new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'BlLinearLayoutVerticalOrientation' }
Extension { #name : #BlLinearLayoutVerticalOrientation }

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutVerticalOrientation >> asBooleanForPyramid [

^ true
]

{ #category : '*Pyramid-Bloc' }
{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutVerticalOrientation >> switchOrientation [

^ BlLinearLayoutHorizontalOrientation new
Expand Down
Loading

0 comments on commit c1033b3

Please sign in to comment.