Lumiera  0.pre.03
»edit your freedom«
CanvasHook_test Class Reference

Description

Test:
verify the mechanism to attach widgets to a canvas, while keeping the canvas implementation itself opaque.
  • manage the attachment and detach automatically
  • ability to adjust the location parameter of an existing attachment
  • ability to re-attach existing attachments in a new sequence order
    Remarks
    this test focuses on the concepts and the API, and thus uses a dummy implementation of the "Canvas", which just registers a list of widgets with a dedicated "position" for each.
    See also
    canvas-hook.hpp
    ViewHook_test

Definition at line 177 of file canvas-hook-test.cpp.

Private Member Functions

void attach2canvas ()
 
void relocateWidget ()
 
virtual void run (Arg)
 

Member Function Documentation

◆ attach2canvas()

void attach2canvas ( )
inlineprivate
Test:
attach several widgets with distinct coordinates and verify automated detaching on destruction.

Definition at line 192 of file canvas-hook-test.cpp.

◆ relocateWidget()

void relocateWidget ( )
inlineprivate
Test:
hook a widget at a specific position and then later relocate it on the canvas through the ViewHook front-end.

Definition at line 220 of file canvas-hook-test.cpp.

+ Inheritance diagram for CanvasHook_test:
+ Collaboration diagram for CanvasHook_test:

The documentation for this class was generated from the following file: