ALBA
Public Member Functions | Protected Attributes | List of all members
albaGUIScrolledPanel Class Reference

#include <albaGUIScrolledPanel.h>

Inheritance diagram for albaGUIScrolledPanel:
Inheritance graph
[legend]
Collaboration diagram for albaGUIScrolledPanel:
Collaboration graph
[legend]

Public Member Functions

 albaGUIScrolledPanel (wxWindow *parent, wxWindowID id=-1)
 
virtual ~albaGUIScrolledPanel ()
 
void Add (wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
 
bool Remove (wxWindow *window)
 
bool Remove (wxSizer *sizer)
 
void FitInside ()
 
virtual bool Layout ()
 

Protected Attributes

wxBoxSizer * m_Sizer
 

Detailed Description

albaGUIScrolledPanel is a Panel on which is possible to add child-widget.

A vertical scrollbar will automatically appear if child-widgets require more space then the avaiable.

Definition at line 30 of file albaGUIScrolledPanel.h.

Constructor & Destructor Documentation

◆ albaGUIScrolledPanel()

albaGUIScrolledPanel::albaGUIScrolledPanel ( wxWindow *  parent,
wxWindowID  id = -1 
)

◆ ~albaGUIScrolledPanel()

virtual albaGUIScrolledPanel::~albaGUIScrolledPanel ( )
virtual

Member Function Documentation

◆ Add() [1/2]

void albaGUIScrolledPanel::Add ( wxWindow *  window,
int  option = 0,
int  flag = wxEXPAND,
int  border = 0 
)

Add a window into the scrolled panel.

◆ Add() [2/2]

void albaGUIScrolledPanel::Add ( wxSizer *  sizer,
int  option = 0,
int  flag = wxEXPAND,
int  border = 0 
)

Add a sizer into the scrolled panel.

◆ Remove() [1/2]

bool albaGUIScrolledPanel::Remove ( wxWindow *  window)

Remove a window from the scrolled panel.

◆ Remove() [2/2]

bool albaGUIScrolledPanel::Remove ( wxSizer *  sizer)

Remove a sizer from the scrolled panel.

◆ FitInside()

void albaGUIScrolledPanel::FitInside ( )

Adjust the ScrollBar Settings.

Must be called explicitly if the size of the contents change at runtime.

◆ Layout()

virtual bool albaGUIScrolledPanel::Layout ( )
virtual

Redraw the scrolled window.

Member Data Documentation

◆ m_Sizer

wxBoxSizer* albaGUIScrolledPanel::m_Sizer
protected

Definition at line 58 of file albaGUIScrolledPanel.h.


The documentation for this class was generated from the following file: