A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/layout__track__handler_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/seq_graphic/layout_track_handler.cpp Source File

61  if

(m_State == eMove && m_LastHitTrack) {

67

gl.

Translatef

(m_PreMousePos.X() - m_StartPos.X(), -pane.GetOffsetY(), 0.0f);

68  TModelRect

rc = m_LastHitTrack->GetModelRect();

71

gl.

BlendFunc

(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

73

gl.

Color4f

(0.0f, 0.0f, 1.0f, 0.2f);

75

gl.

Color4f

(1.0f, 1.0f, 1.0f, 0.2f);

81

gl.

ColorMask

(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);

82

gl.

Color4f

(0.0f, 0.0f, 0.0f, 0.5f);

86

gl.

ColorMask

(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE);

88

gl.

BlendFunc

(GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA);

91

m_LastHitTrack->Draw();

93

gl.

ColorMask

(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);

94

gl.

BlendFunc

(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

109 #ifdef ATTRIB_MENU_SUPPORT 136  bool

consumed =

false

;

151  if

(p_track && p_track->

GetChildren

().size() > 1) {

165  event

.Skip(!consumed);

171  bool

consumed =

false

;

184  event

.Skip(!consumed);

205  bool

need_redraw =

false

;

225  if

(track && track->

OnMotion

(pos)) need_redraw =

true

;

342

track->

SetPos

(pos_world);

358  bool

set_track =

true

;

363

}

catch

(exception& e) {

371

p_track->RemoveTrack(order);

372

p_track->SetGroup().UpdateLayout();

408  int

min_movable_track = idx_curr;

409  for

(; min_movable_track >= 0; --min_movable_track) {

417  if

(idx_curr != min_movable_track) {

422  TModelUnit

critical_y = (pos_w.

Y

() + pos_w_above.

Y

()) * 0.5;

426  if

(will_be_y < pos_w.

Y

() + pos_w_above.

Y

()) {

428

critical_y = pos_w_above.

Y

();

432  if

(will_be_y < critical_y) {

435  if

((

int

)(critical_y - will_be_y) == delta_y)

437

delta_y = (

int

)(critical_y - will_be_y);

439

group.UpdateLayout();

456  int

max_movable_track = idx_curr;

457  for

(; (unsigned)max_movable_track < group.GetChildrenNum(); ++max_movable_track) {

465  if

(idx_curr != max_movable_track) {

476

critical_y = pos_w_below.

Y

() + glyph_below->

GetHeight

();

479  if

(will_be_y > critical_y) {

481  if

((

int

)(will_be_y - critical_y) == delta_y)

485

delta_y = (

int

)(will_be_y - critical_y);

486

group.UpdateLayout();

A dummy layout track for showing an empty area.

CDummyTrack(CRenderingContext *r_cntx)

virtual void x_UpdateBoundingBox()

Update the bounding box assuming children's sizes are fixed if any.

virtual void Update(bool)

Update content and layout including the bounding box.

CLayoutGroup & SetGroup()

const CLayoutGroup::TObjectList & GetChildren() const

CLayoutGroup is a container of CSeqGlyphs (layout objects).

void SetConfig(const CBoundaryParams *conf)

Set composition boundary parameters.

void UpdateLayout()

update group's bounding box only, and its parent layout.

CLayoutTrackHandler - is the handler for handling the user interactions on layout tracks.

void OnOtherMouseEvents(wxMouseEvent &event)

void x_Move(const TModelPoint &pos)

IDroppable * m_DropTarget

void OnLeftUp(wxMouseEvent &event)

TModelPoint m_PreMousePos

void x_MoveTrackUpRecursive(TModelUnit delta_y, TModelUnit &top)

void OnMotion(wxMouseEvent &event)

CRef< CLayoutTrack > m_Delegate

IGenericHandlerHost * GetGenericHost()

void OnLeftDblClick(wxMouseEvent &event)

void OnKeyEvent(wxKeyEvent &event)

CRef< CLayoutTrack > m_LastHitTrack

void OnLeftDown(wxMouseEvent &event)

void OnMouseCaptureLost(wxMouseCaptureLostEvent &event)

ITrackHandlerHost * m_Host

void x_MoveTrackDownRecursive(TModelUnit delta_y, TModelUnit &top)

void SetTrackAttr(TTrackAttrFlags flags)

virtual bool OnLeftDblClick(const TModelPoint &p)

virtual bool OnLeftDown(const TModelPoint &p)

void SetShow(bool shown)

set the flag only.

@ fShowAlways

always be rendered even for an empty track.

@ fFullTrack

track occupying the full horizontal screen.

void SetParentTrack(CLayoutTrack *parent)

bool OnMotion(const TModelPoint &pt)

CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...

class CRgbaColor provides a simple abstraction for managing colors.

class CSeqGlyph defines an interface that wraps a rectilinear abstract object.

virtual void SetHeight(TModelUnit h)

const CRenderingContext * GetRenderingContext() const

Get the rendering context.

void SetParent(CSeqGlyph *p)

virtual void SetWidth(TModelUnit w)

virtual void SetLeft(TModelUnit l)

virtual TModelUnit GetTop() const

virtual TModelUnit GetHeight() const

virtual void Update(bool)

Update content and layout including the bounding box.

virtual void SetTop(TModelUnit b)

virtual TModelUnit GetWidth() const

virtual void SetPos(const TModelPoint &upper_left)

void GetPosInWorld(TModelPoint &pos) const

Get top left position in world coordinate.

virtual TModelUnit GetLeft() const

CTrackContainer - a track container in the form of layout track.

void SaveTrackStates(int order)

Save track states to it proxy.

virtual void SetTrack(CLayoutTrack *track, int order, bool shown=true)

Replace the track by the given track order.

virtual void MoveDown(int order)

move a track down by 1.

virtual void MoveUp(int order)

move a track up by 1.

IDroppable The interface for tracks that support drag&drop.

virtual bool Drop(CRef< CLayoutTrack > &track)=0

virtual bool CanDrop(CRef< CLayoutTrack > &track)=0

virtual void GHH_ReleaseMouse()=0

releases captured mouse

virtual void GHH_Redraw()=0

redraws the Host and the handler

virtual void GHH_CaptureMouse()=0

captures mouse events in the hosting window for D&D

virtual TModelPoint THH_GetModelByWindow(const wxPoint &pt)=0

virtual CRef< CLayoutTrack > THH_GetLayoutTrack()=0

Get the layout track under the current mouse position.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

void Error(CExceptionArgs_Base &args)

virtual void Translatef(GLfloat x, GLfloat y, GLfloat z)=0

virtual void Enable(GLenum glstate)=0

virtual void BlendFunc(GLenum sfactor, GLenum dfactor)=0

Options to be used when GL_BLEND is enabled.

virtual void ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)=0

Set the color mask (glColorMask)

IRender & GetGl()

convenience function for getting current render manager

virtual void PopMatrix()=0

void Color4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)

virtual void Disable(GLenum glstate)=0

glDisable()

virtual void PushMatrix()=0

TObjectType * GetPointer(void) const THROWS_NONE

Get pointer,.

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

unsigned int

A callback function used to compare two keys in a database.

static CS_CONTEXT * context


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4