Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

frame.cpp

Go to the documentation of this file.
00001 /*
00002         ClanGUI, copyrights by various people. Have a look in the CREDITS file.
00003         
00004         This sourcecode is distributed using the Library GNU Public Licence,
00005         version 2 or (at your option) any later version. Please read LICENSE
00006         for details.
00007 */
00008 
00009 #include "precomp.h"
00010 #include "API/GUI/frame.h"
00011 #include "API/GUI/component_options.h"
00012 #include "API/GUI/stylemanager.h"
00013 #include "frame_generic.h"
00014 
00016 // Construction:
00017 
00018 CL_Frame::CL_Frame(
00019         const CL_ComponentOptions &options,
00020         CL_Component *parent,
00021         CL_StyleManager *style)
00022 :
00023         CL_Component(options, parent, style),
00024         impl(NULL)
00025 {
00026         impl = new CL_Frame_Generic(this, options, get_style_manager());
00027         get_style_manager()->connect_styles("frame", options, this);
00028 }
00029 
00030 CL_Frame::CL_Frame(
00031         const CL_Rect &pos,
00032         CL_Component *parent,
00033         CL_StyleManager *style)
00034 :
00035         CL_Component(
00036                 CL_Frame_Generic::create_options(pos),
00037                 parent,
00038                 style),
00039         impl(NULL)
00040 {
00041         CL_ComponentOptions options = CL_Frame_Generic::create_options(pos);
00042         impl = new CL_Frame_Generic(this, options, get_style_manager());
00043         get_style_manager()->connect_styles("frame", options, this);
00044 }
00045 
00046 CL_Frame::~CL_Frame()
00047 {
00048         delete impl;
00049 }

Generated at Wed Apr 4 19:54:00 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001