
CHAPTER 6
Pickers, Pop-up Views, and Overviews
6-54 Summary
Overview Protos 6
protoOverview 6
aProtoOverview := {
_proto: protoOverview,
viewBounds : boundsFrame,
viewFlags : constant,
viewFont : fontSpec,
lineHeight: integer, // height of items in pixels
selectIndent: integer, // specifies left margin
nothingCheckable: Boolean, // true for no checkboxes
SelectItem: function, // to record selected items
SetupAbstracts: function, // set up entry
Abstract: function, // return shape given entry
HitItem: function, // called when item is tapped
IsSelected: function // Return true if the item is
// selected
cursor: cursor, // cursor for the items
CheckState: function, // determines if selectable
Scroller: function, // implement scrolling here
SelectItem: function, // records selected items
viewSetupChildrenScript:
function, // Calls SetupAbstracts
...
}
protoSoupOverview 6
aProtoSoupOverview := {
_proto: protoSoupOverview,
autoDeselect: Boolean, // whether to deselect when
// the pen leaves an item
cursor: cursor, // cursor for the entries
Scroller: function, // implement scrolling here
SelectItem: function, // records selected items
Abstract: function, // return shape given entry
IsSelected: function, // returns true if selected
ForEachSelected: function, // called for each selected
// item
...
}
Comentarios a estos manuales