How do I get a list of Pages in a given Space?

I am building a macro that needs to display the title and links to all the Pages in the current Space. I already have access to the current Space object. How do I obtain a list of the Pages from it?

Thanks!

Look at PageManager or SpaceManager can’t remember

PageManager.getPages?

Cheers,
Anne