Skip to content
Permalink
Browse files

Cleanup in Athens

- removed unused #showCared
- categorize many uncategorized methods
- remove some dots

Fix #3931
  • Loading branch information
astares committed Jul 13, 2019
1 parent 9dff4a4 commit 1365916dc2470392abc29716bbaf3b59bfc18fef
@@ -66,7 +66,7 @@ AthensBalloonSolidColorPaint >> strokeRect: rect on: canvas stroke: strokePaint
^ canvas surface strokeRectangle: rect color: color width: strokePaint width
]

{ #category : #'as yet unclassified' }
{ #category : #rendering }
AthensBalloonSolidColorPaint >> strokeRect: rect on: canvas strokeWidth: strokeWidth [

^ canvas surface strokeRectangle: rect color: color width: strokeWidth
@@ -18,7 +18,7 @@ Class {
#category : #'Athens-Balloon-Surface'
}

{ #category : #'as yet unclassified' }
{ #category : #'instance creation' }
AthensBalloonSurface class >> extent: aPoint [
"Create a new surface with given extent."

@@ -135,7 +135,7 @@ Class {
#category : #'Athens-Cairo-Pools'
}

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> init_cairo_subpixel_order_t [

"typedef enum {"
@@ -148,7 +148,7 @@ AthensCairoDefinitions class >> init_cairo_subpixel_order_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'class initialization' }
AthensCairoDefinitions class >> initialize [

"
@@ -175,7 +175,7 @@ AthensCairoDefinitions class >> initialize [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_antialias_t [

"typedef enum {"
@@ -194,7 +194,7 @@ AthensCairoDefinitions class >> initialize_cairo_antialias_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_extend_t [
"typedef enum {"
CAIRO_EXTEND_NONE := 0 .
@@ -205,7 +205,7 @@ AthensCairoDefinitions class >> initialize_cairo_extend_t [

]

{ #category : #initialization }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_fill_rule_t [
" typedef enum _cairo_status {"
CAIRO_FILL_RULE_WINDING := 0.
@@ -215,7 +215,7 @@ AthensCairoDefinitions class >> initialize_cairo_fill_rule_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_font_slant_t [

"typedef enum _cairo_font_slant {"
@@ -226,7 +226,7 @@ AthensCairoDefinitions class >> initialize_cairo_font_slant_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_font_type_t [
"typedef enum _cairo_font_type {"
CAIRO_FONT_TYPE_TOY := 0.
@@ -237,7 +237,7 @@ AthensCairoDefinitions class >> initialize_cairo_font_type_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_font_weight_t [

"typedef enum _cairo_font_weight {"
@@ -246,7 +246,7 @@ AthensCairoDefinitions class >> initialize_cairo_font_weight_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_format_t [

"enum cairo_format_t"
@@ -258,7 +258,7 @@ AthensCairoDefinitions class >> initialize_cairo_format_t [
CAIRO_FORMAT_RGB16_565 := 4
]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_hint_metrics_t [
"typedef enum {"
CAIRO_HINT_METRICS_DEFAULT := 0.
@@ -267,7 +267,7 @@ AthensCairoDefinitions class >> initialize_cairo_hint_metrics_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_hint_style_t [

"typedef enum { "
@@ -281,7 +281,7 @@ AthensCairoDefinitions class >> initialize_cairo_hint_style_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_line_cap_t [
"typedef enum _cairo_line_cap { "
CAIRO_LINE_CAP_BUTT := 0.
@@ -290,7 +290,7 @@ AthensCairoDefinitions class >> initialize_cairo_line_cap_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_line_join_t [
" typedef enum _cairo_line_join {"
CAIRO_LINE_JOIN_MITER := 0.
@@ -300,7 +300,7 @@ AthensCairoDefinitions class >> initialize_cairo_line_join_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_operator_t [
" typedef enum _cairo_operator {"
CAIRO_OPERATOR_CLEAR := 0.
@@ -339,7 +339,7 @@ AthensCairoDefinitions class >> initialize_cairo_operator_t [
"} cairo_operator_t;"
]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_cairo_status_t [
" typedef enum _cairo_status {"
CAIRO_STATUS_SUCCESS := 0.
@@ -384,7 +384,7 @@ AthensCairoDefinitions class >> initialize_cairo_status_t [

]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensCairoDefinitions class >> initialize_types [

cairo_status_t := cairo_font_type_t := cairo_line_join_t := cairo_line_cap_t := cairo_status_t := cairo_font_slant_t := cairo_font_weight_t := cairo_operator_t := cairo_fill_rule_t := #int.
@@ -10,7 +10,7 @@ Class {
#category : #'Athens-Cairo-Paints'
}

{ #category : #'as yet unclassified' }
{ #category : #paints }
AthensCairoGradientPaint class >> createLinearGradient: aColorRamp start: aStartPoint stop: aStopPoint [
| paint |
paint := self
@@ -47,7 +47,7 @@ AthensCairoGradientPaint class >> primCreateRadialXo: xo yo: yo radiuso: radiuso

]

{ #category : #'as yet unclassified' }
{ #category : #private }
AthensCairoGradientPaint class >> radialBetween: origin
extending: innerRadius
and: outerOrigin
@@ -15,7 +15,7 @@ Class {
#category : #'Athens-Cairo-Paths'
}

{ #category : #'as yet unclassified' }
{ #category : #utilities }
AthensCairoPathBuilder class >> buildPathFrom: aPathCreatingBlock [


@@ -15,15 +15,15 @@ Class {
#category : #'Athens-Cairo-Paints'
}

{ #category : #'as yet unclassified' }
{ #category : #'instance creation' }
AthensCairoPatternSurfacePaint class >> createForSurface: anAthensCairoSurface [
|pat|
pat := self primCreateForSurface: anAthensCairoSurface .
pat initializeFor: anAthensCairoSurface .
^ pat
]

{ #category : #'as yet unclassified' }
{ #category : #primitives }
AthensCairoPatternSurfacePaint class >> primCreateForSurface: anAthensCairoSurface [

" pattern = cairo_pattern_create_for_surface (image);"
@@ -8,7 +8,7 @@ Class {
#category : #'Athens-Cairo-Quartz'
}

{ #category : #'as yet unclassified' }
{ #category : #finalization }
AthensQuartzSurface class >> finalizeResourceData: data [
| handle contextHandle |
handle := data first.
@@ -19,7 +19,7 @@ AthensQuartzSurface class >> finalizeResourceData: data [
self destroySurfaceHandle: handle value
]

{ #category : #'as yet unclassified' }
{ #category : #primitives }
AthensQuartzSurface class >> primImage: aFormat width: aWidth height: aHeight [
"Creates a Quartz surface backed by a CGBitmap. The surface is created using the Device RGB (or Device Gray, for A8) color space. All Cairo operations, including those that require software rendering, will succeed on this surface. "
^ self ffiCall: #(AthensQuartzSurface cairo_quartz_surface_create (int aFormat,
@@ -29,7 +29,7 @@ AthensQuartzSurface class >> primImage: aFormat width: aWidth height: aHeight [

]

{ #category : #'as yet unclassified' }
{ #category : #private }
AthensQuartzSurface class >> registerSurface: quartzSurface [
"we cannot use SurfacePlugin for quartz surfaces"

@@ -18,7 +18,7 @@ Class {
#category : #'Athens-Core-Paths'
}

{ #category : #'as yet unclassified' }
{ #category : #'class initialization' }
AthensBezierConverter class >> initialize [

CollinearityEps := 1e-30.
@@ -21,7 +21,7 @@ Class {
#category : #'Athens-Core-PathsGeometry'
}

{ #category : #'as yet unclassified' }
{ #category : #'class initialization' }
AthensCurveFlattener class >> initialize [
CurveCollinearityEpsilon := 1e-30 asFloat.
CurveDistanceEpsilon := 1e-30 asFloat.
@@ -17,7 +17,7 @@ AthensPathBuilder class >> createPath: aBlock [
^ self new createPath: aBlock
]

{ #category : #'as yet unclassified' }
{ #category : #'class initialization' }
AthensPathBuilder class >> initialize [
ZeroPoint := 0@0
]
@@ -34,7 +34,7 @@ AthensTreeView class >> openOn: root extentBlock: extBlock childsBlock: childsBl
openInWindow.
]

{ #category : #'as yet unclassified' }
{ #category : #private }
AthensTreeView >> buildSubtreeFor: aNodeObject level: aLevel [
| node childs |

@@ -52,7 +52,7 @@ AthensTreeView >> buildSubtreeFor: aNodeObject level: aLevel [

]

{ #category : #'as yet unclassified' }
{ #category : #private }
AthensTreeView >> layOutGeometry [

"first do a vertical layout"
@@ -81,21 +81,21 @@ AthensTreeView >> layOutGeometry [
root layoutHorizontally: 0.
]

{ #category : #'as yet unclassified' }
{ #category : #rendering }
AthensTreeView >> renderOn: aCanvas [
aCanvas surface clear: Color white.
root renderOn: aCanvas
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
AthensTreeView >> root: aRootObject [

root := self buildSubtreeFor: aRootObject level: 1.

self layOutGeometry
]

{ #category : #'as yet unclassified' }
{ #category : #'private - initialization' }
AthensTreeView >> root: aRootObject extentBlock: extBlock childsBlock: childsBlock [

nodeExtentBlock := extBlock.
@@ -106,7 +106,7 @@ AthensTreeView >> root: aRootObject extentBlock: extBlock childsBlock: childsBlo
self layOutGeometry
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
AthensTreeView >> rowAt: aLevel [
rows ifNil: [ rows := OrderedCollection new ].

@@ -115,7 +115,7 @@ AthensTreeView >> rowAt: aLevel [
^ rows at: aLevel
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
AthensTreeView >> spacingBetweenRows [
^ 30
]

0 comments on commit 1365916

Please sign in to comment.
You can’t perform that action at this time.