PPL6-Icon Patrick's Programming Library Version 6.4.21 - Dokumentation
ppl6::tk::Button Klassenreferenz

Öffentliche Typen

enum  Buttonstyle { DEFAULT, FLAT, TRANSPARENT }
 
enum  WindowFlags {
  NoBorder = 0x00000001, Resizeable = 0x00000002, AllowDrop = 0x00000004, TopMost = 0x00000008,
  PositionDefault = 0x00000010, HasCaption = 0x00000020, Fullscreen = 0x00000040, MinimizeButton = 0x00000080,
  MaximizeButton = 0x00000100, SystemMenue = 0x00000200, Backbuffer = 0x00010000, TrippleBuffer = 0x00020000,
  Hardware = 0x00040000, Lockable = 0x00080000, VideoMemory = 0x00100000, WaitVsync = 0x00200000,
  ZBuffer = 0x00400000, StencilBuffer = 0x00800000, SoftwareVertexProcessing = 0x01000000, Multithreaded = 0x02000000,
  FPUPreserve = 0x04000000, DefaultWindow = Resizeable|AllowDrop|PositionDefault|HasCaption|MinimizeButton|MaximizeButton|SystemMenue|Hardware|Lockable|VideoMemory|WaitVsync
}
 

Öffentliche Methoden

 Button (Widget *parent=NULL, int style=DEFAULT)
 
virtual ~Button ()
 
int addChild (Widget *w)
 
Color backgroundColor () const
 
int beginScene ()
 
int blt (const CSurface &source, const Rect &srect=Rect(), int x=0, int y=0)
 
int bltAlpha (const CSurface &source, const Rect &srect=Rect(), int x=0, int y=0)
 
Rect clientRect () const
 
Color color () const
 
CDrawable drawable () const
 
int endScene ()
 
void * enginePrivate () const
 
CFont font () const
 
CDrawable getDrawable ()
 
WidgetgetFirstChild ()
 
WidgetgetNextChild ()
 
GFXEnginegfxEngine () const
 
int height () const
 
bool isEnabled () const
 
bool isVisible () const
 
void needRedraw ()
 
virtual int paint ()
 
void paintChilds ()
 
void paintNormalChilds ()
 
void paintTopMostChilds ()
 
WidgetparentWidget () const
 
Point pos () const
 
int redrawIfNeeded ()
 
void releaseDrawable (const CDrawable &draw)
 
RGBFormat rgbFormat () const
 
void setBackgroundColor (const Color &c)
 
void setButtonstyle (int style)
 
void setColor (const Color &c)
 
void setEnginePrivate (void *ptr)
 
void setFont (const CFont &font)
 
void setGfxEngine (GFXEngine *engine)
 
void setHeight (int height)
 
void setPos (int x, int y)
 
void setPos (const Point &p)
 
void setRGBFormat (const RGBFormat &format)
 
void setSize (int width, int height)
 
void setSize (const Size &s)
 
void setText (const CString &text)
 
void setWidth (int width)
 
void setWindowFlags (WindowFlags f)
 
void setWindowIcon (const CDrawable &icon)
 
void setWindowTitle (const CString &title)
 
void setX (int x)
 
void setY (int y)
 
Size size () const
 
int style () const
 
CString text () const
 
void toTop (Widget *widget=NULL)
 
int width () const
 
Widgetwindow () const
 
WindowFlags windowFlags () const
 
CImage windowIcon () const
 
CString windowTitle () const
 
int x () const
 
int y () const
 

Private Attribute

Color background
 
CFont Font
 
Color foreground
 
int myStyle
 
CWString Text
 

Dokumentation der Aufzählungstypen

Aufzählungswerte
DEFAULT 
FLAT 
TRANSPARENT 
Aufzählungswerte
NoBorder 
Resizeable 
AllowDrop 
TopMost 
PositionDefault 
HasCaption 
Fullscreen 
MinimizeButton 
MaximizeButton 
SystemMenue 
Backbuffer 
TrippleBuffer 
Hardware 
Lockable 
VideoMemory 
WaitVsync 
ZBuffer 
StencilBuffer 
SoftwareVertexProcessing 
Multithreaded 
FPUPreserve 
DefaultWindow 

Beschreibung der Konstruktoren und Destruktoren

ppl6::tk::Button::Button ( Widget parent = NULL,
int  style = DEFAULT 
)
ppl6::tk::Button::~Button ( )
virtual

Dokumentation der Elementfunktionen

