{"size": 1556, "ext": "scrbl", "max_stars_repo_path": "gui-doc/embedded-gui/scribblings/alignment.scrbl", "max_stars_repo_name": "jjsimpso/gui", "max_stars_repo_stars_event_min_datetime": "2015-03-17T22:11:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T15:09:34.000Z", "max_issues_repo_path": "gui-doc/embedded-gui/scribblings/alignment.scrbl", "max_issues_repo_name": "jjsimpso/gui", "max_issues_repo_issues_event_min_datetime": "2015-01-09T15:53:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T16:21:29.000Z", "max_forks_repo_path": "gui-doc/embedded-gui/scribblings/alignment.scrbl", "max_forks_repo_name": "jjsimpso/gui", "max_forks_repo_forks_event_min_datetime": "2015-01-08T13:03:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-26T21:49:09.000Z"}
{"max_stars_count": 65, "max_issues_count": 231, "max_forks_count": 89, "avg_line_length": 29.9230769231, "max_line_length": 75, "alphanum_fraction": 0.6805912596}
#lang scribble/doc
@(require "common.rkt")

@definterface/title[alignment<%> (dllist<%>)]{

@defmethod[(get-parent) (is-a?/c alignment-parent<%>)]{

The parent of the alignment in the tree.}

@defmethod[(set-min-sizes) void?]{

Tells the alignment that its sizes should be calculated.}

@defmethod[(align [x-offset (and/c real? (not/c negative?))]
                  [y-offset (and/c real? (not/c negative?))]
                  [width (and/c real? (not/c negative?))]
                  [height  (and/c real? (not/c negative?))]) void?]{
Tells itself to align its children on the pasteboard
in the given rectangle defined by @racket[width], @racket[height] and a top
left corner point given as offsets into the pasteboards top
left corner.}

@defmethod[(get-min-width) (and/c real? (not/c negative?))]{

The minimum width this alignment must be.}

@defmethod[(get-min-height) (and/c real? (not/c negative?))]{

The minimum height this alignment must be.}

@defmethod*[([(stretchable-width) boolean?]
             [(stretchable-width [value boolean?]) void?])]{

Gets/sets the property of stretchability in the x dimension.}

@defmethod*[([(stretchable-height) boolean?]
             [(stretchable-height [value boolean?]) void?])]{

Gets/sets the property of stretchability in the y dimension.}

@defmethod[(show/hide [show? boolean?]) void?]{

Tells the alignment to show or hide its children.}

@defmethod[(show [show? boolean?]) void?]{

Tells the alignment that its show state is the given value
and it should show or hide its children accordingly.}

}

