// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/widgets/multi/list/listboxheader.cpp
// Function: smooth::GUI::ListBoxHeader::ListBoxHeader(smooth::GUI::Point const&, smooth::GUI::Size const&)
S::GUI::ListBoxHeader::ListBoxHeader(const Point &iPos, const Size &iSize) : Widget(iPos, iSize)
{
	moveTab		  = -1;
	draggingTab	  = False;

	moveTabStartWidth = 0;
	lastTabStartWidth = 0;

	type		  = classID;

	font.SetWeight(Font::Bold);

	dragHotspot	  = new Hotspot(Point(0, 0), GetSize());
	dragHotspot->SetIndependent(True);
	dragHotspot->onMouseDragStart.Connect(&ListBoxHeader::OnMouseDragStart, this);
	dragHotspot->onMouseDrag.Connect(&ListBoxHeader::OnMouseDrag, this);
	dragHotspot->onMouseDragEnd.Connect(&ListBoxHeader::OnMouseDragEnd, this);
	dragHotspot->onLeftButtonClick.Connect(&ListBoxHeader::OnLeftButtonClick, this);

	Add(dragHotspot);

	onChangeSize.Connect(&ListBoxHeader::OnChangeSize, this);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x57a30
movq 0xe6e7f(%rip), %rax     # 0x16bb18
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x5c0(%rbx)
leaq 0x5d8(%rbx), %r14
movq %r14, %rdi
callq 0x55d90
leaq 0xdb5ef(%rip), %rax     # 0x1602b0
movq %rax, 0x618(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x620(%rbx)
leaq 0xdb537(%rip), %rax     # 0x160210
movq %rax, 0x5d8(%rbx)
leaq 0x630(%rbx), %r15
movq %r15, %rdi
callq 0x55d90
leaq 0xe092a(%rip), %r13     # 0x165620
movq %r13, 0x670(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x678(%rbx)
leaq 0xe0872(%rip), %rbp     # 0x165580
movq %rbp, 0x630(%rbx)
leaq 0x688(%rbx), %r12
movq %r12, %rdi
callq 0x55d90
movq %r13, 0x6c8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x6d0(%rbx)
movq %rbp, 0x688(%rbx)
leaq 0x6e0(%rbx), %r13
movq %r13, %rdi
callq 0x55d90
leaq 0xdf90e(%rip), %rax     # 0x164660
movq %rax, 0x720(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x728(%rbx)
leaq 0xdf856(%rip), %rax     # 0x1645c0
movq %rax, 0x6e0(%rbx)
xorl %eax, %eax
movq %rax, 0x740(%rbx)
leaq 0xdcff7(%rip), %rcx     # 0x161d78
movq %rcx, 0x738(%rbx)
movups %xmm0, 0x748(%rbx)
movl $0xffffffff, 0x5b8(%rbx) # imm = 0xFFFFFFFF
movb $0x0, 0x5bc(%rbx)
movq %rax, 0x5c8(%rbx)
movq 0xe6932(%rip), %rax     # 0x16b6e0
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
leaq 0x140(%rbx), %rdi
movq 0xe6685(%rip), %rax     # 0x16b448
movswl (%rax), %esi
callq 0x574e0
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x556b0
movq %rax, %rbp
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0xb0(%rbx), %rdx
movq %rax, %rdi
callq 0x55a30
movq %rbp, 0x5d0(%rbx)
movb $0x1, 0xcf(%rbp)
addq $0x3f8, %rbp            # imm = 0x3F8
movq 0xe6791(%rip), %rsi     # 0x16b5a0
movq %rbp, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x85e84
movl $0x418, %edi            # imm = 0x418
addq 0x5d0(%rbx), %rdi
movq 0xe6909(%rip), %rsi     # 0x16b738
xorl %edx, %edx
movq %rbx, %rcx
callq 0x85e84
movl $0x438, %edi            # imm = 0x438
addq 0x5d0(%rbx), %rdi
movq 0xe663c(%rip), %rsi     # 0x16b488
xorl %edx, %edx
movq %rbx, %rcx
callq 0x85e84
movl $0x338, %edi            # imm = 0x338
addq 0x5d0(%rbx), %rdi
movq 0xe6e4f(%rip), %rsi     # 0x16bcb8
xorl %edx, %edx
movq %rbx, %rcx
callq 0x85e84
movq 0x5d0(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
leaq 0x298(%rbx), %rdi
movq 0xe6ef7(%rip), %rsi     # 0x16bd88
xorl %edx, %edx
movq %rbx, %rcx
callq 0x85f44
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
movl $0x5b8, %esi            # imm = 0x5B8
movq %rbp, %rdi
callq 0x55480
jmp 0x84edf
movq %rax, 0x8(%rsp)
jmp 0x84ef3
movq %rax, 0x8(%rsp)
jmp 0x84efb
movq %rax, 0x8(%rsp)
jmp 0x84f03
movq %rax, 0x8(%rsp)
jmp 0x84f0b
movq %rax, 0x8(%rsp)
leaq 0x738(%rbx), %rdi
callq 0x7296e
movq %r13, %rdi
callq 0x8069e
movq %r12, %rdi
callq 0x86004
movq %r15, %rdi
callq 0x86004
movq %r14, %rdi
callq 0x63e3c
movq %rbx, %rdi
callq 0x57640
movq 0x8(%rsp), %rdi
callq 0x57090
nop