BorderFrame(3X) manual page
Table of Contents
BorderFrame - place an input sensitive frame around an interactor
There is no corresponding Motif widget for this interactor. It may
not be suitable for Motif user interface design.
#include <ivplus/frame.h>
BorderFrame places a border around its component when the mouse
pointer is inside the BorderFrame’s canvas.
BorderFrame
-> ShowFrame -> IVFrame -> MonoScene- -> Scene->Interactor
Construct a border frame. If the given interactor is
not nil, it is inserted as the frame’s component. The border frame extends
width pixels outside of the interactor. The border frame changes when it
has input focus. The frame will be drawn using a solid line when it contains
the input focus and a gray line otherwise.
Inserts
an interactor into the border frame.
Sets
whether or not the frame has input focus. If true, the frame will be drawn
with a solid line, otherwise it will be drawn with a gray line.
Calls ShadowFrame::Redraw().
None.
// BorderFrame Example
#include <ivplus/box.h>
#include <ivplus/button.h>
#include <ivplus/frame.h>
#include <ivplus/glue.h>
#include <ivplus/message.h>
#include <ivplus/world.h>
int main(int argc, char **argv)
{
// Create the world to get the connection with the display.
World* world = new World("MyApp", argc, argv);
// Create a 2 pixel border frame around a push button.
PushButton* btn = new PushButton("PushMe", new ButtonState(0), 1);
BorderFrame* bframe1 = new BorderFrame(btn, 2);
// Create a 4 pixel border frame around a message.
BorderFrame* bframe2 = new BorderFrame(new Message("Hello World"), 4);
// Create a vbox & insert these frames into it.
VBox* mainbox = new VBox(new VGlue(10), bframe1, new VGlue(10),
bframe2, new VGlue(10));
// Map the window.
world->InsertApplication(new Frame(mainbox, 1, BevelOut));
// Enter the event loop.
world->Run();
return 0;
}
frame.h
frame.C
Event(3X)
, Frame(3X)
, Interactor(3X)
, IVFrame(3X)
, MarginFrame(3X)
,
MonoScene(3X)
, Scene(3X)
, ShadowFrame(3X)
, ShowFrame(3X)
, TitleFrame(3X)
.
Table of Contents