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
21
class
CKWindow
;
22
27
class
CKControlToolbox
:
public
CKControl
,
public
CKTextableControl
{
28
29
public
:
30
CKControlToolbox
(
const
CKControlInitParams
& params,
CKControlType
type =
CKControlType::Unknown
);
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
:
41
CKControlPtr
__ptr
;
42
CKControlType
__type
;
43
};
ckApp.h
ckControl.h
ckPlatform.h
CKControlPtr
ControlRef CKControlPtr
Definition
ckPlatform.h:63
ck_pTextableControl.h
CKControlToolbox
Defines the base of all UIControls that are managed by Macintosh Toolbox.
Definition
ckControlToolbox.h:27
CKControlToolbox::AddedToWindow
virtual void AddedToWindow(CKWindow *window)
Definition
ckControlToolbox.cpp:37
CKControlToolbox::__type
CKControlType __type
Definition
ckControlToolbox.h:42
CKControlToolbox::Redraw
virtual void Redraw()
Definition
ckControlToolbox.cpp:80
CKControlToolbox::HandleEvent
virtual bool HandleEvent(const CKEvent &evt)
Definition
ckControlToolbox.cpp:96
CKControlToolbox::RaisePropertyChange
virtual void RaisePropertyChange(const char *propertyName)
Definition
ckControlToolbox.cpp:138
CKControlToolbox::__ReflectToOS
virtual void __ReflectToOS()
Definition
ckControlToolbox.cpp:115
CKControlToolbox::__ptr
CKControlPtr __ptr
Definition
ckControlToolbox.h:41
CKControlToolbox::~CKControlToolbox
virtual ~CKControlToolbox()
Definition
ckControlToolbox.cpp:31
CKControl
Defines the base of all UI Controls.
Definition
ckControl.h:89
CKTextableControl
A base for controls that have a text property.
Definition
ck_pTextableControl.h:21
CKWindow
Defines a window. Window type (modal, document) is determined by CKWindowInitParams and CKWindowType.
Definition
ckWindow.h:89
CKControlType
CKControlType
Defines a control type (i.e. PushButton, Checkbox, etc.)
Definition
ckTypes.h:51
CKControlType::Unknown
@ Unknown
CKControlInitParams
Initialization parameters for a CKControl.
Definition
ckControl.h:27
CKEvent
Defines an event raised by the framework, mostly for user actions.
Definition
ckTypes.h:490
include
ckControlToolbox.h
Generated by
1.9.8