SophiaFramework UNIVERSE 5.3 |
#include <SFBAClockCtl.h.hpp>
class SFBAClockCtl : public SFBControl;
SFMTYPEDEFWRAPPER(SFBAClockCtl)
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
X | X | O | O |
Public Functions | |
---|---|
Void |
GetFaceImageRect(
SFXRectanglePtr rect
)
Retrieves the image rectangle for the underlying face image if set for the analog clock.
|
SFXRectangle |
GetFaceImageRect( Void )
Retrieves the image rectangle for the underlying face image if set for the analog clock.
|
static SFBAClockCtlSmp |
NewInstance(
SFCErrorPtr exception = null
)
Create a new SFBAClockCtl instance.
|
static SFBAClockCtlSmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
)
Create a new SFBAClockCtl instance.
|
Void |
SetFaceColor(
RGBVAL color
)
Set the background color of the analog clock control.
|
Void |
SetFaceColor(
SFXRGBColorConstRef color
)
Set the background color of the analog clock control.
|
Void |
SetFaceImage(
SFBImageSmpConstRef image
, SFXRectanglePtr rect
)
Set the background image that is displayed on the face of the analog clock control.
|
Void |
SetHandFrameColor(
RGBVAL color
)
Set the fill color for the frame of the analog clock control.
|
Void |
SetHandFrameColor(
SFXRGBColorConstRef color
)
Set the fill color for the frame of the analog clock control.
|
Void |
SetHourColor(
RGBVAL color
)
Set the fill color for the hour-hand of the analog clock control.
|
Void |
SetHourColor(
SFXRGBColorConstRef color
)
Set the fill color for the hour-hand of the analog clock control.
|
Void |
SetMinColor(
RGBVAL color
)
Set the fill color for the minute-hand of the analog clock control.
|
Void |
SetMinColor(
SFXRGBColorConstRef color
)
Set the fill color for the minute-hand of the analog clock control.
|
Void |
SetSecColor(
RGBVAL color
)
Set the fill color for the second-hand of the analog clock control.
|
Void |
SetSecColor(
SFXRGBColorConstRef color
)
Set the fill color for the second-hand of the analog clock control.
|
UInt32 |
SetTime(
UInt32 tod
)
Set given time and redraw the clock on the screen.
|
Void |
Start( Void )
Start the analog clock.
|
Void |
StopStop( Void )
Stop the automatic display of the analog clock initiated by the call to SFBAClockCtl::Start.
|
UInt32 |
GetProperties( Void )
(inherits from SFBControl)
Return the control-specific properties or flags.
|
Void |
GetRect(
SFXRectanglePtr rect
)
(inherits from SFBControl)
Get the rectangle of the control.
|
SFXRectangle |
GetRect( Void )
(inherits from SFBControl)
Get the rectangle of the control.
|
Bool |
HandleEvent(
AEEEvent event
, UInt16 wParam
, UInt32 dwParam
)
(inherits from SFBControl)
Pass events to a control. The BREW controls process
various events to allow a device user to enter a text, time, or date
value or choose an item from a menu. Refer to the descriptions of
each control for the events it handles. Your applet must pass a
control all of the events, unless the control is part of a dialog.
Below is an example of an application passing all of the events to
the controls of the application.
|
Bool |
HandleEvent(
SFXEventConstRef event
)
(inherits from SFBControl)
Pass events to a control. The BREW controls process
various events to allow a device user to enter a text, time, or date
value or choose an item from a menu. Refer to the descriptions of
each control for the events it handles. Your applet must pass a
control all of the events, unless the control is part of a dialog.
Below is an example of an application passing all of the events to
the controls of the application.
|
Bool |
IsActive( Void )
(inherits from SFBControl)
Return the active or focus state of the control.
|
Bool |
Redraw( Void )
(inherits from SFBControl)
Instruct the control to redraw its contents.
|
Void |
Reset( Void )
(inherits from SFBControl)
Instruct the control to reset (free/delete) its contents and to immediately leave active/focus mode.
|
Void |
SetActive(
Bool active = true
)
(inherits from SFBControl)
Instruct the control to enter/leave focus or selected mode.
|
Void |
SetProperties(
UInt32 properties
)
(inherits from SFBControl)
Set control-specific properties or flags.
|
Void |
SetRect(
SFXRectangleConstRef rect
)
(inherits from SFBControl)
Set the active screen coordinates of the control.
This may result in the control redrawing its contents.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] Void GetFaceImageRect( SFXRectanglePtr rect // rectangle to be filled with the coordinates of the image );
[ public ] SFXRectangle GetFaceImageRect(Void);
[ public, static ] SFBAClockCtlSmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBAClockCtlSmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] Void SetFaceColor( RGBVAL color // RGB color of the background. );
[ public ] Void SetFaceColor( SFXRGBColorConstRef color // RGB color of the background. );
[ public ] Void SetFaceImage( SFBImageSmpConstRef image // pointer to SFBImage object to use for underlying face. SFXRectanglePtr rect // Pointer to rect in which to center the image. If NULL, the entire analog clock control is used. );
[ public ] Void SetHandFrameColor( RGBVAL color // RGB color of the frame );
[ public ] Void SetHandFrameColor( SFXRGBColorConstRef color // RGB color of the frame );
[ public ] Void SetHourColor( RGBVAL color // RGB color of the hand );
[ public ] Void SetHourColor( SFXRGBColorConstRef color // RGB color of the hand );
[ public ] Void SetMinColor( RGBVAL color // RGB color of the hand );
[ public ] Void SetMinColor( SFXRGBColorConstRef color // RGB color of the hand );
[ public ] Void SetSecColor( RGBVAL color // RGB color of the hand );
[ public ] Void SetSecColor( SFXRGBColorConstRef color // RGB color of the hand );
[ public ] UInt32 SetTime( UInt32 tod // time in milliseconds expired since 00:00:00. Negative value is ignored. );
[ public ] Void Start(Void);
[ public ] Void Stop(Void);
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |