Infenro Home SDK Docs Blah

FloaterAddon

Declared in:/boot/home/devel/Inferno-project/Inferno/SDK/Headers/Plugins/FloaterAddon.h
Author: YNOP
Version:beta
Date: Feb 5 2000
Summary:more...


Its a bird is a plain its a floater. Floaters are the windows that acompany Inferno. They provide a way to access document features such as Layer Views. The are also commonly use for things such as Color picker and Brush picker.*


Hook Functions

Init()
SaveState()
GetSettingsView()
Perform()

FloaterAddon()
FloaterAddon(BMessage *prefs,InfernoCommon *IC)

Your floater location, size and Hidden state are saved by the core. So dont try to go messing with those


Init()
void Init(InfernoDocument *i)




~FloaterAddon()
~FloaterAddon()




SaveState()
void SaveState(BMessage *prefs)

Saves the state of your floater, and the message gets passed back into your constructor.

Size,Position,Hidden states are saved by the core on a per Screen resolution basis. So you don't need to be messing with those.


GetSettingsView()
BView* GetSettingsView(BRect BRect)

Settings is the view that comes up in the preferances box under Infernos prefs pannel. This is used to save gloable defualts for the view and to provide author/version/copyright info


Minimize()
void Minimize(bool bool)




FrameMoved()
void FrameMoved(BPoint BPoint)

Controls the Snap watcher. If the CONTROL_KEY is down it will negate the Preferances set by the user. So you can snap if snap is off or dont snap when snap is on.


QuitRequested()
bool QuitRequested()

Floaters never realy quit, they just get minimized.


Perform()
status_t Perform(perform_code d, void *arg)


Infenro Home SDK Docs Blah

Generated on 12/27/2001
Copyright © 1999-2001 Inferno Dev Team. All rights reserved.