int ppl6::tk::Widget::addChild ( Widget w)
inherited
Color ppl6::tk::Button::backgroundColor ( ) const
int ppl6::tk::Widget::beginScene ( )
inherited
int ppl6::tk::Widget::blt ( const CSurface source,
const Rect srect = Rect(),
int  x = 0,
int  y = 0 
)
inherited
int ppl6::tk::Widget::bltAlpha ( const CSurface source,
const Rect srect = Rect(),
int  x = 0,
int  y = 0 
)
inherited
Rect ppl6::tk::Widget::clientRect ( ) const
inherited
Color ppl6::tk::Button::color ( ) const
CDrawable ppl6::tk::Widget::drawable ( ) const
inherited
int ppl6::tk::Widget::endScene ( )
inherited
void * ppl6::tk::Widget::enginePrivate ( ) const
inherited
CFont ppl6::tk::Button::font ( ) const
CDrawable ppl6::tk::Widget::getDrawable ( )
inherited
Widget * ppl6::tk::Widget::getFirstChild ( )
inherited
Widget * ppl6::tk::Widget::getNextChild ( )
inherited
GFXEngine * ppl6::tk::Widget::gfxEngine ( ) const
inherited
int ppl6::tk::Widget::height ( ) const
inherited
bool ppl6::tk::Widget::isEnabled ( ) const
inherited
bool ppl6::tk::Widget::isVisible ( ) const
inherited
void ppl6::tk::Widget::needRedraw ( )
inherited
int ppl6::tk::Button::paint ( )
virtual

Erneute Implementation von ppl6::tk::Widget.

void ppl6::tk::Widget::paintChilds ( )
inherited
void ppl6::tk::Widget::paintNormalChilds ( )
inherited
void ppl6::tk::Widget::paintTopMostChilds ( )
inherited
Widget * ppl6::tk::Widget::parentWidget ( ) const
inherited
Point ppl6::tk::Widget::pos ( ) const
inherited
int ppl6::tk::Widget::redrawIfNeeded ( )
inherited
void ppl6::tk::Widget::releaseDrawable ( const CDrawable draw)
inherited
RGBFormat ppl6::tk::Widget::rgbFormat ( ) const
inherited
void ppl6::tk::Button::setBackgroundColor ( const Color c)
void ppl6::tk::Button::setButtonstyle ( int  style)
void ppl6::tk::Button::setColor ( const Color c)
void ppl6::tk::Widget::setEnginePrivate ( void *  ptr)
inherited
void ppl6::tk::Button::setFont ( const CFont font)
void ppl6::tk::Widget::setGfxEngine ( GFXEngine engine)
inherited
void ppl6::tk::Widget::setHeight ( int  height)
inherited
void ppl6::tk::Widget::setPos ( int  x,
int  y 
)
inherited
void ppl6::tk::Widget::setPos ( const Point p)
inherited
void ppl6::tk::Widget::setRGBFormat ( const RGBFormat format)
inherited
void ppl6::tk::Widget::setSize ( int  width,
int  height 
)
inherited
void ppl6::tk::Widget::setSize ( const Size s)
inherited
void ppl6::tk::Button::setText ( const CString text)
void ppl6::tk::Widget::setWidth ( int  width)
inherited
void ppl6::tk::Widget::setWindowFlags ( WindowFlags  f)
inherited
void ppl6::tk::Widget::setWindowIcon ( const CDrawable icon)
inherited
void ppl6::tk::Widget::setWindowTitle ( const CString title)
inherited
void ppl6::tk::Widget::setX ( int  x)
inherited
void ppl6::tk::Widget::setY ( int  y)
inherited
Size ppl6::tk::Widget::size ( ) const
inherited
int ppl6::tk::Button::style ( ) const
CString ppl6::tk::Button::text ( ) const
void ppl6::tk::Widget::toTop ( Widget widget = NULL)
inherited
int ppl6::tk::Widget::width ( ) const
inherited
Widget * ppl6::tk::Widget::window ( ) const
inherited
Widget::WindowFlags ppl6::tk::Widget::windowFlags ( ) const
inherited
CImage ppl6::tk::Widget::windowIcon ( ) const
inherited
CString ppl6::tk::Widget::windowTitle ( ) const
inherited
int ppl6::tk::Widget::x ( ) const
inherited
int ppl6::tk::Widget::y ( ) const
inherited

Dokumentation der Datenelemente

Color ppl6::tk::Button::background
private
CFont ppl6::tk::Button::Font
private
Color ppl6::tk::Button::foreground
private
int ppl6::tk::Button::myStyle
private
CWString ppl6::tk::Button::Text
private

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: