Clapkit
Loading...
Searching...
No Matches
ckControlToolbox.h
Go to the documentation of this file.
1/*
2 *
3 * Clapkit
4 * ----------------------------------------------------------------------
5 * A wrapper for creating a 'generalized' app for Classic MacOS
6 * that (hopefully) can be ported easily to other platforms.
7 *
8 * CKControlOS
9 * ----------------------------------------------------------------------
10 * The base of controls that are mostly handled by the OS.
11 *
12 */
13
14#pragma once
15
16#include "ckApp.h"
17#include "ckControl.h"
18#include "ckPlatform.h"
19#include "ck_pTextableControl.h"
20
21class CKWindow;
22
28
29 public:
31 virtual ~CKControlToolbox();
32 virtual void AddedToWindow(CKWindow* window);
33 virtual void Redraw();
34 virtual bool HandleEvent(const CKEvent& evt);
35 virtual void RaisePropertyChange(const char* propertyName);
36
37 protected:
38 virtual void __ReflectToOS();
39
40 protected:
43};
ControlRef CKControlPtr
Definition ckPlatform.h:63
Defines the base of all UIControls that are managed by Macintosh Toolbox.
Definition ckControlToolbox.h:27
virtual void AddedToWindow(CKWindow *window)
Definition ckControlToolbox.cpp:37
CKControlType __type
Definition ckControlToolbox.h:42
virtual void Redraw()
Definition ckControlToolbox.cpp:80
virtual bool HandleEvent(const CKEvent &evt)
Definition ckControlToolbox.cpp:96
virtual void RaisePropertyChange(const char *propertyName)
Definition ckControlToolbox.cpp:138
virtual void __ReflectToOS()
Definition ckControlToolbox.cpp:115
CKControlPtr __ptr
Definition ckControlToolbox.h:41
virtual ~CKControlToolbox()
Definition ckControlToolbox.cpp:31
Defines the base of all UI Controls.
Definition ckControl.h:89
A base for controls that have a text property.
Definition ck_pTextableControl.h:21
Defines a window. Window type (modal, document) is determined by CKWindowInitParams and CKWindowType.
Definition ckWindow.h:89
CKControlType
Defines a control type (i.e. PushButton, Checkbox, etc.)
Definition ckTypes.h:51
Initialization parameters for a CKControl.
Definition ckControl.h:27
Defines an event raised by the framework, mostly for user actions.
Definition ckTypes.h:490