# cee::app::Views

class `Views` : public RefCountedObject

  Class to manage the list of views in the application.

  Public Functions

  size_t `count`() const

    Returns number of views.

  cee::vis::View *`current`()

    Returns current view.

  ViewInfo `currentViewInfo`() const

    Returns current view info.

  Selection *`currentViewSelection`()

    Returns the current selection.

  void `setCurrent`(cee::vis::View *view)

    Sets current view.

  size_t `currentIndex`() const

    Returns index of current view.

  void `setCurrentIndex`(size_t index)

    Sets current view by index.

  size_t `indexOf`(const cee::vis::View *view) const

    Returns the index of the specified view.

  cee::vis::View *`get`(size_t index)

    Returns the view at the given index.

  ViewInfo `viewInfo`(size_t viewIndex) const

    Returns the view info for the specified viewIndex.

  ViewInfo `viewInfo`(cee::vis::View *view) const

    Returns the view info for the specified view.

  Selection *`viewSelection`(size_t viewIndex)

    Returns the selection at given index.

  Selection *`viewSelection`(cee::vis::View *view)

    Returns the selection for the five view.

  cee::PtrRef<cee::vis::View> `add`()

    Adds a new view and returns it.

  bool `remove`(size_t index)

    Removes the view at the specified index.

  bool `remove`(cee::vis::View *view)

    Removes the specified view.

  bool `removeCurrent`()

    Removes the current view.

  Public Static Functions

  static Views *`instance`()

    Views is a singleton. Always access Views using this instance()

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...